1 2020-12-11 Tom Tromey <tom@tromey.com>
3 * varobj.h (all_root_varobjs): Take a function_view.
4 * varobj.c (all_root_varobjs): Take a function_view.
5 (varobj_invalidate_iter): Remove unused parameter.
6 (varobj_invalidate): Update.
7 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
8 (mi_cmd_var_update_iter): Change parameters.
10 2020-12-11 Tom Tromey <tom@tromey.com>
12 * varobj.c (struct varobj_root) <next>: Remove.
13 (struct vlist): Remove.
14 (rootlist): Now a std::list.
15 (install_variable, uninstall_variable, all_root_varobjs): Update.
17 2020-12-11 Tom Tromey <tom@tromey.com>
19 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
20 (varobj_table): Now htab_t.
21 (varobj_get_handle, install_variable, uninstall_variable):
23 (hash_varobj, eq_varobj_and_string): New functions.
24 (hash_varobj): Update.
26 2020-12-11 Tom Tromey <tom@tromey.com>
28 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
29 * ada-lang.c (check_status_exception): Update.
30 * breakpoint.c (free_bp_location): Remove.
31 (decref_bp_location): Use bp_location_ref_policy.
32 (bpstats::bpstats): Don't call incref_bp_location.
33 (bpstats::~bpstats): Remove.
34 (bpstats::bpstats): Update.
35 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
36 (bp_location::bp_location): Update.
37 (incref_bp_location): Remove.
38 (bkpt_print_it): Update.
39 * breakpoint.h (class bp_location): Derive from
41 (struct bpstats): Remove destructor.
42 <bp_location_at>: Now a bp_location_ref_ptr.
44 (bp_location_ref_ptr): New typedef.
45 (struct bp_location_ref_policy): New.
47 2020-12-11 Tom Tromey <tom@tromey.com>
49 * thread.c (class scoped_inc_dec_ref): Remove.
50 (tp_array_compar_ascending, tp_array_compar_descending): Change
52 (thread_apply_all_command): Use thread_info_ref.
54 2020-12-11 Tom Tromey <tom@tromey.com>
56 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
57 (stop_context::stop_context): Update.
58 (stop_context::~stop_context): Remove.
60 2020-12-11 Tom Tromey <tom@tromey.com>
62 * inferior.c (current_inferior_): Change type.
63 (current_inferior, set_current_inferior, initialize_inferiors):
66 2020-12-11 Tom Tromey <tom@tromey.com>
68 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
71 2020-12-11 Tom Tromey <tromey@adacore.com>
73 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
75 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
76 (read_atcb): Use cpu_id_offset.
78 2020-12-10 Kevin Buettner <kevinb@redhat.com>
80 * ada-lang.c (ada_fold_name): Fix off-by-one error.
82 2020-12-10 Luis Machado <luis.machado@linaro.org>
84 * breakpoint.c (should_be_inserted): Don't output newline.
86 2020-12-10 Luis Machado <luis.machado@linaro.org>
88 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
89 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
90 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
91 * arch/aarch64.h: ... here.
92 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
93 (aarch64_maybe_swab128): New function.
94 (aarch64_sve_regs_copy_to_reg_buf)
95 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
96 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
98 (TF_REG_VALUE_BYTES): New enum value.
99 (trad_frame_value_bytes_p): New function.
100 (trad_frame_set_value_bytes): New function.
101 (trad_frame_set_reg_value_bytes): New function.
102 (trad_frame_get_prev_register): Handle register values saved as bytes.
103 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
104 (struct trad_frame_saved_reg) <data>: New field.
105 (trad_frame_set_value_bytes): New prototype.
106 (trad_frame_value_bytes_p): New prototype.
108 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
110 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
111 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
112 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
114 2020-12-09 Tom Tromey <tromey@adacore.com>
116 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
118 2020-12-09 Tom Tromey <tromey@adacore.com>
120 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
121 and "denominator" to gdb_mpz. Handle block forms.
122 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
123 "denominator" to gdb_mpz.
124 (finish_fixed_point_type): Update.
125 (has_zero_over_zero_small_attribute): Update.
127 2020-12-09 Tom Tromey <tromey@adacore.com>
129 * expprint.c (op_name): Update.
130 * expression.h (enum exp_opcode): Update.
131 * std-operator.def: Add more opcodes.
132 * ada-operator.def, fortran-operator.def: Remove, moving contents
133 into std-operator.def.
135 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
137 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
138 Return {} instead of false.
139 (get_discrete_bounds): Compute high bound only if low bound is
142 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
145 * gdbtypes.c (get_discrete_low_bound): Make non-static.
146 (get_discrete_high_bound): Make non-static.
147 * gdbtypes.h (get_discrete_low_bound): New declaration.
148 (get_discrete_high_bound): New declaration.
149 * valarith.c (value_subscript): Only fetch high bound if
152 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
154 * gdbtypes.c (get_discrete_bounds): Implement with
155 get_discrete_low_bound and get_discrete_high_bound.
156 (get_discrete_low_bound): New.
157 (get_discrete_high_bound): New.
159 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
161 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
163 * gdbtypes.c (get_discrete_bounds): Return bool.
165 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
167 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
168 (ada_value_slice): Adjust.
170 * gdbtypes.c (get_discrete_bounds): Adjust.
171 (discrete_position): Return optional.
172 * gdbtypes.h (discrete_position): Return optional.
174 2020-12-07 Tom Tromey <tromey@adacore.com>
176 * maint.c (_initialize_maint_cmds): Use expression command
177 completer for "maint print type".
179 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
181 * completer.c (complete_explicit_location): Also add keywords
182 that start with '-' to the completion list.
184 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
186 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
187 keyword may be followed by any keyword.
188 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
189 'toklen' in the case for "-force-condition".
191 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
193 * main.c (catch_command_errors): Add a flag parameter; invoke
194 `bpstat_do_actions` if the flag is set.
195 (execute_cmdargs): Update a call to `catch_command_errors`.
197 2020-12-07 Tom de Vries <tdevries@suse.de>
199 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
201 2020-12-06 Tom Tromey <tom@tromey.com>
204 * ada-lang.c (replace_operator_with_call): Rewrite.
206 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
209 * s390-tdep.h (op_bc): Correct BC opcode value.
211 2020-12-06 Joel Brobecker <brobecker@adacore.com>
213 * gmp-utils.h (gdb_mpz::safe_export): New private method.
214 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
215 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
216 (gdb_mpz::safe_export): New method.
217 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
218 Update function description.
219 (check_as_integer_raises_out_of_range_error): New function.
220 (gdb_mpz_as_integer_out_of_range): New function.
221 (_initialize_gmp_utils_selftests): Register
222 gdb_mpz_as_integer_out_of_range as a selftest.
224 2020-12-05 Joel Brobecker <brobecker@adacore.com>
226 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
228 (gdb_mpz::write): Likewise.
230 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
232 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
233 number of displaced step buffers.
235 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
237 * displaced-stepping.h (struct displaced_step_buffer): Rename
239 (struct displaced_step_buffers): ... this.
240 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
241 <struct displaced_step_buffer>: New inner class.
243 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
245 (displaced_step_buffers::prepare): ... this, adjust for multiple
247 (displaced_step_buffer::finish): Rename to...
248 (displaced_step_buffers::finish): ... this, adjust for multiple
250 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
251 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
252 adjust for multiple buffers.
253 (displaced_step_buffer::restore_in_ptid): Rename to...
254 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
256 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
257 for num_disp_step_buffers.
258 * linux-tdep.c (struct linux_gdbarch_data)
259 <num_disp_step_buffers>: New field.
260 (struct linux_info) <disp_step_buf>: Rename to...
261 <disp_step_bufs>: ... this, change type to
262 displaced_step_buffers.
263 (linux_displaced_step_prepare): Use
264 linux_gdbarch_data::num_disp_step_buffers to create that number
266 (linux_displaced_step_finish): Adjust.
267 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
268 (linux_displaced_step_restore_all_in_ptid): Adjust.
269 (linux_init_abi): Change supports_displaced_step parameter for
270 num_disp_step_buffers, save it in linux_gdbarch_data.
271 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
272 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
273 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
274 supports_displaced_step parameter for num_disp_step_buffers.
275 (amd64_linux_init_abi): Adjust.
276 (amd64_x32_linux_init_abi): Adjust.
277 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
278 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
279 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
280 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
281 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
282 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
283 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
284 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
285 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
286 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
287 * m68k-linux-tdep.c (m68k_linux_init_abi):
288 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
289 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
290 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
291 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
292 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
293 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
294 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
295 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
296 Change type to displaced_step_buffers.
297 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
298 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
299 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
300 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
301 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
302 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
303 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
305 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
307 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
309 (_initialize_linux_tdep): Register pre-init gdb data instead of
312 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
314 * displaced-stepping.h (struct
315 displaced_step_copy_insn_closure): Adjust comments.
316 (struct displaced_step_inferior_state) <step_thread,
317 step_gdbarch, step_closure, step_original, step_copy,
318 step_saved_copy>: Remove fields.
319 (struct displaced_step_thread_state): New.
320 (struct displaced_step_buffer): New.
321 * displaced-stepping.c (displaced_step_buffer::prepare): New.
322 (write_memory_ptid): Move from infrun.c.
323 (displaced_step_instruction_executed_successfully): New,
324 factored out of displaced_step_finish.
325 (displaced_step_buffer::finish): New.
326 (displaced_step_buffer::copy_insn_closure_by_addr): New.
327 (displaced_step_buffer::restore_in_ptid): New.
328 * gdbarch.sh (displaced_step_location): Remove.
329 (displaced_step_prepare, displaced_step_finish,
330 displaced_step_copy_insn_closure_by_addr,
331 displaced_step_restore_all_in_ptid): New.
332 * gdbarch.c: Re-generate.
333 * gdbarch.h: Re-generate.
334 * gdbthread.h (class thread_info) <displaced_step_state>: New
336 (thread_step_over_chain_remove): New declaration.
337 (thread_step_over_chain_next): New declaration.
338 (thread_step_over_chain_length): New declaration.
339 * thread.c (thread_step_over_chain_remove): Make non-static.
340 (thread_step_over_chain_next): New.
341 (global_thread_step_over_chain_next): Use
342 thread_step_over_chain_next.
343 (thread_step_over_chain_length): New.
344 (global_thread_step_over_chain_enqueue): Add debug print.
345 (global_thread_step_over_chain_remove): Add debug print.
346 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
348 * infrun.c (get_displaced_stepping_state): New.
349 (displaced_step_in_progress_any_inferior): Remove.
350 (displaced_step_in_progress_thread): Adjust.
351 (displaced_step_in_progress): Adjust.
352 (displaced_step_in_progress_any_thread): New.
353 (get_displaced_step_copy_insn_closure_by_addr): Remove.
354 (gdbarch_supports_displaced_stepping): Use
355 gdbarch_displaced_step_prepare_p.
356 (displaced_step_reset): Change parameter from inferior to
358 (displaced_step_prepare_throw): Implement using
359 gdbarch_displaced_step_prepare.
360 (write_memory_ptid): Move to displaced-step.c.
361 (displaced_step_restore): Remove.
362 (displaced_step_finish): Implement using
363 gdbarch_displaced_step_finish.
364 (start_step_over): Allow starting more than one displaced step.
365 (prepare_for_detach): Handle possibly multiple threads doing
367 (handle_inferior_event): Handle possibility that fork event
368 happens while another thread displaced steps.
369 * linux-tdep.h (linux_displaced_step_prepare): New.
370 (linux_displaced_step_finish): New.
371 (linux_displaced_step_copy_insn_closure_by_addr): New.
372 (linux_displaced_step_restore_all_in_ptid): New.
373 (linux_init_abi): Add supports_displaced_step parameter.
374 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
375 (linux_displaced_step_prepare): New.
376 (linux_displaced_step_finish): New.
377 (linux_displaced_step_copy_insn_closure_by_addr): New.
378 (linux_displaced_step_restore_all_in_ptid): New.
379 (linux_init_abi): Add supports_displaced_step parameter,
380 register displaced step methods if true.
381 (_initialize_linux_tdep): Register inferior_execd observer.
382 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
383 supports_displaced_step parameter, adjust call to
384 linux_init_abi. Remove call to
385 set_gdbarch_displaced_step_location.
386 (amd64_linux_init_abi): Adjust call to
387 amd64_linux_init_abi_common.
388 (amd64_x32_linux_init_abi): Likewise.
389 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
390 linux_init_abi. Remove call to
391 set_gdbarch_displaced_step_location.
392 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
393 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
394 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
396 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
397 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
398 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
399 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
400 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
401 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
402 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
403 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
404 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
405 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
406 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
407 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
408 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
409 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
410 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
411 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
412 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
413 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
414 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
415 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
416 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
417 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
418 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
419 linux_init_abi. Remove call to
420 set_gdbarch_displaced_step_location.
421 * arm-tdep.c (arm_pc_is_thumb): Call
422 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
423 get_displaced_step_copy_insn_closure_by_addr.
424 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
425 clear gdbarch methods.
426 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
427 (get_ppc_per_inferior): New function.
428 (ppc_displaced_step_prepare): New function.
429 (ppc_displaced_step_finish): New function.
430 (ppc_displaced_step_restore_all_in_ptid): New function.
431 (rs6000_gdbarch_init): Register new gdbarch methods.
432 * s390-tdep.c (s390_gdbarch_init): Don't call
433 set_gdbarch_displaced_step_location, set new gdbarch methods.
435 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
437 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
438 * aarch64-tdep.h: Include displaced-stepping.h.
439 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
441 (displaced_step_copy_insn_closure_up): Move here.
442 (struct buf_displaced_step_copy_insn_closure): Move here.
443 (struct displaced_step_inferior_state): Move here.
444 (debug_displaced): Move here.
445 (displaced_debug_printf_1): Move here.
446 (displaced_debug_printf): Move here.
447 * displaced-stepping.c: New file.
448 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
449 * gdbarch.h: Re-generate.
450 * inferior.h: Include displaced-stepping.h.
451 * infrun.h (debug_displaced): Move to displaced-stepping.h.
452 (displaced_debug_printf_1): Likewise.
453 (displaced_debug_printf): Likewise.
454 (struct displaced_step_copy_insn_closure): Likewise.
455 (displaced_step_copy_insn_closure_up): Likewise.
456 (struct buf_displaced_step_copy_insn_closure): Likewise.
457 (struct displaced_step_inferior_state): Likewise.
458 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
459 (displaced_debug_printf_1): Likewise.
460 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
462 (_initialize_infrun): Don't register "set/show debug displaced".
464 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
466 * linux-tdep.c (get_linux_inferior_data): Add inferior
468 (linux_vsyscall_range): Pass current inferior.
470 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
472 * infrun.c (displaced_step_prepare_throw): Change return type to
473 displaced_step_prepare_status.
474 (displaced_step_prepare): Likewise.
475 (displaced_step_finish): Change return type to
476 displaced_step_finish_status.
478 (stop_all_threads): Adjust.
479 * displaced-stepping.h: New file.
481 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
483 * infrun.c (displaced_step_fixup): Rename to...
484 (displaced_step_finish): ... this, update all callers.
486 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
488 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
489 (get_displaced_step_copy_insn_closure_by_addr): ... this.
491 (displaced_step_closure): Rename to...
492 (displaced_step_copy_insn_closure): ... this. Update all users.
493 (displaced_step_closure_up): Rename to...
494 (displaced_step_copy_insn_closure_up). ... this. Update all
496 (buf_displaced_step_closure): Rename to...
497 (buf_displaced_step_copy_insn_closure): ... this. Update all
499 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
500 (get_displaced_step_copy_insn_closure_by_addr): ... this.
502 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
503 (aarch64_displaced_step_copy_insn_closure): ... this. Update
505 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
506 (amd64_displaced_step_copy_insn_closure): ... this. Update all
508 * arm-tdep.h (arm_displaced_step_closure): Rename to...
509 (arm_displaced_step_copy_insn_closure): ... this. Update all
511 * i386-tdep.h (i386_displaced_step_closure): Rename to...
512 (i386_displaced_step_copy_insn_closure): ... this. Update all
514 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
515 (ppc_displaced_step_copy_insn_closure): ... this. Update all
517 * s390-tdep.c (s390_displaced_step_closure): Rename to...
518 (s390_displaced_step_copy_insn_closure): ... this. Update all
520 * gdbarch.h: Re-generate.
521 * gdbarch.c: Re-generate.
523 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
525 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
526 (global_thread_step_over_chain_enqueue): ... this. Update all
528 (thread_step_over_chain_remove): Rename to...
529 (global_thread_step_over_chain_remove): ... this. Update all
531 (thread_step_over_chain_next): Rename to...
532 (global_thread_step_over_chain_next): ... this. Update all
534 * infrun.h (step_over_queue_head): Rename to...
535 (global_thread_step_over_chain_head): ... this. Update all
537 * infrun.c (step_over_queue_head): Rename to...
538 (global_thread_step_over_chain_head): ... this. Update all
540 * thread.c (step_over_chain_remove): Rename to...
541 (thread_step_over_chain_remove): ... this. Update all users.
542 (thread_step_over_chain_next): Rename to...
543 (global_thread_step_over_chain_next): ... this. Update all
545 (thread_step_over_chain_enqueue): Rename to...
546 (global_thread_step_over_chain_enqueue): ... this. Update all
548 (thread_step_over_chain_remove): Rename to...
549 (global_thread_step_over_chain_remove): ... this. Update all
552 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
554 * infrun.c (get_displaced_stepping_state): Remove, change
555 callers to access the field directly.
557 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
559 * infrun.c (handle_inferior_event): Restore displaced step
560 buffer bytes in child process when handling fork, even if fork
561 happened in another thread than the displaced-stepping one.
563 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
565 * infrun.c (infrun_inferior_execd): New function.
566 (_initialize_infrun): Attach inferior_execd observer.
568 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
570 * observable.h (inferior_execd): Declare new observable.
571 * observable.c (inferior_execd): Declare new observable.
572 * infrun.c (follow_exec): Notify inferior_execd observer.
573 * jit.c (jit_inferior_created_hook): Make static.
574 (_initialize_jit): Register inferior_execd observer.
575 * jit.h (jit_inferior_created_hook): Remove declaration.
576 * solib.c (_initialize_solib): Register inferior_execd observer.
578 2020-12-04 Tom de Vries <tdevries@suse.de>
581 * completer.c (completion_tracker::build_completion_result): Don't
582 access match_list[0][-1].
584 2020-12-04 Tom Tromey <tromey@adacore.com>
586 * linespec.c (struct linespec_token): Rename; remove typedef.
587 * guile/scm-block.c (struct block_smob): Remove typedef.
588 (struct block_syms_progress_smob): Likewise.
589 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
590 * guile/scm-symtab.c (symtab_smob): Remove typedef.
591 (struct sal_smob): Remove typedef.
592 * guile/scm-param.c (struct param_smob): Remove typedef.
593 * guile/scm-progspace.c (struct pspace_smob): Rename.
594 * guile/scm-objfile.c (struct objfile_smob): Rename.
595 * guile/scm-iterator.c (struct iterator_smob): Rename.
596 * guile/scm-frame.c (struct frame_smob): Rename.
597 * guile/scm-arch.c (struct arch_smob): Rename.
598 * guile/scm-type.c (struct field_smob): Remove typedef.
599 (struct type_smob): Rename.
600 * guile/scm-cmd.c (struct command_smob): Remove typedef.
601 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
602 * guile/scm-value.c (struct value_smob): Remove typedef.
603 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
604 * guile/guile-internal.h (struct scheme_variable)
605 (struct scheme_function, struct scheme_integer_constant)
606 (struct gdb_smob, struct chained_gdb_smob)
607 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
608 (objfile_smob, pspace_smob, type_smob): Remove typedef.
609 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
610 (struct pretty_printer_worker_smob): Remove typedef.
611 * guile/scm-exception.c (struct exception_smob): Remove typedef.
612 * python/py-block.c (struct block_object): Remove typedef.
613 (block_syms_iterator_object): Update.
615 (block_syms_iterator_object): Remove typedef.
616 * python/py-inferior.c (struct membuf_object): Remove typedef.
617 * python/py-symtab.c (struct symtab_object): Remove typedef.
618 (set_symtab): Update.
619 (sal_object): Remove typedef.
621 * python/py-frame.c (frame_object): Remove typedef.
622 * python/py-record-btrace.c (struct btpy_list_object): Remove
624 * python/py-arch.c (struct arch_object): Remove typedef.
625 * python/py-linetable.c (struct linetable_entry_object)
626 (linetable_object, struct ltpy_iterator_object): Remove typedef.
627 * python/py-events.h (eventregistry_object): Remove typedef.
628 (struct events_object): Remove typedef.
629 * python/python-internal.h (gdbpy_breakpoint_object): Remove
631 (thread_object): Remove typedef.
632 * python/py-progspace.c (pspace_object): Remove typedef.
633 * python/py-value.c (struct value_object): Remove typedef.
634 * python/py-record.h (recpy_record_object): Remove typedef.
635 (struct recpy_element_object): Remove typedef.
636 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
637 * python/py-objfile.c (objfile_object): Remove typedef.
638 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
639 * python/py-type.c (type_object): Remove typedef.
640 (typy_iterator_object): Update.
642 (field_object): Remove typedef.
643 (typy_iterator_object): Remove typedef.
644 * python/py-registers.c (register_descriptor_iterator_object):
646 (struct register_descriptor_object)
647 (struct reggroup_iterator_object, struct reggroup_object): Remove
649 * python/py-record.c (recpy_gap_object): Remove typedef.
650 * python/py-symbol.c (symbol_object): Remove typedef.
651 (set_symbol): Update.
652 * python/py-event.h (event_object): Remove typedef.
653 * python/py-param.c (parmpy_object): Remove typedef.
654 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
655 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
656 (unwind_info_object, struct cached_frame_info): Likewise.
658 2020-12-04 Tom Tromey <tromey@adacore.com>
660 * value.c (value_internal_function_name): Make return type const.
661 * value.h (value_internal_function_name): Make return type const.
663 2020-12-04 Luis Machado <luis.machado@linaro.org>
665 * aarch64-tdep.c (submask, bit, bits): Remove.
666 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
667 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
668 (aarch64_decode_cb, aarch64_decode_tb)
669 (aarch64_decode_ldr_literal): Use sbits to extract a signed
671 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
673 2020-12-04 Tom de Vries <tdevries@suse.de>
676 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
678 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
681 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
682 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
684 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
686 * arch/riscv.c: Include 'rv32e-xregs.c'.
687 (riscv_create_target_description): Update to handle rv32e.
688 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
690 <operator==>: Update to account for new field.
692 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
693 * features/riscv/rv32e-xregs.c: Generated.
694 * features/riscv/rv32e-xregs.xml: New file.
695 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
697 (riscv_debug_infcall): Likewise.
698 (riscv_debug_unwinder): Likewise.
699 (riscv_debug_gdbarch): Likewise.
700 (enum riscv_register_required_status): Delete.
701 (struct riscv_register_feature): Add constructor, delete default
702 constructor, copy, and assign constructors.
703 (struct riscv_register_feature::register_info) <required>: Delete.
704 <check>: Update comment and arguments.
705 (struct riscv_register_feature) <name>: Change to member function.
706 <prefer_first_name>: Delete.
707 <tdesc_feature>: New member function.
708 <registers>: Rename to...
709 <m_registers>: ...this.
710 <m_feature_name>: New member variable.
711 (riscv_register_feature::register_info::check): Update arguments.
712 (riscv_xreg_feature): Rewrite as class, create a single static
713 instance of the class.
714 (riscv_freg_feature): Likewise.
715 (riscv_virtual_feature): Likewise.
716 (riscv_csr_feature): Likewise.
717 (riscv_create_csr_aliases): Has become a member function inside
718 riscv_csr_feature class.
719 (riscv_abi_embedded): New function definition.
720 (riscv_register_name): Adjust to use new feature objects.
721 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
722 and adjust available argument registers.
723 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
724 (riscv_check_tdesc_feature): Delete.
725 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
726 (riscv_gdbarch_init): Delete target description checking code, and
727 instead call to the new feature objects to perform the checks.
728 Reorder handling of no abi information case, allows small code
730 (_initialize_riscv_tdep): Remove call, this is now done in the
731 riscv_csr_feature constructor.
732 * riscv-tdep.h (riscv_abi_embedded): Declare.
734 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
736 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
739 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
741 * riscv-tdep.c (riscv_is_unknown_csr): New function,
742 implementation moved from riscv_register_reggroup_p.
743 (riscv_register_reggroup_p): Update group handling for unknown
746 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
748 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
749 (dwarf2_get_dwz_file): Convert 'filename' to a
750 std::string. Use dwz_search_other_debugdirs to search for DWZ
751 files in the debug-file-directories provided by the user as well.
753 2020-12-01 Tom Tromey <tom@tromey.com>
755 * parse.c (expr_builder::expr_builder): Initialize expout.
756 (expr_builder::release): Use expression::resize.
757 (expression::expression, expression::~expression)
758 (expression::resize): New methods.
759 (write_exp_elt): Use expression::resize.
760 (prefixify_expression): Update.
761 (increase_expout_size): Use expression::resize.
762 * expression.h (struct expression): Add constructor, destructor.
763 <resize>: New method.
764 (expression_up): Change type.
766 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
767 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
768 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
771 2020-11-30 Tom de Vries <tdevries@suse.de>
774 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
775 is_reference parameter.
776 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
778 2020-11-30 Tom Tromey <tom@tromey.com>
780 * rust-lang.c (rust_op_name): Remove.
781 (exp_descriptor_rust): Update.
782 * parser-defs.h (op_name_standard): Don't declare.
783 (struct exp_descriptor) <op_name>: Remove.
784 * parse.c (exp_descriptor_standard): Update.
785 * opencl-lang.c (exp_descriptor_opencl): Update.
786 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
787 * f-lang.c (op_name_f): Remove.
788 (f_language::exp_descriptor_tab): Update.
789 * expression.h (op_name): Update.
790 * expprint.c (op_name): Rewrite.
791 (op_name_standard): Remove.
792 (dump_raw_expression, dump_subexp): Update.
793 * c-lang.c (exp_descriptor_c): Update.
794 * ax-gdb.c (gen_expr): Update.
795 * ada-lang.c (ada_op_name): Remove.
796 (ada_exp_descriptor): Update.
798 2020-11-30 Tom Tromey <tom@tromey.com>
800 * eval.c (init_array_element): Remove.
801 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
803 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
806 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
807 static locator win info.
809 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
811 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
814 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
816 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
817 is always initialized.
819 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
820 * MAINTAINERS (Write After Approval): Add myself.
822 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
824 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
825 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
827 2020-11-25 Tom Tromey <tom@tromey.com>
829 * eval.c (evaluate_subexp_standard): Remove unnecessary
832 2020-11-25 Tom Tromey <tom@tromey.com>
834 * d-lang.c: Include parser-defs.h.
835 * rust-lang.c: Include parser-defs.h.
836 * c-lang.h: Do not include parser-defs.h.
838 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
840 * regcache.h (struct cached_reg): Remove typedef.
842 2020-11-24 Joel Brobecker <brobecker@adacore.com>
844 * README: Fix the URL of the MPFR library.
846 2020-11-24 Joel Brobecker <brobecker@adacore.com>
848 * README: Document the --with-libgmp-prefix configure option.
850 2020-11-24 Joel Brobecker <brobecker@adacore.com>
852 * NEWS: Add entry documenting support for DWARF-based fixed
855 2020-11-24 Joel Brobecker <brobecker@adacore.com>
857 * NEWS: Document that building GDB now requires GMP.
859 2020-11-24 Joel Brobecker <brobecker@adacore.com>
861 * typeprint.c (print_type_scalar): Add handling of
862 TYPE_CODE_FIXED_POINT.
864 2020-11-24 Joel Brobecker <brobecker@adacore.com>
866 * valarith.c (fixed_point_binop): Replace the
867 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
870 2020-11-24 Joel Brobecker <brobecker@adacore.com>
872 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
873 replacing fixed_point_scaling_factor. All callers updated
874 throughout this project.
875 (fixed_point_scaling_factor): Delete declaration.
876 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
877 fixed_point_scaling_factor. Adjust implementation accordingly.
879 2020-11-24 Joel Brobecker <brobecker@adacore.com>
881 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
882 replacing the fixed_point_type_base_type function. All callers
883 updated throughout this project.
884 (fixed_point_type_base_type): Remove declaration.
885 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
886 fixed_point_type_base_type. Adjust implementation accordingly.
888 2020-11-24 Joel Brobecker <brobecker@adacore.com>
890 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
892 (INIT_FIXED_POINT_SPECIFIC): Adjust.
893 (TYPE_FIXED_POINT_INFO): Delete macro.
894 (allocate_fixed_point_type_info): Change return type to void.
895 * gdbtypes.c (copy_type_recursive): Replace the use of
896 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
897 (fixed_point_scaling_factor): Likewise.
898 (allocate_fixed_point_type_info): Change return type to void.
899 Adjust implementation accordingly.
900 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
901 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
903 2020-11-24 Joel Brobecker <brobecker@adacore.com>
905 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
906 into one single gdb::array_view parameter.
907 (gdb_mpz::write): Likewise.
908 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
909 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
910 into one single gdb::array_view parameter.
911 Adjust implementation accordingly.
912 (gdb_mpz::write): Likewise.
913 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
914 * unittests/gmp-utils-selftests.c: Adapt following changes above.
915 * valarith.c, valops.c, valprint.c, value.c: Likewise.
917 2020-11-24 Joel Brobecker <brobecker@adacore.com>
919 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
920 Change return type to std::string. Update all callers.
921 * gmp-utils.c (gmp_string_printf): Likewise.
923 2020-11-24 Joel Brobecker <brobecker@adacore.com>
925 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
926 instead of mpq_set_ui to initialize our GMP rational.
928 2020-11-23 Tom de Vries <tdevries@suse.de>
930 * debuginfod-support.c (debuginfod_source_query)
931 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
933 2020-11-21 Tom Tromey <tom@tromey.com>
935 * breakpoint.c (watchpoint_exp_is_const): Return bool.
937 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
939 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
941 (gdb_mpz_write_all_from_small): Likewise.
943 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
945 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
948 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
950 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
951 ctf_arc_open_by_name.
953 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
955 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
956 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
958 2020-11-20 Pedro Alves <pedro@palves.net>
960 * language.c (language_arch_info::lookup_primitive_type): Use
961 gdb::function_view instead of gdb::function.
962 (template language_lookup_primitive_type): Rename to ...
963 (language_lookup_primitive_type_1): ... this, and make static.
964 (language_lookup_primitive_type(const struct language_defn *,
965 struct gdbarch *, const char *): Make non-template.
966 (language_lookup_primitive_type(const struct language_defn *,
967 struct gdbarch *, std::function<bool (struct type *)>): Make
968 non-template and use gdb::function_view.
969 * language.h (language_arch_info::lookup_primitive_type): Use
970 gdb::function_view instead of std::function.
971 (language_lookup_primitive_type): No longer template.
972 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
973 lambda instead of a std::function.
975 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
978 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
981 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
983 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
985 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
987 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
988 in `loop_cb` parameter.
989 * gdbarch.c: Re-generate.
990 * gdbarch.h: Re-generate.
991 * arch-utils.c (default_read_core_file_mappings): Remove `other`
993 * arch-utils.h (default_read_core_file_mappings): Likewise.
994 * corelow.c (core_target::build_file_mappings): Likewise.
995 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
996 (linux_core_info_proc_mappings): Likewise.
998 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1000 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1001 * NEWS: Mention new options.
1002 * f-array-walker.h: New file.
1003 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1004 (repack_array_slices): New static global.
1005 (show_repack_array_slices): New function.
1006 (fortran_array_slicing_debug): New static global.
1007 (show_fortran_array_slicing_debug): New function.
1008 (value_f90_subarray): Delete.
1009 (skip_undetermined_arglist): Delete.
1010 (class fortran_array_repacker_base_impl): New class.
1011 (class fortran_lazy_array_repacker_impl): New class.
1012 (class fortran_array_repacker_impl): New class.
1013 (fortran_value_subarray): Complete rewrite.
1014 (set_fortran_list): New static global.
1015 (show_fortran_list): Likewise.
1016 (_initialize_f_language): Register new commands.
1017 (fortran_adjust_dynamic_array_base_address_hack): New function.
1018 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1020 * f-valprint.c: Include 'f-array-walker.h'.
1021 (class fortran_array_printer_impl): New class.
1022 (f77_print_array_1): Delete.
1023 (f77_print_array): Delete.
1024 (fortran_print_array): New.
1025 (f_value_print_inner): Update to call fortran_print_array.
1026 * gdbtypes.c: Include 'f-lang.h'.
1027 (resolve_dynamic_type_internal): Call
1028 fortran_adjust_dynamic_array_base_address_hack.
1030 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1032 * breakpoint.c (struct watch_options): New struct.
1033 (watch_option_defs): New static global.
1034 (make_watch_options_def_group): New function.
1035 (watch_maybe_just_location): Convert option parsing.
1036 (watch_command_completer): New function.
1037 (_initialize_breakpoint): Build help text using options mechanism.
1039 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1041 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1042 (watch_command_1): Update parameter types. Convert locals to
1044 (watch_command_wrapper): Change parameter type.
1045 (watch_maybe_just_location): Change locals to bool.
1046 (rwatch_command_wrapper): Update parameter type.
1047 (awatch_command_wrapper): Update parameter type.
1048 * breakpoint.h (watch_command_wrapper): Change parameter type.
1049 (rwatch_command_wrapper): Update parameter type.
1050 (awatch_command_wrapper): Update parameter type.
1051 * eval.c (fetch_subexp_value): Change parameter type.
1052 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1054 * value.h (fetch_subexp_value): Change parameter type in
1057 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1059 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1062 2020-11-18 Keith Seitz <keiths@redhat.com>
1064 * linux-tdep.c (dump_note_entry_p): Return true instead of
1065 checking `filename'.
1067 2020-11-18 Tom de Vries <tdevries@suse.de>
1069 * debuginfod-support.c (debuginfod_source_query)
1070 (debuginfod_debuginfo_query): Also do early exit if
1071 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1073 2020-11-18 Tom de Vries <tdevries@suse.de>
1075 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1078 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1080 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1081 callers. Move doc here.
1082 * gdbtypes.c (get_array_bounds): Return bool
1084 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1086 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1088 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1089 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1090 case to the default.
1092 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1094 * printcmd.c: Include 'safe-ctype.c'.
1095 (skip_over_slash_fmt): New function.
1096 (print_command_completer): Call skip_over_slash_fmt.
1097 (display_and_x_command_completer): New function.
1098 (_initialize_printcmd): Add command completion for 'x' and
1101 2020-11-16 Pedro Alves <pedro@palves.net>
1103 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1104 (get_prev_frame_always_1): ... to here.
1105 * inline-frame.c (inline_frame_this_id): Mention
1106 get_prev_frame_always_1 in comment.
1108 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1110 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1112 (value_less): Add fixed-point handling.
1114 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1116 * eval.c (binop_promote): Add fixed-point type handling.
1117 * valarith.c (fixed_point_binop): New function.
1118 (scalar_binop): Add fixed-point type handling.
1119 (value_neg): Add fixed-point type handling.
1120 * valops.c (value_cast_to_fixed_point): New function.
1121 (value_cast): Add fixed-point type handling.
1123 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1125 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1127 * c-typeprint.c (c_type_print_varspec_prefix)
1128 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1129 TYPE_CODE_FIXED_POINT handling.
1130 * p-typeprint.c (pascal_type_print_varspec_prefix)
1131 (pascal_type_print_varspec_suffix): Likewise.
1132 * typeprint.c (print_type_fixed_point): New function.
1133 * typeprint.h (print_type_fixed_point): Add declaration.
1135 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1137 * printcmd.c (print_scalar_formatted): Add fixed-point type
1138 handling when options->format is set.
1140 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1142 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1143 * dwarf2/read.c (get_dwarf2_rational_constant)
1144 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1145 (has_zero_over_zero_small_attribute): New functions.
1146 read_base_type, set_die_type): Add fixed-point type handling.
1147 * gdb-gdb.py.in: Add fixed-point type handling.
1148 * gdbtypes.c: #include "gmp-utils.h".
1149 (create_range_type, set_type_code): Add fixed-point type handling.
1150 (init_fixed_point_type): New function.
1151 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1152 (print_fixed_point_type_info): New function.
1153 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1155 (fixed_point_type_storage): New typedef.
1156 (fixed_point_objfile_key): New static global.
1157 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1158 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1160 * gdbtypes.h: #include "gmp-utils.h".
1161 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1162 (union type_specific) <fixed_point_info>: New field.
1163 (struct fixed_point_type_info): New struct.
1164 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1165 (init_fixed_point_type, is_fixed_point_type)
1166 (fixed_point_type_base_type, fixed_point_scaling_factor)
1167 (allocate_fixed_point_type_info): Add declarations.
1168 * valprint.c (generic_val_print_fixed_point): New function.
1169 (generic_value_print): Add fixed-point type handling.
1170 * value.c (value_as_address, unpack_long): Add fixed-point type
1173 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1175 * utils.h (uinteger_pow): Add declaration.
1176 * utils.c (uinteger_pow): Moved here (without changes)...
1177 * valarith.c (uinteger_pow): ... from here.
1179 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1181 * gmp-utils.h, gmp-utils.c: New file.
1182 * unittests/gmp-utils-selftests.c: New file.
1183 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1184 unittests/gmp-utils-selftests.c.
1185 (COMMON_SFILES) Add gmp-utils.c.
1186 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1188 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1190 * configure.ac: Generate an error if a usable GMP library
1192 * configure: Regenerate.
1194 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1196 * configure.ac: Add support for --with-libgmp-prefix.
1197 * Makefile.in (LIBGMP): New variable.
1198 (CLIBS): Include $(LIBGMP).
1199 * configure, config.in: Regenerate
1201 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1204 * f-exp.y (COMPLETE): New token.
1205 (exp): Two new rules for tab-completion.
1206 (saw_name_at_eof): New static global.
1207 (last_was_structop): Likewise.
1208 (yylex): Set new variables, and return COMPLETE token at the end
1209 of the input stream in some cases.
1211 2020-11-14 Tom Tromey <tom@tromey.com>
1213 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1215 2020-11-14 Tom Tromey <tom@tromey.com>
1217 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1219 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1221 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1223 2020-11-13 Tom Tromey <tom@tromey.com>
1225 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1226 (convert_escape, parse_one_string): Constify.
1228 2020-11-13 Keith Seitz <keiths@redhat.com>
1230 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1231 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1232 outside of ELF segments" warning for debugin
1234 2020-11-13 Keith Seitz <keiths@redhat.com>
1237 * elfread.c (elf_symfile_segments): Output a BFD file name
1238 for the "Loadable section ... outside of ELF segments" warning.
1240 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1243 * arm-tdep.c (class arm_instruction_reader): New.
1244 (target_arm_instruction_reader): New.
1245 (arm_analyze_prologue): Add instruction reader parameter and use
1246 it. Use arm_expand_immediate.
1247 (class target_arm_instruction_reader): Adjust.
1248 (arm_skip_prologue): Adjust.
1249 (arm_expand_immediate): New.
1250 (arm_scan_prologue): Adjust.
1251 (arm_analyze_prologue_test): New.
1252 (class test_arm_instruction_reader): New.
1254 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1256 * f-lang.c (fortran_argument_convert): Add declaration. Add
1257 header comment, taken from f-lang.h. Make static.
1258 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1259 (fortran_argument_convert): Delete declaration.
1261 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1263 * ada-exp.y (find_primitive_type): Make parameter const.
1264 * ada-lang.c (enum ada_primitive_types): Delete.
1265 (ada_language::language_arch_info): Update.
1266 * c-lang.c (enum c_primitive_types): Delete.
1267 (c_language_arch_info): Update.
1268 (enum cplus_primitive_types): Delete.
1269 (cplus_language::language_arch_info): Update.
1270 * d-lang.c (enum d_primitive_types): Delete.
1271 (d_language::language_arch_info): Update.
1272 * f-lang.c (enum f_primitive_types): Delete.
1273 (f_language::language_arch_info): Update.
1274 * go-lang.c (enum go_primitive_types): Delete.
1275 (go_language::language_arch_info): Update.
1276 * language.c (auto_or_unknown_language::language_arch_info):
1278 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1279 (language_string_char_type): Add header comment, call function in
1281 (language_bool_type): Likewise
1282 (language_arch_info::bool_type): Define.
1283 (language_lookup_primitive_type_1): Delete.
1284 (language_lookup_primitive_type): Rewrite as a templated function
1285 to call function in language_arch_info, then instantiate twice.
1286 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1287 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1288 (language_arch_info::lookup_primitive_type): Define twice with
1289 different signatures.
1290 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1291 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1292 member function in language_arch_info.
1293 * language.h (language_arch_info): Complete rewrite.
1294 (language_lookup_primitive_type): Make templated.
1295 * m2-lang.c (enum m2_primitive_types): Delete.
1296 (m2_language::language_arch_info): Update.
1297 * opencl-lang.c (OCL_P_TYPE): Delete.
1298 (enum opencl_primitive_types): Delete.
1299 (opencl_type_data): Delete.
1300 (builtin_opencl_type): Delete.
1301 (lookup_opencl_vector_type): Update.
1302 (opencl_language::language_arch_info): Update, lots of content
1304 (build_opencl_types): ...here. This function is now deleted.
1305 (_initialize_opencl_language): Delete.
1306 * p-lang.c (enum pascal_primitive_types): Delete.
1307 (pascal_language::language_arch_info): Update.
1308 * rust-lang.c (enum rust_primitive_types): Delete.
1309 (rust_language::language_arch_info): Update.
1311 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1313 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1316 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1318 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1321 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1323 * dwarf2/read.c (dwarf_read_debug_printf,
1324 dwarf_read_debug_printf_v): New macros, use throughout the file.
1326 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1329 * arc-linux-tdep.c (collect_register): Populate "eret" by
1330 "pc" value from the regcache when asked for "pc" value.
1332 2020-11-12 Tom Tromey <tom@tromey.com>
1335 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1338 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1340 * features/Makefile (XMLTOC): Add rx.xml.
1341 (FEATURE_XMLFILES): Remove rx.xml.
1342 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1343 * features/rx.c: Regenerate.
1344 * features/rx.xml: Wrap in `target` tags, and reindent.
1345 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1347 (maint_print_c_tdesc_opt_def): New typedef.
1348 (maint_print_c_tdesc_opt_defs): New static global.
1349 (make_maint_print_c_tdesc_options_def_group): New function.
1350 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1351 print single feature C file for target descriptions containing a
1353 (maint_print_c_tdesc_cmd_completer): New function.
1354 (_initialize_target_descriptions): Update call to register command
1355 completer, and include command line flag in help text.
1357 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1359 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1361 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1364 2020-11-10 Tom Tromey <tom@tromey.com>
1366 * value.h (internalvar_name): Update.
1367 * value.c (internalvar_name): Make return type const.
1369 2020-11-10 Tom Tromey <tom@tromey.com>
1371 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1372 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1375 2020-11-10 Tom Tromey <tom@tromey.com>
1377 * objc-lang.h (value_nsstring): Update.
1378 * objc-lang.c (value_nsstring): Make "ptr" const.
1380 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1382 * expprint.c (print_subexp_funcall): Increment expression position
1383 after reading argument count.
1384 * f-lang.c (print_subexp_f): Skip over opcode before calling
1386 (dump_subexp_body_f): Likewise.
1388 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1391 * configure: Regenerate.
1392 * configure.ac: Check for python modules ctypes instead of
1395 2020-11-06 Pedro Alves <pedro@palves.net>
1397 * macroexp.c (struct macro_buffer): Split in two classes. Add
1399 (struct shared_macro_buffer): New, factored out from struct
1401 (struct growable_macro_buffer): New, factored out from struct
1403 (set_token, get_comment, get_identifier, get_pp_number)
1404 (get_character_constant, get_string_literal, get_punctuator)
1405 (get_next_token_for_substitution): Constify parameters.
1406 (substitute_args): Constify locals.
1408 2020-11-05 Tom Tromey <tom@tromey.com>
1410 * dwarf2/read.c (read_cutu_die_from_dwo)
1411 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1412 (build_type_psymtabs_1): Update.
1413 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1415 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1416 Don't read section. Add assert.
1418 2020-11-04 Tom Tromey <tromey@adacore.com>
1420 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1422 2020-11-04 Tom Tromey <tromey@adacore.com>
1424 * ada-typeprint.c (ada_print_type): Handle __T types.
1426 2020-11-04 Tom Tromey <tromey@adacore.com>
1428 * dwarf2/read.c (add_partial_symbol, process_die):
1429 Handle DW_TAG_array_type.
1430 (is_type_tag_for_partial): Add "lang" parameter.
1431 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1433 2020-11-04 Tom Tromey <tromey@adacore.com>
1435 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1437 2020-11-04 Tom Tromey <tromey@adacore.com>
1439 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1442 2020-11-04 Tom Tromey <tromey@adacore.com>
1444 * gdbtypes.c (update_static_array_size): Handle bit stride.
1446 2020-11-04 Tom Tromey <tromey@adacore.com>
1448 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1450 2020-11-04 Tom Tromey <tromey@adacore.com>
1452 * ada-lang.c (ada_is_any_packed_array_type): New function.
1453 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1455 2020-11-04 Tom Tromey <tromey@adacore.com>
1457 * dwarf2/read.c (recognize_bound_expression)
1458 (quirk_ada_thick_pointer): New functions.
1459 (read_array_type): Call quirk_ada_thick_pointer.
1460 (set_die_type): Add "skip_data_location" parameter.
1461 (quirk_ada_thick_pointer): New function.
1462 (process_structure_scope): Call quirk_ada_thick_pointer.
1463 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1464 (decode_packed_array_bitsize): Handle thick pointers without
1466 (ada_is_gnat_encoded_packed_array_type): Rename from
1467 ada_is_packed_array_type.
1468 (ada_is_constrained_packed_array_type): Update.
1469 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1470 (ada_value_print_1): Use ada_get_decoded_value.
1472 2020-11-04 Tom Tromey <tromey@adacore.com>
1474 * ada-lang.c (recursively_update_array_bitsize): New function.
1475 (decode_constrained_packed_array_type): Call it.
1477 2020-11-04 Tom Tromey <tromey@adacore.com>
1479 * ada-lang.c (to_fixed_array_type): Error if
1480 decode_constrained_packed_array_type returns NULL.
1482 2020-11-04 Tom Tromey <tromey@adacore.com>
1484 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1486 2020-11-02 Tom Tromey <tromey@adacore.com>
1488 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1489 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1490 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1491 * amd64-ravenscar-thread.c: New file.
1492 * amd64-ravenscar-thread.h: New file.
1493 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1494 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1496 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1498 * main.c (execute_cmdargs): New function.
1499 (captured_main_1): Make use of execute_cmdargs.
1501 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1503 * NEWS: Mention changes to config file search path.
1506 2020-11-02 Tom Tromey <tromey@adacore.com>
1508 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1509 (python_GdbModuleDef): Move earlier. Now static.
1510 (do_start_initialization): Consolidate some IS_PY3K blocks.
1512 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1514 * aarch64-linux-tdep.c: Fix indentation.
1515 * aarch64-ravenscar-thread.c: Fix indentation.
1516 * aarch64-tdep.c: Fix indentation.
1517 * aarch64-tdep.h: Fix indentation.
1518 * ada-lang.c: Fix indentation.
1519 * ada-lang.h: Fix indentation.
1520 * ada-tasks.c: Fix indentation.
1521 * ada-typeprint.c: Fix indentation.
1522 * ada-valprint.c: Fix indentation.
1523 * ada-varobj.c: Fix indentation.
1524 * addrmap.c: Fix indentation.
1525 * addrmap.h: Fix indentation.
1526 * agent.c: Fix indentation.
1527 * aix-thread.c: Fix indentation.
1528 * alpha-bsd-nat.c: Fix indentation.
1529 * alpha-linux-tdep.c: Fix indentation.
1530 * alpha-mdebug-tdep.c: Fix indentation.
1531 * alpha-nbsd-tdep.c: Fix indentation.
1532 * alpha-obsd-tdep.c: Fix indentation.
1533 * alpha-tdep.c: Fix indentation.
1534 * amd64-bsd-nat.c: Fix indentation.
1535 * amd64-darwin-tdep.c: Fix indentation.
1536 * amd64-linux-nat.c: Fix indentation.
1537 * amd64-linux-tdep.c: Fix indentation.
1538 * amd64-nat.c: Fix indentation.
1539 * amd64-obsd-tdep.c: Fix indentation.
1540 * amd64-tdep.c: Fix indentation.
1541 * amd64-windows-tdep.c: Fix indentation.
1542 * annotate.c: Fix indentation.
1543 * arc-tdep.c: Fix indentation.
1544 * arch-utils.c: Fix indentation.
1545 * arch/arm-get-next-pcs.c: Fix indentation.
1546 * arch/arm.c: Fix indentation.
1547 * arm-linux-nat.c: Fix indentation.
1548 * arm-linux-tdep.c: Fix indentation.
1549 * arm-nbsd-tdep.c: Fix indentation.
1550 * arm-pikeos-tdep.c: Fix indentation.
1551 * arm-tdep.c: Fix indentation.
1552 * arm-tdep.h: Fix indentation.
1553 * arm-wince-tdep.c: Fix indentation.
1554 * auto-load.c: Fix indentation.
1555 * auxv.c: Fix indentation.
1556 * avr-tdep.c: Fix indentation.
1557 * ax-gdb.c: Fix indentation.
1558 * ax-general.c: Fix indentation.
1559 * bfin-linux-tdep.c: Fix indentation.
1560 * block.c: Fix indentation.
1561 * block.h: Fix indentation.
1562 * blockframe.c: Fix indentation.
1563 * bpf-tdep.c: Fix indentation.
1564 * break-catch-sig.c: Fix indentation.
1565 * break-catch-syscall.c: Fix indentation.
1566 * break-catch-throw.c: Fix indentation.
1567 * breakpoint.c: Fix indentation.
1568 * breakpoint.h: Fix indentation.
1569 * bsd-uthread.c: Fix indentation.
1570 * btrace.c: Fix indentation.
1571 * build-id.c: Fix indentation.
1572 * buildsym-legacy.h: Fix indentation.
1573 * buildsym.c: Fix indentation.
1574 * c-typeprint.c: Fix indentation.
1575 * c-valprint.c: Fix indentation.
1576 * c-varobj.c: Fix indentation.
1577 * charset.c: Fix indentation.
1578 * cli/cli-cmds.c: Fix indentation.
1579 * cli/cli-decode.c: Fix indentation.
1580 * cli/cli-decode.h: Fix indentation.
1581 * cli/cli-script.c: Fix indentation.
1582 * cli/cli-setshow.c: Fix indentation.
1583 * coff-pe-read.c: Fix indentation.
1584 * coffread.c: Fix indentation.
1585 * compile/compile-cplus-types.c: Fix indentation.
1586 * compile/compile-object-load.c: Fix indentation.
1587 * compile/compile-object-run.c: Fix indentation.
1588 * completer.c: Fix indentation.
1589 * corefile.c: Fix indentation.
1590 * corelow.c: Fix indentation.
1591 * cp-abi.h: Fix indentation.
1592 * cp-namespace.c: Fix indentation.
1593 * cp-support.c: Fix indentation.
1594 * cp-valprint.c: Fix indentation.
1595 * cris-linux-tdep.c: Fix indentation.
1596 * cris-tdep.c: Fix indentation.
1597 * darwin-nat-info.c: Fix indentation.
1598 * darwin-nat.c: Fix indentation.
1599 * darwin-nat.h: Fix indentation.
1600 * dbxread.c: Fix indentation.
1601 * dcache.c: Fix indentation.
1602 * disasm.c: Fix indentation.
1603 * dtrace-probe.c: Fix indentation.
1604 * dwarf2/abbrev.c: Fix indentation.
1605 * dwarf2/attribute.c: Fix indentation.
1606 * dwarf2/expr.c: Fix indentation.
1607 * dwarf2/frame.c: Fix indentation.
1608 * dwarf2/index-cache.c: Fix indentation.
1609 * dwarf2/index-write.c: Fix indentation.
1610 * dwarf2/line-header.c: Fix indentation.
1611 * dwarf2/loc.c: Fix indentation.
1612 * dwarf2/macro.c: Fix indentation.
1613 * dwarf2/read.c: Fix indentation.
1614 * dwarf2/read.h: Fix indentation.
1615 * elfread.c: Fix indentation.
1616 * eval.c: Fix indentation.
1617 * event-top.c: Fix indentation.
1618 * exec.c: Fix indentation.
1619 * exec.h: Fix indentation.
1620 * expprint.c: Fix indentation.
1621 * f-lang.c: Fix indentation.
1622 * f-typeprint.c: Fix indentation.
1623 * f-valprint.c: Fix indentation.
1624 * fbsd-nat.c: Fix indentation.
1625 * fbsd-tdep.c: Fix indentation.
1626 * findvar.c: Fix indentation.
1627 * fork-child.c: Fix indentation.
1628 * frame-unwind.c: Fix indentation.
1629 * frame-unwind.h: Fix indentation.
1630 * frame.c: Fix indentation.
1631 * frv-linux-tdep.c: Fix indentation.
1632 * frv-tdep.c: Fix indentation.
1633 * frv-tdep.h: Fix indentation.
1634 * ft32-tdep.c: Fix indentation.
1635 * gcore.c: Fix indentation.
1636 * gdb_bfd.c: Fix indentation.
1637 * gdbarch.sh: Fix indentation.
1638 * gdbarch.c: Re-generate
1639 * gdbarch.h: Re-generate.
1640 * gdbcore.h: Fix indentation.
1641 * gdbthread.h: Fix indentation.
1642 * gdbtypes.c: Fix indentation.
1643 * gdbtypes.h: Fix indentation.
1644 * glibc-tdep.c: Fix indentation.
1645 * gnu-nat.c: Fix indentation.
1646 * gnu-nat.h: Fix indentation.
1647 * gnu-v2-abi.c: Fix indentation.
1648 * gnu-v3-abi.c: Fix indentation.
1649 * go32-nat.c: Fix indentation.
1650 * guile/guile-internal.h: Fix indentation.
1651 * guile/scm-cmd.c: Fix indentation.
1652 * guile/scm-frame.c: Fix indentation.
1653 * guile/scm-iterator.c: Fix indentation.
1654 * guile/scm-math.c: Fix indentation.
1655 * guile/scm-ports.c: Fix indentation.
1656 * guile/scm-pretty-print.c: Fix indentation.
1657 * guile/scm-value.c: Fix indentation.
1658 * h8300-tdep.c: Fix indentation.
1659 * hppa-linux-nat.c: Fix indentation.
1660 * hppa-linux-tdep.c: Fix indentation.
1661 * hppa-nbsd-nat.c: Fix indentation.
1662 * hppa-nbsd-tdep.c: Fix indentation.
1663 * hppa-obsd-nat.c: Fix indentation.
1664 * hppa-tdep.c: Fix indentation.
1665 * hppa-tdep.h: Fix indentation.
1666 * i386-bsd-nat.c: Fix indentation.
1667 * i386-darwin-nat.c: Fix indentation.
1668 * i386-darwin-tdep.c: Fix indentation.
1669 * i386-dicos-tdep.c: Fix indentation.
1670 * i386-gnu-nat.c: Fix indentation.
1671 * i386-linux-nat.c: Fix indentation.
1672 * i386-linux-tdep.c: Fix indentation.
1673 * i386-nto-tdep.c: Fix indentation.
1674 * i386-obsd-tdep.c: Fix indentation.
1675 * i386-sol2-nat.c: Fix indentation.
1676 * i386-tdep.c: Fix indentation.
1677 * i386-tdep.h: Fix indentation.
1678 * i386-windows-tdep.c: Fix indentation.
1679 * i387-tdep.c: Fix indentation.
1680 * i387-tdep.h: Fix indentation.
1681 * ia64-libunwind-tdep.c: Fix indentation.
1682 * ia64-libunwind-tdep.h: Fix indentation.
1683 * ia64-linux-nat.c: Fix indentation.
1684 * ia64-linux-tdep.c: Fix indentation.
1685 * ia64-tdep.c: Fix indentation.
1686 * ia64-tdep.h: Fix indentation.
1687 * ia64-vms-tdep.c: Fix indentation.
1688 * infcall.c: Fix indentation.
1689 * infcmd.c: Fix indentation.
1690 * inferior.c: Fix indentation.
1691 * infrun.c: Fix indentation.
1692 * iq2000-tdep.c: Fix indentation.
1693 * language.c: Fix indentation.
1694 * linespec.c: Fix indentation.
1695 * linux-fork.c: Fix indentation.
1696 * linux-nat.c: Fix indentation.
1697 * linux-tdep.c: Fix indentation.
1698 * linux-thread-db.c: Fix indentation.
1699 * lm32-tdep.c: Fix indentation.
1700 * m2-lang.c: Fix indentation.
1701 * m2-typeprint.c: Fix indentation.
1702 * m2-valprint.c: Fix indentation.
1703 * m32c-tdep.c: Fix indentation.
1704 * m32r-linux-tdep.c: Fix indentation.
1705 * m32r-tdep.c: Fix indentation.
1706 * m68hc11-tdep.c: Fix indentation.
1707 * m68k-bsd-nat.c: Fix indentation.
1708 * m68k-linux-nat.c: Fix indentation.
1709 * m68k-linux-tdep.c: Fix indentation.
1710 * m68k-tdep.c: Fix indentation.
1711 * machoread.c: Fix indentation.
1712 * macrocmd.c: Fix indentation.
1713 * macroexp.c: Fix indentation.
1714 * macroscope.c: Fix indentation.
1715 * macrotab.c: Fix indentation.
1716 * macrotab.h: Fix indentation.
1717 * main.c: Fix indentation.
1718 * mdebugread.c: Fix indentation.
1719 * mep-tdep.c: Fix indentation.
1720 * mi/mi-cmd-catch.c: Fix indentation.
1721 * mi/mi-cmd-disas.c: Fix indentation.
1722 * mi/mi-cmd-env.c: Fix indentation.
1723 * mi/mi-cmd-stack.c: Fix indentation.
1724 * mi/mi-cmd-var.c: Fix indentation.
1725 * mi/mi-cmds.c: Fix indentation.
1726 * mi/mi-main.c: Fix indentation.
1727 * mi/mi-parse.c: Fix indentation.
1728 * microblaze-tdep.c: Fix indentation.
1729 * minidebug.c: Fix indentation.
1730 * minsyms.c: Fix indentation.
1731 * mips-linux-nat.c: Fix indentation.
1732 * mips-linux-tdep.c: Fix indentation.
1733 * mips-nbsd-tdep.c: Fix indentation.
1734 * mips-tdep.c: Fix indentation.
1735 * mn10300-linux-tdep.c: Fix indentation.
1736 * mn10300-tdep.c: Fix indentation.
1737 * moxie-tdep.c: Fix indentation.
1738 * msp430-tdep.c: Fix indentation.
1739 * namespace.h: Fix indentation.
1740 * nat/fork-inferior.c: Fix indentation.
1741 * nat/gdb_ptrace.h: Fix indentation.
1742 * nat/linux-namespaces.c: Fix indentation.
1743 * nat/linux-osdata.c: Fix indentation.
1744 * nat/netbsd-nat.c: Fix indentation.
1745 * nat/x86-dregs.c: Fix indentation.
1746 * nbsd-nat.c: Fix indentation.
1747 * nbsd-tdep.c: Fix indentation.
1748 * nios2-linux-tdep.c: Fix indentation.
1749 * nios2-tdep.c: Fix indentation.
1750 * nto-procfs.c: Fix indentation.
1751 * nto-tdep.c: Fix indentation.
1752 * objfiles.c: Fix indentation.
1753 * objfiles.h: Fix indentation.
1754 * opencl-lang.c: Fix indentation.
1755 * or1k-tdep.c: Fix indentation.
1756 * osabi.c: Fix indentation.
1757 * osabi.h: Fix indentation.
1758 * osdata.c: Fix indentation.
1759 * p-lang.c: Fix indentation.
1760 * p-typeprint.c: Fix indentation.
1761 * p-valprint.c: Fix indentation.
1762 * parse.c: Fix indentation.
1763 * ppc-linux-nat.c: Fix indentation.
1764 * ppc-linux-tdep.c: Fix indentation.
1765 * ppc-nbsd-nat.c: Fix indentation.
1766 * ppc-nbsd-tdep.c: Fix indentation.
1767 * ppc-obsd-nat.c: Fix indentation.
1768 * ppc-ravenscar-thread.c: Fix indentation.
1769 * ppc-sysv-tdep.c: Fix indentation.
1770 * ppc64-tdep.c: Fix indentation.
1771 * printcmd.c: Fix indentation.
1772 * proc-api.c: Fix indentation.
1773 * producer.c: Fix indentation.
1774 * producer.h: Fix indentation.
1775 * prologue-value.c: Fix indentation.
1776 * prologue-value.h: Fix indentation.
1777 * psymtab.c: Fix indentation.
1778 * python/py-arch.c: Fix indentation.
1779 * python/py-bpevent.c: Fix indentation.
1780 * python/py-event.c: Fix indentation.
1781 * python/py-event.h: Fix indentation.
1782 * python/py-finishbreakpoint.c: Fix indentation.
1783 * python/py-frame.c: Fix indentation.
1784 * python/py-framefilter.c: Fix indentation.
1785 * python/py-inferior.c: Fix indentation.
1786 * python/py-infthread.c: Fix indentation.
1787 * python/py-objfile.c: Fix indentation.
1788 * python/py-prettyprint.c: Fix indentation.
1789 * python/py-registers.c: Fix indentation.
1790 * python/py-signalevent.c: Fix indentation.
1791 * python/py-stopevent.c: Fix indentation.
1792 * python/py-stopevent.h: Fix indentation.
1793 * python/py-threadevent.c: Fix indentation.
1794 * python/py-tui.c: Fix indentation.
1795 * python/py-unwind.c: Fix indentation.
1796 * python/py-value.c: Fix indentation.
1797 * python/py-xmethods.c: Fix indentation.
1798 * python/python-internal.h: Fix indentation.
1799 * python/python.c: Fix indentation.
1800 * ravenscar-thread.c: Fix indentation.
1801 * record-btrace.c: Fix indentation.
1802 * record-full.c: Fix indentation.
1803 * record.c: Fix indentation.
1804 * reggroups.c: Fix indentation.
1805 * regset.h: Fix indentation.
1806 * remote-fileio.c: Fix indentation.
1807 * remote.c: Fix indentation.
1808 * reverse.c: Fix indentation.
1809 * riscv-linux-tdep.c: Fix indentation.
1810 * riscv-ravenscar-thread.c: Fix indentation.
1811 * riscv-tdep.c: Fix indentation.
1812 * rl78-tdep.c: Fix indentation.
1813 * rs6000-aix-tdep.c: Fix indentation.
1814 * rs6000-lynx178-tdep.c: Fix indentation.
1815 * rs6000-nat.c: Fix indentation.
1816 * rs6000-tdep.c: Fix indentation.
1817 * rust-lang.c: Fix indentation.
1818 * rx-tdep.c: Fix indentation.
1819 * s12z-tdep.c: Fix indentation.
1820 * s390-linux-tdep.c: Fix indentation.
1821 * score-tdep.c: Fix indentation.
1822 * ser-base.c: Fix indentation.
1823 * ser-mingw.c: Fix indentation.
1824 * ser-uds.c: Fix indentation.
1825 * ser-unix.c: Fix indentation.
1826 * serial.c: Fix indentation.
1827 * sh-linux-tdep.c: Fix indentation.
1828 * sh-nbsd-tdep.c: Fix indentation.
1829 * sh-tdep.c: Fix indentation.
1830 * skip.c: Fix indentation.
1831 * sol-thread.c: Fix indentation.
1832 * solib-aix.c: Fix indentation.
1833 * solib-darwin.c: Fix indentation.
1834 * solib-frv.c: Fix indentation.
1835 * solib-svr4.c: Fix indentation.
1836 * solib.c: Fix indentation.
1837 * source.c: Fix indentation.
1838 * sparc-linux-tdep.c: Fix indentation.
1839 * sparc-nbsd-tdep.c: Fix indentation.
1840 * sparc-obsd-tdep.c: Fix indentation.
1841 * sparc-ravenscar-thread.c: Fix indentation.
1842 * sparc-tdep.c: Fix indentation.
1843 * sparc64-linux-tdep.c: Fix indentation.
1844 * sparc64-nbsd-tdep.c: Fix indentation.
1845 * sparc64-obsd-tdep.c: Fix indentation.
1846 * sparc64-tdep.c: Fix indentation.
1847 * stabsread.c: Fix indentation.
1848 * stack.c: Fix indentation.
1849 * stap-probe.c: Fix indentation.
1850 * stubs/ia64vms-stub.c: Fix indentation.
1851 * stubs/m32r-stub.c: Fix indentation.
1852 * stubs/m68k-stub.c: Fix indentation.
1853 * stubs/sh-stub.c: Fix indentation.
1854 * stubs/sparc-stub.c: Fix indentation.
1855 * symfile-mem.c: Fix indentation.
1856 * symfile.c: Fix indentation.
1857 * symfile.h: Fix indentation.
1858 * symmisc.c: Fix indentation.
1859 * symtab.c: Fix indentation.
1860 * symtab.h: Fix indentation.
1861 * target-float.c: Fix indentation.
1862 * target.c: Fix indentation.
1863 * target.h: Fix indentation.
1864 * tic6x-tdep.c: Fix indentation.
1865 * tilegx-linux-tdep.c: Fix indentation.
1866 * tilegx-tdep.c: Fix indentation.
1867 * top.c: Fix indentation.
1868 * tracefile-tfile.c: Fix indentation.
1869 * tracepoint.c: Fix indentation.
1870 * tui/tui-disasm.c: Fix indentation.
1871 * tui/tui-io.c: Fix indentation.
1872 * tui/tui-regs.c: Fix indentation.
1873 * tui/tui-stack.c: Fix indentation.
1874 * tui/tui-win.c: Fix indentation.
1875 * tui/tui-winsource.c: Fix indentation.
1876 * tui/tui.c: Fix indentation.
1877 * typeprint.c: Fix indentation.
1878 * ui-out.h: Fix indentation.
1879 * unittests/copy_bitwise-selftests.c: Fix indentation.
1880 * unittests/memory-map-selftests.c: Fix indentation.
1881 * utils.c: Fix indentation.
1882 * v850-tdep.c: Fix indentation.
1883 * valarith.c: Fix indentation.
1884 * valops.c: Fix indentation.
1885 * valprint.c: Fix indentation.
1886 * valprint.h: Fix indentation.
1887 * value.c: Fix indentation.
1888 * value.h: Fix indentation.
1889 * varobj.c: Fix indentation.
1890 * vax-tdep.c: Fix indentation.
1891 * windows-nat.c: Fix indentation.
1892 * windows-tdep.c: Fix indentation.
1893 * xcoffread.c: Fix indentation.
1894 * xml-syscall.c: Fix indentation.
1895 * xml-tdesc.c: Fix indentation.
1896 * xstormy16-tdep.c: Fix indentation.
1897 * xtensa-config.c: Fix indentation.
1898 * xtensa-linux-nat.c: Fix indentation.
1899 * xtensa-linux-tdep.c: Fix indentation.
1900 * xtensa-tdep.c: Fix indentation.
1902 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1903 Craig Blackmore <craig.blackmore@embecosm.com>
1905 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1906 as an unsigned value.
1908 2020-11-01 Tom Tromey <tom@tromey.com>
1910 * dbxread.c (dbx_end_psymtab): Update.
1911 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1912 (build_type_psymtabs_reader): Update.
1913 * xcoffread.c (xcoff_end_psymtab): Update.
1914 * ctfread.c (scan_partial_symbols): Update.
1915 * psymtab.c (sort_pst_symbols): Remove.
1916 (partial_symtab::end): Rename from end_psymtab_common. Inline
1918 * psympriv.h (struct partial_symtab) <end>: New method.
1919 (end_psymtab_common): Don't declare.
1921 2020-11-01 Tom Tromey <tom@tromey.com>
1923 * symmisc.c (count_psyms): New function.
1924 (print_objfile_statistics): Use it.
1925 * psymtab.c (append_psymbol_to_list): Remove.
1926 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1927 * objfiles.h (struct objstats) <n_psyms>: Remove.
1929 2020-11-01 Tom Tromey <tom@tromey.com>
1931 * dbxread.c (dbx_end_psymtab): Update.
1932 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1933 (build_type_psymtabs_reader): Update.
1934 * xcoffread.c (xcoff_end_psymtab): Update.
1935 * ctfread.c (scan_partial_symbols): Update.
1936 * psympriv.h (end_psymtab_common): Update.
1937 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1938 (sort_pst_symbols): Likewise.
1940 2020-11-01 Tom Tromey <tom@tromey.com>
1942 * dbxread.c (dbx_symfile_read): Update.
1943 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1944 * xcoffread.c (xcoff_initial_scan): Update.
1945 * psympriv.h (init_psymbol_list): Don't declare.
1946 * psymtab.c (init_psymbol_list): Remove.
1948 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1950 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1951 gnat_encoded_fixed_type_info. Update all callers.
1953 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1955 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1958 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1960 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1961 cast_from_fixed. Update all callers.
1962 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1964 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1966 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1968 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1969 to print_gnat_encoded_fixed_point_type.
1970 * ada-valprint.c: Likewise.
1972 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1974 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1975 (debug_prefixed_printf): Add check of debug_displaced flag.
1976 * linux-nat.c (linux_nat_debug_printf): Add check of
1977 debug_linux_nat flag.
1979 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1981 * infrun.c (infrun_debug_printf_1): Remove.
1982 (displaced_debug_printf_1): Remove.
1983 (stop_all_threads): Use debug_prefixed_printf.
1984 * infrun.h (infrun_debug_printf_1): Remove.
1985 (infrun_debug_printf): Use debug_prefixed_printf.
1986 (displaced_debug_printf_1): Remove.
1987 (displaced_debug_printf): Use debug_prefixed_printf.
1988 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1989 (linux_nat_debug_printf): Use debug_prefixed_printf.
1991 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1993 * configure: Re-generate.
1994 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1997 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1999 * configure: Re-generate.
2001 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2003 * configure: Re-generate.
2005 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2007 * configure: Re-generate.
2009 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2011 * configure: Re-generate.
2013 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2015 * acinclude.m4: Modernize.
2016 * configure: Re-generate.
2018 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2020 * configure.ac: Modernize.
2021 * configure: Re-generate.
2023 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2025 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2026 * configure: Re-generate.
2027 * configure.ac: Remove AM_PROG_CC_STDC.
2029 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2031 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2032 AC_CANONICAL_SYSTEM.
2033 * configure: Re-generate.
2035 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
2037 * infrun.h (displaced_debug_printf): New macro. Replace
2038 displaced debug prints throughout to use it.
2039 (displaced_debug_printf_1): New declaration.
2040 (displaced_step_dump_bytes): Return string, remove ui_file
2041 parameter, update all callers.
2042 * infrun.c (displaced_debug_printf_1): New function.
2043 (displaced_step_dump_bytes): Return string, remove ui_file
2046 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2048 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2050 2020-10-30 Tom Tromey <tromey@adacore.com>
2052 * Makefile.in (stamp-init): Depend on config.status.
2054 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2056 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2058 2020-10-30 Pedro Alves <pedro@palves.net>
2060 * thread.c (lookup_selected_frame): Move ...
2061 * frame.c (lookup_selected_frame): ... here.
2063 2020-10-30 Pedro Alves <pedro@palves.net>
2065 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2067 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2068 Use save_selected_frame. Save language as well.
2069 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2070 Use restore_selected_frame, and restore language as well.
2071 (selected_frame_id, selected_frame_level): New.
2072 (selected_frame): Update comments.
2073 (save_selected_frame, restore_selected_frame): New.
2074 (get_selected_frame): Use lookup_selected_frame.
2075 (get_selected_frame_if_set): Delete.
2076 (select_frame): Record selected_frame_level and selected_frame_id.
2077 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2079 (get_selected_frame): Make 'message' parameter optional.
2080 (get_selected_frame_if_set): Delete declaration.
2081 (select_frame): Update comments.
2082 (save_selected_frame, restore_selected_frame)
2083 (lookup_selected_frame): Declare.
2084 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2085 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2087 (save_infcall_control_state): Use save_selected_frame.
2088 (restore_selected_frame): Delete.
2089 (restore_infcall_control_state): Use restore_selected_frame.
2090 * stack.c (select_frame_command_core, frame_command_core): Use
2092 * thread.c (restore_selected_frame): Rename to ...
2093 (lookup_selected_frame): ... this and make extern. Select the
2094 current frame if the frame level is -1.
2095 (scoped_restore_current_thread::restore): Also restore the
2097 (scoped_restore_current_thread::~scoped_restore_current_thread):
2099 (scoped_restore_current_thread::scoped_restore_current_thread):
2100 Save the language as well. Use save_selected_frame.
2102 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2104 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2106 * gdbarch.h: Re-generate.
2108 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2110 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2112 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2114 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2116 * arch-utils.c (default_displaced_step_hw_singlestep):
2118 * arch-utils.h (default_displaced_step_hw_singlestep):
2120 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2122 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2124 * gdbarch.c: Re-generate.
2125 * gdbarch.h: Re-generate.
2126 * infrun.c (resume_1): Adjust.
2128 2020-10-29 Tom Tromey <tom@tromey.com>
2130 * progspace.c (program_space::~program_space): Don't call
2133 2020-10-29 Tom Tromey <tom@tromey.com>
2135 * exec.c (exec_target::close): Don't change current program
2138 2020-10-29 Tom Tromey <tom@tromey.com>
2140 * symfile.c (add_symbol_file_command): Update.
2141 * exec.c (program_space::add_target_sections): Rename.
2142 * symfile-mem.c (symbol_file_add_from_memory): Update.
2143 * progspace.h (struct program_space) <add_target_sections>:
2144 Declare new overload.
2145 * exec.h (add_target_sections_of_objfile): Don't declare.
2147 2020-10-29 Tom Tromey <tom@tromey.com>
2149 * solib.c (solib_map_sections): Update.
2150 * exec.c (program_space::add_target_sections): Now a method.
2151 (exec_file_attach): Update.
2152 * exec.h (add_target_sections): Don't declare.
2153 * progspace.h (struct program_space) <add_target_sections>:
2156 2020-10-29 Tom Tromey <tom@tromey.com>
2158 * progspace.h (struct program_space) <remove_target_sections>:
2160 * exec.c (program_space::remove_target_sections): Now a method.
2161 * exec.h (remove_target_sections): Don't declare.
2163 2020-10-29 Tom Tromey <tom@tromey.com>
2165 * inferior.c (delete_inferior): Update.
2166 * progspace.c (program_space::empty): Rename from
2167 program_space_empty_p. Return bool.
2168 * progspace.h (struct program_space) <empty>: New method.
2169 (program_space_empty_p): Don't declare.
2171 2020-10-29 Tom Tromey <tom@tromey.com>
2173 * progspace.c (program_space::~program_space): Don't call
2174 clear_program_space_solib_cache.
2175 (program_space::clear_solib_cache): Rename from
2177 * solib.c (handle_solib_event): Update.
2178 * progspace.h (struct program_space) <clear_solib_cache>: New
2180 (clear_program_space_solib_cache): Don't declare.
2182 2020-10-29 Tom Tromey <tom@tromey.com>
2184 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2185 * target.c (info_target_command): Update.
2186 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2187 (symbol_file_clear, reread_symbols): Update.
2188 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2189 * stabsread.c (scan_file_globals): Update.
2190 * solib.c (update_solib_list): Update.
2191 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2192 (svr4_fetch_objfile_link_map, enable_break)
2193 (svr4_relocate_main_executable)
2194 (svr4_iterate_over_objfiles_in_search_order): Update.
2195 * solib-frv.c (lm_base, enable_break)
2196 (frv_relocate_main_executable): Update.
2197 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2198 (frv_fetch_objfile_link_map): Update.
2199 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2200 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2201 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2202 * remote.c (remote_target::get_offsets): Update.
2203 (remote_target::start_remote)
2204 (extended_remote_target::post_attach): Update.
2205 * objfiles.c (entry_point_address_query): Update.
2206 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2207 * minsyms.c (get_symbol_leading_char): Update.
2208 * frame.c (inside_main_func): Update.
2209 * progspace.h (symfile_objfile): Remove macro.
2211 2020-10-29 Tom Tromey <tom@tromey.com>
2213 * exec.c (exec_file_attach): Update.
2214 * progspace.c (program_space::exec_close): Update.
2215 * progspace.h (struct program_space) <ebfd>: Now a
2217 <set_exec_bfd>: Change argument type.
2220 2020-10-29 Tom Tromey <tom@tromey.com>
2222 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2223 * symfile.c (reread_symbols): Update.
2224 * symfile-mem.c (add_symbol_file_from_memory_command)
2225 (add_vsyscall_page): Update.
2226 * source-cache.c (source_cache::get_plain_source_lines): Update.
2227 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2228 (svr4_current_sos_direct, svr4_exec_displacement)
2229 (svr4_relocate_main_executable): Update.
2230 (svr4_iterate_over_objfiles_in_search_order): Update.
2231 * solib-frv.c (enable_break2, enable_break): Update.
2232 * solib-dsbt.c (lm_base, enable_break): Update.
2233 * solib-darwin.c (find_program_interpreter)
2234 (darwin_solib_create_inferior_hook): Update.
2235 * sol-thread.c (rw_common, ps_pdmodel): Update.
2236 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2237 * remote.c (compare_sections_command)
2238 (remote_target::trace_set_readonly_regions): Update.
2239 * remote-sim.c (get_sim_inferior_data)
2240 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2241 (gdbsim_target_open, gdbsim_target::files_info): Update.
2242 * exec.h (exec_bfd): Remove macro.
2243 * progspace.c (initialize_progspace): Update.
2244 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2246 * nto-procfs.c (nto_procfs_target::post_attach)
2247 (nto_procfs_target::create_inferior): Update.
2248 * maint.c (maintenance_info_sections): Update.
2249 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2251 * infcmd.c (post_create_inferior): Update.
2252 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2253 (objfile_find_memory_regions): Update.
2254 * exec.c (validate_exec_file, exec_file_attach)
2255 (exec_read_partial_read_only, print_section_info): Update.
2256 * corelow.c (core_target_open): Update.
2257 * corefile.c (reopen_exec_file, validate_files): Update.
2258 * arm-tdep.c (gdb_print_insn_arm): Update.
2259 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2260 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2263 2020-10-29 Tom Tromey <tom@tromey.com>
2265 * progspace.h (current_target_sections): Remove macro.
2266 * solib-svr4.c (scan_dyntag): Update.
2267 * solib-dsbt.c (scan_dyntag): Update.
2268 * exec.c (exec_target::close): Update.
2269 (add_target_sections, add_target_sections_of_objfile)
2270 (remove_target_sections, exec_target::get_section_table)
2271 (exec_target::files_info, set_section_command)
2272 (exec_set_section_address, exec_target::has_memory)
2273 (exec_target::has_memory): Update.
2275 2020-10-29 Tom Tromey <tom@tromey.com>
2277 * source-cache.c (source_cache::get_plain_source_lines): Use
2278 current_program_space.
2279 * corefile.c (reopen_exec_file): Use current_program_space.
2280 * exec.c (exec_file_attach): Use current_program_space.
2281 * exec.h (exec_bfd_mtime): Remove.
2283 2020-10-29 Tom Tromey <tom@tromey.com>
2285 * gcore.c (default_gcore_mach): Remove.
2286 (create_gcore_bfd): Update.
2288 2020-10-29 Tom Tromey <tom@tromey.com>
2290 * progspace.c (program_space::exec_close): New method, from
2291 exec_close in exec.c.
2292 * exec.c (exec_close): Move to progspace.c.
2293 (exec_target::close, exec_file_attach): Update.
2294 * progspace.h (struct program_space) <exec_close>: Declare
2297 2020-10-29 Tom Tromey <tom@tromey.com>
2299 * progspace.h (struct program_space) <exec_filename>: Rename from
2300 pspace_exec_filename. Now a unique_xmalloc_ptr.
2301 * inferior.c (print_selected_inferior): Update.
2302 (print_inferior): Update.
2303 * mi/mi-main.c (print_one_inferior): Update.
2304 * exec.h (exec_filename): Remove macro.
2305 * corefile.c (get_exec_file): Update.
2306 * exec.c (exec_close): Update.
2307 (exec_file_attach): Update.
2308 * progspace.c (clone_program_space): Update.
2309 (print_program_space): Update.
2311 2020-10-29 Tom Tromey <tom@tromey.com>
2313 * target-section.h (struct target_section): Add constructor.
2314 * exec.c (build_section_table, add_target_sections_of_objfile):
2316 * corelow.c (core_target::build_file_mappings): Update.
2318 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2321 * inferior.c (detach_inferior_command): Restore the current thread.
2322 (kill_inferior_command): Ditto.
2324 2020-10-28 Tom de Vries <tdevries@suse.de>
2327 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2328 map, check it in the "best match" loop.
2330 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2332 * m32c-tdep.c: Remove unused includes.
2334 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2336 * xtensa-tdep.c: Remove includes.
2338 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2340 * breakpoint.c (struct condition_command_opts): New struct.
2341 (condition_command_option_defs): New static global.
2342 (make_condition_command_options_def_group): New function.
2343 (condition_completer): Update to consider the '-force' flag.
2344 (condition_command): Use gdb::option for the '-force' flag.
2346 2020-10-27 Tom de Vries <tdevries@suse.de>
2348 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2349 symbols in section check.
2351 2020-10-27 Tom de Vries <tdevries@suse.de>
2353 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2355 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2357 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2358 * breakpoint.c: Update the help text of the 'condition' and 'break'
2360 (set_breakpoint_condition): Take a new bool parameter
2361 to control whether condition definition should be forced even when
2362 the condition expression is invalid in all of the current locations.
2363 (condition_command): Update the call to 'set_breakpoint_condition'.
2364 (find_condition_and_thread): Take the "-force-condition" flag into
2366 * linespec.c (linespec_keywords): Add "-force-condition" as an
2368 (FORCE_KEYWORD_INDEX): New #define.
2369 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2371 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2372 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2373 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2374 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2376 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2378 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2379 * breakpoint.c (set_breakpoint_location_condition): New function.
2380 (set_breakpoint_condition): Disable a breakpoint location if parsing
2381 the condition string gives an error.
2382 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2383 (build_target_condition_list): Ditto.
2384 (build_target_command_list): Ditto.
2385 (build_bpstat_chain): Ditto.
2386 (print_one_breakpoint_location): Ditto.
2387 (print_one_breakpoint): Ditto.
2388 (breakpoint_1): Ditto.
2389 (bp_location::bp_location): Ditto.
2390 (locations_are_equal): Ditto.
2391 (update_breakpoint_locations): Ditto.
2392 (enable_disable_bp_num_loc): Ditto.
2393 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2394 (find_condition_and_thread_for_sals): New static function.
2395 (create_breakpoint): Call find_condition_and_thread_for_sals.
2396 (location_to_sals): Call find_condition_and_thread_for_sals instead
2397 of find_condition_and_thread.
2399 2020-10-26 Tom de Vries <tdevries@suse.de>
2401 * dwarf2/read.c (process_full_comp_unit): Call
2402 dwarf2_find_base_address.
2404 2020-10-26 Tom Tromey <tromey@adacore.com>
2406 * gdbtypes.c (create_range_type): Revert previous patch. Add
2409 2020-10-26 Pedro Alves <pedro@palves.net>
2411 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2412 (my_waitpid): Use gdb::handle_eintr.
2414 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2416 * acinclude.m4: Update ptrace.m4 path.
2417 * ptrace.m4: Moved to gdbsupport.
2419 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2421 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2422 instead of target_gdbarch.
2424 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2426 * jit.c (jit_reader_load_command): Pass current inferior.
2427 (jit_inferior_init): Change parameter type to inferior, use it.
2428 (jit_inferior_created): Remove.
2429 (jit_inferior_created_hook): Pass inferior parameter down.
2430 (_initialize_jit): Use jit_inferior_created_hook instead of
2431 jit_inferior_created.
2432 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2433 * infrun.c (follow_exec): Pass inferior to
2434 jit_inferior_created_hook.
2436 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2438 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2439 parameter and use it.
2440 (thread_db_inferior_created): Pass inferior argument.
2442 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2444 * aix-thread.c (aix_thread_inferior_created): Add inferior
2446 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2447 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2448 * jit.c (jit_inferior_created): Likewise.
2449 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2450 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2451 * observable.h (inferior_created): Likewise.
2452 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2453 * symfile-mem.c (add_vsyscall_page): Likewise.
2454 * infcmd.c (post_create_inferior): Pass inferior argument.
2456 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2460 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2462 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2463 to ada_check_typedef.
2465 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2467 * f-exp.y (f_parse): Rename to...
2468 (f_language::parser): ...this.
2469 * f-lang.c (f_get_encoding): Rename to...
2470 (f_language::get_encoding): ...this.
2471 (f_op_print_tab): Rename to...
2472 (f_language::op_print_tab): ...this.
2473 (exp_descriptor_f): Rename to...
2474 (f_language::exp_descriptor_tab): ...this.
2475 (class f_language): Moved to f-lang.h.
2476 (f_language::language_arch_info): New function, moved out of class
2478 (f_language::search_name_hash): Likewise.
2479 (f_language::lookup_symbol_nonlocal): Likewise.
2480 (f_language::get_symbol_name_matcher_inner): Likewise.
2481 * f-lang.h: Add 'valprint.h' include.
2482 (class f_language): Moved here from f-lang.c.
2483 * f-typeprint.c (f_type_print_args): Delete commented out
2485 (f_print_typedef): Rename to...
2486 (f_language::print_typedef): ...this.
2487 (f_print_type): Rename to...
2488 (f_language::print_type): ...this.
2489 (f_type_print_varspec_prefix): Delete declaration and rename to...
2490 (f_language::f_type_print_varspec_prefix): ...this.
2491 (f_type_print_varspec_suffix): Delete declaration and rename to...
2492 (f_language::f_type_print_varspec_suffix): ...this.
2493 (f_type_print_base): Delete declaration and rename to...
2494 (f_language::f_type_print_base): ...this.
2495 * f-valprint.c (f_value_print_inner): Rename to...
2496 (f_language::value_print_inner): ...this.
2497 * parse.c: Delete 'f-lang.h' include.
2499 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2501 * language.h (language_defn::print_type): Add variable names in
2502 declaration, and update header comment.
2504 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2506 * ada-lang.c (ada_language::demangle): Rename to...
2507 (ada_language::demangle_symbol): ...this.
2508 * c-lang.c (cplus_language::demangle): Rename to...
2509 (cplus_language::demangle_symbol): ...this.
2510 * d-lang.c (d_language::demangle): Rename to...
2511 (d_language::demangle_symbol): ...this.
2512 * f-lang.c (f_language::demangle): Rename to...
2513 (f_language::demangle_symbol): ...this.
2514 * go-lang.c (go_language::demangle): Rename to...
2515 (go_language::demangle_symbol): ...this.
2516 * language.c (language_demangle): Update call to demangle_symbol.
2517 (auto_or_unknown_language::demangle): Rename to...
2518 (auto_or_unknown_language::demangle_symbol): ...this.
2519 * language.h (language_defn::demangle): Rename to...
2520 (language_defn::demangle_symbol): ...this.
2521 * objc-lang.c (objc_language::demangle): Rename to...
2522 (objc_language::demangle_symbol): ...this.
2523 * rust-lang.c (rust_language::demangle): Rename to...
2524 (rust_language::demangle_symbol): ...this.
2526 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2528 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2529 (iterate_over_file_blocks): Replace use of macro with the macros
2532 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2534 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2535 * valprint.c (maybe_print_array_index): Replace use of macro with
2536 the macros definition.
2538 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2540 * ada-lang.c (ada_language::print_array_index): Call value_print
2542 * language.c (language_defn::print_array_index): Likewise.
2543 * language.h (LA_VALUE_PRINT): Delete.
2544 * valprint.c (value_print): Call value_print on the
2545 current_language directly.
2547 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2549 * language.h (LA_PRINT_TYPEDEF): Delete.
2550 * typeprint.c (typedef_print): Call print_typedef directly on the
2551 current_language object.
2553 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2555 * m2-exp.y (m2_parse): Rename to...
2556 (m2_language::parser): ...this. Update function signature.
2557 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2558 (m2_op_print): Rename to...
2559 (m2_language::op_print_tab): ...this, and make const.
2560 (exp_descriptor_modula2): Rename to...
2561 (m2_language::exp_descriptor_modula2): ...this.
2562 (class m2_language): Move to m2-lang.h.
2563 (m2_language::language_arch_info): New function, moved out of
2565 (m2_language::printchar): New function, body from m2_printchar.
2566 (m2_language::printstr): New function, moved out of class
2568 (m2_language::emitchar): Likewise.
2569 * m2-lang.h (m2_parse): Delete declaration.
2570 (m2_print_typedef): Delete declaration.
2571 (m2_value_print_inner): Delete declaration.
2572 (class m2_language): Class declaration moved from m2-lang.c,
2573 larger functions are left in m2-lang.c.
2574 * m2-typeprint.c (m2_print_typedef): Rename to...
2575 (m2_language::print_typedef): ...this, and update function
2577 * m2-valprint.c (m2_value_print_inner): Rename to...
2578 (m2_language::value_print_inner): ...this, replace use of
2579 LA_PRINT_STRING with a direct call to printstr member function,
2580 and update recursive call.
2582 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2584 * language.c (default_is_string_type_p): Delete, implementation
2585 moved into auto_or_unknown_language::is_string_type_p.
2586 (unk_op_print_tab): Moved into
2587 auto_or_unknown_language::opcode_print_table.
2588 (unknown_language_arch_info): Delete, implementation moved into
2589 auto_or_unknown_language::language_arch_info.
2590 (class auto_or_unknown_language): New class, member functions
2591 copied from unknown_language class, with some updates.
2592 (class unknown_language): Most member functions moved into
2593 auto_or_unknown_language class. Inherit from
2594 auto_or_unknown_language class.
2595 (class auto_language): Inherit from auto_or_unknown_language.
2596 Delete most member functions.
2598 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2600 * stabsread.c (read_member_functions): Remove gdb_assert.
2602 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2604 * gdbtypes.c (init_complex_type): Check target type name.
2606 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2608 * target-debug.h (target_debug_print_struct_target_ops_p):
2610 (target_debug_print_async_callback_ftype_p): Remove.
2611 (target_debug_print_struct_trace_state_variable_p): Remove.
2612 (target_debug_print_struct_traceframe_info_p): Remove.
2613 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2614 (target_debug_print_enum_btrace_format): Remove.
2615 (target_debug_print_enum_info_proc_what): Remove.
2616 (target_debug_print_thread_info_pp): Remove.
2618 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2620 * target.h (struct target_ops) <make_corefile_notes>:
2621 Change return type to unique pointer.
2622 * target.c (dummy_make_corefile_notes): Likewise.
2623 * exec.c (struct exec_target) <make_corefile_notes>:
2625 (exec_target::make_corefile_notes): Likewise.
2626 * procfs.c (class procfs_target) <make_corefile_notes>:
2628 (procfs_do_thread_registers): Adjust to unique pointer.
2629 (struct procfs_corefile_thread_data): Add constructor.
2630 <note_data>: Change type to unique pointer.
2631 (procfs_corefile_thread_callback): Adjust to unique pointer.
2632 (procfs_target::make_corefile_notes): Change return type to
2634 * target-delegates.c: Re-generate.
2635 * gcore.c (write_gcore_file_1): Adjust.
2636 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2639 2020-10-22 Tom de Vries <tdevries@suse.de>
2641 * block.c (find_block_in_blockvector): Make sure the returned block
2644 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2647 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2649 (load_cu): Pass existing CU.
2650 (process_imported_unit_die): Likewise.
2651 (follow_die_offset): Likewise.
2653 2020-10-22 Luis Machado <luis.machado@linaro.org>
2655 * corelow.c (core_target::xfer_partial): Also check for an empty
2656 m_core_unavailable_mappings vector.
2658 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2660 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2661 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2662 * f-exp.y (arglist): Allow for a series of subranges.
2663 (subrange): Add cases for subranges with strides.
2664 * f-lang.c (value_f90_subarray): Catch use of array strides and
2666 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2668 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2670 * expprint.c (print_subexp_standard): Change enum range_type to
2671 range_flag and rename variables to match.
2672 (dump_subexp_body_standard): Likewise.
2673 * expression.h (enum range_type): Rename to...
2674 (enum range_flag): ...this.
2675 (range_types): Rename to...
2676 (range_flags): ...this.
2677 * f-lang.c (value_f90_subarray): Change enum range_type to
2678 range_flag and rename variables to match.
2679 * parse.c (operator_length_standard): Likewise.
2680 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2681 range_type to range_flag.
2682 * rust-lang.c (rust_evaluate_funcall): Likewise.
2683 (rust_range): Likewise.
2684 (rust_compute_range): Likewise.
2685 (rust_subscript): Likewise.
2687 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2689 * expprint.c (print_subexp_standard): Update to reflect changes to
2691 (dump_subexp_body_standard): Likewise.
2692 * expression.h (enum range_type): Convert to a bit field enum, and
2693 make the enum unsigned.
2694 * f-exp.y (subrange): Update to reflect changes to enum
2696 * f-lang.c (value_f90_subarray): Likewise.
2697 * parse.c (operator_length_standard): Likewise.
2698 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2699 * rust-lang.c (rust_range): Likewise.
2700 (rust_compute_range): Likewise.
2701 (rust_subscript): Likewise.
2703 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2705 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2706 (displaced_step_in_progress): Fix comment.
2708 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2710 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2711 * gdbarch.c: Re-generate.
2712 * gdbarch.h: Re-generate.
2713 * gcore.c (write_gcore_file_1): Adjust.
2714 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2716 <note_data>: Change type to unique pointer.
2717 <abort_iteration>: Change type to bool.
2718 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2719 (fbsd_collect_thread_registers): Return void, adjust.
2720 (struct fbsd_corefile_thread_data): Add construtor.
2721 <note_data>: Change type to unique pointer.
2722 (fbsd_corefile_thread): Adjust.
2723 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2724 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2725 to unique pointer, adjust.
2726 (struct linux_collect_regset_section_cb_data): Add constructor.
2727 <note_data>: Change type to unique pointer.
2728 <abort_iteration>: Change type to bool.
2729 (linux_collect_thread_registers): Return void, adjust.
2730 (struct linux_corefile_thread_data): Add constructor.
2731 <note_data>: Change type to unique pointer.
2732 (linux_corefile_thread): Adjust.
2733 (linux_make_corefile_notes): Return unique pointer, adjust.
2735 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2737 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2738 * gdbarch.c: Re-generate.
2739 * gdbarch.h: Re-generate.
2740 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2742 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2744 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2745 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2746 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2747 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2749 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2751 * gdbarch.sh: Make generated predicates return bool.
2752 * gdbarch.c: Re-generate.
2753 * gdbarch.h: Re-generate.
2755 2020-10-20 Tom Tromey <tom@tromey.com>
2757 * varobj-iter.h (struct varobj_item): Remove typedef.
2759 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2761 * infrun.c (currently_stepping): Change int to bool
2762 (maybe_software_singlestep): Likewise.
2763 (show_stop_on_solib_events): Likewise.
2764 (stepping_past_nonsteppable_watchpoint): Likewise.
2765 (displaced_step_in_progress_any_inferior): Likewise.
2766 (displaced_step_in_progress_thread): Likewise.
2767 (keep_going_stepped_thread): Likewise.
2768 (thread_still_needs_step_over): Likewise.
2769 (start_step_over): Likewise.
2770 (do_target_resume): Likewise.
2771 (resume_1): Likewise.
2772 (clear_proceed_status): Likewise.
2773 (thread_still_needs_step_over_bp): Likewise.
2774 (proceed): Likewise.
2775 (switch_back_to_stepped_thread): Likewise.
2776 (adjust_pc_after_break): Likewise.
2777 (stepped_in_from): Likewise.
2778 (handle_stop_requested): Likewise.
2779 (handle_syscall_event): Likewise.
2780 (handle_no_resumed): Likewise.
2781 (handle_inferior_event): Likewise.
2782 (finish_step_over): Likewise.
2783 (handle_signal_stop): Likewise.
2784 (process_event_stop_test): Likewise.
2786 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2788 * infrun.c (get_displaced_stepping_state): Fix comment.
2790 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2792 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2794 2020-10-19 Tom Tromey <tromey@adacore.com>
2797 * tui/tui-winsource.h (struct tui_source_window_base)
2798 <refresh_window>: Rename from refresh_pad.
2799 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2800 Rename from refresh_pad.
2801 (tui_source_window_base::show_source_content)
2802 (tui_source_window_base::do_scroll_horizontal): Update.
2804 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2806 * thread.c (_initialize_thread): Fine-tune the help text of
2809 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2811 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2813 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2815 * breakpoint.c (handle_jit_event): Add an argument, change how
2816 `jit_event_handler` is called.
2818 2020-10-17 Tom Tromey <tom@tromey.com>
2820 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2821 (scan_xcoff_symtab): Update.
2822 * psymtab.h (class psymtab_storage) <global_psymbols,
2823 static_psymbols, current_global_psymbols,
2824 current_static_psymbols>: Remove.
2825 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2826 (match_partial_symbol, lookup_partial_symbol): Update.
2827 (print_partial_symbols): Change parameters.
2828 (dump_psymtab, recursively_search_psymtabs)
2829 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2830 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2832 (end_psymtab_common): Simplify.
2833 (append_psymbol_to_list): Change parameters.
2834 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2835 (init_psymbol_list): Simplify.
2836 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2837 * psympriv.h (struct partial_symtab) <empty>: New method.
2838 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2840 <global_psymbols, static_psymbols>: New members.
2841 <add_psymbol>: New methods.
2842 (add_psymbol_to_list): Don't declare.
2843 (psymbol_placement): Move earlier.
2844 * mdebugread.c (parse_partial_symbols): Update.
2845 (handle_psymbol_enumerators): Change parameters.
2846 (mdebug_expand_psymtab): Update.
2847 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2848 (add_partial_symbol): Update.
2849 * dwarf2/index-write.c (write_psymbols): Change parameters.
2850 (write_one_signatured_type): Update.
2851 (recursively_count_psymbols): Update.
2852 (recursively_write_psymbols): Update.
2853 (class debug_names) <recursively_write_psymbols>: Update.
2854 <write_psymbols>: Change parameters.
2855 <write_one_signatured_type>: Update.
2856 * dbxread.c (read_dbx_symtab): Update.
2857 (dbx_end_psymtab): Use partial_symtab::empty.
2858 * ctfread.c (struct ctf_context) <pst>: New member.
2859 (create_partial_symtab): Set it.
2860 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2861 (scan_partial_symbols): Use the psymtab's context. Update.
2863 2020-10-17 Tom Tromey <tom@tromey.com>
2865 * valprint.c (generic_value_print): Remove comment.
2866 * m2-valprint.c (m2_value_print_inner): Remove comment.
2867 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2870 2020-10-17 Tom de Vries <tdevries@suse.de>
2873 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2876 2020-10-14 Tom de Vries <tdevries@suse.de>
2879 * solib.c (solib_contains_address_p): Handle
2880 'solib->sections == nullptr'.
2882 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2885 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2886 target can't do async.
2887 * target.c (target_wait): Assert that we don't pass
2888 TARGET_WNOHANG to a target that can't async.
2890 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2892 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2893 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2894 * alpha-bsd-nat.c: Adjust include.
2895 * alpha-bsd-tdep.h: Adjust comment.
2896 * alpha-nbsd-tdep.c: Rename to ...
2897 * alpha-netbsd-tdep.c: ... this, adjust include.
2898 * amd64-nbsd-nat.c: Rename to ...
2899 * amd64-netbsd-nat.c: ... this, adjust include.
2900 * amd64-nbsd-tdep.c: Rename to ...
2901 * amd64-netbsd-tdep.c: ... this, adjust include.
2902 * amd64-tdep.h: Adjust include.
2903 * arm-nbsd-nat.c: Rename to ...
2904 * arm-netbsd-nat.c: ... this, adjust include.
2905 * arm-nbsd-tdep.c: Rename to ...
2906 * arm-netbsd-tdep.c: ... this, adjust include.
2907 * arm-nbsd-tdep.h: Rename to ...
2908 * arm-netbsd-tdep.h: ... this, adjust include.
2909 * configure.nat: Adjust file lists.
2910 * configure.tgt: Likewise.
2911 * hppa-nbsd-nat.c: Rename to ...
2912 * hppa-netbsd-nat.c: ... this, adjust include.
2913 * hppa-nbsd-tdep.c: Rename to ...
2914 * hppa-netbsd-tdep.c: ... this, adjust include.
2915 * i386-nbsd-nat.c: Rename to ...
2916 * i386-netbsd-nat.c: ... this, adjust include.
2917 * i386-nbsd-tdep.c: Rename to ...
2918 * i386-netbsd-tdep.c: ... this, adjust include.
2919 * m68k-bsd-nat.c: Adjust include.
2920 * mips-nbsd-nat.c: Rename to ...
2921 * mips-netbsd-nat.c: ... this, adjust include.
2922 * mips-nbsd-tdep.c: Rename to ...
2923 * mips-netbsd-tdep.c: ... this, adjust include.
2924 * mips-nbsd-tdep.h: Rename to ...
2925 * mips-netbsd-tdep.h: ... this.
2926 * nbsd-nat.c: Rename to ...
2927 * netbsd-nat.c: ... this, adjust include.
2928 * nbsd-nat.h: Rename to ...
2929 * netbsd-nat.h: ... this, adjust include.
2930 * nbsd-tdep.c: Rename to ...
2931 * netbsd-tdep.c: ... this, adjust include.
2932 * nbsd-tdep.h: Rename to ...
2933 * netbsd-tdep.h: ... this.
2934 * ppc-nbsd-nat.c: Rename to ...
2935 * ppc-netbsd-nat.c: ... this, adjust include.
2936 * ppc-nbsd-tdep.c: Rename to ...
2937 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2938 * ppc-nbsd-tdep.h: Rename to ...
2939 * ppc-netbsd-tdep.h: ... this.
2940 * sh-nbsd-nat.c: Rename to ...
2941 * sh-netbsd-nat.c: ... this, adjust include.
2942 * sh-nbsd-tdep.c: Rename to ...
2943 * sh-netbsd-tdep.c: ... this, adjust include.
2944 * sparc-nbsd-nat.c: Rename to ...
2945 * sparc-netbsd-nat.c: ... this.
2946 * sparc-nbsd-tdep.c: Rename to ...
2947 * sparc-netbsd-tdep.c: ... this, adjust include.
2948 * sparc64-nbsd-nat.c: Rename to ...
2949 * sparc64-netbsd-nat.c: ... this.
2950 * sparc64-nbsd-tdep.c: Rename to ...
2951 * sparc64-netbsd-tdep.c: ... this, adjust include.
2952 * sparc64-tdep.h: Adjust comment.
2953 * vax-bsd-nat.c: Adjust include.
2954 * vax-nbsd-tdep.c: Rename to ...
2955 * vax-netbsd-tdep.c: ... this, adjust include.
2957 2020-10-12 Tom Tromey <tom@tromey.com>
2959 * target.h (struct target_ops) <get_section_table>: Update.
2960 (target_get_section_table): Update.
2961 * target.c (target_get_section_table, target_section_by_addr)
2962 (memory_xfer_partial_1): Update.
2963 * target-section.h (target_section_table): Now an alias.
2964 * target-delegates.c: Rebuild.
2965 * target-debug.h (target_debug_print_target_section_table_p):
2966 Rename from target_debug_print_struct_target_section_table_p.
2967 * symfile.c (build_section_addr_info_from_section_table): Update.
2968 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2969 * solib-svr4.c (scan_dyntag): Update.
2970 * solib-dsbt.c (scan_dyntag): Update.
2971 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2973 * record-full.c (record_full_core_target::xfer_partial): Update.
2974 * progspace.h (struct program_space) <target_sections>: Update.
2975 * exec.h (print_section_info): Update.
2976 * exec.c (exec_target::close, build_section_table)
2977 (add_target_sections, add_target_sections_of_objfile)
2978 (remove_target_sections, exec_on_vfork)
2979 (section_table_available_memory)
2980 (section_table_xfer_memory_partial)
2981 (exec_target::get_section_table, exec_target::xfer_partial)
2982 (print_section_info, set_section_command)
2983 (exec_set_section_address, exec_target::has_memory): Update.
2984 * corelow.c (core_target::build_file_mappings)
2985 (core_target::xfer_partial, core_target::info_proc_mappings)
2986 (core_target::info_proc_mappings): Update.
2987 * bfd-target.c (class target_bfd): Update
2989 2020-10-12 Tom Tromey <tom@tromey.com>
2991 * progspace.c (program_space::~program_space): Don't call
2992 clear_section_table.
2993 * exec.h (clear_section_table): Don't declare.
2994 * exec.c (exec_target::close): Update.
2995 (clear_section_table): Remove.
2997 2020-10-12 Tom Tromey <tom@tromey.com>
2999 * exec.c (add_target_sections_of_objfile): Simplify.
3001 2020-10-12 Tom Tromey <tom@tromey.com>
3003 * solib.c (solib_map_sections): Update.
3004 * record-full.c (record_full_core_open_1): Update.
3005 * exec.h (build_section_table): Return a target_section_table.
3006 * exec.c (exec_file_attach): Update.
3007 (build_section_table): Return a target_section_table.
3008 * corelow.c (core_target::core_target): Update.
3009 * bfd-target.c (target_bfd::target_bfd): Update.
3011 2020-10-12 Tom Tromey <tom@tromey.com>
3013 * target.c (target_section_by_addr, memory_xfer_partial_1):
3015 * target-section.h (struct target_section_table): Use
3017 * symfile.h (build_section_addr_info_from_section_table): Take a
3018 target_section_table.
3019 * symfile.c (build_section_addr_info_from_section_table): Take a
3020 target_section_table.
3021 * solist.h (struct so_list) <sections>: Change type.
3022 <sections_end>: Remove.
3023 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3024 (solib_contains_address_p): Update.
3025 * solib-svr4.c (scan_dyntag): Update.
3026 * solib-dsbt.c (scan_dyntag): Update.
3027 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3029 * record-full.c (record_full_core_start, record_full_core_end):
3031 (record_full_core_sections): New global.
3032 (record_full_core_open_1, record_full_core_target::xfer_partial):
3034 * exec.h (build_section_table, section_table_xfer_memory_partial)
3035 (add_target_sections): Take a target_section_table.
3036 * exec.c (exec_file_attach, clear_section_table): Update.
3037 (resize_section_table): Remove.
3038 (build_section_table, add_target_sections): Take a
3039 target_section_table.
3040 (add_target_sections_of_objfile, remove_target_sections)
3041 (exec_on_vfork): Update.
3042 (section_table_available_memory): Take a target_section_table.
3043 (section_table_read_available_memory): Update.
3044 (section_table_xfer_memory_partial): Take a target_section_table.
3045 (print_section_info, set_section_command)
3046 (exec_set_section_address, exec_target::has_memory): Update.
3047 * corelow.c (class core_target) <m_core_section_table,
3048 m_core_file_mappings>: Remove braces.
3049 <~core_target>: Remove.
3050 (core_target::core_target): Update.
3051 (core_target::~core_target): Remove.
3052 (core_target::build_file_mappings)
3053 (core_target::xfer_memory_via_mappings)
3054 (core_target::xfer_partial, core_target::info_proc_mappings):
3056 * bfd-target.c (target_bfd::xfer_partial): Update.
3057 (target_bfd::target_bfd): Update.
3058 (target_bfd::~target_bfd): Remove.
3060 2020-10-12 Tom Tromey <tom@tromey.com>
3062 * target.h (struct target_section, struct target_section_table):
3063 Move to target-section.h.
3064 * target-section.h: New file.
3066 2020-10-12 Pedro Alves <pedro@palves.net>
3069 * valops.c (struct struct_field_searcher): New.
3070 (update_search_result): Rename to ...
3071 (struct_field_searcher::update_result): ... this. Simplify
3072 prototype. Record all found fields.
3073 (do_search_struct_field): Rename to ...
3074 (struct_field_searcher::search): ... this. Simplify prototype.
3075 Maintain stack of visited baseclass path. Call update_result for
3076 fields too. Keep searching fields in baseclasses instead of
3077 stopping at the first found field.
3078 (search_struct_field): Use struct_field_searcher. When looking
3079 for fields, report ambiguous access attempts.
3081 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3083 * frame.c (inside_main_func): Check full symbols as well as
3086 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3088 * ada-lang.c (advance_wild_match): Rewrite the function's
3089 description. Change the type of target0, t0 and t1 to char.
3091 2020-10-09 Tom Tromey <tromey@adacore.com>
3093 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3095 2020-10-09 Tom Tromey <tromey@adacore.com>
3097 * ada-lang.h (ada_encode): Return std::string.
3098 * ada-lang.c (ada_encode_1): Return std::string.
3099 (ada_encode): Likewise.
3100 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3102 * ada-exp.y (block_lookup, write_var_or_type): Update.
3104 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3107 * printcmd.c (print_formatted): Handle void results as
3110 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3112 * arch/aarch32.c (aarch32_create_target_description): Release the
3113 target_desc_up as late as possible.
3114 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3115 * arch/amd64.c (amd64_create_target_description): Likewise.
3116 * arch/arc.c (arc_create_target_description): Return a
3117 target_desc_up, don't release it.
3118 * arch/arc.h (arc_create_target_description): Update declaration.
3119 (arc_lookup_target_description): Move target_desc_up into the
3120 cache, and return a borrowed pointer.
3121 * arch/arm.c (arm_create_target_description): Release the
3122 target_desc_up as late as possible.
3123 * arch/i386.c (i386_create_target_description): Likewise.
3124 * arch/riscv.h (riscv_create_target_description): Update
3125 declaration to match definition.
3126 * arch/tic6x.c (tic6x_create_target_description): Release the
3127 target_desc_up as late as possible.
3129 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3131 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3132 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3134 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3136 * source.c (directory_command): Notify observers that "directories"
3137 parameter has changed.
3139 2020-10-08 Tom Tromey <tom@tromey.com>
3141 * cli/cli-cmds.c (print_disassembly): Style function name and
3142 addresses. Add _() wrappers.
3144 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3146 * NEWS: Mention ARC support in GDBserver.
3148 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3150 * arch/aarch32.c (aarch32_create_target_description): Release
3151 unique_ptr returned from allocate_target_description.
3152 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3153 * arch/amd64.c (amd64_create_target_description): Likewise.
3154 * arch/arc.c (arc_create_target_description): Likewise.
3155 * arch/arm.c (arm_create_target_description): Likewise.
3156 * arch/i386.c (i386_create_target_description): Likewise.
3157 * arch/riscv.c (riscv_create_target_description): Update return
3158 type. Handle allocate_target_description returning a unique_ptr.
3159 (riscv_lookup_target_description): Update to handle unique_ptr.
3160 * arch/tic6x.c (tic6x_create_target_description): Release
3161 unique_ptr returned from allocate_target_description.
3162 * features/microblaze-with-stack-protect.c: Regenerate.
3163 * features/microblaze.c: Regenerate.
3164 * features/mips-dsp-linux.c: Regenerate.
3165 * features/mips-linux.c: Regenerate.
3166 * features/mips64-dsp-linux.c: Regenerate.
3167 * features/mips64-linux.c: Regenerate.
3168 * features/nds32.c: Regenerate.
3169 * features/nios2.c: Regenerate.
3170 * features/or1k.c: Regenerate.
3171 * features/rs6000/powerpc-32.c: Regenerate.
3172 * features/rs6000/powerpc-32l.c: Regenerate.
3173 * features/rs6000/powerpc-403.c: Regenerate.
3174 * features/rs6000/powerpc-403gc.c: Regenerate.
3175 * features/rs6000/powerpc-405.c: Regenerate.
3176 * features/rs6000/powerpc-505.c: Regenerate.
3177 * features/rs6000/powerpc-601.c: Regenerate.
3178 * features/rs6000/powerpc-602.c: Regenerate.
3179 * features/rs6000/powerpc-603.c: Regenerate.
3180 * features/rs6000/powerpc-604.c: Regenerate.
3181 * features/rs6000/powerpc-64.c: Regenerate.
3182 * features/rs6000/powerpc-64l.c: Regenerate.
3183 * features/rs6000/powerpc-7400.c: Regenerate.
3184 * features/rs6000/powerpc-750.c: Regenerate.
3185 * features/rs6000/powerpc-860.c: Regenerate.
3186 * features/rs6000/powerpc-altivec32.c: Regenerate.
3187 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3188 * features/rs6000/powerpc-altivec64.c: Regenerate.
3189 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3190 * features/rs6000/powerpc-e500.c: Regenerate.
3191 * features/rs6000/powerpc-e500l.c: Regenerate.
3192 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3193 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3194 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3195 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3196 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3197 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3198 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3199 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3200 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3201 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3202 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3203 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3204 * features/rs6000/powerpc-vsx32.c: Regenerate.
3205 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3206 * features/rs6000/powerpc-vsx64.c: Regenerate.
3207 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3208 * features/rs6000/rs6000.c: Regenerate.
3209 * features/rx.c: Regenerate.
3210 * features/s390-gs-linux64.c: Regenerate.
3211 * features/s390-linux32.c: Regenerate.
3212 * features/s390-linux32v1.c: Regenerate.
3213 * features/s390-linux32v2.c: Regenerate.
3214 * features/s390-linux64.c: Regenerate.
3215 * features/s390-linux64v1.c: Regenerate.
3216 * features/s390-linux64v2.c: Regenerate.
3217 * features/s390-te-linux64.c: Regenerate.
3218 * features/s390-tevx-linux64.c: Regenerate.
3219 * features/s390-vx-linux64.c: Regenerate.
3220 * features/s390x-gs-linux64.c: Regenerate.
3221 * features/s390x-linux64.c: Regenerate.
3222 * features/s390x-linux64v1.c: Regenerate.
3223 * features/s390x-linux64v2.c: Regenerate.
3224 * features/s390x-te-linux64.c: Regenerate.
3225 * features/s390x-tevx-linux64.c: Regenerate.
3226 * features/s390x-vx-linux64.c: Regenerate.
3227 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3228 from allocate_target_description.
3229 * target-descriptions.c (allocate_target_description): Update
3231 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3232 allocate_target_description.
3234 2020-10-07 Tom Tromey <tromey@adacore.com>
3236 * unittests/search-memory-selftests.c: New file.
3237 * Makefile.in (SELFTESTS_SRCS): Add
3238 unittests/search-memory-selftests.c.
3240 2020-10-07 Tom Tromey <tromey@adacore.com>
3243 * findcmd.c (_initialize_mem_search): Mention that the range is
3246 2020-10-07 Tom Tromey <tromey@adacore.com>
3248 * target.h (simple_search_memory): Don't declare.
3249 * target.c (simple_search_memory): Move to gdbsupport.
3250 (default_search_memory): Update.
3251 * remote.c (remote_target::search_memory): Update.
3253 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3255 * Makefile.in (COMPILE): Add CXXFLAGS.
3256 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3257 (check-headers): Add CXXFLAGS.
3259 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3261 * arc-linux-tdep.h: New file.
3262 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3263 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3264 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3265 arc_linux_gregset, arc_linux_v2_regset,
3266 arc_linux_iterate_over_regset_sections,
3267 arc_linux_core_read_description): Implement.
3268 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3269 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3270 (arc_gdbarch_features_create): Add.
3271 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3273 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3275 * arch/arc.h: Rename "arc_gdbarch_features" to
3276 "arc_arch_features".
3277 * arc-tdep.h: Likewise.
3278 * arc-tdep.c: Likewise.
3280 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3282 * infcmd.c (attach_command): Remove the redundant call to
3283 `clear_proceed_status`.
3285 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3287 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3289 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3291 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3292 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3293 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3295 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3297 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3298 (_initialize_break_catch_sig): Don't allocate array.
3300 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3302 * symtab.c (find_pc_line): Return unmapped addresses when the
3303 requested address is also unmapped.
3305 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3307 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3310 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3312 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3313 type::is_vector instead of TYPE_VECTOR.
3315 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3317 * auto-load.c (auto_load_objfile_script_1): Don't use
3318 debugfile_holder as temporary variable when stripping drive
3321 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3323 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3324 Add TYPE_CODE_COMPLEX.
3325 (amd64_windows_return_value): Fix types returned via XMM0.
3327 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3329 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3330 AArch64/ARM maintainers.
3332 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3334 * NEWS: Mention set/show debug event-loop.
3336 2020-10-02 Tom Tromey <tromey@adacore.com>
3338 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3341 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3343 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3344 * procfs.c (procfs_inferior_created): Remove.
3345 (_initialize_procfs): Don't register procfs_inferior_created.
3347 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3349 * async-event.c (invoke_async_signal_handlers): Add debug
3351 (check_async_event_handlers): Likewise.
3352 * event-top.c (show_debug_event_loop): New function.
3353 (_initialize_event_top): Register "set debug event-loop"
3356 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3358 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3360 * infrun.c: Include gdbsupport/common-debug.h.
3361 * linux-nat.c: Likewise.
3363 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3365 * async-event.h (create_async_signal_handler): Add name
3367 (create_async_event_handler): Likewise.
3368 * async-event.c (struct async_signal_handler) <name>: New field.
3369 (struct async_event_handler) <name>: New field.
3370 (create_async_signal_handler): Assign name.
3371 (create_async_event_handler): Assign name.
3372 * event-top.c (async_init_signals): Pass name when creating
3374 * infrun.c (_initialize_infrun): Likewise.
3375 * record-btrace.c (record_btrace_push_target): Likewise.
3376 * record-full.c (record_full_open): Likewise.
3377 * remote-notif.c (remote_notif_state_allocate): Likewise.
3378 * remote.c (remote_target::open_1): Likewise.
3379 * tui/tui-win.c (tui_initialize_win): Likewise.
3381 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3383 * async-event.c (initialize_async_signal_handlers): Pass name to
3385 * event-top.c (ui_register_input_event_handler): Likewise.
3386 * linux-nat.c (linux_nat_target::async): Likewise.
3387 * run-on-main-thread.c (_initialize_run_on_main_thread):
3389 * ser-base.c (reschedule): Likewise.
3390 (ser_base_async): Likewise.
3391 * tui/tui-io.c: Likewise.
3392 * top.h (struct ui) <num>: New field.
3393 * top.c (highest_ui_num): New variable.
3394 (ui::ui): Initialize num.
3396 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3398 * observable.h <inferior_created>: Remove parameters. Update all
3400 * inferior.h (post_create_inferior): Remove target parameter.
3403 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3405 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3406 and DW_MACRO_undef_strx.
3407 (dwarf_decode_macros): Likewise
3408 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3409 which is the value of DW_AT_str_offsets_base.
3410 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3413 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3415 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3417 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3419 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3420 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3422 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3424 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3426 2020-09-30 Tom de Vries <tdevries@suse.de>
3429 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3431 2020-09-30 Tom Tromey <tromey@adacore.com>
3433 * dwarf2/read.c (handle_variant): Use constant_value.
3435 2020-09-29 Tom Tromey <tom@tromey.com>
3437 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3438 (read_file_scope, dwarf2_get_pc_bounds)
3439 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3440 (read_structure_type, handle_struct_member_die)
3441 (read_enumeration_type, read_array_type, read_set_type)
3442 (read_tag_pointer_type, read_tag_reference_type)
3443 (read_subroutine_type, read_base_type, read_subrange_type)
3444 (read_full_die_1, partial_die_info::read)
3445 (partial_die_info::read, by, new_symbol)
3446 (dwarf2_const_value_data, dwarf2_const_value_attr)
3447 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3448 (prepare_one_comp_unit): Update.
3449 * dwarf2/attribute.h (DW_UNSND): Remove.
3451 2020-09-29 Tom Tromey <tom@tromey.com>
3453 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3454 (read_subroutine_type, partial_die_info::read)
3455 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3456 (dwarf2_add_member_fn): Update.
3457 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3458 * dwarf2/attribute.c (attribute::as_boolean): New method.
3460 2020-09-29 Tom Tromey <tom@tromey.com>
3462 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3463 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3465 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3467 2020-09-29 Tom Tromey <tom@tromey.com>
3469 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3470 the attribute's form.
3472 2020-09-29 Tom Tromey <tom@tromey.com>
3474 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3475 (dwarf2_add_member_fn): Update.
3476 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3477 * dwarf2/attribute.c (attribute::defaulted): New method, from
3478 is_valid_DW_AT_defaulted.
3480 2020-09-29 Tom Tromey <tom@tromey.com>
3482 * dwarf2/read.c (dw2_get_file_names_reader)
3483 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3484 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3485 (dwarf2_symbol_mark_computed): Use as_unsigned.
3486 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3488 <form_is_section_offset>: Update comment.
3490 2020-09-29 Tom Tromey <tom@tromey.com>
3492 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3493 dwarf2_default_access_attribute. Look up attribute.
3494 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3497 2020-09-29 Tom Tromey <tom@tromey.com>
3499 * dwarf2/read.c (skip_one_die): Update.
3500 (read_full_die_1): Change how reprocessing is done.
3501 (partial_die_info::read): Update.
3502 (read_attribute_value): Remove need_reprocess parameter.
3503 (read_attribute): Likewise.
3504 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3507 2020-09-29 Tom Tromey <tom@tromey.com>
3509 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3510 (dwarf2_const_value_attr, dump_die_shallow)
3511 (dwarf2_fetch_constant_bytes): Update.
3512 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3514 <set_address>: New method.
3516 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3517 (attribute::as_string, attribute::as_address): Add assert.
3519 2020-09-29 Tom Tromey <tom@tromey.com>
3521 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3522 (read_attribute_reprocess, read_attribute_value): Update.
3523 (read_attribute): Clear requires_reprocessing.
3524 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3525 form_requires_reprocessing>: New methods.
3526 <string_init>: Clear requires_reprocessing.
3527 <set_unsigned_reprocess>: New method.
3528 <name>: Shrink by one bit.
3529 <requires_reprocessing>: New member.
3530 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3533 2020-09-29 Tom Tromey <tom@tromey.com>
3535 * dwarf2/read.c (read_attribute_value): Update.
3536 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3537 set_unsigned>: New methods.
3538 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3540 2020-09-29 Tom Tromey <tom@tromey.com>
3542 * dwarf2/read.c (get_alignment, read_array_order)
3543 (read_attribute_value, dwarf2_const_value_attr)
3544 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3545 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3549 2020-09-29 Tom Tromey <tom@tromey.com>
3551 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3552 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3554 * dwarf2/attribute.h (struct attribute) <as_signature,
3555 set_signature>: New methods.
3556 (DW_SIGNATURE): Remove.
3558 2020-09-29 Tom Tromey <tom@tromey.com>
3560 * dwarf2/read.c (read_call_site_scope)
3561 (handle_data_member_location, dwarf2_add_member_fn)
3562 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3563 (partial_die_info::read, read_attribute_value)
3564 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3565 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3566 (dwarf2_symbol_mark_computed): Update.
3567 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3570 * dwarf2/attribute.c (attribute::form_is_block): Add
3573 2020-09-29 Tom Tromey <tom@tromey.com>
3575 * dwarf2/read.c (read_cutu_die_from_dwo)
3576 (read_attribute_reprocess, read_attribute_value, read_attribute)
3577 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3578 (dwarf2_fetch_constant_bytes): Update.
3579 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3580 <set_string_noncanonical, set_string_canonical>: New methods.
3581 <string_is_canonical>: Update comment.
3582 <canonical_string_p>: Add assert.
3583 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3584 * dwarf2/attribute.c (attribute::form_is_string): New method.
3585 (attribute::string): Use it.
3587 2020-09-29 Tom Tromey <tom@tromey.com>
3589 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3590 (dump_die_shallow): Use canonical_string_p.
3591 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3594 2020-09-29 Tom Tromey <tom@tromey.com>
3596 * dwarf2/read.c (partial_die_info::read)
3597 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3598 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3599 attribute::as_string.
3601 2020-09-29 Tom Tromey <tom@tromey.com>
3603 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3605 (attribute::string): Don't use DW_STRING.
3606 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3607 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3609 2020-09-29 Tom Tromey <tom@tromey.com>
3611 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3612 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3613 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3614 * dwarf2/attribute.h (struct attribute): Rename methods.
3615 * dwarf2/attribute.c (attribute::as_address): Rename from
3617 (attribute::as_string): Rename from value_as_string.
3619 2020-09-29 Tom Tromey <tom@tromey.com>
3621 * dwarf2/read.c (partial_die_info::read) <case
3622 DW_AT_linkage_name>: Use value_as_string.
3623 (dwarf2_string_attr): Use value_as_string.
3624 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3626 * dwarf2/attribute.c (attribute::value_as_string): New method.
3628 2020-09-29 Pedro Alves <pedro@palves.net>
3630 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3631 defined before using '#pragma GCC diagnostic' instead of checking
3634 2020-09-28 Tom Tromey <tom@tromey.com>
3636 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3637 (handle_signal_stop): Update.
3638 * procfs.c (procfs_target::insert_watchpoint): Update.
3639 * target.h (target_have_steppable_watchpoint): Now a function.
3641 2020-09-28 Tom Tromey <tom@tromey.com>
3643 * infrun.c (set_schedlock_func): Update.
3644 * target.h (target_can_lock_scheduler): Now a function.
3646 2020-09-28 Tom Tromey <tom@tromey.com>
3648 * inferior.h (class inferior) <has_execution>: Update.
3649 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3650 * valops.c (find_function_in_inferior)
3651 (value_allocate_space_in_inferior): Update.
3652 * top.c (kill_or_detach): Update.
3653 * target.c (target_preopen, set_target_permissions): Update.
3654 (target_has_execution_current): Remove.
3655 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3657 * solib.c (update_solib_list, reload_shared_libraries): Update.
3658 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3659 * solib-dsbt.c (enable_break): Update.
3660 * score-tdep.c (score7_fetch_inst): Update.
3661 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3663 * remote.c (remote_target::start_remote)
3664 (remote_target::remote_check_symbols, remote_target::open_1)
3665 (remote_target::remote_detach_1, remote_target::verify_memory)
3666 (remote_target::xfer_partial, remote_target::read_description)
3667 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3668 * record-full.c (record_full_open_1): Update.
3669 * record-btrace.c (record_btrace_target_open): Update.
3670 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3671 (value_nsstring): Update.
3672 * linux-thread-db.c (add_thread_db_info)
3673 (thread_db_find_new_threads_silently, check_thread_db_callback)
3674 (try_thread_db_load_1, record_thread): Update.
3675 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3677 * linux-fork.c (checkpoint_command): Update.
3678 * infrun.c (set_non_stop, set_observer_mode)
3679 (check_multi_target_resumption, for_each_just_stopped_thread)
3680 (maybe_remove_breakpoints, normal_stop)
3681 (class infcall_suspend_state): Update.
3682 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3683 (info_program_command, attach_command): Update.
3684 * infcall.c (call_function_by_hand_dummy): Update.
3685 * inf-loop.c (inferior_event_handler): Update.
3686 * gcore.c (gcore_command, derive_heap_segment): Update.
3687 * exec.c (exec_file_command): Update.
3688 * eval.c (evaluate_subexp): Update.
3689 * compile/compile.c (compile_to_object): Update.
3690 * cli/cli-dump.c (restore_command): Update.
3691 * breakpoint.c (update_watchpoint)
3692 (update_inserted_breakpoint_locations)
3693 (insert_breakpoint_locations, get_bpstat_thread): Update.
3694 * target.h (target_has_execution): Remove macro.
3695 (target_has_execution_current): Don't declare.
3696 (target_has_execution): Rename from target_has_execution_1. Add
3699 2020-09-28 Tom Tromey <tom@tromey.com>
3701 * mi/mi-main.c (exec_reverse_continue)
3702 (mi_cmd_list_target_features): Update.
3703 * infrun.c (set_exec_direction_func): Update.
3704 * target.c (default_execution_direction): Update.
3705 * reverse.c (exec_reverse_once): Update.
3706 * target.h (target_can_execute_reverse): Now a function.
3708 2020-09-28 Tom Tromey <tom@tromey.com>
3710 * tui/tui-regs.c (tui_get_register)
3711 (tui_data_window::show_registers): Update.
3712 * thread.c (scoped_restore_current_thread::restore)
3713 (scoped_restore_current_thread::scoped_restore_current_thread):
3715 * regcache-dump.c (regcache_print): Update.
3716 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3718 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3719 * mep-tdep.c (current_me_module, current_options): Update.
3720 * linux-thread-db.c (thread_db_load): Update.
3721 * infcmd.c (registers_info, info_vector_command)
3722 (info_float_command): Update.
3723 * ia64-tdep.c (ia64_frame_prev_register)
3724 (ia64_sigtramp_frame_prev_register): Update.
3725 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3726 * gcore.c (derive_stack_segment): Update.
3727 * frame.c (get_current_frame, has_stack_frames): Update.
3728 * findvar.c (language_defn::read_var_value): Update.
3729 * arm-tdep.c (arm_pc_is_thumb): Update.
3730 * target.c (target_has_registers): Rename from
3731 target_has_registers_1.
3732 * target.h (target_has_registers): Remove macro.
3733 (target_has_registers): Rename from target_has_registers_1.
3735 2020-09-28 Tom Tromey <tom@tromey.com>
3737 * windows-tdep.c (tlb_make_value): Update.
3738 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3739 * thread.c (scoped_restore_current_thread::restore)
3740 (scoped_restore_current_thread::scoped_restore_current_thread)
3741 (thread_command): Update.
3742 * stack.c (backtrace_command_1, frame_apply_level_command)
3743 (frame_apply_all_command, frame_apply_command): Update.
3744 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3746 * gcore.c (derive_stack_segment): Update.
3747 * frame.c (get_current_frame, has_stack_frames): Update.
3748 * auxv.c (info_auxv_command): Update.
3749 * ada-tasks.c (ada_build_task_list): Update.
3750 * target.c (target_has_stack): Rename from target_has_stack_1.
3751 * target.h (target_has_stack): Remove macro.
3752 (target_has_stack): Rename from target_has_stack_1.
3754 2020-09-28 Tom Tromey <tom@tromey.com>
3756 * target.c (target_has_memory): Rename from target_has_memory_1.
3757 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3758 * thread.c (scoped_restore_current_thread::restore)
3759 (scoped_restore_current_thread::scoped_restore_current_thread):
3761 * frame.c (get_current_frame, has_stack_frames): Update.
3762 * target.h (target_has_memory): Remove macro.
3763 (target_has_memory): Rename from target_has_memory_1.
3765 2020-09-28 Tom Tromey <tom@tromey.com>
3767 * target.c (target_has_all_memory_1): Remove.
3768 * target.h (target_has_all_memory): Remove define.
3769 (target_has_all_memory_1): Don't declare.
3771 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3773 * ser-base.c: Adjust comments formatting.
3775 2020-09-27 Tom Tromey <tom@tromey.com>
3778 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3780 2020-09-27 Tom Tromey <tom@tromey.com>
3783 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3785 2020-09-27 Tom Tromey <tom@tromey.com>
3787 * unittests/tui-selftests.c: Update.
3788 * tui/tui-winsource.h (struct tui_source_window_base)
3789 <extra_margin, show_line_number, refresh_pad>: New methods.
3790 <m_max_length, m_pad>: New members.
3791 (tui_copy_source_line): Update.
3792 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3793 first_col, line_width, ndigits parameters. Add length.
3794 (tui_source_window_base::show_source_line): Write to pad. Line
3796 (tui_source_window_base::refresh_pad): New method.
3797 (tui_source_window_base::show_source_content): Write to pad. Call
3799 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3801 (tui_source_window_base::update_exec_info): Call
3803 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3805 <m_digits>: New member.
3806 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3808 (tui_source_window::show_line_number): New method.
3809 * tui/tui-io.h (tui_puts): Fix comment.
3810 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3813 2020-09-27 Tom Tromey <tom@tromey.com>
3815 * tui/tui-winsource.c
3816 (tui_source_window_base::set_is_exec_point_at): Don't call
3819 2020-09-27 Tom Tromey <tom@tromey.com>
3821 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3824 <cursor_x, cursor_y>: Remove.
3825 <m_inner_window>: New member.
3826 (tui_py_window::rerender): Create inner window.
3827 (tui_py_window::output): Write to inner window.
3829 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3832 * cli/cli-script.c (execute_control_commands): don't set
3833 instream to nullptr here as this breaks the from_tty argument
3834 to gdb.execute in Python.
3835 (execute_user_command): set instream to nullptr here instead.
3837 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3839 * infrun.h (infrun_debug_printf): Fix formatting.
3840 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3842 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3844 * compile/compile-object-load.h (struct munmap_list): Add
3845 explicitly-defined move constructor.
3847 2020-09-24 Tom Tromey <tromey@adacore.com>
3850 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3852 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3853 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3854 (tui_prev_win): Rewrite.
3856 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3858 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3859 in WOW64 processes as SIGINT.
3860 * nat/windows-nat.h: Make wow64_process a shared variable.
3861 * windows-nat.c: Remove static wow64_process variable.
3863 2020-09-23 Tom Tromey <tom@tromey.com>
3866 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3867 offset and bit size.
3868 * printcmd.c (print_scalar_formatted): Handle zero-length
3870 (print_scalar_formatted): Use bit_size_differs_p.
3871 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3873 (union type_specific): <int_stuff>: New member.
3874 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3876 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3877 TYPE_SPECIFIC_FIELD.
3878 (recursive_dump_type, copy_type_recursive): Update.
3879 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3880 DW_AT_data_bit_offset.
3882 2020-09-23 Tom Tromey <tom@tromey.com>
3884 * utils.h (class gdb_argv): Add move operators.
3885 <append>: New methods.
3886 * compile/compile.c (build_argc_argv): Remove.
3887 (compile_args_argc): Remove.
3888 (compile_args_argv): Change type.
3889 (set_compile_args): Simplify.
3890 (append_args): Remove.
3891 (filter_args): Remove argcp parameter.
3892 (get_args): Return gdb_argv. Simplify.
3893 (compile_to_object): Update.
3895 2020-09-23 Tom Tromey <tom@tromey.com>
3897 * compile/compile-object-run.c (do_module_cleanup)
3898 <~do_module_cleanup> :Remove.
3899 (do_module_cleanup): Update.
3900 * compile/compile-object-load.h (struct munmap_list): Add move
3901 assignment operator.
3902 <source_file>: Now a std::string.
3903 <munmap_list>: Rename. No longer a pointer.
3904 * compile/compile-object-load.c (struct setup_sections_data): Add
3906 <setup_one_section>: Declare.
3907 <munmap_list>: Move earlier.
3908 <m_bfd>: New member.
3909 <m_last_size, m_last_section_first, m_last_prot,
3910 m_last_max_alignment>: Rename, add initializers where needed.
3911 (setup_sections_data::setup_one_section): Rename from
3912 setup_sections. Update.
3913 (compile_object_load): Update. Don't use bfd_map_over_sections.
3915 2020-09-23 Tom Tromey <tom@tromey.com>
3917 * compile/compile-object-run.c (struct do_module_cleanup): Add
3918 parameters to constructor. Update destructor.
3919 <source_file, scope, scope_data, out_value_type, out_value_addr,
3920 munmap_list_head, objfile_name_string>: Remove.
3921 <module>: New member.
3922 (do_module_cleanup): Update.
3923 (compile_object_run): Update.
3925 2020-09-23 Tom Tromey <tom@tromey.com>
3927 * compile/compile.c (eval_compile_command): Update.
3928 * compile/compile-object-run.h (compile_object_run): Take a
3930 * compile/compile-object-run.c (compile_object_run): Take a
3932 * compile/compile-object-load.h (struct compile_module): Add
3933 constructor, destructor.
3934 (compile_module_up): New typedef.
3935 (compile_object_load): Return compile_object_up.
3936 * compile/compile-object-load.c (compile_object_load): Return
3939 2020-09-23 Tom Tromey <tom@tromey.com>
3941 * compile/compile-object-run.c (struct do_module_cleanup): Add
3942 constructor, destructor.
3943 <objfile_name_string>: Don't use struct hack.
3944 (do_module_cleanup): Use delete.
3945 (compile_object_run): Use new.
3947 2020-09-23 Tom Tromey <tom@tromey.com>
3949 * compile/compile-cplus-types.c
3950 (compile_cplus_convert_struct_or_union): Use std::vector.
3951 (compile_cplus_convert_func): Likewise.
3952 * compile/compile-c-types.c (convert_func): Use std::vector.
3954 2020-09-21 Tom Tromey <tromey@adacore.com>
3956 * sparc-tdep.c (sparc32_skip_prologue): Use
3957 skip_prologue_using_sal.
3959 2020-09-19 Tom Tromey <tom@tromey.com>
3961 * symfile.c (add_section_size_callback): Remove.
3962 (load_one_section): Rename from load_section_callback. Change
3964 (generic_load): Use foreach.
3966 2020-09-19 Tom Tromey <tom@tromey.com>
3968 * exec.c (add_to_section_table): Remove.
3969 (build_section_table): Use foreach.
3971 2020-09-19 Tom Tromey <tom@tromey.com>
3973 * elfread.c (elf_locate_sections): Change parameters.
3974 (elf_symfile_read): Use foreach.
3976 2020-09-19 Tom Tromey <tom@tromey.com>
3978 * cli/cli-dump.c (struct callback_data): Remove.
3979 (restore_one_section): Rename from restore_section_callback.
3981 (restore_binary_file): Change parameters.
3982 (restore_command): Use foreach.
3984 2020-09-19 Tom Tromey <tom@tromey.com>
3986 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3987 (gcore_copy_callback): Likewise.
3988 (gcore_memory_sections): Use foreach.
3990 2020-09-19 Tom Tromey <tom@tromey.com>
3992 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3993 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3995 (generic_elf_osabi_sniffer): Use foreach.
3996 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3997 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3999 2020-09-19 Tom Tromey <tom@tromey.com>
4001 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4002 (dwarf2_get_dwz_file): Use foreach.
4003 (dwarf2_locate_dwo_sections): Change parameters.
4004 (open_and_init_dwo_file): Use foreach.
4005 (dwarf2_locate_common_dwp_sections): Change parameters.
4006 (open_and_init_dwp_file): Use foreach.
4008 2020-09-19 Tom Tromey <tom@tromey.com>
4010 * symfile.h: (find_lowest_section): Don't declare.
4011 * symfile.c (find_lowest_section): Now static. Change
4013 (struct place_section_arg): Remove.
4014 (place_section): Change parameters.
4015 (addr_info_make_relative): Use foreach.
4016 (symfile_dummy_outputs): Remove.
4017 (default_symfile_relocate): Use foreach.
4019 2020-09-19 Tom Tromey <tom@tromey.com>
4021 * objfiles.c (add_to_objfile_sections): Rename from
4022 add_to_objfile_sections_full.
4023 (add_to_objfile_sections): Remove.
4024 (build_objfile_section_table): Use foreach.
4026 2020-09-19 Tom Tromey <tom@tromey.com>
4028 * stap-probe.c (get_stap_base_address_1): Remove.
4029 (get_stap_base_address): Use foreach.
4031 2020-09-19 Tom Tromey <tom@tromey.com>
4033 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4035 (gdb_bfd_close_or_warn): Use foreach.
4037 2020-09-19 Tom Tromey <tom@tromey.com>
4039 * corelow.c (add_to_thread_list): Change parameters.
4040 (core_target_open): Use foreach.
4042 2020-09-19 Tom Tromey <tom@tromey.com>
4044 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4047 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4049 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4052 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4054 * eval.c: Remove 'f-lang.h' include.
4055 (value_f90_subarray): Moved to f-lang.c.
4056 (eval_call): Renamed to...
4057 (evaluate_subexp_do_call): ...this, is no longer static, header
4058 comment moved into header file.
4059 (evaluate_funcall): Update call to eval_call.
4060 (skip_undetermined_arglist): Moved to f-lang.c.
4061 (fortran_value_subarray): Likewise.
4062 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4063 moved to evaluate_subexp_f.
4064 (calc_f77_array_dims): Moved to f-lang.c
4065 * expprint.c (print_subexp_funcall): New function.
4066 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4067 moved to print_subexp_f, OP_FUNCALL uses new function.
4068 (dump_subexp_body_funcall): New function.
4069 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4070 moved to dump_subexp_f, OP_FUNCALL uses new function.
4071 * expression.h (evaluate_subexp_do_call): Declare.
4072 * f-lang.c (value_f90_subarray): Moved from eval.c.
4073 (skip_undetermined_arglist): Likewise.
4074 (calc_f77_array_dims): Likewise.
4075 (fortran_value_subarray): Likewise.
4076 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4077 (operator_length_f): Likewise.
4078 (print_subexp_f): Likewise.
4079 (dump_subexp_body_f): Likewise.
4080 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4081 declaration of this operation to here.
4082 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4083 support moved to operator_length_f.
4084 * parser-defs.h (dump_subexp_body_funcall): Declare.
4085 (print_subexp_funcall): Declare.
4086 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4087 fortran-operator.def.
4089 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4091 * eval.c (fortran_value_subarray): New function, content is taken
4093 (evaluate_subexp_standard): ...here, in two places. Now arrays
4094 and strings both call the new function.
4095 (calc_f77_array_dims): Add header comment, handle strings.
4097 2020-09-18 Victor Collod <vcollod@nvidia.com>
4100 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4101 (i386_analyze_prologue): Call i386_skip_endbr.
4103 2020-09-18 Tom Tromey <tromey@adacore.com>
4105 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4106 (windows_nat_target::wait): Update.
4107 * target/wait.h (enum target_wait_flag): New. Use
4108 DEF_ENUM_FLAGS_TYPE.
4109 * target/target.h (target_wait): Change type of options.
4110 * target.h (target_options_to_string, default_target_wait):
4112 (struct target_ops) <wait>: Change type of options.
4113 * target.c (target_wait, default_target_wait, do_option): Change
4115 (target_options_to_string): Likewise.
4116 * target-delegates.c: Rebuild.
4117 * target-debug.h (target_debug_print_target_wait_flags): Rename
4118 from target_debug_print_options.
4119 * sol-thread.c (class sol_thread_target) <wait>: Update.
4120 (sol_thread_target::wait): Update.
4121 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4122 (rs6000_nat_target::wait): Update.
4123 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4125 (remote_target::wait_ns, remote_target::wait_as): Change type of
4127 (remote_target::wait): Update.
4128 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4129 (gdbsim_target::wait): Update.
4130 * record-full.c (class record_full_base_target) <wait>: Update.
4131 (record_full_wait_1): Change type of "options".
4132 (record_full_base_target::wait): Update.
4133 * record-btrace.c (class record_btrace_target) <wait>: Update.
4134 (record_btrace_target::wait): Update.
4135 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4137 (ravenscar_thread_target::wait): Update.
4138 * procfs.c (class procfs_target) <wait>: Update.
4139 (procfs_target::wait): Update.
4140 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4141 * obsd-nat.c (obsd_nat_target::wait): Update.
4142 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4143 (nto_procfs_target::wait): Update.
4144 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4145 * nbsd-nat.c (nbsd_wait): Change type of "options".
4146 (nbsd_nat_target::wait): Update.
4147 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4148 (thread_db_target::wait): Update.
4149 * linux-nat.h (class linux_nat_target) <wait>: Update.
4150 * linux-nat.c (linux_nat_target::wait): Update.
4151 (linux_nat_wait_1): Update.
4152 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4154 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4155 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4156 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4157 (go32_nat_target::wait): Update.
4158 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4159 * gnu-nat.c (gnu_nat_target::wait): Update.
4160 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4161 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4162 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4163 * darwin-nat.c (darwin_nat_target::wait): Update.
4164 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4165 (bsd_uthread_target::wait): Update.
4166 * aix-thread.c (class aix_thread_target) <wait>: Update.
4167 (aix_thread_target::wait): Update.
4169 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4171 * compile/compile-object-run.c (create_copied_type_recursive): New
4173 (compile_object_run): Use new function.
4175 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4177 * NEWS: Mention x86_64 Cygwin core file support.
4179 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4181 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4182 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4184 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4186 * windows-tdep.h: Add prototypes.
4187 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4188 (i386_windows_core_pid_to_str): Move and rename ...
4189 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4190 (windows_core_pid_to_str): ... and here.
4191 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4193 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4194 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4195 (amd64_windows_init_abi_common): ... and register.
4197 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4199 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4200 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4202 2020-09-18 Pedro Alves <pedro@palves.net>
4205 * thread.c (thread_find_command): Switch inferior before calling
4208 2020-09-17 Tom Tromey <tromey@adacore.com>
4210 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4211 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4212 (tdesc_arch_data_up): New typedef.
4213 (tdesc_use_registers, tdesc_data_alloc): Update.
4214 (tdesc_data_cleanup): Don't declare.
4215 * target-descriptions.c (tdesc_data_alloc): Return a
4217 (tdesc_arch_data_deleter::operator()): Rename from
4218 tdesc_data_cleanup. Change argument type.
4219 (tdesc_use_registers): Change early_data to an rvalue reference.
4220 (tdesc_use_registers): Don't use delete.
4221 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4222 * s390-tdep.c (s390_gdbarch_init): Update.
4223 * rx-tdep.c (rx_gdbarch_init): Update.
4224 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4225 * riscv-tdep.c (riscv_gdbarch_init): Update.
4226 * or1k-tdep.c (or1k_gdbarch_init): Update.
4227 * nios2-tdep.c (nios2_gdbarch_init): Update.
4228 * nds32-tdep.c (nds32_gdbarch_init): Update.
4229 * mips-tdep.c (mips_gdbarch_init): Update.
4230 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4231 * m68k-tdep.c (m68k_gdbarch_init): Update.
4232 * i386-tdep.c (i386_gdbarch_init): Update.
4233 * arm-tdep.c (arm_gdbarch_init): Update.
4234 * arc-tdep.c (arc_tdesc_init): Update.
4235 (arc_gdbarch_init): Update.
4236 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4238 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4240 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4241 for WOW64 processes.
4243 2020-09-17 Tom Tromey <tom@tromey.com>
4245 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4247 2020-09-17 Tom Tromey <tom@tromey.com>
4249 * value.c (preserve_values): Update.
4250 * python/py-type.c (save_objfile_types): Update.
4251 * guile/scm-type.c (save_objfile_types): Update.
4252 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4253 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4254 * compile/compile-object-run.c (compile_object_run): Update.
4256 2020-09-17 Tom Tromey <tom@tromey.com>
4258 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4260 <m_table>: Now htab_up.
4261 * typeprint.c (typedef_hash_table::recursively_update)
4262 (typedef_hash_table::add_template_parameters)
4263 (typedef_hash_table::typedef_hash_table): Update.
4264 (typedef_hash_table::~typedef_hash_table): Remove.
4265 (typedef_hash_table::typedef_hash_table)
4266 (typedef_hash_table::find_global_typedef)
4267 (typedef_hash_table::find_typedef): Update.
4269 2020-09-17 Tom Tromey <tom@tromey.com>
4271 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4273 2020-09-17 Tom Tromey <tom@tromey.com>
4275 * linespec.c (class decode_compound_collector)
4276 <~decode_compound_collector>: Remove.
4277 <m_unique_syms>: Now htab_up.
4278 (decode_compound_collector::operator ()): Update.
4279 (class symtab_collector) <~symtab_collector>: Remove.
4280 <m_symtab_table>: Now htab_up.
4281 (symtab_collector::operator ()): Update.
4283 2020-09-17 Tom Tromey <tom@tromey.com>
4285 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4286 (filename_seen_cache::clear): Update.
4287 (~filename_seen_cache): Remove.
4288 (filename_seen_cache::seen): Update.
4289 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4291 <~filename_seen_cache>: Remove.
4294 2020-09-17 Tom Tromey <tom@tromey.com>
4296 * completer.c (completion_tracker::discard_completions)
4297 (completion_tracker::~completion_tracker)
4298 (completion_tracker::maybe_add_completion)
4299 (completion_tracker::remove_completion)
4300 (completion_tracker::recompute_lowest_common_denominator)
4301 (completion_tracker::build_completion_result): Update.
4302 * completer.h (class completion_tracker) <have_completions>:
4304 <m_entries_hash>: Now htab_up.
4306 2020-09-17 Tom Tromey <tom@tromey.com>
4308 * breakpoint.c (ambiguous_names_p): Use htab_up.
4310 2020-09-17 Tom Tromey <tom@tromey.com>
4312 * auto-load.c (struct auto_load_pspace_info)
4313 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4314 <loaded_script_files, loaded_script_texts>: Change type to
4316 (~auto_load_pspace_info) Remove.
4317 (init_loaded_scripts_info, maybe_add_script_file)
4318 (maybe_add_script_text, auto_load_info_scripts): Update.
4320 2020-09-17 Tom Tromey <tromey@adacore.com>
4322 * c-exp.y (name_obstack): Now static.
4324 2020-09-17 Chungyi Chi <demonic@csie.io>
4326 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4328 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4330 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4331 (add_solib_catchpoint): Likewise.
4332 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4334 (add_solib_catchpoint): Change int parameter/variable to bool.
4335 (catch_load_or_unload): Likewise.
4336 (init_catchpoint): Likewise.
4337 (create_fork_vfork_event_catchpoint): Likewise.
4338 (catch_fork_command_1): Likewise.
4339 (catch_exec_command_1): Likewise.
4341 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4343 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4344 Change instance_flags to m_instance_flags.
4346 2020-09-16 Tom Tromey <tromey@adacore.com>
4349 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4351 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4353 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4355 (fbsd_nat_target::insert_exec_catchpoint)
4356 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4357 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4358 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4360 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4362 * configure.ac: Remove check for kinfo_getvmmap().
4363 * configure, config.in: Regenerate.
4364 * fbsd-nat.c (fbsd_read_mapping): Remove
4365 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4366 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4367 kinfo_get_vmmap() are always present.
4369 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4371 * fbsd-nat.c: Always include support for
4372 TARGET_OBJECT_SIGNAL_INFO.
4374 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4376 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4377 sysctl and remove procfs fallback.
4379 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4381 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4382 * fbsd-nat.h: Likewise.
4384 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4386 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4389 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4391 * ada-lang.c (ada_language_data): Delete.
4392 (ada_language): Remove references to ada_language_data.
4393 * c-lang.c (c_language_data): Delete.
4394 (c_language): Remove references to c_language_data.
4395 (cplus_language_data): Delete.
4396 (cplus_language): Remove references to cplus_language_data.
4397 (asm_language_data): Delete.
4398 (asm_language): Remove references to asm_language_data.
4399 (minimal_language_data): Delete.
4400 (minimal_language): Remove references to minimal_language_data.
4401 * d-lang.c (d_language_data): Delete.
4402 (d_language): Remove references to d_language_data.
4403 * f-lang.c (f_language_data): Delete.
4404 (f_language): Remove references to f_language_data.
4405 * go-lang.c (go_language_data): Delete.
4406 (go_language): Remove references to go_language_data.
4407 * language.c (unknown_language_data): Delete.
4408 (unknown_language): Remove references to unknown_language_data.
4409 (auto_language_data): Delete.
4410 (auto_language): Remove references to auto_language_data.
4411 * language.h (language_data): Delete struct.
4412 (language_defn): No longer inherit from language_data.
4413 * m2-lang.c (m2_language_data): Delete.
4414 (m2_language): Remove references to m2_language_data.
4415 * objc-lang.c (objc_language_data): Delete.
4416 (objc_language): Remove references to objc_language_data.
4417 * opencl-lang.c (opencl_language_data): Delete.
4418 (opencl_language): Remove references to opencl_language_data.
4419 * p-lang.c (pascal_language_data): Delete.
4420 (pascal_language): Remove references to pascal_language_data.
4421 * rust-lang.c (rust_language_data): Delete.
4422 (rust_language): Remove references to rust_language_data.
4424 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4426 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4428 (ada_language::opcode_print_table): New member function.
4429 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4430 (c_language::opcode_print_table): New member function.
4431 (cplus_language_data): Remove la_op_print_tab initializer.
4432 (cplus_language::opcode_print_table): New member function.
4433 (asm_language_data): Remove la_op_print_tab initializer.
4434 (asm_language::opcode_print_table): New member function.
4435 (minimal_language_data): Remove la_op_print_tab initializer.
4436 (minimal_language::opcode_print_table): New member function.
4437 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4438 (d_language::opcode_print_table): New member function.
4439 * expprint.c (print_subexp_standard): Update call to
4441 (op_string): Likewise.
4442 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4443 (f_language::opcode_print_table): New member function.
4444 * go-lang.c (go_language_data): Remove la_op_print_tab
4446 (go_language::opcode_print_table): New member function.
4447 * language.c (unknown_language_data): Remove la_op_print_tab
4449 (unknown_language::opcode_print_table): New member function.
4450 (auto_language_data): Remove la_op_print_tab initializer.
4451 (auto_language::opcode_print_table): New member function.
4452 * language.h (language_data): Remove la_op_print_tab field.
4453 (language_defn::opcode_print_table): Declare new member function.
4454 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4456 (m2_language::opcode_print_table): New member function.
4457 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4459 (objc_language::opcode_print_table): New member function.
4460 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4462 (opencl_language::opcode_print_table): New member function.
4463 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4465 (pascal_language::opcode_print_table): New member function.
4466 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4468 (rust_language::opcode_print_table): New member function.
4470 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4472 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4473 (ada_language::expression_ops): New member function.
4474 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4475 (c_language::expression_ops): New member function.
4476 (cplus_language_data): Remove la_exp_desc initializer.
4477 (cplus_language::expression_ops): New member function.
4478 (asm_language_data): Remove la_exp_desc initializer.
4479 (asm_language::expression_ops): New member function.
4480 (minimal_language_data): Remove la_exp_desc initializer.
4481 (minimal_language::expression_ops): New member function.
4482 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4483 (d_language::expression_ops): New member function.
4484 * eval.c (evaluate_subexp): Update call to expression_ops.
4485 * expprint.c (print_subexp): Likewise.
4486 (op_name): Likewise.
4487 (dump_subexp_body): Likewise.
4488 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4489 (f_language::expression_ops): New member function.
4490 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4491 (go_language::expression_ops): New member function.
4492 * language.c (language_defn::expression_ops): New function.
4493 (unknown_language_data): Remove la_exp_desc initializer.
4494 (auto_language_data): Likewise.
4495 * language.h (language_data): Remove la_exp_desc field.
4496 (language_defn::expression_ops): Declare new member function.
4497 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4498 (m2_language::expression_ops): New member function.
4499 * objc-lang.c (objc_language_data): Remove la_exp_desc
4501 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4503 (opencl_language::expression_ops): New member function.
4504 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4505 * parse.c (operator_length): Update call to expression_ops.
4506 (exp_iterate): Likewise.
4507 * rust-lang.c (rust_language_data): Remove la_exp_desc
4509 (ruse_language::expression_ops): New member function.
4511 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4513 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4515 (ada_language::varobj_ops): New member function.
4516 * c-lang.c (c_language_data): Remove la_varobj_ops
4518 (cplus_language_data): Likewise.
4519 (cplus_language::varobj_ops): New member function.
4520 (asm_language_data): Remove la_varobj_ops initializer.
4521 (minimal_language_data): Likewise.
4522 * d-lang.c (d_language_data): Likewise.
4523 * f-lang.c (f_language_data): Likewise.
4524 * go-lang.c (go_language_data): Likewise.
4525 * language.c (language_defn::varobj_ops): New function.
4526 (unknown_language_data): Remove la_varobj_ops
4528 (auto_language_data): Likewise.
4529 * language.h (language_data): Remove la_varobj_ops field.
4530 (language_defn::varobj_ops): Declare new member function.
4531 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4532 * objc-lang.c (objc_language_data): Likewise.
4533 * opencl-lang.c (opencl_language_data): Likewise.
4534 * p-lang.c (pascal_language_data): Likewise.
4535 * rust-lang.c (rust_language_data): Likewise.
4536 * varobj.c (varobj_create): Update call to varobj_ops.
4537 * varobj.h (default_varobj_ops): Delete define.
4539 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4541 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4543 * c-lang.c (c_language_data): Likewise.
4544 (c_language::macro_expansion): New member function.
4545 (cplus_language_data): Likewise.
4546 (cplus_language::macro_expansion): New member function.
4547 (asm_language_data): Likewise.
4548 (asm_language::macro_expansion): New member function.
4549 (minimal_language_data): Likewise.
4550 (minimal_language::macro_expansion): New member function.
4551 * d-lang.c (d_language_data): Remove la_macro_expansion
4553 * f-lang.c (f_language_data): Likewise.
4554 * go-lang.c (go_language_data): Likewise.
4555 * language.c (unknown_language_data): Likewise.
4556 (auto_language_data): Likewise.
4557 * language.h (language_data): Remove la_macro_expansion field.
4558 (language_defn::macro_expansion): New member function.
4559 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4561 * objc-lang.c (objc_language_data): Likewise.
4562 (objc_language::macro_expansion): New member function.
4563 * opencl-lang.c (opencl_language_data): Likewise.
4564 (opencl_language::macro_expansion): New member function.
4565 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4567 * rust-lang.c (rust_language_data): Likewise.
4568 * symtab.c (default_collect_symbol_completion_matches_break_on):
4569 Update call to macro_expansion.
4571 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4573 * ada-lang.c (ada_language_data): Remove la_array_ordering
4575 * c-lang.c (c_language_data): Likewise.
4576 (cplus_language_data): Likewise.
4577 (asm_language_data): Likewise.
4578 (minimal_language_data): Likewise.
4579 * d-lang.c (d_language_data): Likewise.
4580 * dwarf2/read.c (read_array_order): Update for call to
4582 * f-lang.c (f_language_data): Remove la_array_ordering
4584 (f_language::array_ordering): New member function.
4585 * go-lang.c (go_language_data): Remove la_array_ordering
4587 * language.c (unknown_language_data): Likewise.
4588 (auto_language_data): Likewise.
4589 * language.h (language_data): Delete la_array_ordering field.
4590 (language_defn::array_ordering): New member function.
4591 * m2-lang.c (m2_language_data): Remove la_array_ordering
4593 * objc-lang.c (objc_language_data): Likewise.
4594 * opencl-lang.c (opencl_language_data): Likewise.
4595 * p-lang.c (pascal_language_data): Likewise.
4596 * rust-lang.c (rust_language_data): Likewise.
4598 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4600 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4602 * c-lang.c (c_language_data): Likewise.
4603 (cplus_language_data): Likewise.
4604 (asm_language_data): Likewise.
4605 (minimal_language_data): Likewise.
4606 * d-lang.c (d_language_data): Likewise.
4607 * f-lang.c (f_language_data): Likewise.
4608 (f_language::case_sensitivity): New member function.
4609 * go-lang.c (go_language_data): Remove la_case_sensitivity
4611 * language.c (enum case_mode): Moved here from language.h.
4612 (case_mode): Make static.
4613 (show_case_command): Update for case_sensitivity being a method.
4614 (set_case_command): Likewise.
4615 (set_range_case): Likewise.
4616 (unknown_language_data): Remove la_case_sensitivity initializer.
4617 (auto_language_data): Likewise.
4618 * language.h (case_mode): Delete, move enum declaration to
4620 (language_data): Delete la_case_sensitivity field.
4621 (language_defn::case_sensitivity): New member function.
4622 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4624 * objc-lang.c (objc_language_data): Likewise.
4625 * opencl-lang.c (opencl_language_data): Likewise.
4626 * p-lang.c (pascal_language_data): Likewise.
4627 * rust-lang.c (rust_language_data): Likewise.
4629 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4631 * ada-lang.c (ada_language_data): Remove la_range_check
4633 * c-lang.c (c_language_data): Likewise.
4634 (cplus_language_data): Likewise.
4635 (asm_language_data): Likewise.
4636 (minimal_language_data): Likewise.
4637 * d-lang.c (d_language_data): Likewise.
4638 * f-lang.c (f_language_data): Likewise.
4639 (f_language::range_checking_on_by_default): New member function.
4640 * go-lang.c (go_language_data): Remove la_range_check initializer.
4641 * language.c (enum range_mode): Moved here from language.h.
4642 (range_mode): Made static.
4643 (show_range_command): Update to use
4644 range_checking_on_by_default.
4645 (set_range_command): Likewise.
4646 (set_range_case): Likewise.
4647 (unknown_language_data): Remove la_range_check initializer.
4648 (auto_language_data): Likewise.
4649 * language.h (range_mode): Delete. Enum definition moved to
4651 (language_data): Remove la_range_check field.
4652 (language_defn::range_checking_on_by_default): New member
4654 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4655 (m2_language::range_checking_on_by_default): New member function.
4656 * objc-lang.c (objc_language_data): Remove la_range_check
4658 * opencl-lang.c (opencl_language_data): Likewise.
4659 * p-lang.c (pascal_language_data): Likewise.
4660 (pascal_language::range_checking_on_by_default): New member
4662 * rust-lang.c (rust_language_data): Remove la_range_check
4664 (rust_language::range_checking_on_by_default): New member
4667 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4669 * dwarf2/read.c (dwarf2_physname): Remove special case for
4671 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4674 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4676 * ada-lang.c (ada_language_data): Remove
4677 la_store_sym_names_in_linkage_form_p initializer.
4678 (ada_language::store_sym_names_in_linkage_form_p): New member
4680 * c-lang.c (c_language_data): Remove
4681 la_store_sym_names_in_linkage_form_p initializer.
4682 (c_language::store_sym_names_in_linkage_form_p): New member
4684 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4686 (asm_language_data): Likewise.
4687 (asm_language::store_sym_names_in_linkage_form_p): New member
4689 (minimal_language_data): Remove
4690 la_store_sym_names_in_linkage_form_p initializer.
4691 (minimal_language::store_sym_names_in_linkage_form_p): New member
4693 * d-lang.c (d_language_data): Remove
4694 la_store_sym_names_in_linkage_form_p initializer.
4695 * dwarf2/read.c (dwarf2_physname): Update call to
4696 store_sym_names_in_linkage_form_p.
4697 * f-lang.c (f_language_data): Remove
4698 la_store_sym_names_in_linkage_form_p initializer.
4699 * go-lang.c (go_language_data): Remove
4700 la_store_sym_names_in_linkage_form_p initializer.
4701 * language.c (unknown_language_data): Remove
4702 la_store_sym_names_in_linkage_form_p initializer.
4703 (unknown_language::store_sym_names_in_linkage_form_p): New member
4705 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4707 (auto_language::store_sym_names_in_linkage_form_p): New member
4709 * language.h (language_data): Remove
4710 la_store_sym_names_in_linkage_form_p member variable.
4711 (language_defn::store_sym_names_in_linkage_form_p): New member
4713 * m2-lang.c (m2_language_data): Remove
4714 la_store_sym_names_in_linkage_form_p initializer.
4715 * objc-lang.c (objc_language_data): Likewise.
4716 * opencl-lang.c (opencl_language_data): Likewise.
4717 * p-lang.c (pascal_language_data): Likewise.
4718 * rust-lang.c (rust_language_data): Likewise.
4720 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4722 * ada-lang.c (ada_language_data): Remove string_lower_bound
4724 * c-lang.c (c_language_data): Likewise.
4725 (cplus_language_data): Likewise.
4726 (asm_language_data): Likewise.
4727 (minimal_language_data): Likewise.
4728 * d-lang.c (d_language_data): Likewise.
4729 * f-lang.c (f_language_data): Likewise.
4730 * go-lang.c (go_language_data): Likewise.
4731 * language.c (unknown_language_data): Likewise.
4732 (auto_language_data): Likewise.
4733 * language.h (language_data): Remove string_lower_bound field.
4734 (language_defn::string_lower_bound): New member function.
4735 * m2-lang.c (m2_language_data): Remove string_lower_bound
4737 (m2_language::string_lower_bound): New member function.
4738 * objc-lang.c (objc_language_data): Remove string_lower_bound
4740 * opencl-lang.c (opencl_language_data): Likewise.
4741 * p-lang.c (pascal_language_data): Likewise.
4742 * rust-lang.c (rust_language_data): Likewise.
4743 * valops.c (value_cstring): Update call to string_lower_bound.
4744 (value_string): Likewise.
4745 * value.c (allocate_repeated_value): Likewise.
4747 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4749 * valops.c (value_repeat): Fix incorrect argument name in comment.
4751 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4753 * ada-lang.c (ada_language_data): Remove c_style_arrays
4755 (ada_language::c_style_arrays_p): New member fuction.
4756 * c-lang.c (c_language_data): Remove c_style_arrays
4758 (cplus_language_data): Likewise.
4759 (asm_language_data): Likewise.
4760 (minimal_language_data): Likewise.
4761 * d-lang.c (d_language_data): Likewise.
4762 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4763 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4764 (f_language::c_style_arrays_p): New member function.
4765 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4766 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4767 * language.c (unknown_language_data): Remove c_style_arrays
4769 (auto_language_data): Likewise.
4770 * language.h (language_data): Remove c_style_arrays field.
4771 (language_defn::c_style_arrays_p): New member function.
4772 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4773 (m2_language::c_style_arrays_p): New member function.
4774 * objc-lang.c (objc_language_data): Remove c_style_arrays
4776 * opencl-lang.c (opencl_language_data): Likewise.
4777 * p-lang.c (pascal_language_data): Likewise.
4778 * rust-lang.c (rust_language_data): Likewise.
4779 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4780 and update local variable to a bool.
4781 * valops.c (value_cast): Update call to c_style_arrays_p.
4782 (value_array): Likewise.
4783 * value.c (coerce_array): Likewise.
4785 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4787 * ada-lang.c (ada_language_data): Remove la_language initializer.
4788 * c-lang.c (c_language_data): Likewise.
4789 (cplus_language_data): Likewise.
4790 (asm_language_data): Likewise.
4791 (minimal_language_data): Likewise.
4792 * d-lang.c (d_language_data): Likewise.
4793 * f-lang.c (f_language_data): Likewise.
4794 * go-lang.c (go_language_data): Likewise.
4795 * language.c (unknown_language_data): Likewise.
4796 (auto_language_data): Likewise.
4797 * language.h (language_data): Remove la_language field.
4798 (language_defn::language_defn): Initialise la_language field.
4799 (language_defn::la_language): New member variable.
4800 * m2-lang.c (m2_language_data): Remove la_language field.
4801 * objc-lang.c (objc_language_data): Likewise.
4802 * opencl-lang.c (opencl_language_data): Likewise.
4803 * p-lang.c (pascal_language_data): Likewise.
4804 * rust-lang.c (rust_language_data): Likewise.
4806 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4808 * ada-lang.c (ada_extensions): Delete, moved into
4809 ada_language::filename_extensions.
4810 (ada_language_data): Remove la_filename_extensions initializer.
4811 (ada_language::filename_extensions): New member function.
4812 * c-lang.c (c_extensions): Delete, moved into
4813 c_language::filename_extensions.
4814 (c_language_data): Remove la_filename_extensions initializer.
4815 (c_language::filename_extensions): New member function.
4816 (cplus_extensions): Delete, moved into
4817 cplus_language::filename_extensions.
4818 (cplus_language_data): Remove la_filename_extensions initializer.
4819 (cplus_language::filename_extensions): New member function.
4820 (asm_extensions): Delete, moved into
4821 asm_language::filename_extensions.
4822 (asm_language_data): Remove la_filename_extensions initializer.
4823 (asm_language::filename_extensions): New member function.
4824 (minimal_language_data): Remove la_filename_extensions
4826 * d-lang.c (d_extensions): Delete, moved into
4827 d_language::filename_extensions.
4828 (d_language_data): Remove la_filename_extensions initializer.
4829 (d_language::filename_extensions): New member function.
4830 * f-lang.c (f_extensions): Delete, moved into
4831 f_language::filename_extensions.
4832 (f_language_data): Remove la_filename_extensions initializer.
4833 (f_language::filename_extensions): New member function.
4834 * go-lang.c (go_language_data): Remove la_filename_extensions
4836 * language.c (add_set_language_command): Update now that
4837 filename_extensions returns a vector.
4838 (unknown_language_data): Remove la_filename_extensions
4840 (auto_language_data): Likewise.
4841 * language.h (language_data): Remove la_filename_extensions field.
4842 (language_defn::filename_extensions): New member function.
4843 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4845 * objc-lang.c (objc_extensions): Delete, moved into
4846 objc_language::filename_extensions.
4847 (objc_language_data): Remove la_filename_extensions initializer.
4848 (objc_language::filename_extensions): New member function.
4849 * opencl-lang.c (opencl_language_data): Remove
4850 la_filename_extensions initializer.
4851 * p-lang.c (pascal_extensions): Delete, moved into
4852 pascal_language::filename_extensions.
4853 (pascal_language_data): Remove la_filename_extensions initializer.
4854 (pascal_language::filename_extensions): New member function.
4855 * rust-lang.c (rust_extensions): Delete, moved into
4856 rust_language::filename_extensions.
4857 (rust_language_data): Remove la_filename_extensions initializer.
4858 (rust_language::filename_extensions): New member function.
4859 * symfile.c (add_filename_language): Add new assert.
4861 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4863 * ada-lang.c (ada_language_data): Remove la_name and
4864 la_natural_name initializers.
4865 (ada_language::name): New member function.
4866 (ada_language::natural_name): New member function.
4867 * c-lang.c (c_language_data): Remove la_name and
4868 la_natural_name initializers.
4869 (c_language::name): New member function.
4870 (c_language::natural_name): New member function.
4871 (cplus_language_data): Remove la_name and
4872 la_natural_name initializers.
4873 (cplus_language::name): New member function.
4874 (cplus_language::natural_name): New member function.
4875 (asm_language_data): Remove la_name and
4876 la_natural_name initializers.
4877 (asm_language::name): New member function.
4878 (asm_language::natural_name): New member function.
4879 (minimal_language_data): Remove la_name and
4880 la_natural_name initializers.
4881 (minimal_language::name): New member function.
4882 (minimal_language::natural_name): New member function.
4883 * compile/compile.c (compile_to_object): Update call to
4884 lanugage_defn::name.
4885 * d-lang.c (d_language_data): Remove la_name and
4886 la_natural_name initializers.
4887 (d_language::name): New member function.
4888 (d_language::natural_name): New member function.
4889 * expprint.c (print_subexp_standard): Update call to
4890 language_defn::name.
4891 (dump_raw_expression): Likewise
4892 (dump_prefix_expression): Likewise.
4893 * f-lang.c (f_language_data): Remove la_name and
4894 la_natural_name initializers.
4895 (f_language::name): New member function.
4896 (f_language::natural_name): New member function.
4897 * go-lang.c (go_language_data): Remove la_name and
4898 la_natural_name initializers.
4899 (go_language::name): New member function.
4900 (go_language::natural_name): New member function.
4901 * language.c (show_language_command): Update call to
4902 language_defn::name.
4903 (set_language_command): Likewise.
4904 (language_enum): Likewise.
4905 (language_str): Likewise.
4906 (add_set_language_command): Likewise, use
4907 language_defn::natural_name in the doc string.
4908 (unknown_language_data): Remove la_name and
4909 la_natural_name initializers.
4910 (unknown_language::name): New member function.
4911 (unknown_language::natural_name): New member function.
4912 (auto_language_data): Remove la_name and
4913 la_natural_name initializers.
4914 (auto_language::name): New member function.
4915 (auto_language::natural_name): New member function.
4916 (language_lookup_primitive_type_as_symbol): Update call to
4917 language_defn::name.
4918 * language.h (language_data): Remove la_name and la_natural_name
4920 (language_defn::name): New member function.
4921 (language_defn::natural_name): New member function.
4922 * m2-lang.c (m2_language_data): Remove la_name and
4923 la_natural_name initializers.
4924 (m2_language::name): New member function.
4925 (m2_language::natural_name): New member function.
4926 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4927 language_defn::natural_name.
4928 * objc-lang.c (objc_language_data): Remove la_name and
4929 la_natural_name initializers.
4930 (objc_language::name): New member function.
4931 (objc_language::natural_name): New member function.
4932 * opencl-lang.c (opencl_language_data): Remove la_name and
4933 la_natural_name initializers.
4934 (opencl_language::name): New member function.
4935 (opencl_language::natural_name): New member function.
4936 * p-lang.c (pascal_language_data): Remove la_name and
4937 la_natural_name initializers.
4938 (pascal_language::name): New member function.
4939 (pascal_language::natural_name): New member function.
4940 * rust-lang.c (rust_language_data): Remove la_name and
4941 la_natural_name initializers.
4942 (rust_language::name): New member function.
4943 (rust_language::natural_name): New member function.
4944 * symtab.c (lookup_language_this): Update call to
4945 language_defn::name.
4947 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4949 * ada-lang.c (ada_language_data): Remove la_name_of_this
4951 * ax-gdb.c (gen_expr): Update call to name_of_this.
4952 * c-exp.y (classify_name): Likewise.
4953 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4954 (cplus_language_data): Likewise.
4955 (cplus_language::name_of_this): New member function.
4956 (asm_language_data): Remove la_name_of_this initializer.
4957 (minimal_language_data): Likewise.
4958 * d-lang.c (d_language_data): Likewise.
4959 (d_language::name_of_this): New member function.
4960 * expprint.c (print_subexp_standard): Update call to name_of_this.
4961 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4962 * go-lang.c (go_language_data): Likewise.
4963 * language.c (unknown_language_data): Likewise.
4964 (unknown_language::name_of_this): New member function.
4965 (auto_language_data): Remove la_name_of_this initializer.
4966 (auto_language::name_of_this): New member function.
4967 * language.h (language_data): Delete la_name_of_this member
4969 (language_defn::name_of_this): New member function.
4970 * m2-lang.c (m2_language_data): Remove la_name_of_this
4972 * objc-lang.c (objc_language_data): Likewise.
4973 (objc_language::name_of_this): New member function.
4974 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4976 * p-lang.c (pascal_language_data): Likewise.
4977 (pascal_language::name_of_this): New member function.
4978 * rust-lang.c (rust_language_data): Remove la_name_of_this
4980 * symtab.c (lookup_language_this): Update call to name_of_this.
4981 (lookup_symbol_aux): Likewise.
4982 * valops.c (value_of_this): Likewise.
4984 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4986 * ada-lang.c (ada_language_data): Remove
4987 la_struct_too_deep_ellipsis initializer.
4988 (ada_language::struct_too_deep_ellipsis): New member function.
4989 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4991 (cplus_language_data): Likewise.
4992 (asm_language_data): Likewise.
4993 (minimal_language_data): Likewise.
4994 * cp-valprint.c (cp_print_value): Update call to
4995 struct_too_deep_ellipsis.
4996 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4998 * f-lang.c (f_language_data): Likewise.
4999 (f_language::struct_too_deep_ellipsis): New member function.
5000 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5002 * language.c (unknown_language_data): Likewise.
5003 (auto_language_data): Likewise.
5004 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5006 (language_defn::struct_too_deep_ellipsis): New member function.
5007 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5009 * objc-lang.c (objc_language_data): Likewise.
5010 * opencl-lang.c (opencl_language_data): Likewise.
5011 * p-lang.c (pascal_language_data): Likewise.
5012 * rust-lang.c (rust_language_data): Likewise.
5013 * valprint.c (val_print_check_max_depth): Update call to
5014 struct_too_deep_ellipsis.
5016 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5018 * MAINTAINERS (Write After Approval): Add myself.
5020 2020-09-15 Tom Tromey <tom@tromey.com>
5022 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5025 2020-09-15 Tom Tromey <tom@tromey.com>
5027 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5028 and TYPE_CODE_METHODPTR cases.
5029 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5030 (c_value_print_inner): Update.
5031 * valprint.c (generic_value_print_memberptr): New function, from
5032 c_value_print_memberptr.
5033 (generic_value_print): Use it. Call cplus_print_method_ptr.
5035 2020-09-15 Tom Tromey <tromey@adacore.com>
5037 * python/python-internal.h (PyInt_FromLong): Remove define.
5038 * python/py-value.c (convert_value_from_python): Use
5039 gdb_py_object_from_longest.
5040 * python/py-type.c (typy_get_code): Use
5041 gdb_py_object_from_longest.
5042 * python/py-symtab.c (salpy_get_line): Use
5043 gdb_py_object_from_longest.
5044 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5045 gdb_py_object_from_longest.
5046 * python/py-record.c (recpy_gap_reason_code): Use
5047 gdb_py_object_from_longest.
5048 * python/py-record-btrace.c (recpy_bt_insn_size)
5049 (recpy_bt_func_level, btpy_list_count): Use
5050 gdb_py_object_from_longest.
5051 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5052 gdb_py_object_from_longest. Fix error handling.
5053 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5054 gdb_py_object_from_longest.
5055 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5056 gdb_py_object_from_longest.
5057 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5058 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5059 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5061 2020-09-15 Tom Tromey <tromey@adacore.com>
5063 * python/python.c (gdbpy_parameter_value): Use
5064 gdb_py_object_from_ulongest.
5066 2020-09-15 Tom Tromey <tromey@adacore.com>
5068 * python/py-infevents.c (create_register_changed_event_object):
5069 Use gdb_py_object_from_longest.
5070 * python/py-exitedevent.c (create_exited_event_object): Use
5071 gdb_py_object_from_longest.
5073 2020-09-15 Tom Tromey <tromey@adacore.com>
5075 * python/python.c (gdbpy_parameter_value): Use
5076 gdb_py_object_from_longest.
5077 * python/py-type.c (convert_field, typy_range): Use
5078 gdb_py_object_from_longest.
5079 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5080 gdb_py_object_from_longest.
5081 * python/py-lazy-string.c (stpy_get_length): Use
5082 gdb_py_object_from_longest.
5083 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5084 gdb_py_object_from_longest.
5085 * python/py-infevents.c (create_memory_changed_event_object): Use
5086 gdb_py_object_from_longest.
5087 * python/py-inferior.c (infpy_get_num): Use
5088 gdb_py_object_from_longest.
5089 (infpy_get_pid): Likewise.
5091 2020-09-15 Tom Tromey <tromey@adacore.com>
5093 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5095 * python/py-value.c (valpy_long): Use
5096 gdb_py_object_from_ulongest.
5097 * python/py-symtab.c (salpy_get_pc): Use
5098 gdb_py_object_from_ulongest.
5099 (salpy_get_last): Likewise.
5100 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5101 gdb_py_object_from_ulongest.
5102 * python/py-lazy-string.c (stpy_get_address): Use
5103 gdb_py_object_from_ulongest.
5104 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5105 * python/py-arch.c (archpy_disassemble): Use
5106 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5109 2020-09-15 Tom Tromey <tromey@adacore.com>
5111 * python/python-internal.h (gdb_py_long_from_longest): Remove
5113 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5114 * python/py-type.c (convert_field, typy_get_sizeof): Use
5115 gdb_py_object_from_longest.
5116 * python/py-record-btrace.c (btpy_list_index): Use
5117 gdb_py_object_from_longest.
5119 2020-09-15 Tom Tromey <tromey@adacore.com>
5121 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5122 * python/py-record.c (recpy_element_number): Use
5123 gdb_py_object_from_longest.
5124 (recpy_gap_number): Likewise.
5126 2020-09-15 Tom Tromey <tromey@adacore.com>
5128 * top.c (ui::ui): Update.
5129 (highest_ui_num): Remove.
5130 * top.h (struct ui) <num>: Remove.
5132 2020-09-15 Tom Tromey <tromey@adacore.com>
5134 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5135 * ui-style.c (ansi_regex_text): Now array.
5136 * rust-exp.y (number_regex_text): Now array.
5137 * linespec.c (linespec_quote_characters): Now array.
5138 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5141 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5143 * debuginfod-support.c (debuginfod_client_deleter): New.
5144 (debuginfod_client_up): New.
5145 (debuginfod_init): Return debuginfod_client_up.
5146 (debuginfod_source_query): Adjust.
5147 (debuginfod_debuginfo_query): Adjust.
5149 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5151 * debuginfod-support.c (debuginfod_source_query): Use
5152 make_unique_xstrdup.
5154 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5156 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5157 with `type::instance_flags`.
5159 2020-09-14 Michael Mullin <masmullin@gmail.com>
5161 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5162 Remove baton parameter.
5164 2020-09-14 Pedro Alves <pedro@palves.net>
5166 * Makefile.in (SELFTESTS_SRCS): Add
5167 unittests/enum-flags-selftests.c.
5168 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5169 btrace_function_flags instead of enum btrace_function_flag.
5170 * compile/compile-c-types.c (convert_qualified): Use
5172 * compile/compile-cplus-symbols.c (convert_one_symbol)
5173 (convert_symbol_bmsym):
5174 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5175 (compile_cplus_convert_struct_or_union_methods)
5176 (compile_cplus_instance::convert_qualified_base):
5177 * go-exp.y (parse_string_or_char): Add cast to int.
5178 * unittests/enum-flags-selftests.c: New file.
5179 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5180 type to btrace_thread_flags from btrace_thread_flag.
5181 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5182 local's type to btrace_thread_flags from btrace_thread_flag. Add
5185 2020-09-14 Pedro Alves <pedro@palves.net>
5187 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5188 * gdbtypes.c (address_space_name_to_int): Rename to ...
5189 (address_space_name_to_type_instance_flags): ... this.
5190 (address_space_int_to_name): Rename to ...
5191 (address_space_type_instance_flags_to_name): ... this.
5192 * gdbtypes.h (address_space_name_to_int): Rename to ...
5193 (address_space_name_to_type_instance_flags): ... this.
5194 (address_space_int_to_name): Rename to ...
5195 (address_space_type_instance_flags_to_name): ... this.
5196 * type-stack.c (type_stack::insert): Adjust to rename.
5197 * type-stack.h (type_stack::insert): Likewise.
5199 2020-09-14 Pedro Alves <pedro@palves.net>
5200 Andrew Burgess <andrew.burgess@embecosm.com>
5202 * avr-tdep.c (avr_address_class_type_flags): Return
5203 type_instance_flags.
5204 (avr_address_class_type_flags_to_name): Take a
5205 type_instance_flags.
5206 (avr_address_class_name_to_type_flags): Return bool and take a
5207 type_instance_flags.
5208 * d-lang.c (build_d_types): Use type::set_instance_flags.
5209 * ft32-tdep.c (ft32_address_class_type_flags): Return
5210 type_instance_flags.
5211 (ft32_address_class_type_flags_to_name): Take a
5212 type_instance_flags.
5213 (ft32_address_class_name_to_type_flags): Return bool and take a
5214 type_instance_flags.
5215 (ft32_gdbarch_init): Use type::set_instance_flags.
5216 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5217 * gdbarch.h, gdbarch.c: Regenerate.
5218 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5219 (address_class_name_to_type_flags): Use type_instance_flags and
5221 * gdbtypes.c (address_space_name_to_int)
5222 (address_space_int_to_name, make_qualified_type): Use
5223 type_instance_flags.
5224 (make_qualified_type): Use type_instance_flags and
5225 type::set_instance_flags.
5226 (make_type_with_address_space, make_cv_type, make_vector_type)
5227 (check_typedef): Use type_instance_flags.
5228 (recursive_dump_type): Cast type_instance_flags to unsigned for
5230 (copy_type_recursive): Use type::set_instance_flags.
5231 (gdbtypes_post_init): Use type::set_instance_flags.
5232 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5233 <m_instance_flags>: ... this.
5234 <instance_flags, set_instance_flags>: New methods.
5235 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5236 (SET_TYPE_INSTANCE_FLAGS): New.
5237 (address_space_name_to_int, address_space_int_to_name)
5238 (make_type_with_address_space): Pass flags using
5239 type_instance_flags instead of int.
5240 * stabsread.c (cleanup_undefined_types_noname): Use
5241 type::set_instance_flags.
5242 * s390-tdep.c (s390_address_class_type_flags): Return
5243 type_instance_flags.
5244 (s390_address_class_type_flags_to_name): Take a
5245 type_instance_flags.
5246 (s390_address_class_name_to_type_flags): Return bool and take a
5247 type_instance_flags.
5248 * type-stack.c (type_stack::follow_types): Use
5249 type_instance_flags.
5250 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5252 2020-09-14 Tom Tromey <tromey@adacore.com>
5254 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5255 * x86-tdep.c (x86_is_thunk_register_name)
5256 (x86_in_indirect_branch_thunk): Update.
5257 * sparc64-tdep.c (sparc64_fpu_register_names)
5258 (sparc64_cp0_register_names, sparc64_register_names)
5259 (sparc64_pseudo_register_names): Now const.
5260 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5261 cp0_registers_num>: Now const.
5262 * sparc-tdep.c (sparc_core_register_names)
5263 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5264 (sparc32_pseudo_register_names): Now const.
5265 (validate_tdesc_registers): Update.
5266 * rust-lang.c (rust_extensions): Now const.
5267 * p-lang.c (p_extensions): Now const.
5268 * objc-lang.c (objc_extensions): Now const.
5269 * nto-tdep.c (nto_thread_state_str): Now const.
5270 * moxie-tdep.c (moxie_register_names): Now const.
5271 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5273 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5274 (mips_linux_reg_names): Now const.
5275 (mips_gdbarch_init): Update.
5276 * microblaze-tdep.c (microblaze_register_names): Now const.
5277 * m68k-tdep.c (m68k_register_names): Now const.
5278 * m32r-tdep.c (m32r_register_names): Now const.
5279 * ia64-tdep.c (ia64_register_names): Now const.
5280 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5281 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5282 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5283 ymm_avx512_register_names, pkeys_register_names>: Now const.
5284 * i386-tdep.c (i386_register_names, i386_zmm_names)
5285 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5286 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5287 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5288 * f-lang.c (f_extensions): Now const.
5289 * d-lang.c (d_extensions): Now const.
5290 * csky-tdep.c (csky_register_names): Now const.
5291 * charset.c (default_charset_names, charset_enum): Now const.
5292 (_initialize_charset): Update.
5293 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5295 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5296 (bsd_uthread_solib_loaded): Update.
5297 (bsd_uthread_state): Now const.
5298 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5299 (amd64_ymm_avx512_names, amd64_ymmh_names)
5300 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5301 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5302 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5303 (amd64_dword_names): Now const.
5304 * agent.c (can_use_agent_enum): Now const.
5305 * ada-tasks.c (task_states, long_task_states): Now const.
5306 * ada-lang.c (known_runtime_file_name_patterns)
5307 (known_auxiliary_function_name_patterns, attribute_names)
5308 (standard_exc, ada_extensions): Now const.
5310 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5312 * bcache.h (struct bcache) <bcache>: Remove constructor.
5313 <m_hash_function, m_compare_function>: Remove.
5314 <~bcache>: Make virtual.
5315 <compare>: Remove static method, introduce virtual method.
5316 <default_hash>: Remove.
5317 <hash>: New virtual method.
5318 * bcache.c (bcache::expand_hash_table): Update.
5319 (bcache::insert): Update.
5320 (bcache::hash): New.
5321 (bcache::compare): Update comment and parameter names.
5322 * gdbtypes.c (types_deeply_equal): Update.
5323 * psymtab.h (struct psymbol_bcache): New struct.
5324 (class psymtab_storage) <psymtab_storage>: Make default.
5325 <psymbol_cache>: Change type to psymbol_bcache.
5326 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5327 (psymbol_hash): Change to...
5328 (psymbol_bcache::hash): ... this.
5329 (psymbol_compare): Change to...
5330 (psymbol_bcache::compare): ... this.
5332 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5334 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5335 checking for initial lwp.
5337 2020-09-14 Tom Tromey <tromey@adacore.com>
5339 * m68k-tdep.c (m68k_extract_return_value): Use
5340 pointer_result_regnum.
5341 (m68k_store_return_value): Likewise.
5342 (m68k_reg_struct_return_p): Handle vectors and arrays.
5343 (m68k_return_value): Handle arrays.
5344 (m68k_svr4_return_value): Fix single-element aggregate handling.
5345 Handle long double. Adjust for embedded ABI.
5346 (m68k_svr4_init_abi): Set pointer_result_regnum.
5347 (m68k_embedded_init_abi): New function.
5348 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5349 (m68k_osabi_sniffer): New function.
5350 (_initialize_m68k_tdep): Register osabi sniffer.
5351 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5354 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5356 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5357 with gdb::unique_xmalloc_ptr<char>.
5359 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5361 * xml-support.h (xml_fetch_another): Change type to be a
5363 (xml_process_xincludes): Remove baton parameter.
5364 (xml_fetch_content_from_file): Change baton parameter to
5366 * xml-support.c (struct xinclude_parsing_data)
5367 <xinclude_parsing_data>: Remove baton parameter.
5368 <fetcher_baton>: Remove.
5369 (xinclude_start_include): Adjust.
5370 (xml_process_xincludes): Adjust.
5371 (xml_fetch_content_from_file): Replace baton parameter with
5373 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5374 (xml_init_syscalls_info): Use a lambda.
5375 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5376 (file_read_description_xml): Use a lambda.
5377 (fetch_available_features_from_target): Change baton parameter
5379 (target_read_description_xml): Use a lambda.
5380 (target_fetch_description_xml): Use a lambda.
5381 (string_read_description_xml): Update.
5383 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5385 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5386 uses with type::endianity_is_not_default.
5388 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5390 * gdbtypes.h (struct type) <endianity_is_not_default,
5391 set_endianity_is_not_default>: New methods.
5392 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5393 type::endianity_is_not_default, change all write call sites to
5394 use type::set_endianity_is_not_default.
5396 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5398 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5399 uses with type::is_fixed_instance.
5401 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5403 * gdbtypes.h (struct type) <is_fixed_instance,
5404 set_is_fixed_instance>: New methods.
5405 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5406 write call sites to use type::set_is_fixed_instance.
5408 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5410 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5411 uses with type::is_gnu_ifunc.
5413 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5415 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5416 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5417 use type::set_is_gnu_ifunc.
5419 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5421 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5422 uses with type::stub_is_supported.
5424 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5426 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5427 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5428 use type::set_stub_is_supported.
5430 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5432 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5433 uses with type::is_vector.
5435 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5437 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5438 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5439 use type::set_is_vector.
5441 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5443 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5444 uses with type::has_varargs.
5446 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5448 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5449 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5450 use type::set_has_varargs.
5452 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5454 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5455 uses with type::is_prototyped.
5457 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5459 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5461 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5462 call sites to use type::set_is_prototyped.
5464 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5466 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5467 uses with type::target_is_stub.
5469 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5471 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5473 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5474 sites to use type::set_target_is_stub.
5476 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5478 * gdbtypes.h (TYPE_STUB): Remove, replace all
5479 uses with type::is_stub.
5481 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5483 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5484 (TYPE_STUB): Use type::is_stub, change all write call sites to
5485 use type::set_is_stub.
5487 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5489 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5490 type::has_no_signedness.
5492 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5494 * gdbtypes.h (struct type) <has_no_signedness,
5495 set_has_no_signedness>: New methods.
5496 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5497 call sites to use type::set_has_no_signedness.
5499 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5501 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5504 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5506 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5508 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5509 sites to use type::set_is_unsigned.
5511 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5512 Adam Renquinha <arenquinha@cimeq.qc.ca>
5514 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5515 pointer and stack frame offset when unwinding.
5517 2020-09-13 Pedro Alves <pedro@palves.net>
5519 * NEWS: Document "-break-insert --qualified".
5520 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5522 2020-09-13 Pedro Alves <pedro@palves.net>
5524 * linespec.c (classify_mtype, compare_msyms): Delete.
5525 (search_minsyms_for_name): Remove classification logic. Instead
5526 filter out trampoline symbols if we also found an external
5527 function of the same name.
5529 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5531 * NEWS: Create a new section for the next release branch.
5532 Rename the section of the current branch, now that it has
5535 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5537 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5538 * version.in: Bump version to 11.0.50.DATE-git.
5540 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5542 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5544 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5545 Felix Willgerodt <Felix.Willgerodt@intel.com>
5547 * gdbarch.sh: Added bfloat16 type.
5548 * gdbarch.c: Regenerated.
5549 * gdbarch.h: Regenerated.
5550 * gdbtypes.c (floatformats_bfloat16): New struct.
5551 (gdbtypes_post_init): Add builtin_bfloat16.
5552 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5553 (floatformats_bfloat16): New struct.
5554 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5555 (i386_ymm_type): Add field "v16_bfloat16"
5556 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5557 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5558 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5559 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5560 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5561 * features/i386/64bit-avx512.c: Regenerated.
5562 * features/i386/64bit-sse.xml: Add bfloat16 type.
5563 * features/i386/64bit-sse.c: Regenerated.
5565 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5567 * i386-tdep.c (i386_zmm_type): Fix field names.
5568 (i386_ymm_type): Fix field names.
5570 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5572 * breakpoint.c: Fix typo in the help message of the
5573 "set breakpoint condition-evaluation" command.
5575 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5577 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5578 * (nbsd_nat_target::pid_to_exec_file)
5579 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5580 (nbsd_nat_target::post_startup_inferior)
5581 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5582 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5583 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5584 * (nbsd_thread_lister): Remove.
5586 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5588 * fork-inferior.c (startup_inferior): Avoid double free.
5590 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5592 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5593 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5595 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5597 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5598 * netbsd-nat.c: Include <sys/ptrace.h>.
5599 * (netbsd_nat::enable_proc_events): Add.
5601 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5603 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5604 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5605 (netbsd_nat::for_each_thread): Add.
5606 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5607 "gdbsupport/common-debug.h".
5608 * (netbsd_nat::netbsd_thread_lister)
5609 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5610 (netbsd_nat::for_each_thread): Add.
5612 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5614 * netbsd-nat.h: Include <unistd.h>.
5615 * (netbsd_nat::pid_to_exec_file): Add.
5616 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5617 * (netbsd_nat::pid_to_exec_file) Add.
5619 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5621 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5623 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5625 * netbsd-nat.h: New file.
5626 * netbsd-nat.c: Likewise.
5628 2020-09-09 Tom Tromey <tromey@adacore.com>
5630 * ada-lang.c (remove_extra_symbols): Do not increment when
5633 2020-09-08 Tom Tromey <tromey@adacore.com>
5635 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5637 2020-09-08 Tom Tromey <tromey@adacore.com>
5640 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5641 (gdb_bfd_init_data): New function.
5642 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5644 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5646 * infrun.c (fetch_inferior_event): Use
5647 `switch_to_target_no_thread` to switch the target.
5649 2020-09-06 Tom Tromey <tom@tromey.com>
5651 * symfile.h (dwarf2_free_objfile): Don't declare.
5653 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5655 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5656 to match 16 byte real/complex type generated by Flang compiler.
5658 2020-09-03 Tom de Vries <tdevries@suse.de>
5661 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5662 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5664 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5666 * maint.c (index_digits): New function.
5667 (struct maint_print_section_data): Remove.
5668 (print_bfd_section_info): Remove print_data parameter, add arg
5670 (print_objfile_section_info): Likewise.
5671 (print_bfd_section_info_maybe_relocated): Likewise (plus
5673 (maintenance_info_sections): Adjust calls.
5675 2020-09-02 Tom Tromey <tromey@adacore.com>
5677 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5679 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5681 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5683 * bcache.h (struct bcache) <insert>: Change type of `added` to
5685 * bcache.c (bcache::insert): Likewise.
5686 * gdbtypes.c (check_types_worklist): Adjust.
5687 * psymtab.c (add_psymbol_to_bcache): Adjust.
5689 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5691 * corelow.c (unordered_set): Include.
5692 (class core_target): Add field 'm_core_unavailable_mappings'.
5693 (core_target::build_file_mappings): Print only one warning
5694 per inaccessible file. Add unavailable/broken mappings
5695 to m_core_unavailable_mappings.
5696 (core_target::xfer_partial): Call...
5697 (core_target::xfer_memory_via_mappings): New method.
5699 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5701 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5704 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5706 * dwarf2/read.c (struct field_info): Fix indentation.
5708 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5710 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5711 ordering in comment.
5712 * frame.c (frame_id_eq): Fix indentation.
5714 2020-08-31 Scott Linder <scott@scottlinder.com>
5715 Simon Marchi <simon.marchi@efficios.com>
5717 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5718 inline frame ids in outer frame.
5720 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5722 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5723 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5724 (outer_frame_id): Use FID_STACK_OUTER instead of
5726 (frame_id_p): Don't check for outer_frame_id.
5728 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5730 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5731 regnum/frame in value. Call allocate_value_lazy.
5732 * frame.c (frame_unwind_register_value): Use
5733 val_print_not_saved.
5735 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5737 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5739 2020-08-29 Pedro Alves <pedro@palves.net>
5741 * progspace.c (print_program_space): Use all_inferiors. Switch to
5742 the inferior before calling target_pid_to_str.
5744 2020-08-28 Tom Tromey <tom@tromey.com>
5746 * xcoffread.c (xcoff_end_psymtab): Update comment.
5747 * dbxread.c (dbx_end_psymtab): Update comment.
5749 2020-08-28 Tom de Vries <tdevries@suse.de>
5752 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5754 (create_breakpoint): Same.
5755 (base_breakpoint_decode_location): Same.
5756 (bkpt_create_sals_from_location): Same.
5757 (bkpt_decode_location): Same.
5758 (bkpt_probe_create_sals_from_location): Same.
5759 (bkpt_probe_decode_location): Same.
5760 (tracepoint_create_sals_from_location): Same.
5761 (tracepoint_decode_location): Same.
5762 (tracepoint_probe_decode_location): Same.
5763 (strace_marker_create_sals_from_location): Same.
5764 (strace_marker_decode_location): Same.
5765 (create_sals_from_location_default): Same.
5766 (decode_location_default): Same.
5767 * breakpoint.h (struct breakpoint_ops): Same.
5768 (create_breakpoint): Same.
5769 * linespec.h (decode_line_full): Same.
5770 * linespec.c (decode_line_full): Same. Throw error if
5771 result.size () == 0.
5773 2020-08-27 Pedro Alves <pedro@palves.net>
5776 * breakpoint.c (until_break_fsm) <location_breakpoint,
5777 caller_breakpoint>: Delete fields.
5778 <breakpoints>: New field.
5779 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5780 two individual breakpoints.
5781 (until_break_fsm::should_stop): Loop over breakpoints in the
5783 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5785 (until_break_command): Handle location expanding into multiple
5788 2020-08-27 Pedro Alves <pedro@palves.net>
5791 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5792 bp_until breakpoints user-specified locations. Update intro
5795 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5797 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5798 gdb_bfd_sections): New.
5799 * maint.c (print_bfd_section_info): Change param type to
5800 maint_print_section_data.
5801 (print_objfile_section_info): Likewise.
5802 (print_bfd_section_info_maybe_relocated): Likewise.
5803 (maintenance_info_sections): Use gdb_bfd_sections.
5805 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5807 * MAINTAINERS: Add ARC target and maintainer.
5809 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5811 * configure.tgt: ARC support for GNU/Linux.
5812 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5813 * arc-linux-tdep.c: New file.
5814 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5815 * arc-tdep.c (arc_write_pc): Use it.
5817 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5819 * arc-tdep.c (arc_check_for_hardware_loop): New.
5820 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5822 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5824 * arc-tdep.h: Include "gdbarch.h".
5826 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5829 (arc_gdbarch_features): New class to stir the selection of target XML.
5830 (arc_create_target_description): Use FEATURES to choose XML target.
5831 (arc_lookup_target_description): Use arc_create_target_description
5832 to create _new_ target descriptions or return the already created
5833 ones if the FEATURES is the same.
5834 * arch/arc.c: Implementation of prototypes described above.
5835 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5836 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5837 * arc-tdep.c (*_feature_name): Make feature names consistent.
5838 (arc_register_feature): A new struct to hold information about
5839 registers of a particular target/feature.
5840 (arc_check_tdesc_feature): Check if XML provides registers in
5841 compliance with ARC_REGISTER_FEATURE structs.
5842 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5843 (determine_*_reg_feature_set): Which feature name to look for.
5844 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5845 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5846 to expected ISA enums to be used in arc_gdbarch_features structs.
5847 * features/Makefile (FEATURE_XMLFILES): Add new files.
5848 * gdb/features/arc/v1-aux.c: New file.
5849 * gdb/features/arc/v1-aux.xml: Likewise.
5850 * gdb/features/arc/v1-core.c: Likewise.
5851 * gdb/features/arc/v1-core.xml: Likewise.
5852 * gdb/features/arc/v2-aux.c: Likewise.
5853 * gdb/features/arc/v2-aux.xml: Likewise.
5854 * gdb/features/arc/v2-core.c: Likewise.
5855 * gdb/features/arc/v2-core.xml: Likewise.
5856 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5858 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5859 Andrew Burgess <andrew.burgess@embecosm.com>
5862 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5863 an assert. Remove single element array indexing pattern as the
5864 MULTI_SUBSCRIPT support will handle this case too.
5866 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5868 * value.h (valprint_check_validity): Move declaration from
5870 * valprint.h (valprint_check_validity): ... to here.
5872 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5874 * debug.h: New file.
5875 * debug.c (debug_prefixed_vprintf): New function.
5876 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5877 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5879 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5881 * infrun.h (infrun_debug_printf_1): New function declaration.
5882 (infrun_debug_printf): New macro.
5883 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5885 (infrun_debug_printf): New function.
5886 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5887 (handle_jit_event): Likewise.
5889 2020-08-21 Mark Wielaard <mark@klomp.org>
5891 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5893 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5895 * frame.c (enum class frame_id_status): New.
5896 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5897 (fprintf_frame): Update.
5898 (compute_frame_id): Set frame id status to "computing" on entry.
5899 Set it back to "not_computed" on failure and to "computed" on
5901 (get_frame_id): Assert the frame id is not being computed.
5902 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5903 (create_new_frame): Likewise.
5904 (frame_cleanup_after_sniffer): Update assert.
5906 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5908 * regcache.c (pid_ptid_regcache_map): New type.
5909 (target_ptid_regcache_map): Remove.
5910 (target_pid_ptid_regcache_map): New type.
5911 (regcaches): Change type to target_pid_ptid_regcache_map.
5912 (get_thread_arch_aspace_regcache): Update.
5913 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5915 (regcaches_size): Update.
5916 (regcache_count): Update.
5917 (registers_changed_ptid_target_pid_test): New.
5918 (_initialize_regcache): Register new test.
5920 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5922 * regcache.c (regcache_count): New.
5923 (struct regcache_test_data): New.
5924 (regcache_test_data_up): New.
5925 (populate_regcaches_for_test): New.
5926 (regcaches_test): Remove.
5927 (get_thread_arch_aspace_regcache_test): New.
5928 (registers_changed_ptid_all_test): New.
5929 (registers_changed_ptid_target_test): New.
5930 (registers_changed_ptid_target_ptid_test): New.
5931 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5932 (_initialize_regcache): Register new tests.
5934 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5936 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5937 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5938 gdbarch and aspace parameter. Use current inferior's aspace.
5939 Validate regcache's arch value.
5940 (regcaches_test): Update.
5942 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5944 * regcache.c (regcaches_test): Call registers_changed.
5946 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5948 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5950 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5952 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5953 to find the end of prologue for flang compiled binaries.
5954 * arm-tdep.c (arm_skip_prologue): Likewise.
5955 * i386-tdep.c (i386_skip_prologue): Likewise.
5956 * producer.c (producer_is_llvm): New function.
5957 (producer_parsing_tests): Added new tests for clang/flang.
5958 * producer.h (producer_is_llvm): New declaration.
5960 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5962 * linux-nat.c (linux_nat_debug_printf): New function.
5963 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5965 2020-08-18 Aaron Merey <amerey@redhat.com>
5967 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5968 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5969 (CLIBS): Add DEBUGINFOD_LIBS.
5971 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5973 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5976 2020-08-17 Tom Tromey <tromey@adacore.com>
5978 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5979 ada_get_decoded_value returns NULL.
5981 2020-08-17 Tom Tromey <tromey@adacore.com>
5983 * python/py-inferior.c (infpy_search_memory): Use
5984 gdb_py_object_from_ulongest.
5985 * python/py-infevents.c (create_inferior_call_event_object)
5986 (create_memory_changed_event_object): Use
5987 gdb_py_object_from_ulongest.
5988 * python/py-linetable.c (ltpy_entry_get_pc): Use
5989 gdb_py_object_from_ulongest.
5991 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5993 * loc.c (class symbol_needs_eval_context): Fix indentation.
5995 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5997 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6000 2020-08-17 Tom de Vries <tdevries@suse.de>
6003 * gdbtypes.c (dump_dynamic_prop): New function.
6004 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6006 2020-08-15 Tom de Vries <tdevries@suse.de>
6009 * stack.c (print_frame_args): Temporarily set the selected
6010 frame to FRAME while printing the frame's arguments.
6012 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6014 PR breakpoints/26385
6015 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6016 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6018 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6020 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6021 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6022 and >= to check return value instead of == -1 and != -1.
6024 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6026 * utils.h (class gdb_argv) <as_array_view>: New method.
6027 * utils.c (gdb_argv_as_array_view_test): New.
6028 (_initialize_utils): Register selftest.
6029 * maint.c (maintenance_selftest): Use the new method.
6031 2020-08-13 Kamil Rytarowski <n54@gmx.com>
6033 * target.h (supports_dumpcore, dumpcore): New
6034 function declarations.
6035 * target.c (supports_dumpcore, dumpcore): New
6037 * target-delegates.c: Rebuild.
6038 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6039 and target_dumpcore ().
6041 2020-08-13 Aaron Merey <amerey@redhat.com>
6043 * debuginfod-support.c: Replace global variables with user_data.
6045 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6047 * maint.c (maintenance_selftest): Split args and pass array_view
6050 2020-08-12 Luis Machado <luis.machado@linaro.org>
6052 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6054 Use %s and pulongest to print the length.
6056 2020-08-12 Pedro Alves <palves@redhat.com>
6058 * NEWS: Move "Multi-target debugging support" item to the
6059 "Changes since GDB 9" section.
6061 2020-08-12 Pedro Alves <palves@redhat.com>
6064 * progspace.c (program_space::remove_objfile): Invalidate the
6067 2020-08-11 Tom de Vries <tdevries@suse.de>
6069 * MAINTAINERS: Mark ms1 as deleted.
6071 2020-08-10 Luis Machado <luis.machado@linaro.org>
6075 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6077 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6078 movz/str/stur/stp skipping behavior.
6080 2020-08-10 Luis Machado <luis.machado@linaro.org>
6082 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6083 struct user_sve_header instead of struct sve_context.
6085 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6087 * read.h (dwarf2_fetch_die_loc_sect_off,
6088 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6089 `void *` parameter with function_view.
6090 * read.c (dwarf2_fetch_die_loc_sect_off,
6091 dwarf2_fetch_die_loc_cu_off): Likewise.
6092 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6093 (per_cu_dwarf_call): Adjust.
6094 (get_frame_address_in_block_wrapper): Remove.
6095 (indirect_synthetic_pointer): Adjust.
6096 (get_ax_pc): Remove.
6097 (dwarf2_compile_expr_to_ax): Adjust.
6099 2020-08-08 Tom de Vries <tdevries@suse.de>
6102 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6104 * regcache.c (get_thread_arch_aspace_regcache): Same.
6106 2020-08-07 Tom Tromey <tromey@adacore.com>
6108 * ravenscar-thread.c
6109 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6111 (ravenscar_thread_target::wait): Check
6112 runtime_initialized.
6113 (ravenscar_thread_target::prepare_to_store)
6114 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6115 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6116 (ravenscar_thread_target::stopped_by_watchpoint)
6117 (ravenscar_thread_target::stopped_data_address)
6118 (ravenscar_thread_target::core_of_thread): Use
6119 scoped_restore_current_thread and
6120 set_base_thread_from_ravenscar_task.
6122 2020-08-07 Tom Tromey <tromey@adacore.com>
6124 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6126 2020-08-07 Tom Tromey <tromey@adacore.com>
6128 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6129 update_inferior_ptid before update_thread_list.
6130 (temporarily_change_regcache_ptid): New class.
6131 (ravenscar_thread_target::fetch_registers)
6132 (ravenscar_thread_target::store_registers)
6133 (ravenscar_thread_target::prepare_to_store): Use base thread when
6134 forwarding operation.
6136 2020-08-07 Tom Tromey <tromey@adacore.com>
6138 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6141 2020-08-07 Tom Tromey <tromey@adacore.com>
6143 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6145 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6147 (ravenscar_thread_target::add_thread): Rename from
6148 ravenscar_add_thread.
6149 (ravenscar_thread_target::update_thread_list): Use a lambda.
6150 (ravenscar_thread_target::xfer_partial): New method.
6152 2020-08-07 Tom Tromey <tromey@adacore.com>
6154 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6156 (iterate_over_live_ada_tasks): Change type of argument.
6157 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6160 2020-08-07 Tom Tromey <tromey@adacore.com>
6162 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6164 (ravenscar_thread_target::extra_thread_info): Remove.
6165 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6166 defer to target beneath for non-Ravenscar threads.
6168 2020-08-07 Tom Tromey <tromey@adacore.com>
6170 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6171 get_base_thread_from_ravenscar_task>: Now methods.
6172 <m_cpu_map>: New member.
6173 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6174 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6175 (ravenscar_thread_target::task_is_currently_active): Update.
6176 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6178 (ravenscar_thread_target::add_active_thread): Put initial thread
6181 2020-08-07 Tom Tromey <tromey@adacore.com>
6183 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6186 2020-08-07 Tom Tromey <tromey@adacore.com>
6188 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6189 runtime_initialized.
6191 2020-08-07 Tom Tromey <tromey@adacore.com>
6193 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6195 (ravenscar_thread_target::add_active_thread): Now public.
6196 (ravenscar_inferior_created): Call add_active_thread after pushing
6199 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6201 * regcache.c (ptid_regcache_map): New type.
6202 (target_ptid_regcache_map): New type.
6203 (regcaches): Change type to target_ptid_regcache_map.
6204 (get_thread_arch_aspace_regcache): Update to regcaches' new
6206 (regcache_thread_ptid_changed): Likewise.
6207 (registers_changed_ptid): Likewise.
6208 (regcaches_size): Likewise.
6209 (regcaches_test): Update.
6210 (regcache_thread_ptid_changed): Update.
6211 * regcache.h (regcache_up): New type.
6212 * gdbsupport/ptid.h (hash_ptid): New struct.
6214 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6216 * observable.h (thread_ptid_changed): Add parameter
6217 `process_stratum_target *`.
6218 * infrun.c (infrun_thread_ptid_changed): Add parameter
6219 `process_stratum_target *` and use it.
6220 (selftests): New namespace.
6221 (infrun_thread_ptid_changed): New function.
6222 (_initialize_infrun): Register selftest.
6223 * regcache.c (regcache_thread_ptid_changed): Add parameter
6224 `process_stratum_target *` and use it.
6225 (regcache_thread_ptid_changed): New function.
6226 (_initialize_regcache): Register selftest.
6227 * thread.c (thread_change_ptid): Pass target to
6228 thread_ptid_changed observable.
6230 2020-08-06 Caroline Tice <cmtice@google.com>
6232 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6233 (struct dwp_sections): Update field comments. Add loclists and
6235 (struct virtual_v2_dwo_sections): Rename struct to
6236 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6237 size & offset fields for loclists and rnglists.
6238 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6239 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6240 skipping dummy type units.
6241 (create_dwp_hash_table): Update the large comment above the function to
6242 discuss Version 5 DWP files as well, with references. Update all the
6243 version checks in the function to check for version 5 as well. Add new
6244 section at the end to create dwp hash table for version 5.
6245 (create_dwp_v2_section): Rename function to
6246 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6247 Add V5 to error message text.
6248 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6249 into calls to create_dwp_v2_or_v5_section.
6250 (create_dwo_unit_in_dwp_v5): New function.
6251 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6252 check for version2; add else clause to handle version 5.
6253 (open_and_init_dwo_file): Add code to check dwarf version & only call
6254 create_debug_types_hash_table (with sections.types) if version is not 5;
6255 else call create_debug_type_hash_table, with sections.info.
6256 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6258 (dwarf2_locate_v5_dwp_sections): New function.
6259 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6260 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6262 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6264 * regcache.h (class regcache): Remove friend
6265 registers_changed_ptid.
6266 <regcache_thread_ptid_changed>: Remove.
6267 <regcaches>: Remove.
6268 * regcache.c (regcache::regcaches): Rename to...
6269 (regcaches): ... this. Make static.
6270 (get_thread_arch_aspace_regcache): Update.
6271 (regcache::regcache_thread_ptid_changed): Rename to...
6272 (regcache_thread_ptid_changed): ... this. Update.
6273 (class regcache_access): Remove.
6274 (regcaches_test): Update.
6275 (_initialize_regcache): Update.
6276 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6279 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6281 * regcache.h (class regcache) <current_regcache>: Rename to...
6282 <regcaches>: ... this. Move doc here.
6283 * regcache.c (regcache::current_regcache) Rename to...
6284 (regcache::regcaches): ... this. Move doc to header.
6285 (get_thread_arch_aspace_regcache): Update.
6286 (regcache::regcache_thread_ptid_changed): Update.
6287 (registers_changed_ptid): Update.
6288 (class regcache_access) <current_regcache_size>: Rename to...
6289 <regcaches_size>: ... this.
6290 (current_regcache_test): Rename to...
6291 (regcaches_test): ... this.
6292 (_initialize_regcache): Update.
6294 2020-08-06 Victor Collod <vcollod@nvidia.com>
6296 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6298 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6300 * corelow.c (core_target::build_file_mappings): Don't output
6301 null pathname in warning.
6303 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6305 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6306 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6307 gdb.dwarf2/dw2-single-line-discriminators.exp,
6308 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6310 2020-08-05 Tom Tromey <tromey@adacore.com>
6313 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6314 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6315 Fix off-by-one and type size errors in ordinary case.
6317 2020-08-05 Tom de Vries <tdevries@suse.de>
6319 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6320 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6322 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6324 * frame.h (frame_id_p): Return bool.
6325 (frame_id_artificial_p): Return bool.
6326 (frame_id_eq): Return bool.
6327 (has_stack_frames): Return bool.
6328 (get_selected_frame): Fix typo in comment.
6329 (get_frame_pc_if_available): Return bool.
6330 (get_frame_address_in_block_if_available): Return bool.
6331 (get_frame_func_if_available): Return bool.
6332 (read_frame_register_unsigned): Return bool.
6333 (get_frame_register_bytes): Return bool.
6334 (safe_frame_unwind_memory): Return bool.
6335 (deprecated_frame_register_read): Return bool.
6336 (frame_unwinder_is): Return bool.
6337 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6339 <this_id::p>: Likewise.
6341 (frame_stash_add): Return bool.
6342 (get_frame_id): Use bool.
6343 (frame_id_build_special) Use bool.
6344 (frame_id_build_unavailable_stack): Use bool.
6345 (frame_id_build): Use bool.
6346 (frame_id_p): Return bool, use true/false instead of 1/0.
6347 (frame_id_artificial_p): Likewise.
6348 (frame_id_eq): Likewise.
6349 (frame_id_inner): Likewise.
6350 (get_frame_func_if_available): Likewise.
6351 (read_frame_register_unsigned): Likewise.
6352 (deprecated_frame_register_read): Likewise.
6353 (get_frame_register_bytes): Likewise.
6354 (has_stack_frames): Likewise.
6355 (inside_main_func): Likewise.
6356 (inside_entry_func): Likewise.
6357 (get_frame_pc_if_available): Likewise.
6358 (get_frame_address_in_block_if_available): Likewise.
6359 (frame_unwinder_is): Likewise.
6360 (safe_frame_unwind_memory): Likewise.
6361 (frame_unwind_arch): Likewise.
6363 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6365 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6366 type to cached_copy_status.
6367 (fprintf_frame): Adjust.
6368 (get_frame_func_if_available): Adjust.
6369 (frame_cleanup_after_sniffer): Adjust.
6371 2020-08-04 Mark Wielaard <mark@klomp.org>
6373 * MAINTAINERS (Write After Approval): Update email address.
6375 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6377 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6378 dynamic_prop::const_val.
6380 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6382 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6385 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6387 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6389 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6391 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6393 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6394 Jose E. Marchesi <jose.marchesi@oracle.com>
6396 * configure.tgt: Add entry for bpf-*-*.
6397 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6398 (ALLDEPFILES): Add bpf-tdep.c.
6399 * bpf-tdep.c: New file.
6400 * MAINTAINERS: Add bpf target and maintainer.
6401 * NEWS: Mention the support for the new target.
6403 2020-08-04 Tom de Vries <tdevries@suse.de>
6406 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6409 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6411 * syscalls/freebsd.xml: Regenerate.
6413 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6415 * syscalls/update-freebsd.sh: Fix usage and year range.
6417 2020-08-03 Tom de Vries <tdevries@suse.de>
6420 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6421 DW_LNE_lo_user/DW_LNE_hi_user range.
6423 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6426 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6429 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6431 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6433 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6435 * breakpoint.c (set_breakpoint_condition): Update the condition
6436 expressions after checking that the input condition string parses
6437 successfully and does not contain junk at the end.
6439 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6441 * breakpoint.c (set_breakpoint_condition): Update the
6442 condition string after parsing the new condition successfully.
6444 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6446 * proc-api.c (_STRUCTURED_PROC): Don't define.
6447 * proc-events.c: Likewise.
6448 * proc-flags.c: Likewise.
6449 * proc-why.c: Likewise.
6450 * procfs.c: Likewise.
6452 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6453 * configure, config.in: Regenerate.
6455 2020-07-30 Tom de Vries <tdevries@suse.de>
6458 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6459 m_red/m_green/m_blue in a union.
6461 2020-07-29 Tom de Vries <tdevries@suse.de>
6464 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6466 2020-07-28 Tom Tromey <tromey@adacore.com>
6469 * symtab.h (find_pc_partial_function_sym): Declare.
6470 * cli/cli-cmds.c (disassemble_command): Use
6471 find_pc_partial_function_sym. Check asm_demangle.
6472 * blockframe.c (cache_pc_function_sym): New global.
6473 (cache_pc_function_name): Remove.
6474 (clear_pc_function_cache): Update.
6475 (find_pc_partial_function_sym): New function, from
6476 find_pc_partial_function.
6477 (find_pc_partial_function): Rewrite using
6478 find_pc_partial_function_sym.
6480 2020-07-28 Tom Tromey <tromey@adacore.com>
6482 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6485 2020-07-28 Tom Tromey <tromey@adacore.com>
6487 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6488 <DW_OP_GNU_variable_value>: Cast to address type.
6490 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6492 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6493 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6494 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6495 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6496 (nbsd_get_siginfo_type): New.
6497 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6498 (_initialize_nbsd_tdep): New.
6500 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6503 * configure: Regenerated.
6505 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6508 * configure: Regenerated.
6510 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6512 * python/py-frame.c: Remove 'user-regs.h' include.
6513 (frapy_read_register): Rewrite to make use of
6514 gdbpy_parse_register_id.
6515 * python/py-registers.c (gdbpy_parse_register_id): New function,
6516 moved here from python/py-unwind.c. Updated the return type, and
6517 also accepts register descriptor objects.
6518 * python/py-unwind.c: Remove 'user-regs.h' include.
6519 (pyuw_parse_register_id): Moved to python/py-registers.c.
6520 (unwind_infopy_add_saved_register): Update to use
6521 gdbpy_parse_register_id.
6522 (pending_framepy_read_register): Likewise.
6523 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6525 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6527 * python/py-registers.c: Add 'user-regs.h' include.
6528 (register_descriptor_iter_find): New function.
6529 (register_descriptor_iterator_object_methods): New static global
6531 (register_descriptor_iterator_object_type): Add pointer to methods
6534 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6536 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6537 for all architectures on FreeBSD 11.3 and later.
6539 2020-07-27 Tom Tromey <tromey@adacore.com>
6541 * gcore.h (load_corefile): Don't declare.
6543 2020-07-27 Tom de Vries <tdevries@suse.de>
6545 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6546 * config.in: Regenerate.
6547 * configure: Regenerate.
6549 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6551 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6552 ws2tcpip.h. When checking whether socklen_t type is defined, use
6553 ws2tcpip.h if it is available and sys/socket.h isn't.
6554 * configure: Regenerate.
6555 * config.in: Regenerate.
6557 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6561 * valops.c (value_ind): Pass address to
6562 readjust_indirect_value_type.
6563 * value.c (readjust_indirect_value_type): Make parameter
6564 non-const, and add extra address parameter. Resolve original type
6566 * value.h (readjust_indirect_value_type): Update function
6567 signature and comment.
6569 2020-07-25 Tom de Vries <tdevries@suse.de>
6572 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6575 2020-07-24 Aaron Merey <amerey@redhat.com>
6577 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6578 * configure: Rebuild.
6580 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6583 * corelow.c (_initialize_corelow): Add period to help text
6584 for "maintenance print core-file-backed-mappings".
6586 2020-07-23 Pedro Alves <pedro@palves.net>
6588 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6589 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6591 * frame.c (frame_cache_generation, get_frame_cache_generation):
6593 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6594 (get_prev_frame_if_no_cycle): On exception, don't touch
6595 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6596 * frame.h (get_frame_cache_generation): Declare.
6598 2020-07-23 Tom de Vries <tdevries@suse.de>
6601 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6602 New default constructor.
6604 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6606 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6607 exclude non-statement entries.
6609 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6611 * NEWS (New commands): Mention new command
6612 "maintenance print core-file-backed-mappings".
6614 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6616 * corelow.c (gdbcmd.h): Include.
6617 (core_target::info_proc_mappings): New method.
6618 (get_current_core_target): New function.
6619 (maintenance_print_core_file_backed_mappings): New function.
6620 (_initialize_corelow): Add core-file-backed-mappings to
6621 "maint print" commands.
6623 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6625 * linux-tdep.c (dump_note_entry_p): New function.
6626 (linux_dump_mapping_p_ftype): New typedef.
6627 (linux_find_memory_regions_full): Add new parameter,
6628 should_dump_mapping_p.
6629 (linux_find_memory_regions): Adjust call to
6630 linux_find_memory_regions_full.
6631 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6632 call to linux_find_memory_regions_full.
6634 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6636 * corelow.c (solist.h, unordered_map): Include.
6637 (class core_target): Add field m_core_file_mappings and
6638 method build_file_mappings.
6639 (core_target::core_target): Call build_file_mappings.
6640 (core_target::~core_target): Free memory associated with
6641 m_core_file_mappings.
6642 (core_target::build_file_mappings): New method.
6643 (core_target::xfer_partial): Use m_core_file_mappings
6644 for memory transfers.
6645 * linux-tdep.c (linux_read_core_file_mappings): New
6647 (linux_core_info_proc_mappings): Rewrite to use
6648 linux_read_core_file_mappings.
6649 (linux_init_abi): Register linux_read_core_file_mappings.
6651 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6653 * arch-utils.c (default_read_core_file_mappings): New function.
6654 * arch-utils.c (default_read_core_file_mappings): Declare.
6655 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6656 * gdbarch.h, gdbarch.c: Regenerate.
6658 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6661 * corelow.c (core_target:xfer_partial): Revise
6662 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6663 case after first checking the stratum beneath the core
6665 (has_all_memory): Return true.
6666 * target.c (raw_memory_xfer_partial): Revise comment
6667 regarding use of has_all_memory.
6669 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6671 * exec.h (section_table_xfer_memory): Revise declaration,
6672 replacing section name parameter with an optional callback
6674 * exec.c (section_table_xfer_memory): Likewise.
6675 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6676 of section_table_xfer_memory.
6678 2020-07-22 Tom Tromey <tromey@adacore.com>
6680 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6681 lookup_symbol_search_name.
6683 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6685 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6686 redundant local variable.
6687 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6688 reference, not pointer, update code accordingly.
6690 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6691 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6693 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6694 * jit.c (jit_breakpoint_re_set_internal): Use the
6695 `skip_jit_symbol_lookup` field.
6697 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6698 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6700 * jit.c (jit_read_descriptor): Define the descriptor address once,
6702 (jit_breakpoint_deleted): Move the declaration of the loop variable
6703 `iter` into the loop header.
6704 (jit_breakpoint_re_set_internal): Move the declaration of the local
6705 variable `objf_data` to the first point of definition.
6706 (jit_event_handler): Move the declaration of local variables
6707 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6708 Rename `objf` to `jited`.
6710 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6712 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6714 * jit.c (get_jiter_objfile_data): Update.
6716 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6717 Simon Marchi <simon.marchi@polymtl.ca>
6719 * jit.c (struct jit_program_space_data): Remove.
6720 (jit_program_space_key): Remove.
6721 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6723 (get_jit_program_space_data): Remove.
6724 (jit_breakpoint_deleted): Iterate on all of the program space's
6726 (jit_inferior_init): Likewise.
6727 (jit_breakpoint_re_set_internal): Likewise. Also change return
6729 (jit_breakpoint_re_set): Pass current_program_space to
6730 jit_breakpoint_re_set_internal.
6732 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6734 * jit.h (struct jiter_objfile_data) <cached_code_address,
6735 jit_breakpoint>: Move to here from ...
6736 * jit.c (jit_program_space_data): ... here.
6737 (jiter_objfile_data::~jiter_objfile_data): Update.
6738 (jit_breakpoint_deleted): Update.
6739 (jit_breakpoint_re_set_internal): Update.
6741 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6743 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6745 (jit_read_descriptor): Remove NULL check.
6746 (jit_event_handler): Add an assertion.
6748 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6750 * jit.h (struct jit_objfile_data): Split into...
6751 (struct jiter_objfile_data): ... this ...
6752 (struct jited_objfile_data): ... and this.
6753 * objfiles.h (struct objfile) <jit_data>: Remove.
6754 <jiter_data, jited_data>: New fields.
6755 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6756 (jiter_objfile_data::~jiter_objfile_data): ... this.
6757 (get_jit_objfile_data): Rename to ...
6758 (get_jiter_objfile_data): ... this.
6759 (add_objfile_entry): Update.
6760 (jit_read_descriptor): Use get_jiter_objfile_data.
6761 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6762 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6763 (jit_inferior_exit_hook): Use objfile's jited_data field.
6765 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6767 * jit.h: Forward-declare `struct minimal_symbol`.
6768 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6769 constructor, destructor, and an objfile* field.
6770 * jit.c (jit_objfile_data): Remove.
6771 (struct jit_objfile_data): Migrate from here to jit.h.
6772 (jit_objfile_data::~jit_objfile_data): New destructor
6773 implementation with code moved from free_objfile_data.
6774 (free_objfile_data): Delete.
6775 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6776 (jit_find_objf_with_entry_addr): Ditto.
6777 (jit_inferior_exit_hook): Ditto.
6778 (_initialize_jit): Remove the call to
6779 register_objfile_data_with_cleanup.
6780 * objfiles.h (struct objfile) <jit_data>: New field.
6782 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6784 * jit.h: Forward-declare `struct objfile`.
6785 (jit_event_handler): Add a second parameter, the JITer objfile.
6786 * jit.c (jit_read_descriptor): Change the signature to take the
6787 JITer objfile as an argument instead of the jit_program_space_data.
6788 (jit_inferior_init): Update the call to jit_read_descriptor.
6789 (jit_event_handler): Use the new JITer objfile argument when calling
6790 jit_read_descriptor.
6791 * breakpoint.c (handle_jit_event): Update the call to
6792 jit_event_handler to pass the JITer objfile.
6794 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6796 * gdbarch.c: Regenerate.
6797 * gdbarch.h: Regenerate.
6798 * gdbarch.sh (handle_segmentation_fault): Remove method.
6799 * infrun.c (handle_segmentation_fault): Remove.
6800 (print_signal_received_reason): Remove call to
6801 handle_segmentation_fault.
6803 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6805 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6806 Rename to sparc64_linux_report_signal_info and add siggnal
6808 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6809 instead of sparc64_linux_handle_segmentation_fault.
6811 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6813 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6814 i386_linux_report_signal_info instead of
6815 i386_linux_handle_segmentation_fault.
6816 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6817 to i386_linux_report_signal_info and add siggnal argument.
6818 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6819 of i386_linux_handle_segmentation_fault.
6820 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6821 to i386_linux_report_signal_info and add siggnal argument.
6823 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6825 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6828 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6830 * gdbarch.c: Regenerate.
6831 * gdbarch.h: Regenerate.
6832 * gdbarch.sh (report_signal_info): New method.
6833 * infrun.c (print_signal_received_reason): Invoke gdbarch
6834 report_signal_info hook if present.
6836 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6838 * python/py-registers.c : Add 'unordered_map' include.
6839 (gdbpy_new_reggroup): Renamed to...
6840 (gdbpy_get_reggroup): ...this. Update to only create register
6841 group descriptors when needed.
6842 (gdbpy_reggroup_iter_next): Update.
6844 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6846 * python/py-registers.c (gdbpy_register_object_data): New static
6848 (gdbpy_register_object_data_init): New function.
6849 (gdbpy_new_register_descriptor): Renamed to...
6850 (gdbpy_get_register_descriptor): ...this, and update to reuse
6851 existing register descriptors where possible.
6852 (gdbpy_register_descriptor_iter_next): Update.
6853 (gdbpy_initialize_registers): Register new gdbarch data.
6855 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6857 * linux-nat.c (stopped_pids): Make static.
6859 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6862 * gdbtypes.c (ada_discrete_type_low_bound,
6863 ada_discrete_type_high_bound): Handle undefined bounds.
6865 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6867 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6869 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6872 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6874 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6875 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6876 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6877 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6878 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6881 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6883 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6884 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6885 which are deprecated in Guile 3.0.
6886 * configure.ac (try_guile_versions): Add "guile-3.0".
6887 * configure (try_guile_versions): Regenerate.
6888 * NEWS: Update entry.
6890 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6891 Doug Evans <dje@google.com>
6894 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6895 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6896 USING_GUILE_BEFORE_2_2.
6897 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6898 Change type to 'scm_t_port_type *'.
6899 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6900 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6901 parameter and honor it. Update callers.
6902 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6903 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6905 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6906 USING_GUILE_BEFORE_2_2.
6907 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6908 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6909 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6910 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6911 and 'SCM_PORT_TYPE'.
6912 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6913 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6914 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6915 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6916 [!USING_GUILE_BEFORE_2_2]: New functions.
6917 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6918 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6919 'gdbscm_memory_port_read'.
6920 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6921 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6922 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6924 (ioscm_init_memory_port): Remove.
6925 (ioscm_init_memory_port_stream): New function
6926 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6928 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6929 Return scm_from_uint (0).
6930 (gdbscm_set_memory_port_read_buffer_size_x)
6931 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6932 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6933 Return scm_from_uint (0).
6934 (gdbscm_set_memory_port_write_buffer_size_x)
6935 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6936 * configure.ac (try_guile_versions): Add "guile-2.2".
6937 * configure: Regenerate.
6940 2020-07-18 Tom Tromey <tom@tromey.com>
6942 * linux-nat.c (linux_multi_process): Remove.
6943 (linux_nat_target::supports_multi_process): Return true.
6945 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6947 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6948 (riscv_lookup_target_description): Return pointer out of
6950 * target-descriptions.c (allocate_target_description): Add
6952 (target_desc_deleter::operator()): Likewise.
6953 * target-descriptions.h (struct target_desc_deleter): Moved to
6955 (target_desc_up): Likewise.
6957 2020-07-17 Tom Tromey <tromey@adacore.com>
6959 * linux-nat.c (linux_nat_target::supports_non_stop)
6960 (linux_nat_target::always_non_stop_p): Use "true".
6961 (linux_nat_target::supports_disable_randomization): Use "true" and
6964 2020-07-16 Caroline Tice <cmtice@google.com>
6966 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6967 (RNGLIST_HEADER_SIZE64): New constant definition.
6968 (struct dwop_section_names): Add rnglists_dwo.
6969 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6970 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6971 (struct dwo_sections): Add rnglists field.
6972 (read_attribut_reprocess): Add tag parameter.
6973 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6974 (cu_debug_rnglists_section): New function (decl & definition).
6975 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6976 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6977 die whose range is being checked; get rnglist section from
6978 cu_debug_rnglists_section, to get from either objfile or dwo file as
6979 appropriate. Add cases for DW_RLE_base_addressx,
6980 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6981 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6982 test inside if-condition and updating complaint message.
6983 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6984 dwarf2_rnglists_process.
6985 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6986 dwarf2_ranges_process.
6987 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6988 need_ranges_base and update comment appropriately. Also pass die tag
6989 to dwarf2_ranges_read.
6990 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6991 need_ranges_base and update comment appropriately. Also pass die tag
6992 to dwarf2_ranges_process.
6993 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6994 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6995 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6996 need_ranges_base and update comment appropriately. Also pass die tag
6997 to read_attribute_reprocess and dwarf2_ranges_read.
6998 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6999 and update function comment appropriately.
7000 (read_loclist_index): Call read_loclists_rnglists_header instead of
7001 read_loclist_header.
7002 (read_rnglist_index): New function.
7003 (read_attribute_reprocess): Add tag parameter. Add code for
7004 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7005 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7007 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7009 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7012 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7014 * arch-utils.c (show_architecture): Update formatting of messages.
7016 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7018 * gdbtypes.h (struct type) <bounds>: Handle array and string
7020 * ada-lang.c (assign_aggregate): Use type::bounds on
7022 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7023 * c-varobj.c (c_number_of_children): Likewise.
7024 (c_describe_child): Likewise.
7025 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7026 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7027 (f_type_print_base): Likewise.
7028 * f-valprint.c (f77_array_offset_tbl): Likewise.
7029 (f77_get_upperbound): Likewise.
7030 (f77_print_array_1): Likewise.
7031 * guile/scm-type.c (gdbscm_type_range): Likewise.
7032 * m2-typeprint.c (m2_array): Likewise.
7033 (m2_is_long_set_of_type): Likewise.
7034 * m2-valprint.c (get_long_set_bounds): Likewise.
7035 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7036 * python/py-type.c (typy_range): Likewise.
7037 * rust-lang.c (rust_internal_print_type): Likewise.
7038 * type-stack.c (type_stack::follow_types): Likewise.
7039 * valarith.c (value_subscripted_rvalue): Likewise.
7040 * valops.c (value_cast): Likewise.
7042 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7044 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7045 callers to use the equivalent accessor methods.
7047 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7049 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7050 (struct type) <bit_stride>: New method.
7051 (TYPE_BIT_STRIDE): Remove.
7052 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7054 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7056 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7057 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7058 callers to use the equivalent accessor methods instead.
7060 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7062 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7063 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7064 callers to use the equivalent accessor methods instead.
7066 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7068 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7069 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7070 to use dynamic_prop::kind.
7072 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7074 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7075 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7076 to get the bound property's kind and check against
7079 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7081 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7082 all callers to use type::range_bounds followed by
7083 dynamic_prop::{low,high}.
7085 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7087 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7088 const_val, set_const_val, baton, set_locexpr, set_loclist,
7089 set_addr_offset, variant_parts, set_variant_parts,
7090 original_type, set_original_type>: New methods.
7091 <kind>: Rename to...
7092 <m_kind>: ... this. Update all users to use the new methods
7094 <data>: Rename to...
7095 <m_data>: ... this. Update all users to use the new methods
7098 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7100 * gdbtypes.c (get_discrete_bounds): Return failure if
7101 the range type's bounds are not both defined and constant
7103 (get_array_bounds): Update comment. Remove undefined bound check.
7105 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7107 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7108 the type::bounds method directly.
7110 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7112 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7113 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7114 are used to set the range type's bounds to use set_bounds.
7116 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7118 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7120 2020-07-10 Pedro Alves <pedro@palves.net>
7122 * gdbthread.h (inferior_ref): Define.
7123 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7124 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7126 (scoped_restore_current_thread::restore):
7127 Adjust to gdb::ref_ptr.
7128 (scoped_restore_current_thread::~scoped_restore_current_thread):
7129 Remove manual decref handling.
7130 (scoped_restore_current_thread::scoped_restore_current_thread):
7132 inferior_ref::new_reference/thread_info_ref::new_reference.
7133 Incref the thread before calling get_frame_id instead of after.
7134 Let TARGET_CLOSE_ERROR propagate.
7136 2020-07-10 Pedro Alves <pedro@palves.net>
7138 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7139 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7140 NOT_AVAILABLE_ERROR.
7141 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7142 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7144 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7145 Pedro Alves <pedro@palves.net>
7148 * infrun.c (threads_are_resumed_pending_p): Delete.
7149 (do_target_wait): Remove threads_are_executing and
7150 threads_are_resumed_pending_p checks from the inferior_matches
7151 lambda. Update comments.
7153 2020-07-10 Pedro Alves <pedro@palves.net>
7156 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7159 2020-07-10 Pedro Alves <pedro@palves.net>
7162 * infrun.c (handle_no_resumed): Handle multiple targets.
7164 2020-07-10 Pedro Alves <pedro@palves.net>
7167 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7170 2020-07-10 Pedro Alves <pedro@palves.net>
7173 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7174 threads, not all threads.
7176 2020-07-10 Pedro Alves <pedro@palves.net>
7179 * remote.c (remote_target::open_1): Pass remote target pointer as
7180 data to create_async_event_handler.
7181 (remote_async_inferior_event_handler): Mark async event handler
7182 before returning if the remote target still has either pending
7183 events or unacknowledged notifications.
7185 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7187 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7189 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7192 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7194 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7197 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7199 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7200 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7201 AT_FREEBSD_PS_STRINGS.
7203 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7205 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7206 of debugfile path on Windows.
7208 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7210 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7213 2020-07-08 Tom Tromey <tromey@adacore.com>
7215 * ada-lang.c (ada_exception_message_1): Use read_memory.
7217 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7220 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7221 special handling for inline frames.
7222 * findvar.c (value_of_register_lazy): Skip inline frames when
7223 creating lazy register values.
7224 * frame.c (frame_id_computed_p): Delete definition.
7225 * frame.h (frame_id_computed_p): Delete declaration.
7227 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7229 * NEWS: Mention additions to Python API.
7230 * python/py-arch.c (archpy_register_groups): New function.
7231 (arch_object_methods): Add 'register_groups' method.
7232 * python/py-registers.c (reggroup_iterator_object): New struct.
7233 (reggroup_object): New struct.
7234 (gdbpy_new_reggroup): New function.
7235 (gdbpy_reggroup_to_string): New function.
7236 (gdbpy_reggroup_name): New function.
7237 (gdbpy_reggroup_iter): New function.
7238 (gdbpy_reggroup_iter_next): New function.
7239 (gdbpy_new_reggroup_iterator): New function
7240 (gdbpy_initialize_registers): Register new types.
7241 (reggroup_iterator_object_type): Define new Python type.
7242 (gdbpy_reggroup_getset): New static global.
7243 (reggroup_object_type): Define new Python type.
7244 * python/python-internal.h
7246 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7248 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7249 * python/py-arch.c (archpy_registers): New function.
7250 (arch_object_methods): Add 'registers' method.
7251 * python/py-registers.c: New file.
7252 * python/python-internal.h
7253 (gdbpy_new_register_descriptor_iterator): Declare.
7254 (gdbpy_initialize_registers): Declare.
7255 * python/python.c (do_start_initialization): Call
7256 gdbpy_initialize_registers.
7257 * NEWS: Mention additions to the Python API.
7259 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7261 * NEWS: Mention new Python API method.
7262 * python/py-unwind.c (pending_framepy_architecture): New function.
7263 (pending_frame_object_methods): Add architecture method.
7265 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7267 * gdbarch.c: Regenerate.
7268 * gdbarch.h: Regenerate.
7269 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7270 (gdbarch_data): Use internal_error for the case where
7271 deprecated_set_gdbarch_data was originally needed.
7272 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7273 and use passed in obstack.
7274 (libunwind_frame_set_descr): Should no longer get back NULL from
7276 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7278 * user-regs.c (user_regs_init): Update parameters, and use passed
7280 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7281 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7283 2020-07-06 Tom de Vries <tdevries@suse.de>
7285 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7286 End-Of-Sequence in lte_is_less_than.
7287 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7288 "gdb: Don't reorder line table entries too much when sorting".
7290 2020-07-06 Tom de Vries <tdevries@suse.de>
7293 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7295 2020-07-05 Tom de Vries <tdevries@suse.de>
7298 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7299 std::uncaught_exceptions instead of deprecated
7300 std::uncaught_exception.
7302 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7304 * macroexp.h (macro_stringify): Return
7305 gdb::unique_xmalloc_ptr<char>.
7306 * macroexp.c (macro_stringify): Likewise.
7307 * macrotab.c (fixup_definition): Update.
7309 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7311 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7312 (lex_one_token): Update.
7313 * macroexp.c (struct macro_buffer) <release>: Return
7314 gdb::unique_xmalloc_ptr<char>.
7315 (macro_stringify): Update.
7316 (macro_expand): Update.
7317 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7318 * macroexp.h (macro_expand_next): Likewise.
7320 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7322 * macroexp.h (macro_lookup_ftype): Remove.
7323 (macro_expand, macro_expand_once, macro_expand_next): Remove
7324 lookup function parameters, add scope parameter.
7325 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7326 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7327 * macroscope.h (standard_macro_lookup): Change parameter type
7329 * macroscope.c (standard_macro_lookup): Likewise.
7330 * c-exp.y (lex_one_token): Update.
7331 * macrocmd.c (macro_expand_command): Likewise.
7332 (macro_expand_once_command): Likewise.
7334 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7336 * inf-loop.c (inferior_event_handler): Remove client_data param.
7337 * inf-loop.h (inferior_event_handler): Likewise.
7338 * infcmd.c (step_1): Adjust.
7339 * infrun.c (proceed): Adjust.
7340 (fetch_inferior_event): Remove client_data param.
7341 (infrun_async_inferior_event_handler): Adjust.
7342 * infrun.h (fetch_inferior_event): Remove `void *` param.
7343 * linux-nat.c (handle_target_event): Adjust.
7344 * record-btrace.c (record_btrace_handle_async_inferior_event):
7346 * record-full.c (record_full_async_inferior_event_handler):
7348 * remote.c (remote_async_inferior_event_handler): Adjust.
7350 2020-07-01 Tom Tromey <tom@tromey.com>
7352 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7353 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7355 2020-07-01 Tom Tromey <tom@tromey.com>
7357 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7359 (tui_win_info::make_window): Merge with
7360 tui_gen_win_info::make_window.
7361 (tui_win_info::make_visible): Move from tui_gen_win_info.
7362 * tui/tui-win.c (tui_win_info::max_width): Move from
7364 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7366 <window_factory>: Likewise.
7367 * tui/tui-layout.c (tui_win_info::resize): Move from
7369 (make_standard_window): Change return type.
7370 (get_locator_window, tui_get_window_by_name): Likewise.
7371 (tui_layout_window::apply): Remove a cast.
7372 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7373 (struct tui_win_info): Merge with tui_gen_win_info.
7374 (struct tui_gen_win_info): Remove.
7376 2020-07-01 Tom Tromey <tom@tromey.com>
7378 * tui/tui-stack.h (struct tui_locator_window): Derive from
7380 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7381 <can_box>: New method.
7383 2020-07-01 Tom Tromey <tom@tromey.com>
7385 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7387 2020-07-01 Tom Tromey <tom@tromey.com>
7389 * tui/tui-regs.c (tui_data_window::display_registers_from)
7390 (tui_data_window::display_registers_from)
7391 (tui_data_window::first_data_item_displayed)
7392 (tui_data_window::delete_data_content_windows): Update.
7393 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7395 (tui_data_window::check_register_values): Update.
7396 (tui_data_item_window::rerender): Add parameters. Update.
7397 (tui_data_item_window::refresh_window): Remove.
7398 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7400 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7402 <refresh_window, max_height, min_height>: Remove.
7403 <rerender>: Add parameters.
7404 <x, y, visible>: New members.
7405 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7406 <m_item_width>: New member.
7408 2020-07-01 Tom Tromey <tom@tromey.com>
7410 * tui/tui-regs.c (tui_data_window::show_register_group)
7411 (tui_data_window::check_register_values): Update.
7412 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7415 2020-07-01 Tom Tromey <tom@tromey.com>
7417 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7420 2020-07-01 Tom Tromey <tom@tromey.com>
7422 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7423 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7425 2020-07-01 Tom Tromey <tom@tromey.com>
7427 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7428 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7429 (struct tui_line_or_address): Move from tui-data.h.
7430 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7431 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7432 (tui_cmd_window, tui_source_window_base, tui_source_window)
7433 (tui_disasm_window): Don't declare.
7434 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7436 (SINGLE_KEY): Move to tui-stack.c.
7438 2020-07-01 Tom Tromey <tom@tromey.com>
7440 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7442 * tui/tui-regs.c (class tab_expansion_file): New.
7443 (tab_expansion_file::write): New method.
7444 (tui_register_format): Change return type. Use
7446 (tui_get_register, tui_data_window::display_registers_from)
7447 (tui_data_item_window::rerender): Update.
7448 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7449 * tui/tui-io.c (tui_expand_tabs): Remove.
7451 2020-07-01 Tom Tromey <tom@tromey.com>
7453 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7455 2020-07-01 Fangrui Song <maskray@google.com>
7457 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7459 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7461 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7462 forms for DW_AT_associated and DW_AT_allocated attributes,
7463 which is already checked in function attr_to_dynamic_prop.
7465 2020-06-30 Tom Tromey <tromey@adacore.com>
7467 * dwarf2/read.c (quirk_rust_enum): Correctly call
7468 alloc_rust_variant for default-less enum.
7470 2020-06-30 Tom Tromey <tromey@adacore.com>
7473 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7476 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7478 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7479 * gdbarch.h: Re-generate.
7481 2020-06-28 Tom Tromey <tom@tromey.com>
7483 * command.h (cmd_types): Remove.
7484 (cmd_type): Don't declare.
7485 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7487 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7488 * cli/cli-decode.c (cmd_type): Remove.
7490 2020-06-27 Pedro Alves <palves@redhat.com>
7492 * fork-child.c (prefork_hook): Adjust.
7493 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7495 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7496 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7497 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7498 Remove declarations.
7499 (struct inferior) <set_tty, tty>: New methods.
7500 (struct inferior) <terminal>: Rename to ...
7501 (struct inferior) <m_terminal>: ... this and make private.
7502 * main.c (captured_main_1): Adjust.
7503 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7504 (mi_cmd_inferior_tty_show): Adjust.
7505 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7506 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7508 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7510 * configure.ac: Add --enable-libctf: handle --disable-static
7512 * acinclude.m4: sinclude ../config/enable.m4.
7513 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7514 (LIBCTF): Substitute in.
7515 (CTF_DEPS): New, likewise.
7516 (CLIBS): libctf needs symbols from libbfd: move earlier.
7517 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7519 * ctfread.c: Surround in ENABLE_LIBCTF.
7520 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7521 * configure: Regenerate.
7522 * config.in: Likewise.
7524 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7526 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7528 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7530 * inferior.h (struct inferior) <terminal>: Change type to
7531 gdb::unique_xmalloc_ptr<char>.
7532 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7533 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7534 field, adjust to unique pointer.
7535 (get_inferior_io_terminal): Adjust to unique pointer.
7537 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7539 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7540 registers, not just the known core set of registers.
7542 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7544 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7545 fflags, frm, and fcsr registers.
7546 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7548 (riscv_tdesc_unknown_reg): New function.
7549 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7550 tdesc_use_registers.
7551 * riscv-tdep.h (struct gdbarch_tdep): Add
7552 unknown_csrs_first_regnum, unknown_csrs_count,
7553 duplicate_fflags_regnum, duplicate_frm_regnum, and
7554 duplicate_fcsr_regnum fields.
7556 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7558 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7559 callback, use the callback (when not null) to help number unknown
7561 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7562 (tdesc_use_registers): Add extra parameter to declaration.
7564 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7566 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7568 (class riscv_pending_register_alias): Likewise.
7569 (riscv_register_feature::register_info): Change 'required_p' field
7570 to 'required', and change its type. Add 'check' member function.
7571 (riscv_register_feature::register_info::check): Define new member
7573 (riscv_xreg_feature): Change initialisation of 'required' field.
7574 (riscv_freg_feature): Likewise.
7575 (riscv_virtual_feature): Likewise.
7576 (riscv_csr_feature): Likewise.
7577 (riscv_check_tdesc_feature): Take extra parameter, the csr
7578 tdesc_feature, rewrite the function to use the new
7579 riscv_register_feature::register_info::check function.
7580 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7582 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7584 * features/Makefile: Remove all references to the deleted files
7586 * features/riscv/32bit-csr.c: Deleted.
7587 * features/riscv/32bit-csr.xml: Deleted.
7588 * features/riscv/64bit-csr.c: Deleted.
7589 * features/riscv/64bit-csr.xml: Deleted.
7590 * features/riscv/rebuild-csr-xml.sh: Deleted.
7592 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7594 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7595 whitespace error for declaration of names member variable.
7596 (struct riscv_register_feature): Add new prefer_first_name member
7597 variable, and fix whitespace error in declaration of registers.
7598 (riscv_xreg_feature): Initialize prefer_first_name field.
7599 (riscv_freg_feature): Likewise.
7600 (riscv_virtual_feature): Likewise.
7601 (riscv_csr_feature): Likewise.
7602 (riscv_register_name): Expand on comments. Remove register name
7603 modifications for CSR and virtual registers.
7605 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7607 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7610 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7612 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7614 (class riscv_pending_register_alias): New class.
7615 (riscv_check_tdesc_feature): Take vector of pending aliases and
7616 populate it as appropriate.
7617 (riscv_setup_register_aliases): Delete.
7618 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7619 to riscv_check_tdesc_feature in all cases. Use the vector to
7620 create the register aliases.
7622 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7624 * sol2-tdep.c (sol2_static_transform_name): Remove.
7625 (sol2_init_abi): Don't register it.
7626 * gdbarch.sh (static_transform_name): Remove.
7627 * gdbarch.c, gdbarch.h: Regenerate.
7629 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7630 gdbarch_static_transform_name.
7631 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7632 * stabsread.c (define_symbol) <'X'>: Remove.
7633 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7636 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7637 <'S'>: Remove call to gdbarch_static_transform_name.
7639 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7641 * procfs.c (procfs_pre_trace): New function.
7642 (procfs_target::create_inferior): Pass it to fork_inferior.
7644 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7646 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7647 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7648 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7649 sol2-tdep.o, sparc-sol2-tdep.o.
7650 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7651 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7652 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7653 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7655 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7657 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7658 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7660 Remove calls to set_gdbarch_skip_solib_resolver,
7661 set_gdbarch_core_pid_to_str.
7662 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7663 (i386_sol2_static_transform_name): Remove.
7664 (i386_sol2_init_abi): Call sol2_init_abi.
7665 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7666 set_gdbarch_static_transform_name,
7667 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7668 Use sol2_sigtramp_p.
7669 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7670 (sol2_sigtramp_p): New function.
7671 (sol2_static_transform_name): New function.
7672 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7673 (sol2_init_abi): New function.
7674 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7675 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7676 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7677 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7678 (sparc_sol2_static_transform_name): Remove.
7679 (sparc32_sol2_init_abi): Call sol2_init_abi.
7680 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7681 set_gdbarch_static_transform_name,
7682 set_gdbarch_skip_solib_resolver,
7683 set_gdbarch_core_pid_to_str.
7684 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7685 (sparc_sol2_static_transform_name): Remove
7686 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7687 call sol2_sigtramp_p.
7688 (sparc64_sol2_init_abi): Call sol2_init_abi.
7689 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7690 set_gdbarch_static_transform_name,
7691 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7693 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7695 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7696 * exec.c (validate_exec_file): If from_tty, set both
7697 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7698 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7699 and from_tty, unconditionally ask a confirmation.
7701 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7703 * target-descriptions.c (tdesc_architecture_name): Protect against
7704 NULL pointer dereference.
7705 (maint_print_xml_tdesc_cmd): New function.
7706 (_initialize_target_descriptions): Register new 'maint print
7707 xml-tdesc' command and give it the filename completer.
7708 * NEWS: Mention new 'maint print xml-tdesc' command.
7710 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7712 * target-descriptions.c (class tdesc_compatible_info): New class.
7713 (struct target_desc): Change type of compatible vector.
7714 (tdesc_compatible_p): Update for change in type of
7715 target_desc::compatible.
7716 (tdesc_compatible_info_list): New function.
7717 (tdesc_compatible_info_arch_name): New function.
7718 (tdesc_add_compatible): Update for change in type of
7719 target_desc::compatible.
7720 (print_c_tdesc::visit_pre): Likewise.
7722 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7724 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7725 whitespace to underscore.
7726 (maint_print_c_tdesc_cmd): Use fake filename for target
7727 descriptions that came from the target.
7728 (_initialize_target_descriptions): Add filename command completion
7729 for 'maint print c-tdesc'.
7731 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7733 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7736 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7738 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7740 (dwarf2_find_location_expression): Likewise.
7741 (call_site_parameter_matches): Likewise.
7742 (dwarf2_compile_expr_to_ax): Likewise.
7743 (disassemble_dwarf_expression): Likewise.
7744 (loclist_describe_location): Likewise.
7746 2020-06-23 Pedro Alves <palves@redhat.com>
7748 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7749 progspace-and-thread.h. Include scoped-mock-context.h instead.
7750 (register_to_value_test): Use scoped_mock_context.
7751 * regcache.c: Include "scoped-mock-context.h".
7752 (cooked_read_test): Don't error out if a target is already pushed.
7753 Use scoped_mock_context. Adjust.
7754 * scoped-mock-context.h: New file.
7756 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7758 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7760 (ada_language::is_string_type_p): New member function.
7761 * c-lang.c (c_language_data): Delete la_is_string_type_p
7763 (cplus_language_data): Likewise.
7764 (asm_language_data): Likewise.
7765 (minimal_language_data): Likewise.
7766 * d-lang.c (d_language_data): Likewise.
7767 * f-lang.c (f_is_string_type_p): Delete function, implementation
7768 moved to f_language::is_string_type_p.
7769 (f_language_data): Delete la_is_string_type_p initializer.
7770 (f_language::is_string_type_p): New member function,
7771 implementation from f_is_string_type_p.
7772 * go-lang.c (go_is_string_type_p): Delete function, implementation
7773 moved to go_language::is_string_type_p.
7774 (go_language_data): Delete la_is_string_type_p initializer.
7775 (go_language::is_string_type_p): New member function,
7776 implementation from go_is_string_type_p.
7777 * language.c (language_defn::is_string_type_p): Define new member
7779 (default_is_string_type_p): Make static, add comment copied from
7781 (unknown_language_data): Delete la_is_string_type_p initializer.
7782 (unknown_language::is_string_type_p): New member function.
7783 (auto_language_data): Delete la_is_string_type_p initializer.
7784 (auto_language::is_string_type_p): New member function.
7785 * language.h (language_data): Delete la_is_string_type_p field.
7786 (language_defn::is_string_type_p): Declare new function.
7787 (default_is_string_type_p): Delete desclaration, move comment to
7789 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7790 moved to m2_language::is_string_type_p.
7791 (m2_language_data): Delete la_is_string_type_p initializer.
7792 (m2_language::is_string_type_p): New member function,
7793 implementation from m2_is_string_type_p.
7794 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7796 * opencl-lang.c (opencl_language_data): Likewise.
7797 * p-lang.c (pascal_is_string_type_p): Delete function,
7798 implementation moved to pascal_language::is_string_type_p.
7799 (pascal_language_data): Delete la_is_string_type_p initializer.
7800 (pascal_language::is_string_type_p): New member function,
7801 implementation from pascal_is_string_type_p.
7802 * rust-lang.c (rust_is_string_type_p): Delete function,
7803 implementation moved to rust_language::is_string_type_p.
7804 (rust_language_data): Delete la_is_string_type_p initializer.
7805 (rust_language::is_string_type_p): New member function,
7806 implementation from rust_is_string_type_p.
7807 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7810 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7812 * ada-lang.c (ada_language_data): Delete la_print_typedef
7814 (ada_language::print_typedef): New member function.
7815 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7816 (cplus_language_data): Likewise.
7817 (asm_language_data): Likewise.
7818 (minimal_language_data): Likewise.
7819 * d-lang.c (d_language_data): Likewise.
7820 * f-lang.c (f_language_data): Likewise.
7821 (f_language::print_typedef): New member function.
7822 * go-lang.c (go_language_data): Delete la_print_typedef
7824 * language.c (language_defn::print_typedef): Define member
7826 (unknown_language_data): Delete la_print_typedef initializer.
7827 (unknown_language::print_typedef): New member function.
7828 (auto_language_data): Delete la_print_typedef initializer.
7829 (auto_language::print_typedef): New member function.
7830 * language.h (language_data): Delete la_print_typedef field.
7831 (language_defn::print_typedef): Declare new member function.
7832 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7833 (default_print_typedef): Delete declaration.
7834 * m2-lang.c (m2_language_data): Delete la_print_typedef
7836 (m2_language::print_typedef): New member function.
7837 * objc-lang.c (objc_language_data): Delete la_print_typedef
7839 * opencl-lang.c (opencl_language_data): Likewise.
7840 * p-lang.c (pascal_language_data): Likewise.
7841 (pascal_language::print_typedef): New member function.
7842 * rust-lang.c (rust_print_typedef): Delete function,
7843 implementation moved to rust_language::print_typedef.
7844 (rust_language): Delete la_print_typedef initializer.
7845 (rust_language::print_typedef): New member function,
7846 implementation from rust_print_typedef.
7847 * typeprint.c (default_print_typedef): Delete.
7849 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7851 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7852 (ada_language::printstr): New member function.
7853 * c-lang.c (c_language_data): Delete la_printstr initializer.
7854 (cplus_language_data): Likewise.
7855 (asm_language_data): Likewise.
7856 (minimal_language_data): Likewise.
7857 * d-lang.c (d_language_data): Likewise.
7858 * f-lang.c (f_printstr): Rename to f_language::printstr.
7859 (f_language_data): Delete la_printstr initializer.
7860 (f_language::printstr): New member function, implementation from
7862 * go-lang.c (go_language_data): Delete la_printstr initializer.
7863 * language.c (language_defn::printstr): Define new member
7865 (unk_lang_printstr): Delete.
7866 (unknown_language_data): Delete la_printstr initializer.
7867 (unknown_language::printstr): New member function.
7868 (auto_language_data): Delete la_printstr initializer.
7869 (auto_language::printstr): New member function.
7870 * language.h (language_data): Delete la_printstr field.
7871 (language_defn::printstr): Declare new member function.
7872 (LA_PRINT_STRING): Update call to printstr.
7873 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7874 (m2_language_data): Delete la_printstr initializer.
7875 (m2_language::printstr): New member function, implementation from
7877 * objc-lang.c (objc_language_data): Delete la_printstr
7879 * opencl-lang.c (opencl_language_data): Likewise.
7880 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7881 (pascal_language_data): Delete la_printstr initializer.
7882 (pascal_language::printstr): New member function, implementation
7883 from pascal_printstr.
7884 * p-lang.h (pascal_printstr): Delete declaration.
7885 * rust-lang.c (rust_printstr): Update header comment.
7886 (rust_language_data): Delete la_printstr initializer.
7887 (rust_language::printstr): New member function.
7889 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7891 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7892 (ada_language::printchar): New member function.
7893 * c-lang.c (c_language_data): Delete la_printchar initializer.
7894 (cplus_language_data): Likewise.
7895 (asm_language_data): Likewise.
7896 (minimal_language_data): Likewise.
7897 * d-lang.c (d_language_data): Likewise.
7898 * f-lang.c (f_printchar): Rename to f_language::printchar.
7899 (f_language_data): Delete la_printchar initializer.
7900 (f_language::printchar): New member function, implementation from
7902 * go-lang.c (go_language_data): Delete la_printchar initializer.
7903 * language.c (unk_lang_printchar): Delete.
7904 (language_defn::printchar): Define new member function.
7905 (unknown_language_data): Delete la_printchar initializer.
7906 (unknown_language::printchar): New member function.
7907 (auto_language_data): Delete la_printchar initializer.
7908 (auto_language::printchar): New member function.
7909 * language.h (language_data): Delete la_printchar field.
7910 (language_defn::printchar): Declare new member function.
7911 (LA_PRINT_CHAR): Update call to printchar.
7912 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7913 (m2_language::printchar): New member function.
7914 * objc-lang.c (objc_language_data): Delete la_printchar
7916 * opencl-lang.c (opencl_language_data): Likewise.
7917 * p-lang.c (pascal_language_data): Delete la_printchar
7919 (pascal_language::printchar): New member function.
7920 * rust-lang.c (rust_printchar): Rename to
7921 rust_language::printchar.
7922 (rust_language_data): Delete la_printchar initializer.
7923 (rust_language::printchar): New member function, implementation
7924 from rust_printchar.
7926 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7928 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7929 (ada_language_data): Delete la_emitchar initializer.
7930 (ada_language::emitchar): New member function, implementation from
7932 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7933 (cplus_language_data): Likewise.
7934 (asm_language_data): Likewise.
7935 (minimal_language_data): Likewise.
7936 * d-lang.c (d_language_data): Likewise.
7937 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7938 (f_language_data): Delete la_emitchar initializer.
7939 (f_language::emitchar): New member function, implementation from
7941 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7942 * language.c (unk_lang_emit_char): Delete.
7943 (language_defn::emitchar): New member function definition.
7944 (unknown_language_data): Delete la_emitchar initializer.
7945 (unknown_language::emitchar): New member function.
7946 (auto_language_data): Delete la_emitchar initializer.
7947 (auto_language::emitchar): New member function.
7948 * language.h (language_data): Delete la_emitchar field.
7949 (language_defn::emitchar): New member field declaration.
7950 (LA_EMIT_CHAR): Update call to emitchar.
7951 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7952 (m2_language_data): Delete la_emitchar initializer.
7953 (m2_language::emitchar): New member function, implementation from
7955 * objc-lang.c (objc_language_data): Delete la_emitchar
7957 * opencl-lang.c (opencl_language_data): Likewise.
7958 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7959 (pascal_language_data): Delete la_emitchar initializer.
7960 (pascal_language::emitchar): New member function, implementation
7961 from pascal_emit_char.
7962 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7963 (rust_language_data): Delete la_emitchar initializer.
7964 (rust_language::emitchar): New member function, implementation
7967 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7969 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7970 (ada_language_data): Delete la_post_parser initializer.
7971 (ada_language::post_parser): New member function.
7972 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7973 (cplus_language_data): Likewise.
7974 (asm_language_data): Likewise.
7975 (minimal_language_data): Likewise.
7976 * d-lang.c (d_language_data): Likewise.
7977 * f-lang.c (f_language_data): Likewise.
7978 * go-lang.c (go_language_data): Likewise.
7979 * language.c (unknown_language_data): Likewise.
7980 (auto_language_data): Likewise.
7981 * language.h (language_data): Delete la_post_parser field.
7982 (language_defn::post_parser): New member function.
7983 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7984 * objc-lang.c (objc_language_data): Likewise.
7985 * opencl-lang.c (opencl_language_data): Likewise.
7986 * p-lang.c (pascal_language_data): Likewise.
7987 * parse.c (parse_exp_in_context): Update call to post_parser.
7988 (null_post_parser): Delete definition.
7989 * parser-defs.h (null_post_parser): Delete declaration.
7990 * rust-lang.c (rust_language_data): Delete la_post_parser
7993 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7995 * ada-lang.c (parse): Rename to ada_language::parser.
7996 (ada_language_data): Delete la_parser initializer.
7997 (ada_language::parser): New member function, implementation from
7999 * c-lang.c (c_language_data): Delete la_parser initializer.
8000 (cplus_language_data): Likewise.
8001 (asm_language_data): Likewise.
8002 (minimal_language_data): Likewise.
8003 * d-lang.c (d_language_data): Likewise.
8004 (d_language::parser): New member function.
8005 * f-lang.c (f_language_data): Delete la_parser initializer.
8006 (f_language::parser): New member function.
8007 * go-lang.c (go_language_data): Delete la_parser initializer.
8008 (go_language::parser): New member function.
8009 * language.c (unk_lang_parser): Delete.
8010 (language_defn::parser): Define new member function.
8011 (unknown_language_data): Delete la_parser initializer.
8012 (unknown_language::parser): New member function.
8013 (auto_language_data): Delete la_parser initializer.
8014 (auto_language::parser): New member function.
8015 * language.h (language_data): Delete la_parser field.
8016 (language_defn::parser): Declare new member function.
8017 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8018 (m2_language::parser): New member function.
8019 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8020 * opencl-lang.c (opencl_language_data): Likewise.
8021 * p-lang.c (pascal_language_data): Likewise.
8022 (pascal_language::parser): New member function.
8023 * parse.c (parse_exp_in_context): Update call to parser.
8024 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8025 (rust_language::parser): New member function.
8027 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8029 * top.c (print_gdb_configuration): Print --with-python-libdir
8030 configuration value.
8032 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8034 * NEWS: Mention change to the alias command.
8036 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8038 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8039 (alias_command_completer)
8040 (make_alias_options_def_group): New functions.
8041 (alias_opts, alias_option_defs): New struct and array.
8042 (alias_usage_error): Update usage.
8043 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8044 Use option framework.
8045 (_initialize_cli_cmds): Update alias command help.
8046 Update aliases command help.
8048 Add NULL for new default_args lookup_cmd argument.
8049 (valid_command_p): Rename to validate_aliased_command.
8050 Add NULL for new default_args lookup_cmd argument. Verify that the
8051 aliased_command has no default args.
8052 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8053 (lookup_cmd_1, lookup_cmd): New argument default_args.
8055 Add NULL for new default_args lookup_cmd argument.
8056 (print_help_for_command): Show default args under the layout
8057 alias some_alias = some_aliased_cmd some_alias_default_arg.
8058 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8059 xfree default_args in destructor.
8060 * cli/cli-script.c (process_next_line, do_define_command):
8061 Add NULL for new default_args lookup_cmd argument.
8062 * command.h: Declare new default_args argument in lookup_cmd
8064 * completer.c (complete_line_internal_1):
8065 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8066 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8067 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8069 * infcmd.c (_initialize_infcmd): Likewise.
8070 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8071 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8072 * python/py-param.c (add_setshow_generic): Likewise.
8073 * remote.c (_initialize_remote): Likewise.
8074 * top.c (execute_command): Prepend default_args if command has some.
8076 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8077 * tracepoint.c (validate_actionline, encode_actions_1):
8078 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8080 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8082 * jit.c (jit_read_descriptor): Use bool as the return type.
8083 (jit_breakpoint_re_set_internal): Use bool as the return type.
8084 Invert the return value logic; return true if the jit breakpoint
8085 has been successfully initialized.
8086 (jit_inferior_init): Update the call to
8087 jit_breakpoint_re_set_internal.
8089 2020-06-22 Pedro Alves <palves@redhat.com>
8092 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8093 Use the current inferior instead. Don't return
8094 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8096 * sol-thread.c (sol_thread_target::wait): Don't reference
8098 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8099 (sol_update_thread_list_callback): Use the current inferior's pid
8100 instead of inferior_ptid.
8102 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8104 * procfs.c: Cleanup many comments.
8106 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8107 (AFTER_WATCHFLAG): Replace by value.
8109 (MAIN_PROC_NAME_FORMAT): Inline ...
8110 (create_procinfo): ... here.
8112 (procfs_debug_inferior): Remove SYS_exec handling.
8113 (syscall_is_exec): Likewise.
8114 (procfs_set_exec_trap): Likewise.
8116 (syscall_is_lwp_exit): Inline in callers.
8117 (syscall_is_exit): Likewise.
8118 (syscall_is_exec): Likewise.
8119 (syscall_is_lwp_create): Likewise.
8121 (invalidate_cache): Remove #if 0 code.
8123 (make_signal_thread_runnable): Remove.
8124 (procfs_target::resume): Remove #if 0 code.
8126 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8129 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8131 (procfs_target::create_inferior): ... here.
8133 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8135 * exec.c (validate_exec_file): Ensure the build-id is up to
8136 date by calling reopen_exec_file (that checks file timestamp
8137 to decide to re-read the file).
8139 2020-06-18 Pedro Alves <palves@redhat.com>
8142 * gdbthread.h (delete_thread, delete_thread_silent)
8143 (find_thread_ptid): Update comments.
8144 * thread.c (current_thread_): New global.
8145 (is_current_thread): Move higher, and reimplement.
8146 (inferior_thread): Reimplement.
8147 (set_thread_exited): Use bool. Add assertions.
8148 (add_thread_silent): Simplify thread-reuse handling by always
8149 calling delete_thread.
8150 (delete_thread): Remove intro comment.
8151 (find_thread_ptid): Skip exited threads.
8152 (switch_to_thread_no_regs): Write to current_thread_.
8153 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8154 INFERIOR_PTID. Clear current_thread_.
8156 2020-06-18 Pedro Alves <palves@redhat.com>
8158 * aix-thread.c (pd_update): Use switch_to_thread.
8160 2020-06-18 Pedro Alves <palves@redhat.com>
8162 * ravenscar-thread.c (ravenscar_thread_target): Update.
8163 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8164 (ravenscar_thread_target::add_active_thread): ... this. Don't
8165 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8166 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8168 2020-06-18 Pedro Alves <palves@redhat.com>
8170 * nat/windows-nat.c (current_windows_thread): Remove.
8171 * nat/windows-nat.h (current_windows_thread): Remove.
8172 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8174 (display_selectors): Adjust to fetch the current
8175 windows_thread_info based on inferior_ptid.
8176 (fake_create_process): No longer write to current_windows_thread.
8177 (windows_nat_target::get_windows_debug_event):
8178 Don't set inferior_ptid or current_windows_thread.
8179 (windows_nat_target::wait): Adjust to not rely on
8180 current_windows_thread.
8181 (do_initial_windows_stuff): Now a method of windows_nat_target.
8182 Switch to the last_ptid thread.
8183 (windows_nat_target::attach): Adjust.
8184 (windows_nat_target::detach): Use switch_to_no_thread instead of
8185 writing to inferior_ptid directly.
8186 (windows_nat_target::create_inferior): Adjust.
8188 2020-06-18 Pedro Alves <palves@redhat.com>
8190 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8192 2020-06-18 Pedro Alves <palves@redhat.com>
8194 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8195 after creating it, instead of writing to inferior_ptid. Don't
8196 write to inferior_ptid.
8198 2020-06-18 Pedro Alves <palves@redhat.com>
8200 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8202 2020-06-18 Pedro Alves <palves@redhat.com>
8204 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8205 it, instead of writing to inferior_ptid.
8207 2020-06-18 Pedro Alves <palves@redhat.com>
8209 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8212 2020-06-18 Pedro Alves <palves@redhat.com>
8214 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8215 instead of writing to inferior_ptid directly.
8217 2020-06-18 Pedro Alves <palves@redhat.com>
8219 * corelow.c (core_target::close): Use switch_to_no_thread instead
8220 of writing to inferior_ptid directly.
8221 (add_to_thread_list, core_target_open): Use switch_to_thread
8222 instead of writing to inferior_ptid directly.
8224 2020-06-18 Pedro Alves <palves@redhat.com>
8226 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8228 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8230 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8231 inferior_ptid directly.
8232 (darwin_nat_target::init_thread_list): Switch to thread, instead
8233 of writing to inferior_ptid.
8234 (darwin_nat_target::attach): Don't write to inferior_ptid.
8235 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8237 2020-06-18 Pedro Alves <palves@redhat.com>
8239 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8241 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8242 Instead use switch_to_thread.
8243 (gnu_nat_target::detach): Use switch_to_no_thread
8244 instead of writing to inferior_ptid directly. Used passed-in
8245 inferior instead of looking up the inferior by pid.
8247 2020-06-18 Pedro Alves <palves@redhat.com>
8249 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8252 2020-06-18 Pedro Alves <palves@redhat.com>
8254 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8256 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8258 (nto_procfs_target::detach): Avoid referencing
8259 inferior_ptid. Use switch_to_no_thread instead of writing to
8260 inferior_ptid directly.
8261 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8262 instead of writing to inferior_ptid directly.
8263 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8266 2020-06-18 Pedro Alves <palves@redhat.com>
8268 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8269 after creating it, instead of writing to inferior_ptid.
8270 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8271 to inferior_ptid directly.
8272 (gdbsim_target::wait): Don't write to inferior_ptid.
8274 2020-06-18 Pedro Alves <palves@redhat.com>
8276 * remote.c (remote_target::remote_notice_new_inferior): Use
8277 switch_to_thread instead of writing to inferior_ptid directly.
8278 (remote_target::add_current_inferior_and_thread): Use
8279 switch_to_no_thread instead of writing to inferior_ptid directly.
8280 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8281 and switch_to_thread instead of using set_current_inferior or
8282 writing to inferior_ptid directly.
8284 2020-06-18 Pedro Alves <palves@redhat.com>
8286 * tracectf.c (ctf_target_open): Switch to added thread instead of
8287 writing to inferior_ptid directly.
8288 (ctf_target::close): Use switch_to_no_thread instead of writing to
8289 inferior_ptid directly.
8291 2020-06-18 Pedro Alves <palves@redhat.com>
8293 * tracefile-tfile.c (tfile_target_open): Don't write to
8294 inferior_ptid directly, instead switch to added thread.
8295 (tfile_target::close): Use switch_to_no_thread instead of writing
8296 to inferior_ptid directly.
8298 2020-06-18 Pedro Alves <palves@redhat.com>
8300 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8301 (procfs_target::detach): Use switch_to_no_thread
8302 instead of writing to inferior_ptid directly.
8303 (do_attach): Change return type to void. Switch to the added
8305 (procfs_target::create_inferior): Switch to the added thread.
8306 (procfs_do_thread_registers): Don't write to inferior_ptid.
8308 2020-06-18 Pedro Alves <palves@redhat.com>
8310 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8311 of writing to inferior_ptid.
8312 (scoped_restore_exited_inferior): Delete.
8313 (handle_vfork_child_exec_or_exit): Simplify using
8314 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8315 instead of writing to inferior_ptid.
8316 (THREAD_STOPPED_BY): Delete.
8317 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8318 (thread_stopped_by_hw_breakpoint): Delete.
8319 (save_waitstatus): Use
8320 scoped_restore_current_thread+switch_to_thread, and call
8321 target_stopped_by_watchpoint instead of
8322 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8323 instead of thread_stopped_by_sw_breakpoint, and
8324 target_stopped_by_hw_breakpoint instead of
8325 thread_stopped_by_hw_breakpoint.
8326 (handle_inferior_event)
8327 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8328 inferior_ptid directly, nor
8329 set_current_inferior/set_current_program_space. Use
8330 switch_to_thread / switch_to_inferior_no_thread instead.
8332 2020-06-18 Pedro Alves <palves@redhat.com>
8334 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8335 instead of writing to inferior_ptid.
8337 2020-06-18 Pedro Alves <palves@redhat.com>
8339 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8341 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8342 to the added thread.
8343 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8344 instead of writing to inferior_ptid.
8346 2020-06-18 Pedro Alves <palves@redhat.com>
8348 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8349 (register_to_value_test): Mock a program_space too. Heap-allocate
8350 the address space. Don't write to inferior_ptid. Use
8351 switch_to_thread instead.
8353 2020-06-18 Pedro Alves <palves@redhat.com>
8355 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8357 (find_signalled_thread()): New, factored out from
8358 linux_make_corefile_notes and adjusted to handle exited threads.
8359 (linux_make_corefile_notes): Adjust to use the new
8360 find_signalled_thread.
8362 2020-06-18 Pedro Alves <palves@redhat.com>
8364 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8365 of saving/restoring inferior_ptid.
8367 2020-06-17 Tom Tromey <tom@tromey.com>
8369 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8370 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8372 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8374 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8376 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8379 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8381 * regformats/reg-arm.dat: Remove.
8382 * regformats/reg-bfin.dat: Remove.
8383 * regformats/reg-cris.dat: Remove.
8384 * regformats/reg-crisv32.dat: Remove.
8385 * regformats/reg-m32r.dat: Remove.
8386 * regformats/reg-tilegx.dat: Remove.
8387 * regformats/reg-tilegx32.dat: Remove.
8389 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8391 * features/Makefile (WHICH): Remove arm files.
8392 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8393 * regformats/arm/arm-with-neon.dat: Remove.
8394 * regformats/arm/arm-with-vfpv2.dat: Remove.
8395 * regformats/arm/arm-with-vfpv3.dat: Remove.
8397 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8399 * features/Makefile (XMLTOC): Remove rx.xml.
8401 2020-06-17 Pedro Alves <palves@redhat.com>
8403 * gdbthread.h (thread_control_state) <trap_expected> Update
8406 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8408 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8409 ada_language::lookup_symbol_nonlocal.
8410 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8411 (ada_language::lookup_symbol_nonlocal): New member function,
8412 implementation from ada_lookup_symbol_nonlocal.
8413 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8415 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8417 (cplus_language::lookup_symbol_nonlocal): New member function.
8418 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8419 (minimal_language_data) Likewise.
8420 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8421 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8423 (d_language::lookup_symbol_nonlocal): New member function.
8424 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8426 (f_language::lookup_symbol_nonlocal): New member function.
8427 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8429 * language.c (unknown_language_data): Likewise.
8430 (auto_language_data): Likewise.
8431 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8433 (language_defn::lookup_symbol_nonlocal): New member function.
8434 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8436 * objc-lang.c (objc_language_data): Likewise.
8437 * opencl-lang.c (opencl_language_data): Likewise.
8438 * p-lang.c (pascal_language_data): Likewise.
8439 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8440 rust_language::lookup_symbol_nonlocal.
8441 (rust_language_data): Delete la_lookup_symbol_nonlocal
8443 (rust_language::lookup_symbol_nonlocal): New member function,
8444 implementation from rust_lookup_symbol_nonlocal.
8445 * symtab.c (lookup_symbol_aux): Update call to
8446 lookup_symbol_nonlocal.
8447 (basic_lookup_symbol_nonlocal): Rename to...
8448 (language_defn::lookup_symbol_nonlocal): ...this, and update
8449 header comment. Remove language_defn parameter, and replace with
8451 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8453 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8455 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8457 (ada_language::value_print_inner): New member function.
8458 * c-lang.c (c_language_data): Delete la_value_print_inner
8460 (cplus_language_data): Likewise.
8461 (asm_language_data): Likewise.
8462 (minimal_language_data): Likewise.
8463 * d-lang.c (d_language_data): Likewise.
8464 (d_language::value_print_inner): New member function.
8465 * f-lang.c (f_language_data): Delete la_value_print_inner
8467 (f_language::value_print_inner): New member function.
8468 * f-lang.h (f_value_print_innner): Rename to...
8469 (f_value_print_inner): ...this (note spelling of 'inner').
8470 * f-valprint.c (f_value_print_innner): Rename to...
8471 (f_value_print_inner): ...this (note spelling of 'inner').
8472 * go-lang.c (go_language_data): Delete la_value_print_inner
8474 (go_language::value_print_inner): New member function.
8475 * language.c (language_defn::value_print_inner): Define new member
8477 (unk_lang_value_print_inner): Delete.
8478 (unknown_language_data): Delete la_value_print_inner initializer.
8479 (unknown_language::value_print_inner): New member function.
8480 (auto_language_data): Delete la_value_print_inner initializer.
8481 (auto_language::value_print_inner): New member function.
8482 * language.h (language_data): Delete la_value_print_inner field.
8483 (language_defn::value_print_inner): Delcare new member function.
8484 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8486 (m2_language::value_print_inner): New member function.
8487 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8489 * opencl-lang.c (opencl_language_data): Likewise.
8490 * p-lang.c (pascal_language_data): Likewise.
8491 (pascal_language::value_print_inner): New member function.
8492 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8494 (rust_language::value_print_inner): New member function.
8495 * valprint.c (do_val_print): Update call to value_print_inner.
8497 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8499 * ada-lang.c (ada_language_data): Delete la_value_print
8501 (ada_language::value_print): New member function.
8502 * c-lang.c (c_language_data): Delete la_value_print initializer.
8503 (cplus_language_data): Likewise.
8504 (asm_language_data): Likewise.
8505 (minimal_language_data): Likewise.
8506 * d-lang.c (d_language_data): Likewise.
8507 * f-lang.c (f_language_data): Likewise.
8508 * go-lang.c (go_language_data): Likewise.
8509 * language.c (unk_lang_value_print): Delete.
8510 (language_defn::value_print): Define new member function.
8511 (unknown_language_data): Delete la_value_print initializer.
8512 (unknown_language::value_print): New member function.
8513 (auto_language_data): Delete la_value_print initializer.
8514 (auto_language::value_print): New member function.
8515 * language.h (language_data): Delete la_value_print field.
8516 (language_defn::value_print): Declare new member function.
8517 (LA_VALUE_PRINT): Update call to value_print.
8518 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8519 * objc-lang.c (objc_language_data): Likewise.
8520 * opencl-lang.c (opencl_language_data): Likewise.
8521 * p-lang.c (pascal_language_data): Likewise.
8522 (pascal_language::value_print): New member function.
8523 * rust-lang.c (rust_language_data): Delete la_value_print
8526 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8528 * ada-lang.c (ada_watch_location_expression): Rename to
8529 ada_language::watch_location_expression.
8530 (ada_language_data): Delete la_watch_location_expression
8532 (ada_language::watch_location_expression): New member function,
8533 implementation from ada_watch_location_expression.
8534 * breakpoint.c (watch_command_1): Update call to
8535 watch_location_expression.
8536 * c-lang.c (c_watch_location_expression): Rename to
8537 language_defn::watch_location_expression.
8538 (c_language_data): Delete la_watch_location_expression
8540 (cplus_language_data): Likewise.
8541 (asm_language_data): Likewise.
8542 (minimal_language_data): Likewise.
8543 * c-lang.h (c_watch_location_expression): Delete declaration.
8544 * d-lang.c (d_language_data): Delete la_watch_location_expression
8546 * f-lang.c (f_language_data): Likewise.
8547 * go-lang.c (go_language_data): Likewise.
8548 * language.c (language_defn::watch_location_expression): Member
8549 function implementation from c_watch_location_expression.
8550 (unknown_language_data): Delete la_watch_location_expression
8552 (auto_language_data): Likewise.
8553 * language.h (language_data): Delete la_watch_location_expression
8555 (language_defn::watch_location_expression): Declare new member
8557 * m2-lang.c (m2_language_data): Delete
8558 la_watch_location_expression initializer.
8559 * objc-lang.c (objc_language_data): Likewise.
8560 * opencl-lang.c (opencl_language_data): Likewise.
8561 * p-lang.c (pascal_language_data): Likewise.
8562 * rust-lang.c (rust_watch_location_expression): Rename to
8563 rust_language::watch_location_expression.
8564 (rust_language_data): Delete la_watch_location_expression
8566 (rust_language::watch_location_expression): New member function,
8567 implementation from rust_watch_location_expression.
8569 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8571 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8572 ada_language::collect_symbol_completion_matches.
8573 (ada_language_data): Delete la_collect_symbol_completion_matches
8575 (ada_language::collect_symbol_completion_matches): New member
8576 function, implementation from
8577 ada_collect_symbol_completion_matches.
8578 * c-lang.c (c_language_data): Delete
8579 la_collect_symbol_completion_matches initializer.
8580 (cplus_language_data): Likewise.
8581 (asm_language_data): Likewise.
8582 (minimal_language_data): Likewise.
8583 * d-lang.c (d_language_data): Likewise.
8584 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8585 f_language::collect_symbol_completion_matches.
8586 (f_language_data): Delete la_collect_symbol_completion_matches
8588 (f_language::collect_symbol_completion_matches) New member
8589 function, implementation from f_collect_symbol_completion_matches.
8590 * go-lang.c (go_language_data): Delete
8591 la_collect_symbol_completion_matches initializer.
8592 * language.c (unknown_language_data): Likewise.
8593 (auto_language_data): Likewise.
8594 * language.h (language_data): Delete
8595 la_collect_symbol_completion_matches field.
8596 (language_defn::collect_symbol_completion_matches): New member
8598 * m2-lang.c (m2_language_data): Delete
8599 la_collect_symbol_completion_matches initializer.
8600 * objc-lang.c (objc_language_data): Likewise.
8601 * opencl-lang.c (opencl_language_data): Likewise.
8602 * p-lang.c (pascal_language_data): Likewise.
8603 * rust-lang.c (rust_language_data): Likewise.
8604 * symtab.c (default_collect_symbol_completion_matches): Delete.
8605 (collect_symbol_completion_matches): Update call to
8606 collect_symbol_completion_matches.
8607 (collect_symbol_completion_matches_type): Likewise.
8608 * symtab.h (default_collect_symbol_completion_matches): Delete
8611 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8613 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8614 (ada_language_data): Delete la_word_break_characters initializer.
8615 (ada_language::word_break_characters): New member function.
8616 * c-lang.c (c_language_data): Delete la_word_break_characters
8618 (cplus_language_data): Likewise.
8619 (asm_language_data): Likewise.
8620 (minimal_language_data): Likewise.
8621 * completer.c: Update global comment.
8622 (advance_to_expression_complete_word_point): Update call to
8623 word_break_characters.
8624 (complete_files_symbols): Likewise.
8625 (complete_line_internal_1): Likewise.
8626 (default_completer_handle_brkchars): Likewise.
8627 (skip_quoted_chars): Likewise.
8628 * d-lang.c (d_language_data): Delete la_word_break_characters
8630 * f-lang.c (f_word_break_characters): Delete.
8631 (f_language_data): Delete la_word_break_characters initializer.
8632 (f_language::word_break_characters): New member function.
8633 * go-lang.c (go_language_data): Delete la_word_break_characters
8635 * language.c (unknown_language_data): Likewise.
8636 (auto_language_data): Likewise.
8637 * language.h (default_word_break_characters): Move declaration to
8638 earlier in the file.
8639 (language_data): Delete la_word_break_characters field.
8640 (language_defn::word_break_characters): New member function.
8641 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8643 * objc-lang.c (objc_language_data): Likewise.
8644 * opencl-lang.c (opencl_language_data): Likewise.
8645 * p-lang.c (pascal_language_data): Likewise.
8646 * rust-lang.c (rust_language_data): Likewise.
8648 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8650 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8651 (ada_language_data): Delete la_get_symbol_name_matcher
8653 (language_defn::get_symbol_name_matcher_inner): New member
8655 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8657 (cplus_language_data): Likewise.
8658 (cplus_language::get_symbol_name_matcher_inner): New member
8660 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8661 (minimal_language_data): Likewise.
8662 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8663 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8665 * dictionary.c (iter_match_first_hashed): Update call to
8666 get_symbol_name_matcher.
8667 (iter_match_next_hashed): Likewise.
8668 (iter_match_next_linear): Likewise.
8669 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8670 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8672 (f_language::get_symbol_name_matcher_inner): New member function.
8673 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8675 * language.c (default_symbol_name_matcher): Update header comment,
8677 (language_defn::get_symbol_name_matcher): New definition.
8678 (language_defn::get_symbol_name_matcher_inner): Likewise.
8679 (get_symbol_name_matcher): Delete.
8680 (unknown_language_data): Delete la_get_symbol_name_matcher
8682 (auto_language_data): Likewise.
8683 * language.h (language_data): Delete la_get_symbol_name_matcher
8685 (language_defn::get_symbol_name_matcher): New member function.
8686 (language_defn::get_symbol_name_matcher_inner): Likewise.
8687 (default_symbol_name_matcher): Delete declaration.
8688 * linespec.c (find_methods): Update call to
8689 get_symbol_name_matcher.
8690 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8692 * minsyms.c (lookup_minimal_symbol): Update call to
8693 get_symbol_name_matcher.
8694 (iterate_over_minimal_symbols): Likewise.
8695 * objc-lang.c (objc_language_data): Delete
8696 la_get_symbol_name_matcher initializer.
8697 * opencl-lang.c (opencl_language_data): Likewise.
8698 * p-lang.c (pascal_language_data): Likewise.
8699 * psymtab.c (psymbol_name_matches): Update call to
8700 get_symbol_name_matcher.
8701 * rust-lang.c (rust_language_data): Delete
8702 la_get_symbol_name_matcher initializer.
8703 * symtab.c (symbol_matches_search_name): Update call to
8704 get_symbol_name_matcher.
8705 (compare_symbol_name): Likewise.
8707 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8709 * ada-lang.c (ada_language_data): Delete la_compute_program
8711 * c-lang.c (c_language_data): Likewise.
8712 (c_language::compute_program): New member function.
8713 (cplus_language_data): Delete la_compute_program initializer.
8714 (cplus_language::compute_program): New member function.
8715 (asm_language_data): Delete la_compute_program initializer.
8716 (minimal_language_data): Likewise.
8717 * c-lang.h (c_compute_program): Update comment.
8718 (cplus_compute_program): Likewise.
8719 * compile/compile-c-support.c (c_compute_program): Likewise.
8720 (cplus_compute_program): Likewise.
8721 * compile/compile.c (compile_to_object): Update call to
8723 * d-lang.c (d_language_data): Delete la_compute_program
8725 * f-lang.c (f_language_data): Likewise.
8726 * go-lang.c (go_language_data): Likewise.
8727 * language.c (unknown_language_data): Likewise.
8728 (auto_language_data): Likewise.
8729 * language.h (language_data): Delete la_compute_program field.
8730 (language_defn::compute_program): New member function.
8731 * m2-lang.c (m2_language_data): Delete la_compute_program
8733 * objc-lang.c (objc_language_data): Likewise.
8734 * opencl-lang.c (opencl_language_data): Likewise.
8735 * p-lang.c (pascal_language_data): Likewise.
8736 * rust-lang.c (rust_language_data): Likewise.
8738 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8740 * ada-lang.c (ada_language_data) Delete
8741 la_class_name_from_physname initializer.
8742 * c-lang.c (c_language_data): Likewise.
8743 (cplus_language_data): Likewise.
8744 (cplus_language::class_name_from_physname): New member function.
8745 (asm_language_data): Delete la_class_name_from_physname
8747 (minimal_language_data): Likewise.
8748 * d-lang.c (d_language_data): Likewise.
8749 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8750 method on language_defn class.
8751 (guess_full_die_structure_name): Likewise.
8752 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8754 * go-lang.c (go_language_data): Likewise.
8755 * language.c (language_class_name_from_physname): Delete.
8756 (unk_lang_class_name): Delete.
8757 (unknown_language_data): Delete la_class_name_from_physname
8759 (auto_language_data): Likewise.
8760 * language.h (language_data): Delete la_class_name_from_physname
8762 (language_defn::class_name_from_physname): New function.
8763 (language_class_name_from_physname): Delete declaration.
8764 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8766 * objc-lang.c (objc_language_data): Likewise.
8767 * opencl-lang.c (opencl_language_data): Likewise.
8768 * p-lang.c (pascal_language_data): Likewise.
8769 * rust-lang.c (rust_language_data): Likewise.
8771 2020-06-16 Tom Tromey <tom@tromey.com>
8773 * tui/tui-data.h (STATUS_NAME): New macro.
8774 * tui/tui-layout.c (tui_remove_some_windows)
8775 (initialize_known_windows, tui_register_window)
8776 (tui_layout_split::remove_windows, initialize_layouts)
8777 (tui_new_layout_command): Don't use hard-coded window names.
8779 2020-06-16 Tom Tromey <tom@tromey.com>
8782 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8783 tui_initialize_readline. Only run once. Call rl_initialize.
8784 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8785 tui_initialize_readline.
8786 * tui/tui-io.c (tui_setup_io): Call
8787 tui_ensure_readline_initialized.
8788 * tui/tui-interp.c (tui_interp::init): Update.
8790 2020-06-16 Tom Tromey <tom@tromey.com>
8792 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8793 Also preserve the status window.
8795 2020-06-16 Tom Tromey <tom@tromey.com>
8797 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8798 where m_window==nullptr.
8800 2020-06-15 Tom Tromey <tromey@adacore.com>
8802 * windows-nat.c (windows_nat::handle_output_debug_string):
8804 (windows_nat::handle_ms_vc_exception): Update.
8805 * target.h (target_read_string): Change API.
8806 * target.c (target_read_string): Change API.
8807 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8809 * solib-frv.c (frv_current_sos): Update.
8810 * solib-dsbt.c (dsbt_current_sos): Update.
8811 * solib-darwin.c (darwin_current_sos): Update.
8812 * linux-thread-db.c (inferior_has_bug): Update.
8813 * expprint.c (print_subexp_standard): Update.
8814 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8815 (ada_exception_message_1): Update.
8817 2020-06-15 Tom Tromey <tromey@adacore.com>
8819 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8821 2020-06-15 Tom Tromey <tromey@adacore.com>
8823 * valprint.c (read_string): Update comment.
8824 * target.c (MIN): Remove.
8825 (target_read_string): Rewrite.
8827 2020-06-15 Tom Tromey <tromey@adacore.com>
8829 * corefile.c (read_memory_string): Remove.
8830 * ada-valprint.c (ada_value_print_ptr): Update.
8831 * ada-lang.h (ada_tag_name): Change return type.
8832 * ada-lang.c (type_from_tag): Update.
8833 (ada_tag_name_from_tsd): Change return type. Use
8835 (ada_tag_name): Likewise.
8836 * gdbcore.h (read_memory_string): Don't declare.
8838 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8840 * symtab.c (rbreak_command): Ignore Windows drive colon.
8842 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8844 * NEWS: Mention removed GDBserver host support.
8846 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8848 * features/riscv/rebuild-csr-xml.sh: Updated.
8850 2020-06-11 Tom Tromey <tom@tromey.com>
8853 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8855 2020-06-09 Jonny Grant <jg@jguk.org>
8856 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8858 * main.c (captured_main_1): Don't print new line after help.
8859 (print_gdb_help): add mailing list and IRC channel information
8860 to --help. Add new lines between items in the footer. Remove
8861 quotes around bug url.
8863 2020-06-11 Keith Seitz <keiths@redhat.com>
8866 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8867 Resolve typedefs for type length calculations.
8869 2020-06-10 Tom de Vries <tdevries@suse.de>
8872 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8873 (write_psymbols): Enable .gdb_index for ada.
8874 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8877 2020-06-10 Tom de Vries <tdevries@suse.de>
8879 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8880 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8881 namei" instead of "const char *name" argument.
8882 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8883 dw2_symtab_iter_init.
8885 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8887 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8888 to use type::field and field::type instead.
8890 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8892 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8893 to use field::type instead.
8895 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8897 * gdbtypes.h (struct field) <type, set_type>: New methods.
8898 Rename `type` field to...
8899 <m_type>: ... this. Change references throughout to use type or
8901 (FIELD_TYPE): Use field::type. Change call sites that modify
8902 the field's type to use field::set_type instead.
8904 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8906 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8907 to use type::index_type instead.
8909 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8911 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8913 (TYPE_INDEX_TYPE): Use type::index_type.
8914 * gdbtypes.c (create_array_type_with_stride): Likewise.
8916 2020-06-07 Tom Tromey <tom@tromey.com>
8918 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8920 (generic_value_print): Update.
8922 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8924 Revert commit 982a38f60b0.
8925 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8927 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8929 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8930 avoid use after free.
8932 2020-06-05 Tom de Vries <tdevries@suse.de>
8936 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8938 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8940 (dwarf2_read_debug_names): Likewise.
8941 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8942 object when re-using a per_bfd object with an index.
8944 2020-06-03 Tom de Vries <tdevries@suse.de>
8947 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8949 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8952 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8954 * ada-lang.c (ada_language_data): Delete skip_trampoline
8956 * c-lang.c (c_language_data): Likewise.
8957 (cplus_language_data): Likewise.
8958 (cplus_language::skip_trampoline): New member function.
8959 (asm_language_data): Delete skip_trampoline initializer.
8960 (minimal_language_data): Likewise.
8961 * d-lang.c (d_language_data): Likewise.
8962 * f-lang.c (f_language_data): Likewise.
8963 * go-lang.c (go_language_data): Likewise.
8964 * language.c (unk_lang_trampoline): Delete function.
8965 (skip_language_trampoline): Update.
8966 (unknown_language_data): Delete skip_trampoline initializer.
8967 (auto_language_data): Likewise.
8968 * language.h (language_data): Delete skip_trampoline field.
8969 (language_defn::skip_trampoline): New function.
8970 * m2-lang.c (m2_language_data): Delete skip_trampoline
8972 * objc-lang.c (objc_skip_trampoline): Delete function, move
8973 implementation to objc_language::skip_trampoline.
8974 (objc_language_data): Delete skip_trampoline initializer.
8975 (objc_language::skip_trampoline): New member function with
8976 implementation from objc_skip_trampoline.
8977 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8979 * p-lang.c (pascal_language_data): Likewise.
8980 * rust-lang.c (rust_language_data): Likewise.
8982 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8984 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8985 (ada_language::demangle): New member function.
8986 * c-lang.c (c_language_data): Delete la_demangle initializer.
8987 (cplus_language_data): Delete la_demangle initializer.
8988 (cplus_language::demangle): New member function.
8989 (asm_language_data): Delete la_demangle initializer.
8990 (minimal_language_data): Delete la_demangle initializer.
8991 * d-lang.c (d_language_data): Delete la_demangle initializer.
8992 (d_language::demangle): New member function.
8993 * f-lang.c (f_language_data): Delete la_demangle initializer.
8994 (f_language::demangle): New member function.
8995 * go-lang.c (go_language_data): Delete la_demangle initializer.
8996 (go_language::demangle): New member function.
8997 * language.c (language_demangle): Update.
8998 (unk_lang_demangle): Delete.
8999 (unknown_language_data): Delete la_demangle initializer.
9000 (unknown_language::demangle): New member function.
9001 (auto_language_data): Delete la_demangle initializer.
9002 (auto_language::demangle): New member function.
9003 * language.h (language_data): Delete la_demangle field.
9004 (language_defn::demangle): New function.
9005 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9006 * objc-lang.c (objc_language_data): Delete la_demangle
9008 (objc_language::demangle): New member function.
9009 * opencl-lang.c (opencl_language_data): Delete la_demangle
9011 * p-lang.c (pascal_language_data): Likewise.
9012 * rust-lang.c (rust_language_data): Likewise.
9013 (rust_language::demangle): New member function.
9015 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9017 * ada-lang.c (ada_language_data): Delete la_print_type
9019 (ada_language::print_type): New member function.
9020 * c-lang.c (c_language_data): Delete la_print_type initializer.
9021 (c_language::print_type): New member function.
9022 (cplus_language_data): Delete la_print_type initializer.
9023 (cplus_language::print_type): New member function.
9024 (asm_language_data): Delete la_print_type initializer.
9025 (asm_language::print_type): New member function.
9026 (minimal_language_data): Delete la_print_type initializer.
9027 (minimal_language::print_type): New member function.
9028 * d-lang.c (d_language_data): Delete la_print_type initializer.
9029 (d_language::print_type): New member function.
9030 * f-lang.c (f_language_data): Delete la_print_type initializer.
9031 (f_language::print_type): New member function.
9032 * go-lang.c (go_language_data): Delete la_print_type initializer.
9033 (go_language::print_type): New member function.
9034 * language.c (unk_lang_print_type): Delete.
9035 (unknown_language_data): Delete la_print_type initializer.
9036 (unknown_language::print_type): New member function.
9037 (auto_language_data): Delete la_print_type initializer.
9038 (auto_language::print_type): New member function.
9039 * language.h (language_data): Delete la_print_type field.
9040 (language_defn::print_type): New function.
9041 (LA_PRINT_TYPE): Update.
9042 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9043 (m2_language::print_type): New member function.
9044 * objc-lang.c (objc_language_data): Delete la_print_type
9046 (objc_language::print_type): New member function.
9047 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9048 to opencl_language::print_type.
9049 (opencl_language_data): Delete la_print_type initializer.
9050 (opencl_language::print_type): New member function, implementation
9051 from opencl_print_type.
9052 * p-lang.c (pascal_language_data): Delete la_print_type
9054 (pascal_language::print_type): New member function.
9055 * rust-lang.c (rust_print_type): Delete, implementation moved to
9056 rust_language::print_type.
9057 (rust_language_data): Delete la_print_type initializer.
9058 (rust_language::print_type): New member function, implementation
9059 from rust_print_type.
9061 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9063 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9064 implementation moves to...
9065 (ada_language::sniff_from_mangled_name): ...here. Update return
9067 (ada_language_data): Delete la_sniff_from_mangled_name
9069 * c-lang.c (c_language_data): Likewise.
9070 (cplus_language_data): Likewise.
9071 (cplus_language::sniff_from_mangled_name): New member function,
9072 implementation taken from gdb_sniff_from_mangled_name.
9073 (asm_language_data): Delete la_sniff_from_mangled_name
9075 (minimal_language_data): Likewise.
9076 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9077 implementation moves to cplus_language::sniff_from_mangled_name.
9078 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9079 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9081 (d_language::sniff_from_mangled_name): ...here.
9082 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9083 * f-lang.c (f_language_data): Likewise.
9084 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9086 (go_language::sniff_from_mangled_name): ...here.
9087 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9088 * language.c (language_sniff_from_mangled_name): Delete.
9089 (unknown_language_data): Delete la_sniff_from_mangled_name
9091 (auto_language_data): Likewise.
9092 * language.h (language_data): Delete la_sniff_from_mangled_name
9094 (language_defn::sniff_from_mangled_name): New function.
9095 (language_sniff_from_mangled_name): Delete declaration.
9096 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9098 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9099 implementation moves to...
9100 (objc_language::sniff_from_mangled_name): ...here.
9101 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9102 * opencl-lang.c (opencl_language_data): Likewise.
9103 * p-lang.c (pascal_language_data): Likewise.
9104 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9105 implementation moves to...
9106 (rust_language::sniff_from_mangled_name): ...here.
9107 (rust_language_data): Delete la_sniff_from_mangled_name
9109 * symtab.c (symbol_find_demangled_name): Call
9110 sniff_from_mangled_name member function.
9112 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9114 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9116 * c-lang.c (c_language_data): Likewise.
9117 (cplus_language_data): Likewise.
9118 (cplus_language::search_name_hash): New member function.
9119 (asm_language_data): Delete la_search_name_hash initializer.
9120 (minimal_language_data): Likewise.
9121 * d-lang.c (d_language_data): Likewise.
9122 * dictionary.c (default_search_name_hash): Rename to...
9123 (language_defn::search_name_hash): ...this.
9124 * f-lang.c (f_language_data): Likewise.
9125 (f_language::search_name_hash): New member function.
9126 * go-lang.c (go_language_data): Delete la_search_name_hash
9128 * language.c (unknown_language_data): Likewise.
9129 (auto_language_data): Likewise.
9130 * language.h (struct language_data): Delete la_search_name_hash
9132 (language_defn::search_name_hash): Declare new member function.
9133 (default_search_name_hash): Delete declaration.
9134 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9136 * objc-lang.c (objc_language_data): Likewise.
9137 * opencl-lang.c (opencl_language_data): Likewise.
9138 * p-lang.c (pascal_language_data): Likewise.
9139 * rust-lang.c (rust_language_data): Likewise.
9140 * symtab.c (search_name_hash): Update call.
9142 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9144 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9146 * c-lang.c (class compile_instance): Declare.
9147 (c_language_data): Delete la_get_compile_instance initializer.
9148 (c_language::get_compile_instance): New member function.
9149 (cplus_language_data): Delete la_get_compile_instance initializer.
9150 (cplus_language::get_compile_instance): New member function.
9151 (asm_language_data): Delete la_get_compile_instance initializer.
9152 (minimal_language_data): Likewise.
9153 * c-lang.h (c_get_compile_context): Update comment.
9154 (cplus_get_compile_context): Update comment.
9155 * compile/compile.c (compile_to_object): Update calls, don't rely
9156 on function pointer being NULL.
9157 * d-lang.c (d_language_data): Delete la_get_compile_instance
9159 * f-lang.c (f_language_data): Likewise.
9160 * go-lang.c (go_language_data): Likewise.
9161 * language.c (unknown_language_data): Likewise.
9162 (auto_language_data): Likewise.
9163 * language.h (language_data): Delete la_get_compile_instance field.
9164 (language_defn::get_compile_instance): New member function.
9165 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9167 * objc-lang.c (objc_language_data): Likewise.
9168 * opencl-lang.c (opencl_language_data): Likewise.
9169 * p-lang.c (pascal_language_data): Likewise.
9170 * rust-lang.c (rust_language_data): Likewise.
9172 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9174 * ada-lang.c (ada_add_all_symbols): Update comment.
9175 (ada_iterate_over_symbols): Delete, move implementation to...
9176 (ada_language::iterate_over_symbols): ...here, a new member
9177 function, rewrite to use range based for loop.
9178 (ada_language_data): Delete la_iterate_over_symbols initializer.
9179 * c-lang.c (c_language_data): Likewise.
9180 (cplus_language_data): Likewise.
9181 (asm_language_data): Likewise.
9182 (minimal_language_data): Likewise.
9183 * d-lang.c (d_language_data): Likewise.
9184 * f-lang.c (f_language_data): Likewise.
9185 * go-lang.c (go_language_data): Likewise.
9186 * language.c (unknown_language_data): Likewise.
9187 (auto_language_data): Likewise.
9188 * language.h (language_data): Delete la_iterate_over_symbols field.
9189 (language_defn::iterate_over_symbols): New member function.
9190 (LA_ITERATE_OVER_SYMBOLS): Update.
9191 * linespec.c (iterate_over_all_matching_symtabs): Update.
9192 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9194 * objc-lang.c (objc_language_data): Likewise.
9195 * opencl-lang.c (opencl_language_data): Likewise.
9196 * p-lang.c (pascal_language_data): Likewise.
9197 * rust-lang.c (rust_language_data): Likewise.
9199 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9201 * ada-lang.c (ada_language_data): Delete
9202 la_lookup_transparent_type initializer.
9203 * c-lang.c (c_language_data): Likewise.
9204 (cplus_language_data): Likewise.
9205 (cplus_language::lookup_transparent_type): New member function.
9206 (asm_language_data): Delete la_lookup_transparent_type
9208 (minimal_language_data): Likewise.
9209 * d-lang.c (d_language_data): Likewise.
9210 * f-lang.c (f_language_data): Likewise.
9211 * go-lang.c (go_language_data): Likewise.
9212 * language.c (unknown_language_data): Likewise.
9213 (auto_language_data): Likewise.
9214 * language.h (struct language_data): Delete
9215 la_lookup_transparent_type field.
9216 (language_defn::lookup_transparent_type): New member function.
9217 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9219 * objc-lang.c (objc_language_data): Likewise.
9220 * opencl-lang.c (opencl_language_data): Likewise.
9221 * p-lang.c (pascal_language_data): Likewise.
9222 * rust-lang.c (rust_language_data): Likewise.
9223 * symtab.c (symbol_matches_domain): Update call.
9225 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9227 * ada-lang.c (ada_language_arch_info): Delete function, move
9228 implementation to...
9229 (ada_language::language_arch_info): ...here, a new member
9231 (ada_language_data): Delete la_language_arch_info.
9232 * c-lang.c (c_language_data): Likewise.
9233 (c_language::language_arch_info): New member function.
9234 (cplus_language_arch_info): Delete function, move
9235 implementation to...
9236 (cplus_language::language_arch_info): ...here, a new member
9238 (cplus_language_data): Delete la_language_arch_info.
9239 (asm_language_data): Likewise.
9240 (asm_language::language_arch_info): New member function.
9241 (minimal_language_data): Delete la_language_arch_info.
9242 (minimal_language::language_arch_info): New member function.
9243 * d-lang.c (d_language_arch_info): Delete function, move
9244 implementation to...
9245 (d_language::language_arch_info): ...here, a new member
9247 (d_language_data): Delete la_language_arch_info.
9248 * f-lang.c (f_language_arch_info): Delete function, move
9249 implementation to...
9250 (f_language::language_arch_info): ...here, a new member
9252 (f_language_data): Delete la_language_arch_info.
9253 * go-lang.c (go_language_arch_info): Delete function, move
9254 implementation to...
9255 (go_language::language_arch_info): ...here, a new member
9257 (go_language_data): Delete la_language_arch_info.
9258 * language.c (unknown_language_data): Likewise.
9259 (unknown_language::language_arch_info): New member function.
9260 (auto_language_data): Delete la_language_arch_info.
9261 (auto_language::language_arch_info): New member function.
9262 (language_gdbarch_post_init): Update call to
9263 la_language_arch_info.
9264 * language.h (language_data): Delete la_language_arch_info
9266 (language_defn::language_arch_info): New function.
9267 * m2-lang.c (m2_language_arch_info): Delete function, move
9268 implementation to...
9269 (m2_language::language_arch_info): ...here, a new member
9271 (m2_language_data): Delete la_language_arch_info.
9272 * objc-lang.c (objc_language_arch_info): Delete function, move
9273 implementation to...
9274 (objc_language::language_arch_info): ...here, a new member
9276 (objc_language_data): Delete la_language_arch_info.
9277 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9278 implementation to...
9279 (opencl_language::language_arch_info): ...here, a new member
9281 (opencl_language_data): Delete la_language_arch_info.
9282 * p-lang.c (pascal_language_arch_info): Delete function, move
9283 implementation to...
9284 (pascal_language::language_arch_info): ...here, a new member
9286 (pascal_language_data): Delete la_language_arch_info.
9287 * rust-lang.c (rust_language_arch_info): Delete function, move
9288 implementation to...
9289 (rust_language::language_arch_info): ...here, a new member
9291 (rust_language_data): Delete la_language_arch_info.
9293 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9295 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9297 * c-lang.c (c_language_data): Likewise.
9298 (cplus_language_data): Likewise.
9299 (cplus_language::pass_by_reference_info): New method.
9300 (asm_language_data): Delete la_pass_by_reference initializer.
9301 (minimal_language_data): Likewise.
9302 * cp-abi.c (cp_pass_by_reference): Remove use of
9303 default_pass_by_reference.
9304 * d-lang.c (d_language_data): Likewise.
9305 * f-lang.c (f_language_data): Likewise.
9306 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9307 default_pass_by_reference.
9308 * go-lang.c (go_language_data): Likewise.
9309 * language.c (language_pass_by_reference): Update.
9310 (default_pass_by_reference): Delete.
9311 (unknown_language_data): Delete la_pass_by_reference
9313 (auto_language_data): Likewise.
9314 * language.h (struct language_data): Delete la_pass_by_reference
9316 (language_defn::pass_by_reference_info): New member function.
9317 (default_pass_by_reference): Delete declaration.
9318 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9320 * objc-lang.c (objc_language_data): Likewise.
9321 * opencl-lang.c (opencl_language_data): Likewise.
9322 * p-lang.c (pascal_language_data): Likewise.
9323 * rust-lang.c (rust_language_data): Likewise.
9325 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9327 * ada-lang.c (ada_read_var_value): Delete function, move
9328 implementation to...
9329 (ada_language::read_var_value): ...here.
9330 (ada_language_data): Delete la_read_var_value initializer.
9331 * c-lang.c (c_language_data): Likewise.
9332 (cplus_language_data): Likewise.
9333 (minimal_language_data): Likewise.
9334 * d-lang.c (d_language_data): Likewise.
9335 * f-lang.c (f_language_data): Likewise.
9336 * findvar.c (default_read_var_value): Rename to...
9337 (language_defn::read_var_value): ...this.
9338 * findvar.c (read_var_value): Update header comment, and change to
9339 call member function instead of function pointer.
9340 * go-lang.c (go_language_data): Likewise.
9341 * language.c (unknown_language_data): Delete la_read_var_value
9343 (auto_language_data): Likewise.
9344 * language.h (struct language_data): Delete la_read_var_value
9346 (language_defn::read_var_value): New member function.
9347 (default_read_var_value): Delete declaration.
9348 * m2-lang.c (m2_language_data): Delete la_read_var_value
9350 * objc-lang.c (objc_language_data): Likewise.
9351 * opencl-lang.c (opencl_language_data): Likewise.
9352 * p-lang.c (pascal_language_data): Likewise.
9353 * rust-lang.c (rust_language_data): Likewise.
9354 * value.h (default_read_var_value): Delete declaration.
9356 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9358 * ada-lang.c (ada_print_array_index): Delete function, move
9359 implementation to...
9360 (ada_language::print_array_index): ...here.
9361 (ada_language_data): Delete la_print_array_index initializer.
9362 * c-lang.c (c_language_data): Likewise.
9363 (cplus_language_data): Likewise.
9364 (minimal_language_data): Likewise.
9365 * d-lang.c (d_language_data): Likewise.
9366 * f-lang.c (f_language_data): Likewise.
9367 * go-lang.c (go_language_data): Likewise.
9368 * language.c (default_print_array_index): Delete function, move
9369 implementation to...
9370 (language_defn::print_array_index): ...here.
9371 (unknown_language_data): Delete la_print_array_index initializer.
9372 (auto_language_data): Likewise.
9373 * language.h (struct language_data): Delete la_print_array_index
9375 (language_defn::print_array_index): New member function.
9376 (LA_PRINT_ARRAY_INDEX): Update.
9377 (default_print_array_index): Delete declaration.
9378 * m2-lang.c (m2_language_data): Delete la_print_array_index
9380 * objc-lang.c (objc_language_data): Likewise.
9381 * opencl-lang.c (opencl_language_data): Likewise.
9382 * p-lang.c (pascal_language_data): Likewise.
9383 * rust-lang.c (rust_language_data): Likewise.
9385 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9387 * gdb/ada-lang.c (ada_language_defn): Convert to...
9388 (ada_language_data): ...this.
9389 (class ada_language): New class.
9390 (ada_language_defn): New static global.
9391 * gdb/c-lang.c (c_language_defn): Convert to...
9392 (c_language_data): ...this.
9393 (class c_language): New class.
9394 (c_language_defn): New static global.
9395 (cplus_language_defn): Convert to...
9396 (cplus_language_data): ...this.
9397 (class cplus_language): New class.
9398 (cplus_language_defn): New static global.
9399 (asm_language_defn): Convert to...
9400 (asm_language_data): ...this.
9401 (class asm_language): New class.
9402 (asm_language_defn): New static global.
9403 (minimal_language_defn): Convert to...
9404 (minimal_language_data): ...this.
9405 (class minimal_language): New class.
9406 (minimal_language_defn): New static global.
9407 * gdb/d-lang.c (d_language_defn): Convert to...
9408 (d_language_data): ...this.
9409 (class d_language): New class.
9410 (d_language_defn): New static global.
9411 * gdb/f-lang.c (f_language_defn): Convert to...
9412 (f_language_data): ...this.
9413 (class f_language): New class.
9414 (f_language_defn): New static global.
9415 * gdb/go-lang.c (go_language_defn): Convert to...
9416 (go_language_data): ...this.
9417 (class go_language): New class.
9418 (go_language_defn): New static global.
9419 * gdb/language.c (unknown_language_defn): Remove declaration.
9420 (current_language): Initialize to nullptr, real initialization is
9421 moved to _initialize_language.
9422 (languages): Delete global.
9423 (language_defn::languages): Define.
9424 (set_language_command): Use language_defn::languages.
9425 (set_language): Likewise.
9426 (range_error): Likewise.
9427 (language_enum): Likewise.
9428 (language_def): Likewise.
9429 (add_set_language_command): Use language_def::languages for the
9430 language list, and language_def to lookup language pointers.
9431 (skip_language_trampoline): Use language_defn::languages.
9432 (unknown_language_defn): Convert to...
9433 (unknown_language_data): ...this.
9434 (class unknown_language): New class.
9435 (unknown_language_defn): New static global.
9436 (auto_language_defn): Convert to...
9437 (auto_language_data): ...this.
9438 (class auto_language): New class.
9439 (auto_language_defn): New static global.
9440 (language_gdbarch_post_init): Use language_defn::languages.
9441 (_initialize_language): Initialize current_language.
9442 * gdb/language.h (struct language_defn): Rename to...
9443 (struct language_data): ...this.
9444 (struct language_defn): New.
9445 (auto_language_defn): Delete.
9446 (unknown_language_defn): Delete.
9447 (minimal_language_defn): Delete.
9448 (ada_language_defn): Delete.
9449 (asm_language_defn): Delete.
9450 (c_language_defn): Delete.
9451 (cplus_language_defn): Delete.
9452 (d_language_defn): Delete.
9453 (f_language_defn): Delete.
9454 (go_language_defn): Delete.
9455 (m2_language_defn): Delete.
9456 (objc_language_defn): Delete.
9457 (opencl_language_defn): Delete.
9458 (pascal_language_defn): Delete.
9459 (rust_language_defn): Delete.
9460 * gdb/m2-lang.c (m2_language_defn): Convert to...
9461 (m2_language_data): ...this.
9462 (class m2_language): New class.
9463 (m2_language_defn): New static global.
9464 * gdb/objc-lang.c (objc_language_defn): Convert to...
9465 (objc_language_data): ...this.
9466 (class objc_language): New class.
9467 (objc_language_defn): New static global.
9468 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9469 (opencl_language_data): ...this.
9470 (class opencl_language): New class.
9471 (opencl_language_defn): New static global.
9472 * gdb/p-lang.c (pascal_language_defn): Convert to...
9473 (pascal_language_data): ...this.
9474 (class pascal_language): New class.
9475 (pascal_language_defn): New static global.
9476 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9477 language pointer, update comment format.
9478 * gdb/rust-lang.c (rust_language_defn): Convert to...
9479 (rust_language_data): ...this.
9480 (class rust_language): New class.
9481 (rust_language_defn): New static global.
9483 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9485 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9487 <m_stmt_at_address>: New member variable.
9488 (lnp_state_machine::record_line): Don't record some lines, update
9489 tracking of is_stmt at the same address.
9490 (lnp_state_machine::lnp_state_machine): Initialise new member
9493 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9495 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9496 "-include gnu-nat-mig.h".
9497 * gnu-nat-mig.h: New file.
9498 * gnu-nat.c: Include "gnu-nat-mig.h".
9499 (exc_server, msg_reply_server, notify_server,
9500 process_reply_server): Remove declarations.
9502 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9504 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9505 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9506 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9507 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9508 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9509 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9510 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9511 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9512 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9513 to gnu_nat_target class.
9514 * gnu-nat.c: Likewise.
9515 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9516 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9517 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9519 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9520 instead of `gnu_target'.
9522 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9524 * i386-gnu-tdep.c: Include "gdbcore.h"
9525 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9526 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9527 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9528 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9529 i386_gnu_sigcontext_addr): New functions
9530 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9531 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9534 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9536 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9537 before fork_inferior call. Avoid calling it if target_is_pushed returns
9540 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9542 * gnu-nat.h (gnu_target): New variable declaration.
9543 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9545 * gnu-nat.c (gnu_target): New variable.
9546 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9547 add_thread_silent, and add_thread calls.
9548 (gnu_nat_target::create_inferior): Pass gnu_target to
9549 add_thread_silent, thread_change_ptid call.
9550 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9553 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9555 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9556 (gnu_nat_target::find_memory_regions): Remove unused
9557 `old_address' variable.
9559 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9561 * gnu-nat.c: Include "gdbarch.h".
9563 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9565 * reply_mig_hack.awk (Error return): Cast function through
9566 void *, to bypass compiler function call check.
9568 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9570 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9571 $(srcdir)/reply_mig_hack.awk.
9573 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9575 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9577 2020-05-30 Jonny Grant <jg@jguk.org>
9579 * configure.ac (ACX_BUGURL): change bug URL to https.
9581 2020-05-30 Pedro Alves <palves@redhat.com>
9583 * cp-support.c (replace_typedefs_template): New.
9584 (replace_typedefs_qualified_name): Handle
9585 DEMANGLE_COMPONENT_TEMPLATE.
9587 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9589 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9590 dwarf2/index-cache.h, dwarf2/index-write.c,
9591 dwarf2/index-write.h, dwarf2/line-header.c,
9592 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9593 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9594 variables and fields from `dwarf2_per_objfile` to just
9595 `per_objfile` throughout.
9597 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9599 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9600 <push_dwarf_reg_entry_value>: Add comment.
9602 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9603 Keith Seitz <keiths@redhat.com>
9605 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9606 instead of PyEval_ReleaseLock.
9607 (class gdbpy_gil): Move to earlier in file.
9608 (finalize_python): Set gdb_python_initialized.
9609 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9610 when not initialized.
9612 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9614 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9615 <push_dwarf_reg_entry_value>: Remove assert. Override
9616 per_objfile with caller_per_objfile.
9618 2020-05-28 Tom de Vries <tdevries@suse.de>
9620 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9621 PR gold/15646 workaround to symbol kind "type".
9623 2020-05-27 Tom Tromey <tromey@adacore.com>
9625 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9627 2020-05-27 Tom Tromey <tromey@adacore.com>
9629 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9630 Use htab_find_with_hash.
9631 <add_abbrev>: Remove "abbrev_number" parameter.
9632 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9633 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9634 (hash_abbrev): Add comment.
9635 (abbrev_table::lookup_abbrev): Move to header file.
9636 (abbrev_table::read): Update.
9638 2020-05-27 Tom Tromey <tromey@adacore.com>
9640 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9642 <canonical_name>: New member.
9643 <raw_name>: Rename from "name".
9644 (partial_die_info): Initialize canonical_name.
9645 (scan_partial_symbols): Check raw_name.
9646 (partial_die_parent_scope, partial_die_full_name)
9647 (add_partial_symbol, add_partial_subprogram)
9648 (add_partial_enumeration, load_partial_dies): Use "name" method.
9649 (partial_die_info::name): New method.
9650 (partial_die_info::read, guess_partial_die_structure_name)
9651 (partial_die_info::fixup): Update.
9653 2020-05-27 Tom Tromey <tromey@adacore.com>
9655 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9656 <get_ref_die_offset>: Inline.
9657 <get_ref_die_offset_complaint>: New method.
9658 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9659 (attribute::get_ref_die_offset_complaint): Rename from
9660 get_ref_die_offset. Just issue complaint.
9662 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9664 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9666 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9668 * exec.c (exec_file_attach): Use errno value of first openp failure.
9670 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9672 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9673 Don't close thread handle.
9675 2020-05-27 Tom Tromey <tom@tromey.com>
9676 Simon Marchi <simon.marchi@efficios.com>
9678 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9680 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9682 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9683 dwarf2_per_bfd_objfile_data_key>: New globals.
9684 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9685 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9686 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9688 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9689 short-circuit when sharing.
9690 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9691 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9693 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9695 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9697 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9698 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9700 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9702 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9703 build_name_components, find_name_components_bounds>:
9704 Add per_objfile parameter.
9705 (struct mapped_index) <symbol_name_at>: Likewise.
9706 (struct mapped_debug_names): Remove constructor.
9707 <dwarf2_per_objfile>: Remove field.
9708 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9709 (mapped_index_base::find_name_components_bounds,
9710 mapped_index_base::build_name_components,
9711 dw2_expand_symtabs_matching_symbol): Likewise.
9712 (class mock_mapped_index) <symbol_name_at>: Likewise.
9713 (check_match): Likewise.
9714 (check_find_bounds_finds): Likewise.
9715 (test_mapped_index_find_name_component_bounds): Update.
9716 (CHECK_MATCH): Update.
9717 (dw2_expand_symtabs_matching): Update.
9718 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9719 per_objfile parameter.
9720 <find_vec_in_debug_names>: Likewise.
9721 <m_per_objfile>: New field.
9722 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9724 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9725 (dw2_debug_names_iterator::next): Update.
9726 (dw2_debug_names_lookup_symbol): Update.
9727 (dw2_debug_names_expand_symtabs_for_function): Update.
9728 (dw2_debug_names_map_matching_symbols): Update.
9729 (dw2_debug_names_expand_symtabs_matching): Update.
9730 (dwarf2_read_debug_names): Update.
9732 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9734 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9735 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9736 move to dwarf2_per_objfile.
9737 <read_in_chain>: Remove.
9738 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9739 remove_all_cus, age_comp_units>: New methods.
9740 <m_dwarf2_cus>: New member.
9741 (struct dwarf2_per_cu_data) <cu>: Remove.
9742 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9743 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9744 moved to methods of dwarf2_per_objfile.
9745 (dwarf2_clear_marks): Remove.
9746 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9747 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9748 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9749 (dwarf2_per_objfile::remove_all_cus): New.
9750 (class free_cached_comp_units) <~free_cached_comp_units>:
9753 (dw2_do_instantiate_symtab): Adjust.
9754 (fill_in_sig_entry_from_dwo_entry): Adjust.
9755 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9756 (cutu_reader::cutu_reader): Likewise.
9757 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9758 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9759 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9760 and dwarf2_per_objfile::age_comp_units.
9761 (load_partial_comp_unit): Update.
9762 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9763 (process_queue): Likewise.
9764 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9766 (dwarf2_read_addr_index): Likewise.
9767 (follow_die_offset): Likewise.
9768 (dwarf2_fetch_die_loc_sect_off): Likewise.
9769 (dwarf2_fetch_constant_bytes): Likewise.
9770 (dwarf2_fetch_die_type_sect_off): Likewise.
9771 (follow_die_sig_1): Likewise.
9772 (load_full_type_unit): Likewise.
9773 (read_signatured_type): Likewise.
9774 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9775 (dwarf2_cu::~dwarf2_cu): Remove.
9776 (dwarf2_per_objfile::get_cu): New.
9777 (dwarf2_per_objfile::set_cu): New.
9778 (age_cached_comp_units): Rename to...
9779 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9780 to std::unordered_map.
9781 (free_one_cached_comp_unit): Rename to...
9782 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9783 to std::unordered_map.
9784 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9785 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9786 a dwarf2_per_objfile in data.
9787 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9788 (dwarf2_clear_marks): Remove.
9790 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9792 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9793 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9794 (init_tu_and_read_dwo_dies): Likewise.
9795 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9796 (cutu_reader::cutu_reader): Likewise.
9797 (load_partial_comp_unit): Likewise.
9798 (process_psymtab_comp_unit): Update.
9799 (build_type_psymtabs_1): Update.
9800 (process_skeletonless_type_unit): Update.
9801 (load_full_comp_unit): Update.
9802 (find_partial_die): Update.
9803 (dwarf2_read_addr_index): Update.
9804 (read_signatured_type): Update.
9806 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9808 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9809 m_header_read_in>: New fields.
9810 <get_header>: New method.
9811 * dwarf2/read.c (per_cu_header_read_in): Remove.
9812 (dwarf2_per_cu_data::get_header): New.
9813 (dwarf2_per_cu_data::addr_size): Update.
9814 (dwarf2_per_cu_data::offset_size): Update.
9815 (dwarf2_per_cu_data::ref_addr_size): Update.
9817 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9819 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9820 (dw2_do_instantiate_symtab): Update.
9821 (queue_and_load_all_dwo_tus): Change parameter from
9822 dwarf2_per_cu_data to dwarf2_cu.
9823 (dwarf2_fetch_die_loc_sect_off): Update.
9824 (dwarf2_fetch_constant_bytes): Update.
9825 (dwarf2_fetch_die_type_sect_off): Update.
9827 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9829 * dwarf2/read.c (process_full_comp_unit,
9830 process_full_type_unit): Remove per_cu, per_objfile paramters.
9831 Add dwarf2_cu parameter.
9832 (process_queue): Update.
9834 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9836 * dwarf2/read.c (create_cu_from_index_list): Replace
9837 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9838 (create_cus_from_index_list): Likewise.
9839 (create_cus_from_index): Likewise.
9840 (create_signatured_type_table_from_index): Likewise.
9841 (create_cus_from_debug_names_list): Likewise.
9842 (create_cus_from_debug_names): Likewise.
9843 (dwarf2_read_gdb_index): Update.
9844 (dwarf2_read_debug_names): Update.
9846 2020-05-27 Tom Tromey <tom@tromey.com>
9847 Simon Marchi <simon.marchi@efficios.com>
9849 * dwarf2/read.h (struct dwarf2_per_objfile)
9850 <get_type_for_signatured_type, set_type_for_signatured_type>:
9852 <m_type_map>: New member.
9853 (struct signatured_type) <type>: Remove.
9855 (dwarf2_per_objfile::get_type_for_signatured_type,
9856 dwarf2_per_objfile::set_type_for_signatured_type): New.
9857 (get_signatured_type): Use new methods.
9859 2020-05-27 Tom Tromey <tom@tromey.com>
9860 Simon Marchi <simon.marchi@efficios.com>
9862 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9863 (struct dwarf2_per_objfile) <type_units>: New member.
9864 <get_type_unit_group_unshareable>: New method.
9865 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9866 num_symtabs, symtabs>: Remove; move to
9867 type_unit_group_unshareable.
9868 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9869 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9870 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9872 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9874 * dwarf2/read.h (struct dwarf2_per_cu_data):
9875 <dwarf2_per_objfile>: Remove.
9876 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9878 (create_signatured_type_table_from_index): Likewise.
9879 (create_signatured_type_table_from_debug_names): Likewise.
9880 (create_debug_type_hash_table): Likewise.
9881 (fill_in_sig_entry_from_dwo_entry): Likewise.
9882 (create_type_unit_group): Likewise.
9883 (read_comp_units_from_section): Likewise.
9884 (create_cus_hash_table): Likewise.
9886 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9888 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9889 dwarf2_per_cu_data::dwarf2_per_objfile.
9890 (compute_compunit_symtab_includes): Likewise.
9891 (dwarf2_cu::start_symtab): Likewise.
9893 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9895 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9897 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9898 (read_namespace_alias): Update.
9899 (lookup_die_type): Update.
9900 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9901 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9903 (disassemble_dwarf_expression): Update.
9905 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9907 * dwarf2/read.h (struct dwarf2_queue_item): Add
9908 dwarf2_per_objfile parameter, assign new parameter.
9909 <per_objfile>: New field.
9910 * dwarf2/read.c (free_one_cached_comp_unit): Add
9911 dwarf2_per_objfile parameter.
9912 (queue_comp_unit): Likewise.
9913 (dw2_do_instantiate_symtab): Update.
9914 (process_psymtab_comp_unit): Update.
9915 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9916 (process_imported_unit_die): Update.
9917 (queue_and_load_dwo_tu): Update.
9918 (follow_die_offset): Update.
9919 (follow_die_sig_1): Update.
9921 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9923 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9924 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9925 (read_call_site_scope): Assign per_objfile.
9926 (dwarf2_per_cu_data::objfile): Remove.
9927 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9928 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9929 dwarf2_per_objfile parameter.
9930 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9931 dwarf2_per_objfile parameter.
9932 (dwarf_expr_reg_to_entry_parameter): Add output
9933 dwarf2_per_objfile parameter.
9934 (locexpr_get_frame_base): Update.
9935 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9936 <push_dwarf_reg_entry_value>: Update.
9937 <call_site_to_target_addr>: Update.
9938 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9940 (value_of_dwarf_reg_entry): Update.
9941 (rw_pieced_value): Update.
9942 (indirect_synthetic_pointer): Update.
9943 (dwarf2_evaluate_property): Update.
9944 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9946 (locexpr_read_variable): Update.
9947 (locexpr_get_symbol_read_needs): Update.
9948 (loclist_read_variable): Update.
9950 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9952 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9953 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9954 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9956 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9957 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9958 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9960 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9961 sect_variable_value): Add dwarf2_per_objfile parameter.
9962 (class dwarf_evaluate_loc_desc) <dwarf_call,
9963 dwarf_variable_value>: Update.
9964 (fetch_const_value_from_synthetic_pointer): Add
9965 dwarf2_per_objfile parameter.
9966 (fetch_const_value_from_synthetic_pointer): Update.
9967 (coerced_pieced_ref): Update.
9968 (class symbol_needs_eval_context) <dwarf_call,
9969 dwarf_variable_value>: Update.
9970 (dwarf2_compile_expr_to_ax): Update.
9972 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9974 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9976 (dwarf2_evaluate_loc_desc_full): Update.
9978 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9980 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9982 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9983 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9984 dwarf2_per_objfile parameter.
9985 (decode_debug_loc_dwo_addresses): Likewise.
9986 (dwarf2_find_location_expression): Update.
9987 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9988 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9990 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9992 (locexpr_describe_location_1): Likewise.
9993 (locexpr_describe_location): Update.
9995 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9997 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9999 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10000 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10001 (dwarf2_compile_property_to_c): Update.
10002 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10003 use text offset from objfile.
10004 (locexpr_tracepoint_var_ref): Update.
10005 (locexpr_generate_c_location): Update.
10006 (loclist_describe_location): Update.
10007 (loclist_tracepoint_var_ref): Update.
10008 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10009 dwarf2_per_objfile parameter.
10010 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10011 use text offset from objfile.
10012 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10014 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10016 * dwarf2/expr.h (struct dwarf_expr_context)
10017 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10019 <per_objfile>: New member.
10020 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10021 dwarf2_per_objfile parameter. Don't set offset, set
10023 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10024 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10025 a dwarf2_per_objfile object instead of an offset.
10026 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10028 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10029 to dwarf2_expr_executor constructor. Don't set offset.
10030 (dwarf2_fetch_cfa_info): Update.
10031 (struct dwarf2_frame_cache) <text_offset>: Remove.
10032 <per_objfile>: New field.
10033 (dwarf2_frame_cache): Update.
10034 (dwarf2_frame_prev_register): Update.
10035 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10036 <dwarf_evaluate_loc_desc>: Add constructor.
10037 (dwarf2_evaluate_loc_desc_full): Update.
10038 (dwarf2_locexpr_baton_eval): Update.
10039 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10041 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10043 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10045 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10046 addr_sized_int_type>: Move to dwarf2_cu.
10047 <int_type>: Move to dwarf2_per_objfile.
10048 (struct dwarf2_per_objfile) <int_type>: Move here.
10049 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10050 addr_sized_int_type>: Move here.
10051 (read_func_scope): Update.
10052 (read_array_type): Update.
10053 (read_tag_string_type): Update.
10054 (attr_to_dynamic_prop): Update.
10055 (dwarf2_per_cu_data::int_type): Rename to...
10056 (dwarf2_per_objfile::int_type): ... this.
10057 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10058 (dwarf2_cu::addr_sized_int_type): ... this.
10059 (read_subrange_type): Update.
10060 (dwarf2_per_cu_data::addr_type): Rename to...
10061 (dwarf2_cu::addr_type): ... this.
10062 (set_die_type): Update.
10064 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10066 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10067 data through per_cu->cu.
10069 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10071 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10072 dwarf2_per_cu_data parameter fo dwarf2_cu.
10073 (lookup_dwo_type_unit): Likewise.
10074 (read_cutu_die_from_dwo): Likewise.
10075 (lookup_dwo_unit): Likewise.
10076 (open_and_init_dwo_file): Likewise.
10077 (lookup_dwo_cutu): Likewise.
10078 (lookup_dwo_comp_unit): Likewise.
10079 (lookup_dwo_type_unit): Likewise.
10080 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10081 (cutu_reader::cutu_reader): Update.
10083 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10085 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10087 (process_full_type_unit): Likewise.
10088 (process_queue): Update.
10090 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10092 * dwarf2/read.c (recursively_compute_inclusions): Add
10093 dwarf2_per_objfile parameter.
10094 (compute_compunit_symtab_includes): Likewise.
10095 (process_cu_includes): Update.
10097 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10099 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10101 (create_type_unit_group): Update.
10102 (process_psymtab_comp_unit_reader): Update.
10103 (build_type_psymtabs_reader): Update.
10105 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10107 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10108 object through m_this_cu->cu.
10110 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10112 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10113 the info parameter.
10114 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10116 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10118 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10119 per_objfile parameter.
10120 (load_full_type_unit): Add per_objfile parameter.
10121 (read_signatured_type): Likewise.
10122 (load_full_comp_unit): Likewise.
10123 (load_cu): Likewise.
10124 (dw2_do_instantiate_symtab): Likewise.
10125 (dw2_get_file_names): Likewise.
10126 (dw2_map_symtabs_matching_filename): Update.
10127 (dw_expand_symtabs_matching_file_matcher): Update.
10128 (dw2_map_symbol_filenames): Update.
10129 (process_psymtab_comp_unit): Add per_objfile parameter.
10130 (build_type_psymtabs_1): Update.
10131 (process_skeletonless_type_unit): Update.
10132 (dwarf2_build_psymtabs_hard): Update.
10133 (load_partial_comp_unit): Add per_objfile parameter.
10134 (scan_partial_symbols): Update.
10135 (load_full_comp_unit): Add per_objfile parameter.
10136 (process_imported_unit_die): Update.
10137 (create_cus_hash_table): Update.
10138 (find_partial_die): Update.
10139 (dwarf2_read_addr_index): Update.
10140 (follow_die_offset): Update.
10141 (dwarf2_fetch_die_loc_sect_off): Update.
10142 (dwarf2_fetch_constant_bytes): Update.
10143 (dwarf2_fetch_die_type_sect_off): Update.
10144 (follow_die_sig_1): Update.
10145 (load_full_type_unit): Add per_objfile parameter.
10146 (read_signatured_type): Likewise.
10148 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10150 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10153 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10155 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10156 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10157 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10159 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10160 (create_cus_from_index): Update.
10161 (dwarf2_read_gdb_index): Update.
10162 (create_cus_from_debug_names): Update.
10163 (dwarf2_read_debug_names): Update.
10164 (get_abbrev_section_for_cu): Update.
10165 (create_all_comp_units): Update.
10166 (read_attribute_value): Update.
10167 (get_debug_line_section): Update.
10168 * dwarf2/index-cache.c (index_cache::store): Update.
10169 * dwarf2/index-write.c (save_gdb_index_command): Update.
10170 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10172 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10174 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10176 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10177 dwarf2_per_cu_data::per_bfd.
10178 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10179 (create_type_unit_group): Likewise.
10180 (queue_comp_unit): Remove reference to
10181 per_cu->dwarf2_per_objfile.
10182 (maybe_queue_comp_unit): Likewise.
10183 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10184 (create_cus_hash_table): Assign new field.
10186 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10188 * dwarf2/read.c: Replace
10189 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10190 dwarf2_cu->per_objfile throughout.
10192 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10194 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10195 parameter, don't use per_cu->dwarf2_per_objfile.
10196 (dw2_instantiate_symtab): Likewise.
10197 (dw2_find_last_source_symtab): Update.
10198 (dw2_map_expand_apply): Update.
10199 (dw2_lookup_symbol): Update.
10200 (dw2_expand_symtabs_for_function): Update.
10201 (dw2_expand_all_symtabs): Update.
10202 (dw2_expand_symtabs_with_fullname): Update.
10203 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10204 don't use per_cu->dwarf2_per_objfile.
10205 (dw2_expand_marked_cus): Update.
10206 (dw2_find_pc_sect_compunit_symtab): Update.
10207 (dw2_debug_names_lookup_symbol): Update.
10208 (dw2_debug_names_expand_symtabs_for_function): Update.
10209 (dw2_debug_names_map_matching_symbols): Update.
10210 (dwarf2_psymtab::expand_psymtab): Update.
10212 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10214 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10215 <per_objfile>: New member.
10216 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10217 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10219 (cutu_reader::cutu_reader): Update.
10220 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10222 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10224 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10225 struct dwarf2_per_objfile.
10226 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10228 * dwarf2/read.c (set_die_type): Update.
10229 (get_die_type_at_offset): Update.
10231 2020-05-27 Tom Tromey <tom@tromey.com>
10232 Simon Marchi <simon.marchi@efficios.com>
10234 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10236 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10237 get_symtab, set_symtab>: New methods.
10238 <m_symtabs>: New field.
10239 (struct dwarf2_psymtab): Derive from partial_symtab.
10240 <readin_p, get_compunit_symtab>: Declare methods.
10241 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10242 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10244 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10245 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10246 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10247 (dw2_symtab_iter_next, dw2_print_stats)
10248 (dw2_expand_symtabs_with_fullname)
10249 (dw2_expand_symtabs_matching_one)
10250 (dw_expand_symtabs_matching_file_matcher)
10251 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10252 (dw2_debug_names_iterator::next)
10253 (dw2_debug_names_map_matching_symbols)
10254 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10255 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10256 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10258 (get_compunit_symtab, process_full_comp_unit)
10259 (process_full_type_unit): Update.
10260 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10262 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10264 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10265 then introduce a new dwarf2_per_objfile type.
10266 <read_line_string>: Move to the new dwarf2_per_objfile type.
10267 <objfile>: Likewise.
10268 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10269 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10270 dwarf2_per_objfile->per_bfd.
10271 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10272 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10273 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10274 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10275 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10276 (dwarf2_per_objfile::locate_sections): Rename to...
10277 (dwarf2_per_bfd::locate_sections): ... this.
10278 (dwarf2_per_objfile::get_cutu): Rename to...
10279 (dwarf2_per_bfd::get_cutu): ... this.
10280 (dwarf2_per_objfile::get_cu): Rename to...
10281 (dwarf2_per_bfd::get_cu): ... this.
10282 (dwarf2_per_objfile::get_tu): Rename to...
10283 (dwarf2_per_bfd::get_tu): ... this.
10284 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10285 (dwarf2_per_bfd::allocate_per_cu): ... this.
10286 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10287 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10288 (get_gdb_index_contents_ftype): Change parameter from
10289 dwarf2_per_objfile to dwarf2_per_bfd.
10290 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10291 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10293 2020-05-27 Tom Tromey <tom@tromey.com>
10294 Simon Marchi <simon.marchi@efficios.com>
10296 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10297 (allocate_piece_closure): Set "per_objfile" member.
10298 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10299 (locexpr_describe_location, loclist_describe_location): Use new
10301 * dwarf2/read.c (read_call_site_scope)
10302 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10303 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10304 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10305 handle_data_member_location): Set per_objfile member.
10306 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10308 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10310 2020-05-27 Tom Tromey <tom@tromey.com>
10312 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10313 allocate_signatured_type>: Declare new methods.
10314 <m_num_psymtabs>: New member.
10315 (struct dwarf2_per_cu_data) <index>: New member.
10316 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10317 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10318 (create_cu_from_index_list): Use allocate_per_cu.
10319 (create_signatured_type_table_from_index)
10320 (create_signatured_type_table_from_debug_names)
10321 (create_debug_type_hash_table, add_type_unit)
10322 (read_comp_units_from_section): Use allocate_signatured_type.
10324 2020-05-27 Tom Tromey <tom@tromey.com>
10326 * psymtab.c (partial_map_expand_apply)
10327 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10328 (psym_lookup_global_symbol_language)
10329 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10330 (psym_print_stats, psym_expand_symtabs_for_function)
10331 (psym_map_symbol_filenames, psym_map_matching_symbols)
10332 (psym_expand_symtabs_matching)
10333 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10334 (maintenance_check_psymtabs): Update.
10335 * psympriv.h (struct partial_symtab) <readin_p,
10336 get_compunit_symtab>: Add objfile parameter.
10337 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10339 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10340 get_compunit_symtab>: Likewise.
10341 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10343 2020-05-27 Tom Tromey <tom@tromey.com>
10345 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10347 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10348 (create_cu_from_index_list)
10349 (create_signatured_type_table_from_index)
10350 (create_signatured_type_table_from_debug_names)
10351 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10352 (dwarf2_create_include_psymtab)
10353 (create_debug_type_hash_table, add_type_unit)
10354 (create_type_unit_group, read_comp_units_from_section)
10355 (dwarf2_compute_name, create_cus_hash_table)
10356 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10357 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10359 (dw2_get_real_path): Likewise. Change argument to
10360 dwarf2_per_objfile.
10362 2020-05-27 Luis Machado <luis.machado@linaro.org>
10365 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10366 for ldrd (immediate).
10368 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10370 * command.h: Add comment giving the name of class_tui.
10371 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10372 create the fake command for the help for class_tui.
10374 2020-05-26 Tom Tromey <tromey@adacore.com>
10376 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10377 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10378 (val_atr): New function.
10379 (value_val_atr): Use it.
10380 * ada-valprint.c (print_optional_low_bound): Change low bound
10381 handling for enums.
10382 (val_print_packed_array_elements): Don't call discrete_position.
10383 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10384 discrete_position for enum types.
10385 * language.c (default_print_array_index): Change type.
10386 * language.h (struct language_defn) <la_print_array_index>: Add
10387 index_type parameter, change type of index_value.
10388 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10389 (default_print_array_index): Update.
10390 * valprint.c (maybe_print_array_index): Don't call
10391 value_from_longest. Update.
10392 (value_print_array_elements): Don't call discrete_position.
10394 2020-05-26 Tom Tromey <tromey@adacore.com>
10396 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10397 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10399 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10402 * avr-tdep.c (avr_integer_to_address): Return data or code
10403 address accordingly to the second 'type' argument of the
10406 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10408 * infcmd.c, inferior.h: (construct_inferior_arguments):
10409 Moved function from here to gdbsupport/common-inferior.{h,cc}
10411 2020-05-23 Tom Tromey <tom@tromey.com>
10413 Revert commit eca1f90c:
10414 * NEWS: Remove entry for completion styling.
10415 * completer.c (_rl_completion_prefix_display_length): Move
10417 (gdb_fnprint): Revert.
10418 (gdb_display_match_list_1): Likewise.
10419 * cli/cli-style.c (completion_prefix_style)
10420 (completion_difference_style, completion_suffix_style): Remove.
10421 (_initialize_cli_style): Revert.
10422 * cli/cli-style.h (completion_prefix_style)
10423 (completion_difference_style, completion_suffix_style): Don't
10426 2020-05-24 Pedro Alves <palves@redhat.com>
10428 * symtab.c (completion_list_add_name): Return boolean indication
10429 of whether the symbol matched.
10430 (completion_list_add_symbol): Don't try to remove C++ aliases if
10431 the symbol didn't match in the first place.
10432 * symtab.h (completion_list_add_name): Return bool.
10434 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10436 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10439 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10443 2020-05-23 Tom Tromey <tom@tromey.com>
10445 * NEWS: Add entry for completion styling.
10446 * completer.c (_rl_completion_prefix_display_length): Move
10447 declaration earlier.
10448 (gdb_fnprint): Use completion_style.
10449 (gdb_display_match_list_1): Likewise.
10450 * cli/cli-style.c (completion_prefix_style)
10451 (completion_difference_style, completion_suffix_style): New
10453 (_initialize_cli_style): Register new globals.
10454 * cli/cli-style.h (completion_prefix_style)
10455 (completion_difference_style, completion_suffix_style): Declare.
10457 2020-05-23 Pedro Alves <palves@redhat.com>
10459 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10460 (parse_escape): Use ISDIGIT instead of isdigit.
10461 (puts_debug): Use gdb_isprint instead of isprint.
10462 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10463 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10464 ISSPACE instead of isspace.
10465 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10466 instead of isspace.
10467 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10468 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10469 instead of isxdigit and ISDIGIT instead of isdigit.
10471 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10473 * gdbtypes.h (struct type) <field>: New method.
10474 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10477 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10479 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10480 (TYPE_FIELDS): Use type::fields. Change all call sites that
10481 modify the propery to use type::set_fields instead.
10483 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10485 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10486 type::num_fields instead.
10488 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10490 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10492 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10493 that modify the number of fields to use type::set_num_fields
10496 2020-05-22 Tom Tromey <tromey@adacore.com>
10498 * compile/compile-object-load.h (munmap_list_free): Don't
10501 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10503 * annotate.c (annotate_source_line): Update return type, add call
10504 to update current symtab and line.
10505 * annotate.h (annotate_source_line): Update return type, and
10506 extend header comment.
10507 * source.c (info_line_command): Check annotation_level before
10508 calling annotate_source_line.
10509 * stack.c (print_frame_info): If calling annotate_source_line
10510 returns true, then don't print any other source line information.
10512 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10514 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10516 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10518 * coffread.c (patch_type): Remove NULL check before xfree.
10519 * corefile.c (set_gnutarget): Likewise.
10520 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10521 * exec.c (build_section_table): Likewise.
10522 * remote.c (remote_target::pass_signals): Likewise.
10523 * utils.c (n_spaces): Likewise.
10524 * cli/cli-script.c (document_command): Likewise.
10525 * i386-windows-tdep.c (core_process_module_section): Likewise.
10526 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10528 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10530 * symfile.c (reread_symbols): Clear objfile's section_offsets
10531 vector and section indices, re-compute them by calling
10534 2020-05-20 Tom Tromey <tromey@adacore.com>
10536 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10537 (desc_one_bound, desc_index_type): Compute field name.
10539 2020-05-20 Tom de Vries <tdevries@suse.de>
10542 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10544 2020-05-20 Alan Modra <amodra@gmail.com>
10547 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10549 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10550 passed to bfd_set_filename.
10551 * symfile-mem.c (add_vsyscall_page): Likewise for string
10552 passed to symbol_file_add_from_memory.
10553 (symbol_file_add_from_memory): Make name param a const char* and
10556 2020-05-20 Alan Modra <amodra@gmail.com>
10558 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10559 rather than accessing bfd->filename directly.
10560 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10561 and use bfd_section_name.
10562 * dwarf2/frame.c (decode_frame_entry): Likewise.
10563 * exec.c (exec_set_section_address): Likewise.
10564 * solib-aix.c (solib_aix_bfd_open): Likewise.
10565 * stap-probe.c (get_stap_base_address): Likewise.
10566 * symfile.c (reread_symbols): Likewise.
10568 2020-05-19 Tom Tromey <tromey@adacore.com>
10570 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10572 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10574 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10576 2020-05-19 Pedro Alves <palves@redhat.com>
10578 * NEWS (set exec-file-mismatch): Adjust entry.
10579 * exec.c: Include "build-id.h".
10580 (validate_exec_file): Try to match build IDs instead of filenames.
10581 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10582 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10583 and pass down 'warn_if_slow'.
10584 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10585 gdb_bfd_open_closure to pass it down.
10586 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10588 2020-05-19 Pedro Alves <palves@redhat.com>
10590 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10591 * target.c (target_fileio_open_1): Rename to target_fileio_open
10592 and make extern. Use bool.
10593 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10594 (target_fileio_read_alloc_1): Adjust.
10595 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10596 (target_fileio_open_warn_if_slow): Delete declaration.
10598 2020-05-19 Pedro Alves <palves@redhat.com>
10600 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10601 Adjust all callers.
10603 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10605 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10606 whether disp is negative.
10608 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10610 * symfile.h (struct symfile_segment_data)
10611 <~symfile_segment_data>: Remove.
10612 <segment_info>: Change to std::vector.
10613 * symfile.c (default_symfile_segments): Update.
10614 * elfread.c (elf_symfile_segments): Update.
10616 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10618 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10620 <segment_bases, segment_sizes>: Remove.
10621 * symfile.c (default_symfile_segments): Update.
10622 * elfread.c (elf_symfile_segments): Update.
10623 * remote.c (remote_target::get_offsets): Update.
10624 * solib-target.c (solib_target_relocate_section_addresses):
10627 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10629 * symfile.h (struct symfile_segment_data): Initialize fields.
10630 <~symfile_segment_data>: Add.
10631 (symfile_segment_data_up): New.
10632 (struct sym_fns) <sym_segments>: Return a
10633 symfile_segment_data_up.
10634 (default_symfile_segments): Return a symfile_segment_data_up.
10635 (free_symfile_segment_data): Remove.
10636 (get_symfile_segment_data): Return a symfile_segment_data_up.
10637 * symfile.c (default_symfile_segments): Likewise.
10638 (get_symfile_segment_data): Likewise.
10639 (free_symfile_segment_data): Remove.
10640 (symfile_find_segment_sections): Update.
10641 * elfread.c (elf_symfile_segments): Return a
10642 symfile_segment_data_up.
10643 * remote.c (remote_target::get_offsets): Update.
10644 * solib-target.c (solib_target_relocate_section_addresses):
10646 * symfile-debug.c (debug_sym_segments): Return a
10647 symfile_segment_data_up.
10649 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10652 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10653 Hardcode register numbers.
10656 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10657 procfs_find_LDT_entry): Remove.
10658 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10659 procfs_find_LDT_entry): Remove.
10660 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10663 2020-05-17 Pedro Alves <palves@redhat.com>
10664 Andrew Burgess <andrew.burgess@embecosm.com>
10665 Keno Fischer <keno@juliacomputing.com>
10668 * breakpoint.c (build_target_condition_list): Update comments.
10669 (build_target_command_list): Update comments and skip matching
10671 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10672 a separate function. Simplify "set breakpoint auto-hw off"
10674 (insert_breakpoints): Update comment.
10675 (tracepoint_locations_match): New parameter. For breakpoints,
10676 compare location types too, if the caller wants to.
10677 (handle_automatic_hardware_breakpoints): New functions.
10678 (bp_location_is_less_than): Also sort by location type and
10679 hardware breakpoint length.
10680 (update_global_location_list): Handle "set breakpoint auto-hw on"
10682 (update_breakpoint_locations): Ask breakpoint_locations_match to
10683 ignore location types.
10685 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10687 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10688 type::name instead.
10690 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10692 * gdbtypes.h (struct type) <name, set_name>: New methods.
10693 (TYPE_CODE): Use type::name. Change all call sites used to set
10694 the name to use type::set_name instead.
10696 2020-05-16 Tom Tromey <tom@tromey.com>
10698 * top.c (quit_force): Update.
10699 * infrun.c (handle_no_resumed): Update.
10700 * top.h (all_uis): New function.
10703 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10705 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10707 2020-05-16 Pedro Alves <palves@redhat.com>
10710 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10712 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10714 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10716 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10717 (sparc64_adi_info): Likewise.
10719 2020-05-15 Tom Tromey <tom@tromey.com>
10721 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10723 (lookup_objfile_from_block): Remove.
10724 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10725 (lookup_global_symbol): Use block_objfile.
10726 * symtab.h (lookup_objfile_from_block): Don't declare.
10727 * printcmd.c (clear_dangling_display_expressions): Use
10729 * parse.c (operator_check_standard): Use block_objfile.
10731 2020-05-15 Tom Tromey <tom@tromey.com>
10733 * language.c (language_alloc_type_symbol): Set
10735 * symtab.c (initialize_objfile_symbol): Remove.
10736 (allocate_symbol): Remove.
10737 (allocate_template_symbol): Remove.
10738 * dwarf2/read.c (fixup_go_packaging): Use "new".
10739 (new_symbol): Use "new".
10740 (read_variable): Don't call initialize_objfile_symbol. Use
10742 (read_func_scope): Use "new".
10743 * xcoffread.c (process_xcoff_symbol): Don't call
10744 initialize_objfile_symbol.
10745 (SYMBOL_DUP): Remove.
10746 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10748 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10749 (allocate_template_symbol): Don't declare.
10750 (struct symbol): Add copy constructor. Change defaults.
10751 * jit.c (finalize_symtab): Use "new".
10752 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10754 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10755 (common_block_end): Use "new".
10756 * mdebugread.c (parse_symbol): Use "new".
10757 (new_symbol): Likewise.
10759 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10761 * NEWS: Mention changes to help and apropos.
10763 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10765 * command.h (enum command_class): Improve comments, document
10766 that class_alias is for user-defined aliases, give the class
10767 name for each class, remove unused class_xdb.
10768 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10769 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10770 by a precise class.
10771 * infcmd.c (_initialize_infcmd): Likewise.
10772 * reverse.c (_initialize_reverse): Likewise.
10773 * stack.c (_initialize_stack): Likewise.
10774 * symfile.c (_initialize_symfile): Likewise.
10775 * tracepoint.c (_initialize_tracepoint): Likewise.
10777 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10779 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10780 when their aliased command is traversed.
10781 (help_cmd): Add fput_command_names_styled call to
10782 output command name and aliases when command has an alias.
10784 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10786 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10787 * cli/cli-decode.c (help_cmd_list): Declare as static,
10788 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10789 a command together with the command.
10790 (fput_command_name_styled, fput_command_names_styled): New functions.
10791 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10792 fput_command_name_styled.
10793 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10794 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10796 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10798 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10799 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10800 * command.h (cmd_show_list): Likewise.
10801 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10802 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10804 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10806 * unittests/command-def-selftests.c (traverse_command_structure):
10807 Verify all commands of a list have the same prefix command and
10808 that only the top cmdlist commands have a null prefix.
10810 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10812 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10813 as prefix, not one of its aliases.
10814 (set_cmd_prefix): Remove.
10815 (do_add_cmd): Centralize the setting of the prefix of a command, when
10816 command is defined after its full chain of prefix commands.
10817 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10818 (add_setshow_cmd_full): Likewise.
10819 (update_prefix_field_of_prefixed_commands): New function.
10820 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10821 update_prefix_field_of_prefixed_commands.
10822 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10823 addresses of remote_set_cmdlist and remote_show_cmdlist given
10824 as argument, not the address of an argument.
10825 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10826 * gdb/remote.c (_initialize_remote): Likewise.
10828 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10830 * cli/cli-cmds.c (alias_command): Check for an existing alias
10831 using lookup_cmd_composition, as valid_command_p is too strict
10832 and forbids aliases that are the prefix of an existing alias
10834 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10835 command is properly recognised as a valid command.
10837 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10839 * unittests/help-doc-selftests.c: Rename to
10840 unittests/command-def-selftests.c
10841 * unittests/command-def-selftests.c (help_doc_tests): Update some
10843 (command_structure_tests, traverse_command_structure): New namespace
10845 (command_structure_invariants_tests): New function.
10846 (_initialize_command_def_selftests) Renamed from
10847 _initialize_help_doc_selftests, register command_structure_invariants
10850 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10852 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10853 an alias of 'show'.
10855 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10857 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10858 ada_is_fixed_point_type. Update all callers.
10859 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10861 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10862 Update all callers.
10863 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10864 print_fixed_point_type. Update all callers.
10865 * ada-valprint.c (ada_value_print_num): Replace call to
10866 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10868 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10870 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10872 (cpu_supports_bts): Add CV_AMD case.
10874 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10875 Simon Marchi <simon.marchi@efficios.com>
10877 * infrun.c (stop_all_threads): Collect multiple wait events at
10880 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10882 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10883 type::code instead.
10885 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10887 * gdbtypes.h (struct type) <code, set_code>: New methods.
10888 (TYPE_CODE): Use type::code. Change all call sites used to set
10889 the code to use type::set_code instead.
10891 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10892 Tom de Vries <tdevries@suse.de>
10893 Pedro Alves <palves@redhat.com>
10896 * infrun.c (stop_all_threads): Do NOT ignore
10897 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10898 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10900 (handle_no_resumed): Remove code handling a live inferior with no
10902 * remote.c (has_single_non_exited_thread): New.
10903 (remote_target::update_thread_list): Do not delete a thread if is
10904 the last thread of the process.
10905 * thread.c (thread_select): Call delete_exited_threads instead of
10908 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10910 * infrun.c (stop_all_threads): Enable/disable thread events of all
10911 targets. Move a debug message denoting the end of the function
10912 into the SCOPED_EXIT block.
10914 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10916 * process-stratum-target.h: Include <set>.
10917 (all_non_exited_process_targets, switch_to_target_no_thread): New
10918 function declarations.
10919 * process-stratum-target.c (all_non_exited_process_targets)
10920 (switch_to_target_no_thread): New function implementations.
10922 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10924 * infrun.c (handle_inferior_event): Extract out a piece of code
10926 (mark_non_executing_threads): ...this new function.
10928 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10930 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10933 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10935 * regcache.c (regcache_read_pc_protected): New function
10936 implementation that returns 0 if the PC cannot read via
10937 'regcache_read_pc'.
10938 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10939 instead of 'regcache_read_pc'.
10940 (keep_going_pass_signal): Ditto.
10942 2020-05-13 Tom Tromey <tromey@adacore.com>
10944 * ada-lang.c (align_value): Remove.
10945 (ada_template_to_fixed_record_type_1): Use align_up.
10947 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10949 * async-event.c: Update the copyright year.
10950 * async-event.h: Update the copyright year.
10952 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10954 * objfiles.h (is_addr_in_objfile,
10955 shared_objfile_contains_address_p): Return bool.
10956 * objfile.c (is_addr_in_objfile,
10957 shared_objfile_contains_address_p): Return bool.
10959 2020-05-11 Tom Tromey <tromey@adacore.com>
10961 * cli/cli-cmds.c (info_command): Restore.
10962 (_initialize_cli_cmds): Use add_prefix_command for "info".
10963 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10965 2020-05-11 Tom Tromey <tromey@adacore.com>
10967 * ada-lang.c (ada_value_primitive_field): Now public.
10968 * ada-lang.h (ada_value_primitive_field): Declare.
10969 * ada-valprint.c (print_field_values): Use
10970 ada_value_primitive_field for wrapper fields.
10972 2020-05-11 Tom de Vries <tdevries@suse.de>
10974 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10977 2020-05-11 Tom de Vries <tdevries@suse.de>
10980 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10981 with length 0, if not gdb-produced.
10982 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10984 2020-05-09 Tom de Vries <tdevries@suse.de>
10987 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10990 2020-05-09 Tom Tromey <tom@tromey.com>
10992 * top.c (server_command): Now bool.
10993 * top.h (server_command): Now bool.
10995 2020-05-08 Tom Tromey <tromey@adacore.com>
10997 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10998 already being processed.
11000 2020-05-08 Tom Tromey <tom@tromey.com>
11002 * printcmd.c (struct display) <next>: Remove.
11003 <display>: New constructor.
11004 <exp_string>: Now a std::string.
11005 <enabled_p>: Now a bool.
11006 (display_number): Move definition earlier.
11007 (displays): Rename from display_chain. Now a std::vector.
11008 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11009 (display_command): Update.
11010 (do_one_display, disable_display)
11011 (enable_disable_display_command, do_enable_disable_display):
11013 (free_display): Remove.
11014 (clear_displays): Rewrite.
11015 (delete_display): Update.
11016 (map_display_numbers): Use function_view. Remove "data"
11018 (do_delete_display): Remove.
11019 (undisplay_command): Update.
11020 (do_one_display, do_displays, disable_display)
11021 (info_display_command): Update.
11022 (do_enable_disable_display): Remove.
11023 (enable_disable_display_command)
11024 (clear_dangling_display_expressions): Update.
11026 2020-05-08 Tom Tromey <tom@tromey.com>
11028 * symtab.c (set_symbol_cache_size)
11029 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11030 (maintenance_print_symbol_cache_statistics): Update.
11031 * symmisc.c (print_symbol_bcache_statistics)
11032 (print_objfile_statistics, maintenance_print_objfiles)
11033 (maintenance_info_symtabs, maintenance_check_symtabs)
11034 (maintenance_expand_symtabs, maintenance_info_line_tables):
11036 * symfile-debug.c (set_debug_symfile): Update.
11037 * source.c (forget_cached_source_info): Update.
11038 * python/python.c (gdbpy_progspaces): Update.
11039 * psymtab.c (maintenance_info_psymtabs): Update.
11040 * probe.c (parse_probes): Update.
11041 * linespec.c (iterate_over_all_matching_symtabs)
11042 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11043 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11044 * exec.c (exec_target::close): Update.
11045 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11046 * breakpoint.c (print_one_breakpoint_location)
11047 (create_longjmp_master_breakpoint)
11048 (create_std_terminate_master_breakpoint): Update.
11049 * progspace.c (program_spaces): Now a std::vector.
11050 (maybe_new_address_space): Update.
11051 (add_program_space): Remove.
11052 (program_space::program_space): Update.
11053 (remove_program_space): Update.
11054 (number_of_program_spaces): Remove.
11055 (print_program_space, update_address_spaces): Update.
11056 * progspace.h (program_spaces): Change type.
11057 (ALL_PSPACES): Remove.
11058 (number_of_program_spaces): Don't declare.
11059 (struct program_space) <next>: Remove.
11061 2020-05-08 Tom Tromey <tom@tromey.com>
11063 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11064 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11065 (enable_break): Update.
11066 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11067 (frv_fdpic_find_canonical_descriptor): Update.
11068 (frv_fetch_objfile_link_map): Update.
11069 * progspace.c (program_space::free_all_objfiles): Update.
11070 (program_space::solibs): New method.
11071 * progspace.h (struct program_space) <solibs>: New method.
11072 * solist.h (master_so_list): Don't declare.
11073 (ALL_SO_LIBS): Remove.
11074 * solib.h (so_list_head): Remove.
11075 (update_solib_list): Update comment.
11076 * solib.c (master_so_list): Remove.
11077 (solib_used, update_solib_list, solib_add)
11078 (info_sharedlibrary_command, clear_solib)
11079 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11081 2020-05-08 Tom Tromey <tom@tromey.com>
11083 * extension.c (extension_languages): Now a std::array.
11084 (ALL_EXTENSION_LANGUAGES): Remove.
11085 (get_ext_lang_defn, get_ext_lang_of_file)
11086 (eval_ext_lang_from_control_command): Update.
11087 (finish_ext_lang_initialization)
11088 (auto_load_ext_lang_scripts_for_objfile)
11089 (ext_lang_type_printers::ext_lang_type_printers)
11090 (apply_ext_lang_type_printers)
11091 (ext_lang_type_printers::~ext_lang_type_printers)
11092 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11093 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11094 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11095 (get_matching_xmethod_workers, ext_lang_colorize)
11096 (ext_lang_before_prompt): Update.
11097 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11099 2020-05-08 Tom Tromey <tom@tromey.com>
11101 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11103 <swap_string, m_string>: Remove.
11104 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11106 * stabsread.c (define_symbol, read_type): Update.
11107 * linespec.c (find_linespec_symbols): Update.
11108 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11109 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11110 * dbxread.c (read_dbx_symtab): Update.
11111 * cp-support.h (cp_canonicalize_string_full)
11112 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11113 Return unique_xmalloc_ptr.
11114 * cp-support.c (inspect_type): Update.
11115 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11116 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11118 * c-typeprint.c (print_name_maybe_canonical): Update.
11119 * break-catch-throw.c (check_status_exception_catchpoint):
11122 2020-05-08 Tom de Vries <tdevries@suse.de>
11124 * infrun.c (follow_fork): Copy current_line and current_symtab to
11127 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11129 * async-event.c (struct async_signal_handler, struct
11130 async_event_handler): Reformat, remove typedef.
11132 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11134 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11135 access thistype->main_type->dyn_prop_list directly.
11137 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11139 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11140 (remove_dyn_prop): Remove. Update all users to use
11141 type::remove_dyn_prop.
11142 * gdbtypes.c (remove_dyn_prop): Rename to...
11143 (type::remove_dyn_prop): ... this.
11145 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11147 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11148 (add_dyn_prop): Remove. Update all users to use
11149 type::add_dyn_prop.
11150 * gdbtypes.c (add_dyn_prop): Rename to...
11151 (type::add_dyn_prop): ... this.
11153 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11155 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11156 (get_dyn_prop): Remove. Update all users to use
11158 * gdbtypes.c (get_dyn_prop): Rename to...
11159 (type::dyn_prop): ... this.
11161 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11163 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11165 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11167 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11168 instruction, skip it if it's there.
11170 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11172 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11174 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11176 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11177 * gdbtypes.c (recursive_dump_type): Remove use of
11180 2020-05-03 Tom Tromey <tom@tromey.com>
11182 * breakpoint.c (catch_command, tcatch_command): Remove.
11183 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11184 add_show_prefix_cmd.
11185 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11186 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11188 (add_internal_problem_command): Use add_basic_prefix_cmd,
11189 add_show_prefix_cmd.
11190 * mips-tdep.c (set_mipsfpu_command): Remove.
11191 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11192 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11193 (_initialize_index_cache): Use add_basic_prefix_cmd.
11194 * memattr.c (dummy_cmd): Remove.
11195 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11196 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11197 (_initialize_tui_win): Use add_basic_prefix_cmd,
11198 add_show_prefix_cmd.
11199 * cli/cli-logging.c (set_logging_command): Remove.
11200 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11201 add_show_prefix_cmd.
11202 (show_logging_command): Remove.
11203 * target.c (target_command): Remove.
11204 (add_target): Use add_basic_prefix_cmd.
11206 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11208 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11210 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11212 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11215 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11217 * nbsd-nat.c (nbsd_enable_proc_events)
11218 (nbsd_nat_target::post_startup_inferior): Add.
11219 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11220 (nbsd_nat_target::update_thread_list): Rewrite.
11221 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11222 "PTRACE_LWP_CREATE".
11223 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11225 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11227 * stack.c (_initialize_stack): Remove duplicated creation
11228 of "frame" command and "f" alias.
11230 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11233 * gdbtypes.c (check_typedef): Calculate size of array of
11236 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11239 * i386-tdep.c (i386_push_dummy_call): Call
11240 i386_thiscall_push_dummy_call.
11241 (i386_thiscall_push_dummy_call): New function.
11242 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11243 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11244 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11246 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11248 * gdbarch.sh (do_read): Add shellcheck disable directive for
11251 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11253 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11254 "referenced but not assigned" warning.
11256 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11258 * gdbarch.sh: Remove code that sets fallbackdefault.
11260 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11262 * gdbarch.sh: Use shell operators && and || instead of
11265 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11267 * gdbarch.sh: Use $(...) instead of `...`.
11269 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11271 * gdbarch.sh: Use double quotes around variables.
11273 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11275 * gdbarch.sh: Use %s with printf, instead of variables in the
11278 2020-04-29 Tom Tromey <tromey@adacore.com>
11281 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11283 (read_enumeration_type): Call
11284 update_enumeration_type_from_children later. Update comments.
11285 (process_enumeration_scope): Don't create type fields.
11287 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11289 * nbsd-tdep.c: Include "xml-syscall.h".
11290 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11292 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11294 * nbsd-nat.c: Include "sys/wait.h".
11295 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11296 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11297 (nbsd_nat_target::remove_exec_catchpoint)
11298 (nbsd_nat_target::set_syscall_catchpoint): Add.
11299 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11300 (nbsd_nat_target::insert_exec_catchpoint)
11301 (nbsd_nat_target::remove_exec_catchpoint)
11302 (nbsd_nat_target::set_syscall_catchpoint): Add.
11303 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11304 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11305 `nbsd_get_syscall_number'.
11307 2020-04-29 Tom Tromey <tom@tromey.com>
11309 * stack.c (print_block_frame_labels): Remove.
11311 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11314 * ada-valprint.c (val_print_packed_array_elements): Move array
11315 end bracket to new line.
11316 (ada_val_print_string): Remove extra spaces before first array
11318 * c-valprint.c (c_value_print_array): Likewise.
11319 * m2-valprint.c (m2_print_array_contents): Likewise.
11320 (m2_value_print_inner): Likewise.
11321 * p-valprint.c (pascal_value_print_inner): Likewise.
11322 * valprint.c (generic_val_print_array): Likewise.
11323 (value_print_array_elements): Move first array element and array
11324 end bracket to new line.
11326 2020-04-29 Tom de Vries <tdevries@suse.de>
11329 * linespec.c (find_method): Fix ix calculation.
11331 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11333 * syscalls/update-netbsd.sh: New file.
11334 * syscalls/netbsd.xml: Regenerate.
11335 * data-directory/Makefile.in: Register `netbsd.xml' in
11338 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11340 * syscalls/update-freebsd.sh: Add double quotes.
11342 2020-04-28 Tom Tromey <tom@tromey.com>
11345 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11346 (cmdpy_init): Allow class_tui.
11348 2020-04-28 Mark Williams <mark@myosotissp.com>
11351 * dwarf2read.c: Add missing assingments to list_in_scope when
11352 start_symtab was already called.
11354 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11357 * dwarf2/read.c (offset_map_type): Use
11358 gdb:hash_enum<sect_offset> as hash function.
11360 2020-04-28 Tom de Vries <tdevries@suse.de>
11362 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11363 with DW_AT_signature.
11365 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11367 * configure.ac: Remove check for fs_base/gs_base in
11369 * configure: Re-generate.
11370 * config.in: Re-generate.
11371 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11372 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11373 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11375 2020-04-27 Luis Machado <luis.machado@linaro.org>
11377 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11378 problematic inline frame unwinding situation.
11379 * frame.c (frame_id_computed_p): New function.
11380 * frame.h (frame_id_computed_p): New prototype.
11382 2020-04-26 Tom Tromey <tom@tromey.com>
11384 * command.h (enum command_class) <class_pseudo>: Remove.
11386 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11388 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11391 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11393 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11394 `PT_GET_PROCESS_STATE' block.
11396 2020-04-24 Tom Tromey <tom@tromey.com>
11398 * symtab.h (symbol_get_demangled_name): Don't declare.
11399 * symtab.c (symbol_get_demangled_name): Remove.
11400 (general_symbol_info::natural_name)
11401 (general_symbol_info::demangled_name): Update.
11403 2020-04-24 Tom Tromey <tom@tromey.com>
11406 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11408 2020-04-24 Tom Tromey <tom@tromey.com>
11411 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11413 (new_symbol): Likewise.
11414 * compile/compile-object-load.c (get_out_value_type): Use
11415 symbol_matches_search_name.
11417 2020-04-24 Tom Tromey <tom@tromey.com>
11419 * dwarf2/read.c (add_partial_symbol): Do not call
11420 compute_and_set_names.
11422 2020-04-24 Tom Tromey <tom@tromey.com>
11424 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11427 2020-04-24 Tom Tromey <tom@tromey.com>
11429 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11430 (add_psymbol_to_list): New overload. Make old overload call new
11432 * psympriv.h (add_psymbol_to_list): New overload.
11434 2020-04-24 Tom Tromey <tom@tromey.com>
11436 * dwarf2/read.c (partial_die_info::read) <case
11437 DW_AT_linkage_name>: Use value_as_string.
11438 (dwarf2_string_attr): Use value_as_string.
11439 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11441 * dwarf2/attribute.c (attribute::value_as_string): New method.
11443 2020-04-24 Tom Tromey <tom@tromey.com>
11445 * symtab.c (general_symbol_info::natural_name)
11446 (general_symbol_info::demangled_name): Check for language_rust.
11448 2020-04-24 Tom Tromey <tom@tromey.com>
11450 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11451 (dwarf2_physname): ... from here.
11452 (partial_die_info::read): Add Rust "{" hack.
11454 2020-04-24 Tom Tromey <tom@tromey.com>
11456 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11458 (symbol_set_demangled_name): Don't declare.
11459 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11460 symbol_set_demangled_name.
11461 (general_symbol_info::set_language)
11462 (general_symbol_info::compute_and_set_names): Update.
11463 * minsyms.c (minimal_symbol_reader::install): Update.
11464 * dwarf2/read.c (new_symbol): Update.
11466 2020-04-24 Tom Tromey <tromey@adacore.com>
11469 * python/py-type.c (convert_field): Handle
11470 FIELD_LOC_KIND_DWARF_BLOCK.
11471 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11472 (typy_get_dynamic): Nw function.
11473 (type_object_getset): Add "dynamic".
11476 2020-04-24 Tom Tromey <tromey@adacore.com>
11478 * ada-typeprint.c (print_choices, print_variant_part)
11479 (print_record_field_types_dynamic): New functions.
11480 (print_record_field_types): Use print_record_field_types_dynamic.
11482 2020-04-24 Tom Tromey <tromey@adacore.com>
11484 * dwarf2/read.c (handle_data_member_location): New overload.
11485 (dwarf2_add_field): Use it.
11486 (decode_locdesc): Add "computed" parameter. Update comment.
11487 * gdbtypes.c (is_dynamic_type_internal): Also look for
11488 FIELD_LOC_KIND_DWARF_BLOCK.
11489 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11490 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11491 virtual base classes.
11492 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11493 FIELD_LOC_KIND_DWARF_BLOCK.
11495 2020-04-24 Tom Tromey <tromey@adacore.com>
11497 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11498 * gdbtypes.c (is_dynamic_type_internal): Check
11499 TYPE_HAS_DYNAMIC_LENGTH.
11500 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11501 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11503 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11506 2020-04-24 Tom Tromey <tromey@adacore.com>
11508 * dwarf2/read.c (struct variant_field): Rewrite.
11509 (struct variant_part_builder): New.
11510 (struct nextfield): Remove "variant" field. Add "offset".
11511 (struct field_info): Add "current_variant_part" and
11513 (alloc_discriminant_info): Remove.
11514 (alloc_rust_variant): New function.
11515 (quirk_rust_enum): Update.
11516 (dwarf2_add_field): Set "offset" member. Don't handle
11517 DW_TAG_variant_part.
11518 (offset_map_type): New typedef.
11519 (convert_variant_range, create_one_variant)
11520 (create_one_variant_part, create_variant_parts)
11521 (add_variant_property): New functions.
11522 (dwarf2_attach_fields_to_type): Call add_variant_property.
11523 (read_structure_type): Don't handle DW_TAG_variant_part.
11524 (handle_variant_part, handle_variant): New functions.
11525 (handle_struct_member_die): Use them.
11526 (process_structure_scope): Don't handle variant parts.
11527 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11528 (struct discriminant_info): Remove.
11529 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11530 (struct main_type) <flag_discriminated_union>: Remove.
11531 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11532 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11533 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11535 * valops.c (value_union_variant): Remove.
11536 * value.h (value_union_variant): Don't declare.
11538 2020-04-24 Tom Tromey <tromey@adacore.com>
11540 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11541 (ada_value_primitive_packed_val): Update.
11542 * ada-valprint.c (ada_value_print_1): Update.
11543 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11544 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11545 just an address. Use evaluate_for_locexpr_baton.
11546 (dwarf2_evaluate_property): Update.
11547 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11549 * findvar.c (default_read_var_value): Update.
11550 * gdbtypes.c (compute_variant_fields_inner)
11551 (resolve_dynamic_type_internal): Update.
11552 (resolve_dynamic_type): Change type of valaddr parameter.
11553 * gdbtypes.h (resolve_dynamic_type): Update.
11554 * valarith.c (value_subscripted_rvalue): Update.
11555 * value.c (value_from_contents_and_address): Update.
11557 2020-04-24 Tom Tromey <tromey@adacore.com>
11559 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11560 "push_initial_value" parameter.
11561 (dwarf2_evaluate_property): Likewise.
11562 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11564 2020-04-24 Tom Tromey <tromey@adacore.com>
11566 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11567 (variant::matches, compute_variant_fields_recurse)
11568 (compute_variant_fields_inner, compute_variant_fields): New
11570 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11571 Use resolved_type after type is made.
11572 (operator==): Add new cases.
11573 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11574 (struct discriminant_range, struct variant, struct variant_part):
11576 (union dynamic_prop_data) <variant_parts, original_type>: New
11578 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11579 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11581 * value.c (unpack_bits_as_long): Now public.
11582 * value.h (unpack_bits_as_long): Declare.
11584 2020-04-24 Tom Tromey <tromey@adacore.com>
11586 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11587 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11589 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11591 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11593 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11595 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11596 (remove_fork_catchpoint, post_startup_inferior)
11597 (post_attach): Move...
11598 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11599 (remove_fork_catchpoint, post_startup_inferior)
11600 (post_attach): ...here.
11601 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11602 (remove_fork_catchpoint, post_startup_inferior)
11603 (post_attach): Move...
11604 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11605 (remove_fork_catchpoint, post_startup_inferior)
11606 (post_attach): ...here.
11608 2020-04-24 Tom Tromey <tromey@adacore.com>
11610 * nat/windows-nat.h (struct windows_thread_info)
11611 <pc_adjusted>: New member.
11612 * windows-nat.c (windows_fetch_one_register): Check
11614 (windows_nat_target::get_windows_debug_event)
11615 (windows_nat_target::wait): Set pc_adjusted.
11617 2020-04-24 Tom de Vries <tdevries@suse.de>
11619 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11620 Run gdb-add-index inside temp dir.
11622 2020-04-23 Tom Tromey <tromey@adacore.com>
11624 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11627 2020-04-23 Luis Machado <luis.machado@linaro.org>
11629 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11630 get_frame_register instead of gdbarch_unwind_pc.
11632 2020-04-23 Tom de Vries <tdevries@suse.de>
11634 * symtab.c (lookup_global_symbol): Prefer def over decl.
11636 2020-04-23 Tom de Vries <tdevries@suse.de>
11639 * block.c (best_symbol, better_symbol): Promote to external.
11640 * block.h (best_symbol, better_symbol): Declare.
11641 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11644 2020-04-23 Tom Tromey <tromey@adacore.com>
11647 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11648 "const char *", not a "const std::string &".
11649 <name_and_matcher::operator==>: Update.
11650 * unittests/lookup_name_info-selftests.c: Change type of
11653 2020-04-23 Tom Tromey <tom@tromey.com>
11655 * inferior.h (iterate_over_inferiors): Don't declare.
11656 * inferior.c (iterate_over_inferiors): Remove.
11657 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11659 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11660 use iterate_over_inferiors.
11661 (darwin_resume_inferior_it)
11662 (struct resume_inferior_threads_param)
11663 (darwin_resume_inferior_threads_it): Remove.
11664 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11666 2020-04-23 Tom de Vries <tdevries@suse.de>
11668 * blockframe.c (find_pc_partial_function): Use
11669 find_pc_sect_compunit_symtab rather than
11670 objfile->sf->qf->find_pc_sect_compunit_symtab.
11672 2020-04-22 Tom de Vries <tdevries@suse.de>
11675 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11678 2020-04-22 Tom de Vries <tdevries@suse.de>
11681 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11684 2020-04-22 Tom de Vries <tdevries@suse.de>
11687 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11688 CU if already created.
11690 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11692 * infrun.c (displaced_step_fixup): Switch to the event_thread
11693 before calling displaced_step_restore, not after.
11695 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11697 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11698 its inferior is not recorded by us.
11699 (record_btrace_target_open): Replace call to
11700 all_non_exited_threads () with call to current_inferior
11701 ()->non_exited_threads ().
11702 (record_btrace_target::stop_recording): Likewise.
11703 (record_btrace_target::close): Likewise.
11704 (record_btrace_target::wait): Likewise.
11705 (record_btrace_target::record_stop_replaying): Likewise.
11707 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11709 * btrace.c (btrace_enable): Throw an error on double enables and
11710 when enabling recording fails.
11711 (btrace_disable): Throw an error if the thread is not recorded.
11713 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11715 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11716 request if we do not have a thread_info.
11718 2020-04-21 Tom de Vries <tdevries@suse.de>
11722 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11723 exception in get_frame_id.
11725 2020-04-20 Tom Tromey <tromey@adacore.com>
11727 * python/python.c (struct gdbpy_event): Mark move constructor as
11729 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11730 constructor as noexcept.
11731 * completer.h (struct completion_result): Mark move constructor as
11733 * completer.c (completion_result::completion_result): Use
11734 initialization style. Don't call reset_match_list.
11736 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11738 * MAINTAINERS (Write After Approval): Add myself.
11740 2020-04-18 Tom Tromey <tom@tromey.com>
11742 * windows-tdep.c (init_w32_command_list)
11743 (w32_prefix_command_valid): Restore.
11744 (_initialize_windows_tdep): Call init_w32_command_list.
11746 2020-04-18 Tom Tromey <tom@tromey.com>
11748 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11749 * value.c (value_fn_field): Update.
11750 * valops.c (find_function_in_inferior)
11751 (value_allocate_space_in_inferior): Update.
11752 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11754 * tui/tui-source.c (tui_source_window::set_contents): Update.
11755 * symtab.c (lookup_global_or_static_symbol)
11756 (find_function_start_sal_1, skip_prologue_sal)
11757 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11758 * symmisc.c (dump_msymbols, dump_symtab_1)
11759 (maintenance_print_one_line_table): Update.
11760 * symfile.c (init_entry_point_info, section_is_mapped)
11761 (list_overlays_command, simple_read_overlay_table)
11762 (simple_overlay_update_1): Update.
11763 * stap-probe.c (handle_stap_probe): Update.
11764 * stabsread.c (dbx_init_float_type, define_symbol)
11765 (read_one_struct_field, read_enum_type, read_range_type): Update.
11766 * source.c (info_line_command): Update.
11767 * python/python.c (gdbpy_source_objfile_script)
11768 (gdbpy_execute_objfile_script): Update.
11769 * python/py-type.c (save_objfile_types): Update.
11770 * python/py-objfile.c (py_free_objfile): Update.
11771 * python/py-inferior.c (python_new_objfile): Update.
11772 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11773 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11774 (maintenance_check_psymtabs): Update.
11775 * printcmd.c (info_address_command): Update.
11776 * objfiles.h (struct objfile) <arch>: New method, from
11778 (get_objfile_arch): Don't declare.
11779 * objfiles.c (get_objfile_arch): Remove.
11780 (filter_overlapping_sections): Update.
11781 * minsyms.c (msymbol_is_function): Update.
11782 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11783 (output_nondebug_symbol): Update.
11784 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11785 (mdebug_expand_psymtab): Update.
11786 * machoread.c (macho_add_oso_symfile): Update.
11787 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11789 * linux-fork.c (checkpoint_command): Update.
11790 * linespec.c (convert_linespec_to_sals): Update.
11791 * jit.c (finalize_symtab): Update.
11792 * infrun.c (insert_exception_resume_from_probe): Update.
11793 * ia64-tdep.c (ia64_find_unwind_table): Update.
11794 * hppa-tdep.c (internalize_unwinds): Update.
11795 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11797 * gcore.c (call_target_sbrk): Update.
11798 * elfread.c (record_minimal_symbol, elf_symtab_read)
11799 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11800 (elf_gnu_ifunc_resolve_by_got): Update.
11801 * dwarf2/read.c (create_addrmap_from_index)
11802 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11803 (read_debug_names_from_section)
11804 (process_psymtab_comp_unit_reader, add_partial_symbol)
11805 (add_partial_subprogram, process_full_comp_unit)
11806 (read_file_scope, read_func_scope, read_lexical_block_scope)
11807 (read_call_site_scope, dwarf2_ranges_read)
11808 (dwarf2_record_block_ranges, dwarf2_add_field)
11809 (mark_common_block_symbol_computed, read_tag_pointer_type)
11810 (read_tag_string_type, dwarf2_init_float_type)
11811 (dwarf2_init_complex_target_type, read_base_type)
11812 (partial_die_info::read, partial_die_info::read)
11813 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11814 (dwarf2_fetch_die_loc_sect_off): Update.
11815 * dwarf2/loc.c (dwarf2_find_location_expression)
11816 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11817 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11818 (dwarf2_loc_desc_get_symbol_read_needs)
11819 (locexpr_describe_location_piece, locexpr_describe_location_1)
11820 (loclist_describe_location): Update.
11821 * dwarf2/index-write.c (write_debug_names): Update.
11822 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11823 * dtrace-probe.c (dtrace_process_dof): Update.
11824 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11825 (process_one_symbol): Update.
11826 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11827 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11828 (coff_read_enum_type): Update.
11829 * cli/cli-cmds.c (edit_command, list_command): Update.
11830 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11831 * breakpoint.c (create_overlay_event_breakpoint)
11832 (create_longjmp_master_breakpoint)
11833 (create_std_terminate_master_breakpoint)
11834 (create_exception_master_breakpoint, get_sal_arch): Update.
11835 * block.c (block_gdbarch): Update.
11836 * annotate.c (annotate_source_line): Update.
11838 2020-04-17 Tom Tromey <tromey@adacore.com>
11840 * auto-load.c (show_auto_load_cmd): Remove.
11841 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11842 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11843 (maintenance_print_arc_command): Remove.
11844 * tui/tui-win.c (tui_command): Remove.
11845 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11846 * tui/tui-layout.c (tui_layout_command): Remove.
11847 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11848 * python/python.c (user_set_python, user_show_python): Remove.
11849 (_initialize_python): Use add_basic_prefix_cmd,
11850 add_show_prefix_cmd.
11851 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11852 (install_gdb_commands): Use add_basic_prefix_cmd,
11853 add_show_prefix_cmd.
11854 (info_guile_command): Remove.
11855 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11856 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11857 add_show_prefix_cmd.
11858 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11859 Remove do_set and do_show parameters.
11860 * cli/cli-style.c (set_style, show_style): Remove.
11861 (_initialize_cli_style): Use add_basic_prefix_cmd,
11862 add_show_prefix_cmd.
11863 (cli_style_option::add_setshow_commands): Remove do_set and
11864 do_show parameters.
11865 (cli_style_option::add_setshow_commands): Use
11866 add_basic_prefix_cmd, add_show_prefix_cmd.
11867 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11868 (set_style_name): Remove.
11869 * cli/cli-dump.c (dump_command, append_command): Remove.
11870 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11871 (tekhex_dump_command, binary_dump_command)
11872 (binary_append_command): Remove.
11873 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11874 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11875 (init_w32_command_list): Remove; move into ...
11876 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11877 * valprint.c (set_print, show_print, set_print_raw)
11878 (show_print_raw): Remove.
11879 (_initialize_valprint): Use add_basic_prefix_cmd,
11880 add_show_prefix_cmd.
11881 * typeprint.c (set_print_type, show_print_type): Remove.
11882 (_initialize_typeprint): Use add_basic_prefix_cmd,
11883 add_show_prefix_cmd.
11884 * record.c (set_record_command, show_record_command): Remove.
11885 (_initialize_record): Use add_basic_prefix_cmd,
11886 add_show_prefix_cmd.
11887 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11888 add_show_prefix_cmd.
11889 (info_command, show_command, set_debug, show_debug): Remove.
11890 * top.h (set_history, show_history): Don't declare.
11891 * top.c (set_history, show_history): Remove.
11892 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11893 (unset_tdesc_cmd): Remove.
11894 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11895 add_show_prefix_cmd.
11896 * symtab.c (info_module_command): Remove.
11897 (_initialize_symtab): Use add_basic_prefix_cmd.
11898 * symfile.c (overlay_command): Remove.
11899 (_initialize_symfile): Use add_basic_prefix_cmd.
11900 * sparc64-tdep.c (info_adi_command): Remove.
11901 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11902 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11903 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11904 add_show_prefix_cmd.
11905 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11906 (_initialize_serial): Use add_basic_prefix_cmd,
11907 add_show_prefix_cmd.
11908 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11909 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11910 add_show_prefix_cmd.
11911 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11912 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11913 add_show_prefix_cmd.
11914 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11915 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11916 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11917 add_show_prefix_cmd.
11918 * remote.c (remote_command, set_remote_cmd): Remove.
11919 (_initialize_remote): Use add_basic_prefix_cmd.
11920 * record-full.c (set_record_full_command)
11921 (show_record_full_command): Remove.
11922 (_initialize_record_full): Use add_basic_prefix_cmd,
11923 add_show_prefix_cmd.
11924 * record-btrace.c (cmd_set_record_btrace)
11925 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11926 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11927 (cmd_show_record_btrace_pt): Remove.
11928 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11929 add_show_prefix_cmd.
11930 * ravenscar-thread.c (set_ravenscar_command)
11931 (show_ravenscar_command): Remove.
11932 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11933 add_show_prefix_cmd.
11934 * mips-tdep.c (show_mips_command, set_mips_command)
11935 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11936 add_show_prefix_cmd.
11937 * maint.c (maintenance_command, maintenance_info_command)
11938 (maintenance_check_command, maintenance_print_command)
11939 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11940 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11941 add_show_prefix_cmd.
11942 (show_per_command_cmd): Remove.
11943 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11945 (maintenance_show_test_settings_cmd): Remove.
11946 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11947 add_show_prefix_cmd.
11948 * maint-test-options.c (maintenance_test_options_command):
11950 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11951 * macrocmd.c (macro_command): Remove
11952 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11953 * language.c (set_check, show_check): Remove.
11954 (_initialize_language): Use add_basic_prefix_cmd,
11955 add_show_prefix_cmd.
11956 * infcmd.c (unset_command): Remove.
11957 (_initialize_infcmd): Use add_basic_prefix_cmd.
11958 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11959 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11960 add_show_prefix_cmd.
11961 * go32-nat.c (go32_info_dos_command): Remove.
11962 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11963 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11964 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11965 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11966 (_initialize_frame): Use add_basic_prefix_cmd,
11967 add_show_prefix_cmd.
11968 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11969 (_initialize_dcache): Use add_basic_prefix_cmd,
11970 add_show_prefix_cmd.
11971 * cp-support.c (maint_cplus_command): Remove.
11972 (_initialize_cp_support): Use add_basic_prefix_cmd.
11973 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11974 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11975 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11976 add_basic_prefix_cmd, add_show_prefix_cmd.
11977 * breakpoint.c (save_command): Remove.
11978 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11979 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11980 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11981 add_show_prefix_cmd.
11982 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11983 (set_ada_command, show_ada_command): Remove.
11984 (_initialize_ada_language): Use add_basic_prefix_cmd,
11985 add_show_prefix_cmd.
11986 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11988 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11990 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11991 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11993 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11995 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11998 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12000 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12001 import table is not at beginning of .idata section.
12003 2020-04-16 Pedro Alves <palves@redhat.com>
12005 * inferior.c (delete_inferior): Use delete operator directly
12006 instead of delete_program_space.
12007 * progspace.c (add_program_space): New, factored out from
12008 program_space::program_space.
12009 (remove_program_space): New, factored out from
12010 delete_program_space.
12011 (program_space::program_space): Remove intro comment. Rewrite.
12012 (program_space::~program_space): Remove intro comment. Call
12013 remove_program_space.
12014 (delete_program_space): Delete.
12015 * progspace.h (program_space::program_space): Make explicit. Move
12016 intro comment here, adjusted.
12017 (program_space::~program_space): Move intro comment here,
12019 (delete_program_space): Remove.
12021 2020-04-16 Tom Tromey <tromey@adacore.com>
12023 * windows-nat.c (windows_nat::handle_access_violation): New
12025 * nat/windows-nat.h (handle_access_violation): Declare.
12026 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12027 windows-nat.c. Call handle_access_violation.
12029 2020-04-16 Tom de Vries <tdevries@suse.de>
12032 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12033 CUs without psymtab.
12035 2020-04-16 Kevin Buettner <kevinb@redhat.com>
12037 * python/python.c (do_start_initialization): Don't call
12038 PyEval_InitThreads for Python 3.9 and beyond.
12040 2020-04-15 Kamil Rytarowski <n54@gmx.com>
12042 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12044 (obsd_nat_target::wait): Likewise.
12046 2020-04-15 Tom Tromey <tromey@adacore.com>
12048 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12049 (DEBUG_EXCEPT): Use debug_printf.
12051 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12053 * completer.c (class completion_tracker::completion_hash_entry)
12054 <hash_name>: New member function.
12055 (completion_tracker::discard_completions): New callback to hash a
12056 completion_hash_entry, pass this to htab_create_alloc.
12058 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12060 * windows-nat.c (windows_make_so): Warn rather than stopping with
12061 an error if realpath() fails.
12063 2020-04-14 Kamil Rytarowski <n54@gmx.com>
12065 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12066 (nbsd_nat_target::info_proc): Add do_status.
12068 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12069 Tom de Vries <tdevries@suse.de>
12072 * psympriv.h (struct partial_symtab::read_symtab)
12073 (struct partial_symtab::expand_psymtab)
12074 (struct partial_symtab::read_dependencies): Update comments.
12075 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12076 read_symtab for includer.
12077 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12078 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12079 (struct dwarf2_include_psymtab::m_readin): Remove.
12080 (struct dwarf2_include_psymtab::includer): New member function.
12081 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12083 2020-04-14 Tom de Vries <tdevries@suse.de>
12086 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12087 with NULL symbol_matcher and lookup_name.
12088 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12090 * dwarf2/read.c (dw2_expand_symtabs_matching)
12091 (dw2_debug_names_expand_symtabs_matching): Same.
12092 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12093 Make lookup_name a pointer. Update comment.
12094 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12095 lookup_name being a pointer.
12096 * symfile.c (expand_symtabs_matching): Same.
12097 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12098 * linespec.c (iterate_over_all_matching_symtabs): Same.
12100 2020-04-13 Tom Tromey <tom@tromey.com>
12102 * run-on-main-thread.c: Update include.
12103 * unittests/main-thread-selftests.c: Update include.
12104 * tui/tui-win.c: Update include.
12105 * tui/tui-io.c: Update include.
12106 * tui/tui-interp.c: Update include.
12107 * tui/tui-hooks.c: Update include.
12108 * top.h: Update include.
12109 * top.c: Update include.
12110 * ser-base.c: Update include.
12111 * remote.c: Update include.
12112 * remote-notif.c: Update include.
12113 * remote-fileio.c: Update include.
12114 * record-full.c: Update include.
12115 * record-btrace.c: Update include.
12116 * python/python.c: Update include.
12117 * posix-hdep.c: Update include.
12118 * mingw-hdep.c: Update include.
12119 * mi/mi-main.c: Update include.
12120 * mi/mi-interp.c: Update include.
12121 * main.c: Update include.
12122 * linux-nat.c: Update include.
12123 * interps.c: Update include.
12124 * infrun.c: Update include.
12125 * inf-loop.c: Update include.
12126 * event-top.c: Update include.
12127 * event-loop.c: Move to ../gdbsupport/.
12128 * event-loop.h: Move to ../gdbsupport/.
12129 * async-event.h: Update include.
12130 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12132 2020-04-13 Tom Tromey <tom@tromey.com>
12134 * tui/tui-win.c: Include async-event.h.
12135 * remote.c: Include async-event.h.
12136 * remote-notif.c: Include async-event.h.
12137 * record-full.c: Include async-event.h.
12138 * record-btrace.c: Include async-event.h.
12139 * infrun.c: Include async-event.h.
12140 * event-top.c: Include async-event.h.
12141 * event-loop.h: Move some declarations to async-event.h.
12142 * event-loop.c: Don't include ser-event.h or top.h. Move some
12143 code to async-event.c.
12144 * async-event.h: New file.
12145 * async-event.c: New file.
12146 * Makefile.in (COMMON_SFILES): Add async-event.c.
12147 (HFILES_NO_SRCDIR): Add async-event.h.
12149 2020-04-13 Tom Tromey <tom@tromey.com>
12151 * utils.c (flush_streams): New function.
12152 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12154 2020-04-13 Tom Tromey <tom@tromey.com>
12156 * event-loop.c (handle_file_event): Use warning, not
12159 2020-04-13 Tom Tromey <tom@tromey.com>
12161 * event-loop.c: Include <chrono>.
12163 2020-04-13 Tom Tromey <tom@tromey.com>
12165 * gdb_select.h: Move to ../gdbsupport/.
12166 * event-loop.c: Update include path.
12167 * top.c: Update include path.
12168 * ser-base.c: Update include path.
12169 * ui-file.c: Update include path.
12170 * ser-tcp.c: Update include path.
12171 * guile/scm-ports.c: Update include path.
12172 * posix-hdep.c: Update include path.
12173 * ser-unix.c: Update include path.
12174 * gdb_usleep.c: Update include path.
12175 * mingw-hdep.c: Update include path.
12176 * inflow.c: Update include path.
12177 * infrun.c: Update include path.
12178 * event-top.c: Update include path.
12180 2020-04-13 Tom Tromey <tom@tromey.com>
12182 * configure: Rebuild.
12183 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12185 2020-04-13 Tom Tromey <tom@tromey.com>
12187 * event-loop.h (start_event_loop): Don't declare.
12188 * event-loop.c (start_event_loop): Move...
12189 * main.c (start_event_loop): ...here. Now static.
12191 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12193 * MAINTAINERS: Update my email address.
12195 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12197 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12200 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12202 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12203 (nbsd_nat_target::info_proc): Add do_cmdline.
12205 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12207 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12208 (nbsd_nat_target::info_proc): Add do_cwd.
12210 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12212 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12214 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12216 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12217 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12218 (nbsd_nat_target::info_proc): New functions.
12219 * nbsd-nat.c (kinfo_get_vmmap): New function.
12220 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12221 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12222 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12223 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12225 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12226 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12227 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12228 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12229 (KINFO_VME_FLAG_GROWS_DOWN): New.
12231 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12233 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12236 2020-04-10 Tom Tromey <tromey@adacore.com>
12238 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12240 2020-04-10 Tom Tromey <tromey@adacore.com>
12242 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12243 separate debug files.
12245 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12247 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12249 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12251 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12252 Check for STATUS_WX86_BREAKPOINT.
12253 (windows_nat_target::wait): Same.
12255 2020-04-10 Tom de Vries <tdevries@suse.de>
12258 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12260 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12262 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12263 (Write After Approval): Remove Tom de Vries.
12265 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12268 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12270 * buildsym.c (record_line): Fix undefined behavior and preserve
12273 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12275 * auxv.h (svr4_auxv_parse): New.
12276 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12277 and generic_auxv_parse.
12278 (svr4_auxv_parse): Add.
12279 * obsd-tdep.c: Include "auxv.h".
12280 (obsd_auxv_parse): Remove.
12281 (obsd_init_abi): Remove comment.
12282 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12283 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12284 * nbsd-tdep.c: Include "auxv.h".
12285 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12287 2020-04-08 Tom Tromey <tromey@adacore.com>
12289 * nat/windows-nat.h (last_wait_event): Don't declare.
12290 (wait_for_debug_event): Update comment.
12291 * nat/windows-nat.c (last_wait_event): Now static.
12293 2020-04-08 Tom Tromey <tromey@adacore.com>
12295 * windows-nat.c (wait_for_debug_event): Move to
12297 * nat/windows-nat.h (wait_for_debug_event): Declare.
12298 * nat/windows-nat.c (wait_for_debug_event): Move from
12299 windows-nat.c. No longer static.
12301 2020-04-08 Tom Tromey <tromey@adacore.com>
12303 * windows-nat.c (get_windows_debug_event): Use
12304 fetch_pending_stop.
12305 * nat/windows-nat.h (fetch_pending_stop): Declare.
12306 * nat/windows-nat.c (fetch_pending_stop): New function.
12308 2020-04-08 Tom Tromey <tromey@adacore.com>
12310 * windows-nat.c (windows_continue): Use matching_pending_stop and
12311 continue_last_debug_event.
12312 * nat/windows-nat.h (matching_pending_stop)
12313 (continue_last_debug_event): Declare.
12314 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12315 (matching_pending_stop, continue_last_debug_event): New
12318 2020-04-08 Tom Tromey <tromey@adacore.com>
12320 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12321 (handle_exception_result): Move to nat/windows-nat.h.
12322 (DEBUG_EXCEPTION_SIMPLE): Remove.
12323 (windows_nat::handle_ms_vc_exception): New function.
12324 (handle_exception): Move to nat/windows-nat.c.
12325 (get_windows_debug_event): Update.
12326 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12328 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12329 (handle_exception_result): Move from windows-nat.c.
12330 (handle_exception): Declare.
12331 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12332 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12335 2020-04-08 Tom Tromey <tromey@adacore.com>
12337 * windows-nat.c (exception_count, event_count): Remove.
12338 (handle_exception, get_windows_debug_event)
12339 (do_initial_windows_stuff): Update.
12341 2020-04-08 Tom Tromey <tromey@adacore.com>
12343 * windows-nat.c (windows_nat::handle_load_dll)
12344 (windows_nat::handle_unload_dll): Rename. No longer static.
12345 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12348 2020-04-08 Tom Tromey <tromey@adacore.com>
12350 * complaints.h (stop_whining): Declare at top-level.
12351 (complaint): Don't declare stop_whining.
12353 2020-04-08 Tom Tromey <tromey@adacore.com>
12355 * windows-nat.c (windows_nat::handle_output_debug_string):
12356 Rename. No longer static.
12357 * nat/windows-nat.h (handle_output_debug_string): Declare.
12359 2020-04-08 Tom Tromey <tromey@adacore.com>
12361 * windows-nat.c (current_process_handle, current_process_id)
12362 (main_thread_id, last_sig, current_event, last_wait_event)
12363 (current_windows_thread, desired_stop_thread_id, pending_stops)
12364 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12365 (display_selectors, fake_create_process)
12366 (get_windows_debug_event): Update.
12367 * nat/windows-nat.h (current_process_handle, current_process_id)
12368 (main_thread_id, last_sig, current_event, last_wait_event)
12369 (current_windows_thread, desired_stop_thread_id, pending_stops)
12370 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12371 * nat/windows-nat.c (current_process_handle, current_process_id)
12372 (main_thread_id, last_sig, current_event, last_wait_event)
12373 (current_windows_thread, desired_stop_thread_id, pending_stops)
12374 (siginfo_er): New globals. Move from windows-nat.c.
12376 2020-04-08 Tom Tromey <tromey@adacore.com>
12378 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12379 (handle_load_dll): Update.
12380 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12382 2020-04-08 Tom Tromey <tromey@adacore.com>
12384 * windows-nat.c (enum thread_disposition_type): Move to
12386 (windows_nat::thread_rec): Rename from thread_rec. No longer
12388 (windows_add_thread, windows_nat_target::fetch_registers)
12389 (windows_nat_target::store_registers, handle_exception)
12390 (windows_nat_target::resume, get_windows_debug_event)
12391 (windows_nat_target::get_tib_address)
12392 (windows_nat_target::thread_name)
12393 (windows_nat_target::thread_alive): Update.
12394 * nat/windows-nat.h (enum thread_disposition_type): Move from
12396 (thread_rec): Declare.
12398 2020-04-08 Tom Tromey <tromey@adacore.com>
12400 * windows-nat.c: Add "using namespace".
12401 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12402 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12404 2020-04-08 Tom Tromey <tromey@adacore.com>
12406 * nat/windows-nat.h (struct windows_thread_info): Declare
12408 * nat/windows-nat.c (~windows_thread_info): New.
12410 2020-04-08 Tom Tromey <tromey@adacore.com>
12413 * windows-nat.c (current_event): Update comment.
12414 (last_wait_event, desired_stop_thread_id): New globals.
12415 (struct pending_stop): New.
12416 (pending_stops): New global.
12417 (windows_nat_target) <stopped_by_sw_breakpoint>
12418 <supports_stopped_by_sw_breakpoint>: New methods.
12419 (windows_fetch_one_register): Add assertions. Adjust PC.
12420 (windows_continue): Handle pending stops. Suspend other threads
12421 when stepping. Use last_wait_event
12422 (wait_for_debug_event): New function.
12423 (get_windows_debug_event): Use wait_for_debug_event. Handle
12424 pending stops. Queue spurious stops.
12425 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12426 (windows_nat_target::kill): Use wait_for_debug_event.
12427 * nat/windows-nat.h (struct windows_thread_info)
12428 <stopped_at_software_breakpoint>: New field.
12429 * nat/windows-nat.c (windows_thread_info::resume): Clear
12430 stopped_at_software_breakpoint.
12432 2020-04-08 Tom Tromey <tromey@adacore.com>
12434 * windows-nat.c (enum thread_disposition_type): New.
12435 (thread_rec): Replace "get_context" parameter with "disposition";
12437 (windows_add_thread, windows_nat_target::fetch_registers)
12438 (windows_nat_target::store_registers, handle_exception)
12439 (windows_nat_target::resume, get_windows_debug_event)
12440 (windows_nat_target::get_tib_address)
12441 (windows_nat_target::thread_name)
12442 (windows_nat_target::thread_alive): Update.
12444 2020-04-08 Tom Tromey <tromey@adacore.com>
12446 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12447 (windows_continue): Use windows_continue::resume.
12448 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12449 resume>: Declare new methods.
12450 * nat/windows-nat.c: New file.
12451 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12453 2020-04-08 Tom Tromey <tromey@adacore.com>
12455 * windows-nat.c (windows_add_thread, windows_delete_thread)
12456 (windows_nat_target::fetch_registers)
12457 (windows_nat_target::store_registers, fake_create_process)
12458 (windows_nat_target::resume, windows_nat_target::resume)
12459 (get_windows_debug_event, windows_nat_target::wait)
12460 (windows_nat_target::pid_to_str)
12461 (windows_nat_target::get_tib_address)
12462 (windows_nat_target::get_ada_task_ptid)
12463 (windows_nat_target::thread_name)
12464 (windows_nat_target::thread_alive): Use lwp, not tid.
12466 2020-04-08 Tom Tromey <tromey@adacore.com>
12468 * windows-nat.c (handle_exception)
12469 (windows_nat_target::thread_name): Update.
12470 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12471 <name>: Now unique_xmalloc_ptr.
12473 2020-04-08 Tom Tromey <tromey@adacore.com>
12475 * windows-nat.c (thread_rec)
12476 (windows_nat_target::fetch_registers): Update.
12477 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12479 <debug_registers_changed, reload_context>: Now bool.
12481 2020-04-08 Tom Tromey <tromey@adacore.com>
12483 * windows-nat.c (windows_add_thread): Use new.
12484 (windows_init_thread_list, windows_delete_thread): Use delete.
12485 (get_windows_debug_event): Update.
12486 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12487 destructor, and initializers.
12489 2020-04-08 Tom Tromey <tromey@adacore.com>
12491 * windows-nat.c (struct windows_thread_info): Remove.
12492 * nat/windows-nat.h: New file.
12494 2020-04-08 Tom Tromey <tromey@adacore.com>
12496 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12497 (thread_rec, windows_add_thread, windows_delete_thread)
12498 (windows_continue): Update.
12500 2020-04-08 Tom Tromey <tromey@adacore.com>
12502 * windows-nat.c (struct windows_thread_info): Remove typedef.
12503 (thread_head): Remove.
12504 (thread_list): New global.
12505 (thread_rec, windows_add_thread, windows_init_thread_list)
12506 (windows_delete_thread, windows_continue): Update.
12508 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12510 * windows-tdep.h (windows_init_abi): Add comment.
12511 (cygwin_init_abi): New declaration.
12512 * windows-tdep.c: Split signal enumeration in two, one for
12513 Windows and one for Cygwin.
12514 (windows_gdb_signal_to_target): Only deal with signal of the
12516 (cygwin_gdb_signal_to_target): New function.
12517 (windows_init_abi): Rename to windows_init_abi_common, don't set
12518 gdb_signal_to_target gdbarch method. Add new new function with
12520 (cygwin_init_abi): New function.
12521 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12522 comment. Don't call windows_init_abi.
12523 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12524 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12525 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12526 i386_windows_init_abi_common, don't call windows_init_abi. Add
12527 a new function of this name.
12528 (i386_cygwin_init_abi): New function.
12529 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12532 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12534 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12536 (dwarf2_read_gdb_index): Update.
12538 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12540 * nbsd-tdep.c: Include "objfiles.h".
12541 (nbsd_skip_solib_resolver): New.
12542 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12544 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12546 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12547 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12548 with DW_LLE_base_addressx are being emitted in DWARFv5.
12549 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12550 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12553 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12555 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12556 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12557 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12558 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12559 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12560 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12561 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12564 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12566 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12567 (read_loclist_index): New function definition.
12568 (lookup_loclist_base): New function definition.
12569 (read_loclist_header): New function definition.
12570 (dwarf2_cu): Add loclist_base and loclist_header field.
12571 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12572 (read_full_die_1): Read the value of DW_AT_loclists_base.
12573 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12574 (read_attribute_value): Handle DW_FORM_loclistx.
12575 (skip_one_die): Handle DW_FORM_loclistx.
12576 (loclist_header): New structure declaration.
12577 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12579 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12581 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12582 constructor. Remove `addr` parameter from other constructor and
12583 add `per_cu` parameter.
12584 * dwarf2/read.c (create_partial_symtab): Update.
12586 2020-04-07 Tom de Vries <tdevries@suse.de>
12589 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12590 (partial_die_info::fixup): Inherit has_const_value.
12592 2020-04-07 Tom de Vries <tdevries@suse.de>
12594 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12595 symbols without address.
12597 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12599 * nbsd-nat.h (struct thread_info): Add forward declaration.
12600 (nbsd_nat_target::thread_alive): Add.
12601 (nbsd_nat_target::thread_name): Likewise.
12602 (nbsd_nat_target::update_thread_list): Likewise.
12603 (update_thread_list::post_attach): Likewise.
12604 (post_attach::pid_to_str): Likewise.
12605 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12606 (nbsd_thread_lister): Add.
12607 (nbsd_nat_target::thread_alive): Likewise.
12608 (nbsd_nat_target::thread_name): Likewise.
12609 (nbsd_add_threads): Likewise.
12610 (update_thread_list::post_attach): Likewise.
12611 (nbsd_nat_target::update_thread_list): Likewise.
12612 (post_attach::pid_to_str): Likewise.
12614 2020-04-06 Tom Tromey <tromey@adacore.com>
12616 * ada-valprint.c (print_variant_part): Extract the variant field.
12617 (print_field_values): Use the field as the outer value when
12620 2020-04-06 Tom Tromey <tromey@adacore.com>
12622 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12623 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12624 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12625 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12626 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12628 2020-04-06 Tom Tromey <tromey@adacore.com>
12630 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12633 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12635 * nbsd-tdep.c: Include "gdbarch.h".
12636 Define enum with NetBSD signal numbers.
12637 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12638 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12639 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12640 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12641 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12642 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12643 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12644 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12645 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12646 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12647 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12648 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12650 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12653 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12655 2020-04-03 Tom Tromey <tromey@adacore.com>
12657 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12658 Read constant block.
12660 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12662 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12663 (gdb_bfd_get_full_section_contents): New declaration.
12664 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12665 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12666 gdb_bfd_get_full_section_contents.
12668 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12670 * exec.c (build_section_table): Replace internal_error with
12672 (section_table_xfer_memory_partial): Likewise.
12673 * mdebugread.c (parse_partial_symbols): Likewise.
12674 * psymtab.c (lookup_partial_symbol): Likewise.
12675 * utils.c (wrap_here): Likewise.
12677 2020-04-02 Tom Tromey <tromey@adacore.com>
12679 * f-lang.c (build_fortran_types): Use arch_type to initialize
12680 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12682 2020-04-02 Tom Tromey <tromey@adacore.com>
12684 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12687 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12688 Bernd Edlinger <bernd.edlinger@hotmail.de>
12689 Tom Tromey <tromey@adacore.com>
12691 * buildsym.c (buildsym_compunit::record_line): Remove
12692 deduplication code.
12694 2020-04-02 Tom de Vries <tdevries@suse.de>
12697 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12699 2020-04-02 Tom de Vries <tdevries@suse.de>
12701 * dwarf2/read.c (dwarf2_gdb_index_functions,
12702 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12704 * psymtab.c (psym_lookup_global_symbol_language): New function.
12705 (psym_functions): Init psym_lookup_global_symbol_language with
12706 psym_lookup_global_symbol_language.
12707 * symfile-debug.c (debug_sym_quick_functions): Init
12708 lookup_global_symbol_language with NULL.
12709 * symfile.c (set_initial_language): Remove fixme comment.
12710 * symfile.h (struct quick_symbol_functions): Add
12711 lookup_global_symbol_language.
12712 * symtab.c (find_quick_global_symbol_language): New function.
12713 (find_main_name): Use find_quick_global_symbol_language.
12715 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12717 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12719 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12721 * buildsym.c (record_line): Fix undefined behavior and preserve
12724 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12726 * buildsym.c (record_line): Fix the resizing condition.
12728 2020-04-01 Tom Tromey <tom@tromey.com>
12730 * value.h (value_literal_complex): Add comment.
12731 * valops.c (value_literal_complex): Refer to value.h.
12733 2020-04-01 Tom Tromey <tom@tromey.com>
12735 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12736 (scalar_type): New rule, from typebase.
12737 (typebase): Use scalar_type. Recognize complex types.
12738 (field_name): Handle FLOAT_KEYWORD.
12739 (ident_tokens): Add _Complex and __complex__.
12741 2020-04-01 Tom Tromey <tom@tromey.com>
12744 * valarith.c (promotion_type, complex_binop): New functions.
12745 (scalar_binop): Handle complex numbers. Use promotion_type.
12746 (value_pos, value_neg, value_complement): Handle complex numbers.
12748 2020-04-01 Tom Tromey <tom@tromey.com>
12750 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12751 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12752 (parse_number): Handle complex numbers.
12754 2020-04-01 Tom Tromey <tom@tromey.com>
12756 * c-valprint.c (c_decorations): Change complex suffix to "i".
12758 2020-04-01 Tom Tromey <tom@tromey.com>
12760 * valprint.c (generic_value_print_complex): Use accessors.
12761 * value.h (value_real_part, value_imaginary_part): Declare.
12762 * valops.c (value_real_part, value_imaginary_part): New
12764 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12766 2020-04-01 Tom Tromey <tom@tromey.com>
12768 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12769 (read_range_type): Update.
12770 * mdebugread.c (basic_type): Update.
12771 * go-lang.c (build_go_types): Use init_complex_type.
12772 * gdbtypes.h (struct main_type) <complex_type>: New member.
12773 (init_complex_type): Update.
12774 (arch_complex_type): Don't declare.
12775 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12776 Make name if none given. Use alloc_type_copy. Look for cached
12778 (arch_complex_type): Remove.
12779 (gdbtypes_post_init): Use init_complex_type.
12780 * f-lang.c (build_fortran_types): Use init_complex_type.
12781 * dwarf2/read.c (read_base_type): Update.
12782 * d-lang.c (build_d_types): Use init_complex_type.
12783 * ctfread.c (read_base_type): Update.
12785 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12787 * infrun.c (stop_all_threads): Update assertion, plus when
12788 stopping threads, take into account that we might be trying
12789 to stop an all-stop target.
12790 (stop_waiting): Call 'stop_all_threads' if there exists a
12793 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12795 * target.h (exists_non_stop_target): New function declaration.
12796 * target.c (exists_non_stop_target): New function.
12798 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12801 * eval.c (is_integral_or_integral_reference): New function.
12802 (evaluate_subexp_standard): Allow integer references in
12803 pointer arithmetic.
12805 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12807 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12808 check for no ptid in the stop reply when the target is non-stop.
12810 2020-04-01 Tom Tromey <tromey@adacore.com>
12812 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12813 "name" parameter to rvalue reference. Initialize m_name_holder.
12814 <lookup_name_info>: New overloads.
12815 <name>: Return gdb::string_view.
12816 <c_str>: New method.
12817 <make_ignore_params>: Update.
12818 <search_name_hash>: Update.
12819 <language_lookup_name>: Return const char *.
12820 <m_name>: Change type.
12821 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12822 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12823 (lookup_name_info::match_any): Update.
12824 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12826 * minsyms.c (linkage_name_str): Update.
12827 * language.c (default_symbol_name_matcher): Update.
12828 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12830 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12831 (ada_lookup_name_info::ada_lookup_name_info): Update.
12832 (literal_symbol_name_matcher): Update.
12834 2020-04-01 Tom Tromey <tromey@adacore.com>
12836 * psymtab.c (psymtab_search_name): Remove function.
12837 (psym_lookup_symbol): Create search name and lookup name here.
12838 (lookup_partial_symbol): Remove "name" parameter; add
12840 (psym_expand_symtabs_for_function): Update.
12842 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12845 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12847 2020-03-31 Tom Tromey <tromey@adacore.com>
12849 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12852 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12854 * features/riscv/32bit-csr.xml: Regenerated.
12855 * features/riscv/64bit-csr.xml: Regenerated.
12857 2020-03-30 Tom Tromey <tromey@adacore.com>
12859 * ada-valprint.c (print_variant_part): Update.
12860 * ada-lang.h (ada_which_variant_applies): Update.
12861 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12862 outer_valaddr parameters; replace with "outer" value parameter.
12863 (to_fixed_variant_branch_type): Update.
12865 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12867 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12868 <list>. Remove inclusion of observable.h.
12869 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12870 (struct arch_lwp_info): New struct.
12871 (class ppc_linux_dreg_interface): New class.
12872 (struct ppc_linux_process_info): New struct.
12873 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12874 <low_new_clone, low_forget_process, low_prepare_to_resume>
12875 <copy_thread_dreg_state, mark_thread_stale>
12876 <mark_debug_registers_changed, register_hw_breakpoint>
12877 <clear_hw_breakpoint, register_wp, clear_wp>
12878 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12879 <num_memory_accesses, get_trigger_type>
12880 <create_watchpoint_request, hwdebug_point_cmp>
12881 <init_arch_lwp_info, get_arch_lwp_info>
12882 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12884 <struct ptid_hash>: New inner struct.
12885 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12887 (saved_dabr_value, hwdebug_info, max_slots_number)
12888 (struct hw_break_tuple, struct thread_points, ppc_threads)
12889 (have_ptrace_hwdebug_interface)
12890 (hwdebug_find_thread_points_by_tid)
12891 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12892 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12893 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12894 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12895 use m_dreg_interface.
12896 (hwdebug_point_cmp): Change to...
12897 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12898 reference arguments instead of pointers.
12899 (ppc_linux_nat_target::ranged_break_num_registers): Use
12901 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12902 m_dreg_interface. Call register_hw_breakpoint.
12903 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12904 m_dreg_interface. Call clear_hw_breakpoint.
12905 (get_trigger_type): Change to...
12906 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12908 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12909 use m_dreg_interface. Call register_hw_breakpoint.
12910 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12911 use m_dreg_interface. Call clear_hw_breakpoint.
12912 (can_use_watchpoint_cond_accel): Change to...
12913 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12914 method. Update comment, use m_dreg_interface and
12916 (calculate_dvc): Change to...
12917 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12919 (num_memory_accesses): Change to...
12920 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12921 (check_condition): Change to...
12922 (ppc_linux_nat_target::check_condition): ...this method.
12923 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12924 comment, use m_dreg_interface.
12925 (create_watchpoint_request): Change to...
12926 (ppc_linux_nat_target::create_watchpoint_request): ...this
12927 method. Use m_dreg_interface.
12928 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12929 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12930 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12931 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12932 (ppc_linux_nat_target::low_forget_process)
12933 (ppc_linux_nat_target::low_new_fork)
12934 (ppc_linux_nat_target::low_new_clone)
12935 (ppc_linux_nat_target::low_delete_thread)
12936 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12937 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12938 only call mark_thread_stale.
12939 (ppc_linux_thread_exit): Remove.
12940 (ppc_linux_nat_target::stopped_data_address): Change to...
12941 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12942 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12943 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12944 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12945 comment. Call low_stopped_data_address.
12946 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12948 (ppc_linux_nat_target::masked_watch_num_registers): Use
12950 (ppc_linux_nat_target::copy_thread_dreg_state)
12951 (ppc_linux_nat_target::mark_thread_stale)
12952 (ppc_linux_nat_target::mark_debug_registers_changed)
12953 (ppc_linux_nat_target::register_hw_breakpoint)
12954 (ppc_linux_nat_target::clear_hw_breakpoint)
12955 (ppc_linux_nat_target::register_wp)
12956 (ppc_linux_nat_target::clear_wp)
12957 (ppc_linux_nat_target::init_arch_lwp_info)
12958 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12959 (_initialize_ppc_linux_nat): Remove observer callback.
12961 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12963 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12964 (ppc_linux_nat_target::auxv_parse)
12965 (ppc_linux_nat_target::read_description)
12966 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12969 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12971 * linux-nat.h (low_new_clone): New method.
12972 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12974 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12976 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12977 (dbx_expand_psymtab): ... this.
12978 (start_psymtab): Update.
12979 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12980 (mdebug_expand_psymtab): ... this.
12981 (parse_partial_symbols): Update.
12982 (new_psymtab): Update.
12983 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12984 (xcoff_expand_psymtab): ... this.
12985 (xcoff_start_psymtab): Update.
12987 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12989 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12990 <expand_dependencies>: ... this.
12991 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12992 (partial_symtab::expand_dependencies): ... this.
12993 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12995 (dwarf2_psymtab::expand_psymtab): Update.
12996 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12997 * mdebugread.c (psymtab_to_symtab_1): Update.
12998 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13000 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13002 * psympriv.h (discard_psymtab): Remove.
13003 * dbxread.c (dbx_end_psymtab): Update.
13004 * xcoffread.c (xcoff_end_psymtab): Update.
13006 2020-03-28 Tom Tromey <tom@tromey.com>
13008 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13011 2020-03-28 Tom Tromey <tom@tromey.com>
13013 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13015 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
13017 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13019 2020-03-26 John Baldwin <jhb@FreeBSD.org>
13021 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13023 2020-03-26 Tom Tromey <tom@tromey.com>
13025 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13026 (mark_common_block_symbol_computed, read_tag_string_type)
13027 (attr_to_dynamic_prop, read_subrange_type): Update.
13028 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13029 to be methods on struct attribute.
13030 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13031 (read_call_site_scope, partial_die_info::read)
13032 (partial_die_info::read, lookup_die_type, follow_die_ref):
13034 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13035 from dwarf2_get_ref_die_offset.
13036 (attribute::constant_value): New method, from
13037 dwarf2_get_attr_constant_value.
13038 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13040 <constant_value>: New method.
13042 2020-03-26 Tom Tromey <tom@tromey.com>
13044 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13045 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13046 (dwarf_type_encoding_name): Move to stringify.c.
13047 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13048 * dwarf2/stringify.c: New file.
13049 * dwarf2/stringify.h: New file.
13051 2020-03-26 Tom Tromey <tom@tromey.com>
13053 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13056 2020-03-26 Tom Tromey <tom@tromey.com>
13058 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13060 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13061 (lookup_ranges_base): Likewise.
13062 (read_cutu_die_from_dwo, read_full_die_1): Update.
13064 2020-03-26 Tom Tromey <tom@tromey.com>
13066 * dwarf2/read.c (read_import_statement, read_file_scope)
13067 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13068 (read_lexical_block_scope, read_call_site_scope)
13069 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13070 (handle_struct_member_die, process_structure_scope)
13071 (update_enumeration_type_from_children)
13072 (process_enumeration_scope, read_array_type, read_common_block)
13073 (read_namespace, read_module, read_subroutine_type): Update.
13074 (sibling_die): Remove.
13076 2020-03-26 Tom Tromey <tom@tromey.com>
13078 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13079 (build_type_psymtabs_reader, read_structure_type)
13080 (read_enumeration_type, read_full_die_1): Update.
13081 (dwarf2_attr_no_follow): Move to die.h.
13082 * dwarf2/die.h (struct die_info) <attr>: New method.
13084 2020-03-26 Tom Tromey <tom@tromey.com>
13086 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13087 <base_address>: Now an optional.
13088 (dwarf2_find_base_address, dwarf2_rnglists_process)
13089 (dwarf2_ranges_process, fill_in_loclist_baton)
13090 (dwarf2_symbol_mark_computed): Update.
13092 2020-03-26 Tom Tromey <tom@tromey.com>
13094 * dwarf2/read.c (struct die_info): Move to die.h.
13095 * dwarf2/die.h: New file.
13097 2020-03-26 Tom Tromey <tom@tromey.com>
13099 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13101 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13102 Move to line-header.c.
13103 (read_checked_initial_length_and_offset, read_formatted_entries):
13105 (dwarf_decode_line_header): Split into two.
13106 * dwarf2/line-header.c
13107 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13109 (read_checked_initial_length_and_offset, read_formatted_entries):
13111 (dwarf_decode_line_header): New function, split from read.c.
13113 2020-03-26 Tom Tromey <tom@tromey.com>
13115 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13117 * dwarf2/read.c (read_attribute_value): Update.
13118 (dwarf2_per_objfile::read_line_string): Rename from
13119 read_indirect_line_string.
13120 (read_formatted_entries): Update.
13122 2020-03-26 Tom Tromey <tom@tromey.com>
13124 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13127 2020-03-26 Tom Tromey <tom@tromey.com>
13129 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13131 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13132 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13135 2020-03-26 Tom Tromey <tom@tromey.com>
13137 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13138 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13139 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13140 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13142 2020-03-26 Tom Tromey <tom@tromey.com>
13144 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13145 file_names_size, file_full_name, file_file_name>: Use const.
13146 <file_name_at, file_names>: Add const overload.
13147 * dwarf2/line-header.c (line_header::file_file_name)
13148 (line_header::file_full_name): Update.
13150 2020-03-26 Tom Tromey <tom@tromey.com>
13152 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13153 (macro_start_file, consume_improper_spaces)
13154 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13155 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13156 (dwarf_decode_macros): Move to macro.c.
13157 * dwarf2/macro.c: New file.
13158 * dwarf2/macro.h: New file.
13159 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13161 2020-03-26 Tom Tromey <tom@tromey.com>
13163 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13165 * dwarf2/section.c: New method. From
13166 read_indirect_string_at_offset_from.
13167 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13168 (read_indirect_string_at_offset_from): Move to section.c.
13169 (read_indirect_string_at_offset): Rewrite.
13170 (read_indirect_line_string_at_offset): Remove.
13171 (read_indirect_string, read_indirect_line_string)
13172 (dwarf_decode_macro_bytes): Update.
13174 2020-03-26 Tom Tromey <tom@tromey.com>
13176 * dwarf2/section.h (struct dwarf2_section_info)
13177 <overload_complaint>: Declare.
13178 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13179 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13180 Rename from dwarf2_section_buffer_overflow_complaint.
13181 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13182 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13184 2020-03-26 Tom Tromey <tom@tromey.com>
13186 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13188 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13190 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13193 2020-03-26 Tom Tromey <tom@tromey.com>
13195 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13197 2020-03-26 Tom Tromey <tom@tromey.com>
13199 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13201 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13203 (dwarf_decode_macros): Update.
13205 2020-03-26 Tom Tromey <tom@tromey.com>
13207 * dwarf2/read.c (read_attribute_value): Update.
13208 (read_indirect_string_from_dwz): Move to dwz.c; change into
13210 (dwarf_decode_macro_bytes): Update.
13211 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13212 * dwarf2/dwz.c: New file.
13213 * Makefile.in (COMMON_SFILES): Add dwz.c.
13215 2020-03-26 Tom Tromey <tom@tromey.com>
13217 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13218 * dwarf2/read.c: Add include.
13219 * dwarf2/index-write.c: Add include.
13220 * dwarf2/index-cache.c: Add include.
13221 * dwarf2/dwz.h: New file.
13223 2020-03-25 Tom Tromey <tom@tromey.com>
13225 * compile/compile-object-load.c (get_out_value_type): Mention
13226 correct symbol name in error message.
13228 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13230 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13232 2020-03-25 Tom de Vries <tdevries@suse.de>
13234 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13235 * symmisc.c (dump_symtab_1): Print user and includes fields.
13236 (maintenance_info_symtabs): Same.
13238 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13241 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13242 (riscv_regcache_cooked_write): New function.
13243 (riscv_push_dummy_call): Use new function.
13244 (riscv_return_value): Likewise.
13246 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13248 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13249 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13250 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13251 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13252 * infrun.c (follow_fork): Likewise.
13253 (follow_fork_inferior): Likewise.
13254 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13255 * linux-nat.h (class linux_nat_target): Likewise.
13256 * remote.c (class remote_target) <follow_fork>: Likewise.
13257 (remote_target::follow_fork): Likewise.
13258 * target-delegates.c: Re-generate.
13259 * target.c (default_follow_fork): Likewise.
13260 (target_follow_fork): Likewise.
13261 * target.h (struct target_ops) <follow_fork>: Likewise.
13262 (target_follow_fork): Likewise.
13264 2020-03-24 Tom de Vries <tdevries@suse.de>
13266 * psymtab.c (maintenance_info_psymtabs): Print user field.
13268 2020-03-20 Tom Tromey <tromey@adacore.com>
13270 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13272 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13275 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13277 * ptrace.m4: Don't check for ptrace declaration.
13278 * config.in: Re-generate.
13279 * configure: Re-generate.
13280 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13283 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13285 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13287 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13288 * sparc-nat.c (gdb_ptrace): Likewise.
13289 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13291 2020-03-20 Tom Tromey <tromey@adacore.com>
13293 * c-exp.y (lex_one_token): Fix assert.
13295 2020-03-20 Tom Tromey <tromey@adacore.com>
13297 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13298 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13301 2020-03-20 Tom Tromey <tromey@adacore.com>
13303 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13305 2020-03-20 Tom Tromey <tromey@adacore.com>
13307 * ada-valprint.c (print_variant_part): Remove parameters; switch
13308 to value-based API.
13309 (print_field_values): Likewise.
13310 (ada_val_print_struct_union): Likewise.
13311 (ada_value_print_1): Update.
13313 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13315 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13316 nbsd_nat_target instead of inf_ptrace_target.
13317 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13320 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13322 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13323 it to the ptrace call.
13324 * (store_registers): Likewise.
13326 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13328 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13329 it to the ptrace call.
13330 * (store_registers): Likewise.
13332 2020-03-19 Luis Machado <luis.machado@linaro.org>
13334 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13335 valid, fetch vg value from ptrace.
13337 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13338 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13339 * inf-ptrace.c: Likewise.
13340 * (gdb_ptrace): Add.
13341 * (inf_ptrace_target::resume): Update.
13342 * (inf_ptrace_target::xfer_partial): Likewise.
13343 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13344 * (inf_ptrace_peek_poke): Update.
13346 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13348 * x86-bsd-nat.c (gdb_ptrace): New.
13349 * (x86bsd_dr_set): Add new argument `ptid'.
13350 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13351 x86bsd_dr_set_addr): Update.
13353 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13355 * remote.c (remote_target::process_stop_reply): Handle events for
13356 all threads differently.
13358 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13360 * completer.c (completion_tracker::remove_completion): Define new
13362 * completer.h (completion_tracker::remove_completion): Declare new
13364 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13365 when adding a C++ function symbol.
13367 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13369 * completer.c (completion_tracker::completion_hash_entry): Define
13371 (advance_to_filename_complete_word_point): Call
13372 recompute_lowest_common_denominator.
13373 (completion_tracker::completion_tracker): Call discard_completions
13374 to setup the hash table.
13375 (completion_tracker::discard_completions): Allow for being called
13376 from the constructor, pass new equal function, and element deleter
13377 when constructing the hash table. Initialise new class member
13379 (completion_tracker::maybe_add_completion): Remove use of
13380 m_entries_vec, and store more information into m_entries_hash.
13381 (completion_tracker::recompute_lcd_visitor): New function, most
13382 content taken from...
13383 (completion_tracker::recompute_lowest_common_denominator):
13384 ...here, this now just visits each item in the hash calling the
13386 (completion_tracker::build_completion_result): Remove use of
13387 m_entries_vec, call recompute_lowest_common_denominator.
13388 * completer.h (completion_tracker::have_completions): Remove use
13390 (completion_tracker::completion_hash_entry): Declare new class.
13391 (completion_tracker::recompute_lowest_common_denominator): Change
13392 function signature.
13393 (completion_tracker::recompute_lcd_visitor): Declare new function.
13394 (completion_tracker::m_entries_vec): Delete.
13395 (completion_tracker::m_entries_hash): Initialize to NULL.
13396 (completion_tracker::m_lowest_common_denominator_valid): New
13398 (completion_tracker::m_lowest_common_denominator_max_length): New
13401 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13403 * regformats/regdef.h: Put reg in gdb namespace.
13405 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13407 * i386-bsd-nat.c (gdb_ptrace): New.
13408 * (i386bsd_fetch_inferior_registers,
13409 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13410 * (i386bsd_fetch_inferior_registers,
13411 i386bsd_store_inferior_registers) Use gdb_ptrace.
13413 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13415 * amd64-bsd-nat.c (gdb_ptrace): New.
13416 * (amd64bsd_fetch_inferior_registers,
13417 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13418 * (amd64bsd_fetch_inferior_registers,
13419 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13421 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13423 * user-regs.c (user_reg::read): Rename to...
13424 (user_reg::xread): ...this.
13425 * (append_user_reg): Rename argument `read' to `xread'.
13426 * (user_reg_add_builtin): Likewise.
13427 * (user_reg_add): Likewise.
13428 * (value_of_user_reg): Likewise.
13430 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13432 * sparc-nat.c (gdb_ptrace): New.
13433 * sparc-nat.c (sparc_fetch_inferior_registers)
13434 (sparc_store_inferior_registers) Remove obsolete comment.
13435 * sparc-nat.c (sparc_fetch_inferior_registers)
13436 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13437 * sparc-nat.c (sparc_fetch_inferior_registers)
13438 (sparc_store_inferior_registers) Use gdb_ptrace.
13440 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13442 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13443 it to the ptrace call.
13444 * sh-nbsd-nat.c (store_registers): Likewise.
13446 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13448 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13449 nbsd_nat_target instead of inf_ptrace_target.
13450 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13453 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13455 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13457 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13459 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13461 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13463 2020-03-17 Tom de Vries <tdevries@suse.de>
13466 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13468 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13470 (process_imported_unit_die): Skip import of c++ CUs.
13472 2020-03-16 Tom Tromey <tom@tromey.com>
13474 * p-valprint.c (pascal_object_print_value): Initialize
13477 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13478 Shahab Vahedi <shahab@synopsys.com>
13480 * Makefile.in: Add arch/arc.o
13481 * configure.tgt: Likewise.
13482 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13483 (_initialize_arc_tdep): Don't initialize old target descriptions.
13484 (arc_read_description): New function to cache target descriptions.
13485 * arc-tdep.h (arc_read_description): Add proto type.
13486 * arch/arc.c: New file.
13487 * arch/arc.h: Likewise.
13488 * features/Makefile: Replace old target descriptions with new.
13489 * features/arc-arcompact.c: Remove.
13490 * features/arc-arcompact.xml: Likewise.
13491 * features/arc-v2.c: Likewise
13492 * features/arc-v2.xml: Likewise
13493 * features/arc/aux-arcompact.xml: New file.
13494 * features/arc/aux-v2.xml: Likewise.
13495 * features/arc/core-arcompact.xml: Likewise.
13496 * features/arc/core-v2.xml: Likewise.
13497 * features/arc/aux-arcompact.c: Generate.
13498 * features/arc/aux-v2.c: Likewise.
13499 * features/arc/core-arcompact.c: Likewise.
13500 * features/arc/core-v2.c: Likewise.
13501 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13503 2020-03-16 Tom Tromey <tromey@adacore.com>
13506 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13507 putting value into bcache.
13509 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13512 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13514 (amd64_windows_init_abi_common): ... this. Don't set size of
13516 (amd64_windows_init_abi): New function.
13517 (amd64_cygwin_init_abi): New function.
13518 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13520 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13523 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13525 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13526 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13527 (pe_import_directory_entry): New struct type.
13528 (is_linked_with_cygwin_dll): New function.
13529 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13530 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13531 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13533 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13535 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13536 i386_cygwin_core_osabi_sniffer.
13538 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13540 * i386-cygwin-tdep.c: Rename to...
13541 * i386-windows-tdep.c: ... this.
13542 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13543 i386-windows-tdep.c.
13544 * configure.tgt: Likewise.
13546 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13548 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13549 * osabi.c (gdb_osabi_names): Add "Windows".
13550 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13551 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13552 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13553 i386_cygwin_osabi_sniffer.
13554 (_initialize_i386_cygwin_tdep): Register OS ABI
13555 GDB_OSABI_WINDOWS for i386.
13556 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13557 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13558 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13560 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13561 when the target matches '*-*-mingw*'.
13563 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13565 * defs.h (enum gdb_osabi): Move to...
13566 * osabi.h (enum gdb_osabi): ... here.
13567 * gdbarch.sh: Include osabi.h in gdbarch.h.
13568 * gdbarch.h: Re-generate.
13570 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13572 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13574 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13576 2020-03-14 Tom Tromey <tom@tromey.com>
13578 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13580 (c_type_print_modifier): Likewise. Add "language" parameter.
13581 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13582 (c_type_print_base_1): Update.
13583 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13585 * type-stack.c (type_stack::insert): Handle tp_atomic and
13587 (type_stack::follow_type_instance_flags): Likewise.
13588 (type_stack::follow_types): Likewise. Merge type-following code.
13589 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13590 (space_identifier, cv_with_space_id)
13591 (const_or_volatile_or_space_identifier_noopt)
13592 (const_or_volatile_or_space_identifier): Remove.
13593 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13595 (ptr_operator, typebase): Update.
13596 (enum token_flag) <FLAG_C>: New constant.
13597 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13599 (lex_one_token): Handle FLAG_C.
13601 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13603 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13604 it to the ptrace call.
13605 * m68k-bsd-nat.c (store_registers): Likewise.
13607 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13609 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13611 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13612 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13613 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13615 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13617 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13618 nbsd_nat_target instead of inf_ptrace_target.
13619 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13622 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13624 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13627 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13629 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13630 it to the ptrace call.
13631 * alpha-bsd-nat.c (store_registers): Likewise.
13633 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13635 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13637 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13638 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13639 fill_fpregset): Likewise.
13641 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13643 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13644 nbsd_nat_target instead of inf_ptrace_target.
13645 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13648 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13650 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13653 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13655 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13656 it to the ptrace call.
13657 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13658 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13659 * arm-nbsd-nat.c (store_register): Likewise.
13660 * arm-nbsd-nat.c (store_regs): Likewise.
13661 * arm-nbsd-nat.c (store_fp_register): Likewise.
13662 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13664 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13666 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13667 nbsd_nat_target instead of inf_ptrace_target.
13668 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13671 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13673 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13674 it to the ptrace call.
13675 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13677 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13679 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13680 it to the ptrace call.
13681 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13683 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13685 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13687 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13689 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13691 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13692 instead of inf_ptrace_target.
13693 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13696 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13698 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13701 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13703 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13706 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13708 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13711 2020-03-13 Tom Tromey <tom@tromey.com>
13713 * value.h (val_print): Don't declare.
13714 * valprint.h (val_print_array_elements)
13715 (val_print_scalar_formatted, generic_val_print): Don't declare.
13716 * valprint.c (generic_val_print_array): Take a struct value.
13717 (generic_val_print_ptr, generic_val_print_memberptr)
13718 (generic_val_print_bool, generic_val_print_int)
13719 (generic_val_print_char, generic_val_print_complex)
13720 (generic_val_print): Remove.
13721 (generic_value_print): Update.
13722 (do_val_print): Remove unused parameters. Don't call
13724 (val_print): Remove.
13725 (common_val_print): Update. Don't call value_check_printable.
13726 (val_print_scalar_formatted, val_print_array_elements): Remove.
13727 * rust-lang.c (rust_val_print): Remove.
13728 (rust_language_defn): Update.
13729 * p-valprint.c (pascal_val_print): Remove.
13730 (pascal_value_print_inner): Update.
13731 (pascal_object_print_val_fields, pascal_object_print_val):
13733 (pascal_object_print_static_field): Update.
13734 * p-lang.h (pascal_val_print): Don't declare.
13735 * p-lang.c (pascal_language_defn): Update.
13736 * opencl-lang.c (opencl_language_defn): Update.
13737 * objc-lang.c (objc_language_defn): Update.
13738 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13739 * m2-lang.h (m2_val_print): Don't declare.
13740 * m2-lang.c (m2_language_defn): Update.
13741 * language.h (struct language_defn) <la_val_print>: Remove.
13742 * language.c (unk_lang_value_print_inner): Rename. Change
13744 (unknown_language_defn, auto_language_defn): Update.
13745 * go-valprint.c (go_val_print): Remove.
13746 * go-lang.h (go_val_print): Don't declare.
13747 * go-lang.c (go_language_defn): Update.
13748 * f-valprint.c (f_val_print): Remove.
13749 * f-lang.h (f_value_print): Don't declare.
13750 * f-lang.c (f_language_defn): Update.
13751 * d-valprint.c (d_val_print): Remove.
13752 * d-lang.h (d_value_print): Don't declare.
13753 * d-lang.c (d_language_defn): Update.
13754 * cp-valprint.c (cp_print_value_fields)
13755 (cp_print_value_fields_rtti, cp_print_value): Remove.
13756 (cp_print_static_field): Update.
13757 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13758 (c_val_print_struct, c_val_print_union, c_val_print_int)
13759 (c_val_print_memberptr, c_val_print): Remove.
13760 * c-lang.h (c_val_print_array, cp_print_value_fields)
13761 (cp_print_value_fields_rtti): Don't declare.
13762 * c-lang.c (c_language_defn, cplus_language_defn)
13763 (asm_language_defn, minimal_language_defn): Update.
13764 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13765 (ada_val_print_enum): Take a struct value.
13766 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13767 (ada_val_print): Remove.
13768 (ada_value_print_1): Update.
13769 (printable_val_type): Remove.
13770 * ada-lang.h (ada_val_print): Don't declare.
13771 * ada-lang.c (ada_language_defn): Update.
13773 2020-03-13 Tom Tromey <tom@tromey.com>
13775 * valprint.c (do_val_print): Update.
13776 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13778 (value_to_value_object_no_release): Declare.
13779 * python/py-value.c (value_to_value_object_no_release): New
13781 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13783 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13785 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13787 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13789 (gdbscm_apply_val_pretty_printer): Take a struct value.
13790 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13792 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13794 * extension-priv.h (struct extension_language_ops)
13795 <apply_val_pretty_printer>: Take a struct value.
13796 * cp-valprint.c (cp_print_value): Create a struct value.
13797 (cp_print_value): Update.
13799 2020-03-13 Tom Tromey <tom@tromey.com>
13801 * ada-valprint.c (print_field_values): Call common_val_print.
13803 2020-03-13 Tom Tromey <tom@tromey.com>
13805 * ada-valprint.c (val_print_packed_array_elements): Remove
13806 bitoffset and val parameters. Call common_val_print.
13807 (ada_val_print_string): Remove offset, address, and original_value
13809 (ada_val_print_array): Update.
13810 (ada_value_print_array): New function.
13811 (ada_value_print_1): Call it.
13813 2020-03-13 Tom Tromey <tom@tromey.com>
13815 * ada-valprint.c (ada_value_print): Use common_val_print.
13817 2020-03-13 Tom Tromey <tom@tromey.com>
13819 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13821 2020-03-13 Tom Tromey <tom@tromey.com>
13823 * ada-valprint.c (ada_value_print_num): New function.
13824 (ada_value_print_1): Use it.
13826 2020-03-13 Tom Tromey <tom@tromey.com>
13828 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13830 2020-03-13 Tom Tromey <tom@tromey.com>
13832 * ada-valprint.c (ada_value_print_ptr): New function.
13833 (ada_value_print_1): Use it.
13835 2020-03-13 Tom Tromey <tom@tromey.com>
13837 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13838 call common_val_print.
13839 (ada_val_print_1): Update.
13840 (ada_value_print_1): New function.
13841 (ada_value_print_inner): Rewrite.
13843 2020-03-13 Tom Tromey <tom@tromey.com>
13845 * cp-valprint.c (cp_print_value_fields): Update.
13846 (cp_print_value): New function.
13848 2020-03-13 Tom Tromey <tom@tromey.com>
13850 * m2-valprint.c (m2_value_print_inner): Use
13851 cp_print_value_fields.
13852 * cp-valprint.c (cp_print_value_fields): New function.
13853 * c-valprint.c (c_value_print_struct): New function.
13854 (c_value_print_inner): Use c_value_print_struct.
13855 * c-lang.h (cp_print_value_fields): Declare.
13857 2020-03-13 Tom Tromey <tom@tromey.com>
13859 * c-valprint.c (c_value_print_array): New function.
13860 (c_value_print_inner): Use it.
13862 2020-03-13 Tom Tromey <tom@tromey.com>
13864 * c-valprint.c (c_value_print_memberptr): New function.
13865 (c_value_print_inner): Use it.
13867 2020-03-13 Tom Tromey <tom@tromey.com>
13869 * c-valprint.c (c_value_print_int): New function.
13870 (c_value_print_inner): Use it.
13872 2020-03-13 Tom Tromey <tom@tromey.com>
13874 * c-valprint.c (c_value_print_ptr): New function.
13875 (c_value_print_inner): Use it.
13877 2020-03-13 Tom Tromey <tom@tromey.com>
13879 * c-valprint.c (c_value_print_inner): Rewrite.
13881 2020-03-13 Tom Tromey <tom@tromey.com>
13883 * valprint.c (generic_value_print_complex): New function.
13884 (generic_value_print): Use it.
13886 2020-03-13 Tom Tromey <tom@tromey.com>
13888 * valprint.c (generic_val_print_float): Don't call
13889 val_print_scalar_formatted.
13890 (generic_val_print, generic_value_print): Update.
13892 2020-03-13 Tom Tromey <tom@tromey.com>
13894 * valprint.c (generic_value_print_char): New function
13895 (generic_value_print): Use it.
13897 2020-03-13 Tom Tromey <tom@tromey.com>
13899 * valprint.c (generic_value_print_int): New function.
13900 (generic_value_print): Use it.
13902 2020-03-13 Tom Tromey <tom@tromey.com>
13904 * valprint.c (generic_value_print_bool): New function.
13905 (generic_value_print): Use it.
13907 2020-03-13 Tom Tromey <tom@tromey.com>
13909 * valprint.c (generic_val_print_func): Simplify.
13910 (generic_val_print, generic_value_print): Update.
13912 2020-03-13 Tom Tromey <tom@tromey.com>
13914 * valprint.c (generic_val_print_flags): Remove.
13915 (generic_val_print, generic_value_print): Update.
13916 (val_print_type_code_flags): Add original_value parameter.
13918 2020-03-13 Tom Tromey <tom@tromey.com>
13920 * valprint.c (generic_val_print): Update.
13921 (generic_value_print): Update.
13922 * valprint.c (generic_val_print_enum): Don't call
13923 val_print_scalar_formatted.
13925 2020-03-13 Tom Tromey <tom@tromey.com>
13927 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13928 * valprint.c (generic_value_print_ptr): New function.
13930 2020-03-13 Tom Tromey <tom@tromey.com>
13932 * valprint.c (generic_value_print): Rewrite.
13934 2020-03-13 Tom Tromey <tom@tromey.com>
13936 * p-valprint.c (pascal_object_print_value_fields)
13937 (pascal_object_print_value): New functions.
13939 2020-03-13 Tom Tromey <tom@tromey.com>
13941 * p-valprint.c (pascal_value_print_inner): Rewrite.
13943 2020-03-13 Tom Tromey <tom@tromey.com>
13945 * f-valprint.c (f_value_print_innner): Rewrite.
13947 2020-03-13 Tom Tromey <tom@tromey.com>
13949 * m2-valprint.c (m2_print_unbounded_array): New overload.
13950 (m2_print_unbounded_array): Update.
13951 (m2_print_array_contents): Take a struct value.
13952 (m2_value_print_inner): Rewrite.
13954 2020-03-13 Tom Tromey <tom@tromey.com>
13956 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13957 (d_value_print_inner): New function.
13958 * d-lang.h (d_value_print_inner): Declare.
13959 * d-lang.c (d_language_defn): Use d_value_print_inner.
13961 2020-03-13 Tom Tromey <tom@tromey.com>
13963 * go-valprint.c (go_value_print_inner): New function.
13964 * go-lang.h (go_value_print_inner): Declare.
13965 * go-lang.c (go_language_defn): Use go_value_print_inner.
13967 2020-03-13 Tom Tromey <tom@tromey.com>
13969 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13971 (rust_val_print): Rewrite.
13972 (rust_value_print_inner): New function, from rust_val_print.
13973 (rust_language_defn): Use rust_value_print_inner.
13975 2020-03-13 Tom Tromey <tom@tromey.com>
13977 * ada-valprint.c (ada_value_print_inner): New function.
13978 * ada-lang.h (ada_value_print_inner): Declare.
13979 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13981 2020-03-13 Tom Tromey <tom@tromey.com>
13983 * f-valprint.c (f_value_print_innner): New function.
13984 * f-lang.h (f_value_print_innner): Declare.
13985 * f-lang.c (f_language_defn): Use f_value_print_innner.
13987 2020-03-13 Tom Tromey <tom@tromey.com>
13989 * p-valprint.c (pascal_value_print_inner): New function.
13990 * p-lang.h (pascal_value_print_inner): Declare.
13991 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13993 2020-03-13 Tom Tromey <tom@tromey.com>
13995 * m2-valprint.c (m2_value_print_inner): New function.
13996 * m2-lang.h (m2_value_print_inner): Declare.
13997 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13999 2020-03-13 Tom Tromey <tom@tromey.com>
14001 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14002 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14003 * c-valprint.c (c_value_print_inner): New function.
14004 * c-lang.h (c_value_print_inner): Declare.
14005 * c-lang.c (c_language_defn, cplus_language_defn)
14006 (asm_language_defn, minimal_language_defn): Use
14007 c_value_print_inner.
14009 2020-03-13 Tom Tromey <tom@tromey.com>
14011 * p-valprint.c (pascal_object_print_value_fields): Now static.
14012 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14014 2020-03-13 Tom Tromey <tom@tromey.com>
14016 * c-valprint.c (c_val_print_array): Simplify.
14018 2020-03-13 Tom Tromey <tom@tromey.com>
14020 * valprint.c (value_print_array_elements): New function.
14021 * valprint.h (value_print_array_elements): Declare.
14023 2020-03-13 Tom Tromey <tom@tromey.com>
14025 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14026 * mips-tdep.c (mips_print_register): Use
14027 value_print_scalar_formatted.
14029 2020-03-13 Tom Tromey <tom@tromey.com>
14031 * valprint.h (value_print_scalar_formatted): Declare.
14032 * valprint.c (value_print_scalar_formatted): New function.
14034 2020-03-13 Tom Tromey <tom@tromey.com>
14036 * valprint.h (generic_value_print): Declare.
14037 * valprint.c (generic_value_print): New function.
14039 2020-03-13 Tom Tromey <tom@tromey.com>
14041 * valprint.c (do_val_print): Call la_value_print_inner, if
14043 * rust-lang.c (rust_language_defn): Update.
14044 * p-lang.c (pascal_language_defn): Update.
14045 * opencl-lang.c (opencl_language_defn): Update.
14046 * objc-lang.c (objc_language_defn): Update.
14047 * m2-lang.c (m2_language_defn): Update.
14048 * language.h (struct language_defn) <la_value_print_inner>: New
14050 * language.c (unknown_language_defn, auto_language_defn): Update.
14051 * go-lang.c (go_language_defn): Update.
14052 * f-lang.c (f_language_defn): Update.
14053 * d-lang.c (d_language_defn): Update.
14054 * c-lang.c (c_language_defn, cplus_language_defn)
14055 (asm_language_defn, minimal_language_defn): Update.
14056 * ada-lang.c (ada_language_defn): Update.
14058 2020-03-13 Tom Tromey <tom@tromey.com>
14060 * c-valprint.c (c_value_print): Use common_val_print.
14062 2020-03-13 Tom Tromey <tom@tromey.com>
14064 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14066 2020-03-13 Tom Tromey <tom@tromey.com>
14068 * f-valprint.c (f77_print_array_1, f_val_print): Use
14071 2020-03-13 Tom Tromey <tom@tromey.com>
14073 * riscv-tdep.c (riscv_print_one_register_info): Use
14076 2020-03-13 Tom Tromey <tom@tromey.com>
14078 * mi/mi-main.c (output_register): Use common_val_print.
14080 2020-03-13 Tom Tromey <tom@tromey.com>
14082 * infcmd.c (default_print_one_register_info): Use
14085 2020-03-13 Tom Tromey <tom@tromey.com>
14087 * valprint.h (common_val_print_checked): Declare.
14088 * valprint.c (common_val_print_checked): New function.
14089 * stack.c (print_frame_arg): Use common_val_print_checked.
14091 2020-03-13 Tom Tromey <tom@tromey.com>
14093 * valprint.c (do_val_print): New function, from val_print.
14094 (val_print): Use do_val_print.
14095 (common_val_print): Use do_val_print.
14097 2020-03-13 Tom Tromey <tom@tromey.com>
14099 * valprint.c (value_print): Use scoped_value_mark.
14101 2020-03-13 Tom de Vries <tdevries@suse.de>
14104 * psymtab.c (partial_symtab::partial_symtab): Don't set
14105 globals_offset and statics_offset. Push element onto
14106 current_global_psymbols and current_static_psymbols stacks.
14107 (concat): New function.
14108 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14109 element from current_global_psymbols and current_static_psymbols
14110 stacks. Concat popped elements to global_psymbols and
14112 (add_psymbol_to_list): Use current_global_psymbols and
14113 current_static_psymbols stacks.
14114 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14115 current_static_psymbols fields.
14117 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14119 * corelow.c (sniff_core_bfd): Remove.
14120 (class core_target) <m_core_vec>: Remove.
14121 (core_target::core_target): Update.
14122 (core_file_fns): Remove.
14123 (deprecated_add_core_fns): Remove.
14124 (default_core_sniffer): Remove.
14125 (sniff_core_bfd): Remove.
14126 (default_check_format): Remove.
14127 (gdb_check_format): Remove.
14128 (core_target_open): Update.
14129 (core_target::get_core_register_section): Update.
14130 (get_core_registers_cb): Update.
14131 (core_target::fetch_registers): Update.
14132 * gdbcore.h (struct core_fns): Remove.
14133 (deprecated_add_core_fns): Remove.
14134 (default_core_sniffer): Remove.
14135 (default_check_format): Remove.
14137 2020-03-12 Tom Tromey <tom@tromey.com>
14139 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14141 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14143 2020-03-12 Tom Tromey <tom@tromey.com>
14145 * remote.c (remote_target::download_tracepoint)
14146 (remote_target::enable_tracepoint)
14147 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14148 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14151 2020-03-12 Tom Tromey <tom@tromey.com>
14153 * symfile-mem.c: Update CORE_ADDR size assert.
14155 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14157 * selftest.m4: Move to gdbsupport/.
14158 * acinclude.m4: Update path to selftest.m4.
14160 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14162 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14163 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14164 gdbarch-selfselftests.c and selftest-arch.c.
14165 (SUBDIR_UNITTESTS_OBS): Rename to...
14166 (SELFTESTS_OBS): ... this.
14167 (COMMON_SFILES): Remove disasm-selftests.c and
14168 gdbarch-selftests.c.
14169 * configure.ac: Don't add selftest-arch.{c,o} to
14171 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14172 preprocessor conditions.
14174 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14176 * configure.ac: Don't source bfd/development.sh.
14177 * selftest.m4: Modify comment.
14178 * configure: Re-generate.
14180 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14182 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14183 not "true" or "false".
14184 * configure: Re-generate.
14186 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14188 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14189 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14190 renamed to arm_nbsd_supply_gregset.
14191 (fetch_register): Update to call arm_nbsd_supply_gregset.
14192 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14193 (arm_netbsd_nat_target::fetch_registers): Update.
14194 (fetch_elfcore_registers): Removed.
14195 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14196 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14197 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14198 not require NetBSD system headers.
14199 (arm_nbsd_regset): New struct.
14200 (arm_nbsd_iterate_over_regset_sections): New function.
14201 (arm_netbsd_init_abi_common): Updated to call
14202 set_gdbarch_iterate_over_regset_sections.
14203 * arm-nbsd-tdep.h: New file.
14205 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14207 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14210 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14212 * configure: Re-generate.
14214 2020-03-11 Tom Tromey <tromey@adacore.com>
14216 * ada-typeprint.c (print_choices): Fix comment.
14218 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14220 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14221 previous item in the list, when the list has no items.
14223 2020-03-11 Tom de Vries <tdevries@suse.de>
14225 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14226 PROP_LOCLIST handling code.
14228 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14230 * buildsym-legacy.c (record_line): Pass extra parameter to
14232 * buildsym.c (buildsym_compunit::record_line): Take an extra
14233 parameter, reduce duplication in the line table, and record the
14234 is_stmt flag in the line table.
14235 * buildsym.h (buildsym_compunit::record_line): Add extra
14237 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14238 non-statement lines.
14239 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14240 this to the symtab builder.
14241 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14242 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14243 through to dwarf_record_line_1.
14244 * infrun.c (process_event_stop_test): When stepping, don't stop at
14245 a non-statement instruction, and only refresh the step info when
14246 we land in the middle of a line's range. Also add an extra
14248 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14250 * record-btrace.c (btrace_find_line_range): Only record lines
14251 marked as is-statement.
14252 * stack.c (frame_show_address): Show the frame address if we are
14253 in a non-statement sal.
14254 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14255 (maintenance_print_one_line_table): Print a header for the is_stmt
14256 column, and include is_stmt information in the output.
14257 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14258 preference to non-statements.
14259 (find_pcs_for_symtab_line): Prefer is-statement entries.
14260 (find_line_common): Likewise.
14261 * symtab.h (struct linetable_entry): Add is_stmt field.
14262 (struct symtab_and_line): Likewise.
14263 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14264 arranging the line table.
14266 2020-03-07 Tom de Vries <tdevries@suse.de>
14268 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14271 2020-03-07 Tom Tromey <tom@tromey.com>
14273 * valops.c (value_literal_complex): Remove obsolete comment.
14274 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14277 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14279 * infrun.h: Forward-declare thread_info.
14280 (set_step_info): Add thread_info parameter, add doc.
14281 * infrun.c (set_step_info): Add thread_info parameter, move doc
14283 * infrun.c (process_event_stop_test): Pass thread to
14284 set_step_info call.
14285 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14287 (prepare_one_step): Add thread_info parameter, pass it to
14288 set_step_frame and prepare_one_step (recursive) call.
14289 (step_1): Pass thread to prepare_one_step call.
14290 (step_command_fsm::should_stop): Pass thread to
14292 (until_next_fsm): Pass thread to set_step_frame call.
14293 (finish_command): Pass thread to set_step_info call.
14295 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14297 * windows-tdep.c (windows_solib_create_inferior_hook):
14298 Check if inferior is running.
14300 2020-03-06 Tom de Vries <tdevries@suse.de>
14302 * NEWS: Fix "the the".
14305 2020-03-06 Tom de Vries <tdevries@suse.de>
14307 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14309 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14311 * .dir-locals.el: Add a comment referencing the other copies of
14314 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14316 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14319 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14321 * .gitattributes: New file.
14323 2020-03-04 Tom Tromey <tom@tromey.com>
14325 * symmisc.c (print_symbol_bcache_statistics)
14326 (print_objfile_statistics): Update.
14327 * symfile.c (allocate_symtab): Use intern.
14328 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14329 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14330 macro_cache>: Remove.
14331 <string_cache>: New member.
14332 (struct objfile) <intern>: New methods.
14333 * elfread.c (elf_symtab_read): Use intern.
14334 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14335 (dwarf2_compute_name, dwarf2_physname)
14336 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14338 (guess_partial_die_structure_name): Update.
14339 (partial_die_info::fixup): Intern name.
14340 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14342 (dwarf2_name): Intern name. Update.
14343 * buildsym.c (buildsym_compunit::get_macro_table): Use
14346 2020-03-04 Tom Tromey <tom@tromey.com>
14348 * jit.c (bfd_open_from_target_memory): Make "target" const.
14349 * corefile.c (gnutarget): Now const.
14350 * gdbcore.h (gnutarget): Now const.
14352 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14354 * NEWS: Mention support for WOW64 processes.
14355 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14356 (amd64_windows_segment_register_p): Remove static.
14357 (_initialize_amd64_windows_nat): Update.
14358 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14359 * i386-windows-nat.c (context_offset): Update.
14360 (i386_mappings): Rename and remove static.
14361 (i386_windows_segment_register_p): Remove static.
14362 (_initialize_i386_windows_nat): Update.
14363 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14364 (STATUS_WX86_SINGLE_STEP): New macro.
14365 (EnumProcessModulesEx): New macro.
14366 (Wow64SuspendThread): New macro.
14367 (Wow64GetThreadContext): New macro.
14368 (Wow64SetThreadContext): New macro.
14369 (Wow64GetThreadSelectorEntry): New macro.
14370 (windows_set_context_register_offsets): Add static.
14371 (windows_set_segment_register_p): Likewise.
14372 (windows_add_thread): Adapt for WOW64 processes.
14373 (windows_fetch_one_register): Likewise.
14374 (windows_nat_target::fetch_registers): Likewise.
14375 (windows_store_one_register): Likewise.
14376 (display_selector): Likewise.
14377 (display_selectors): Likewise.
14378 (handle_exception): Likewise.
14379 (windows_continue): Likewise.
14380 (windows_nat_target::resume): Likewise.
14381 (windows_add_all_dlls): Likewise.
14382 (do_initial_windows_stuff): Likewise.
14383 (windows_nat_target::attach): Likewise.
14384 (windows_get_exec_module_filename): Likewise.
14385 (windows_nat_target::create_inferior): Likewise.
14386 (windows_xfer_siginfo): Likewise.
14387 (_initialize_loadable): Initialize Wow64SuspendThread,
14388 Wow64GetThreadContext, Wow64SetThreadContext,
14389 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14390 * windows-nat.h (windows_set_context_register_offsets):
14391 Remove declaration.
14392 (windows_set_segment_register_p): Likewise.
14393 (i386_windows_segment_register_p): Add declaration.
14394 (amd64_windows_segment_register_p): Likewise.
14396 2020-03-04 Luis Machado <luis.machado@linaro.org>
14398 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14399 in "info registers" for AArch64/ARM.
14401 The change caused "info registers" to not print GPR's.
14405 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14407 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14408 when reg->group is empty and reggroup is not.
14410 2020-03-03 Tom Tromey <tromey@adacore.com>
14412 * dwarf2/frame.c (struct dwarf2_frame_cache)
14413 <checked_tailcall_bottom, entry_cfa_sp_offset,
14414 entry_cfa_sp_offset_p>: Remove members.
14415 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14416 (dwarf2_frame_prev_register): Don't call
14417 dwarf2_tailcall_sniffer_first.
14418 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14419 * frame-unwind.c (add_unwinder): New fuction.
14420 (frame_unwind_init): Use it. Add tailcall unwinder.
14422 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14423 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14425 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14426 value should be printed as true.
14428 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14430 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14431 (windows_init_abi): Set and use windows_so_ops.
14433 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14435 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14436 when verifying if dealing with a convenience variable.
14438 2020-03-03 Luis Machado <luis.machado@linaro.org>
14440 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14442 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14444 * infrun.c (gdbarch_supports_displaced_stepping): New.
14445 (use_displaced_stepping): Break up conditions in smaller pieces.
14446 Use gdbarch_supports_displaced_stepping.
14447 (displaced_step_prepare_throw): Use
14448 gdbarch_supports_displaced_stepping.
14450 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14452 * NEWS: Mention new behaviour of the history filename.
14453 * top.c (write_history_p): Add comment.
14454 (show_write_history_p): Add header comment, give a different
14455 message when history writing is on, but the history filename is
14457 (history_filename): Add comment.
14458 (history_filename_empty): New function.
14459 (show_history_filename): Add header comment, give a different
14460 message when the filename is empty.
14461 (init_history): Compare history_filename against nullptr, and only
14462 read history if the filename is not empty.
14463 (set_history_filename): Add header comment, and only make
14464 non-empty filenames absolute.
14465 (init_main): Make the filename argument to 'set history filename'
14468 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14470 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14471 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14472 (fetch_fp_register): Update.
14473 (fetch_fp_regs): Update.
14474 (store_fp_register): Update.
14475 (store_fp_regs): Update.
14476 (arm_netbsd_nat_target::read_description): New function.
14477 (fetch_elfcore_registers): Update.
14479 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14481 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14482 general_thread if the stop reply is missing a thread-id.
14483 (remote_target::process_stop_reply): Use the first non-exited
14484 thread if the target didn't pass a thread-id.
14485 * infrun.c (do_target_wait): Move call to
14486 switch_to_inferior_no_thread to ....
14487 (do_target_wait_1): ... here.
14489 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14491 * debuginfod-support.c: Include defs.h first.
14493 2020-02-28 Tom de Vries <tdevries@suse.de>
14495 * symfile.c (set_initial_language): Use default language for lookup.
14497 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14499 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14500 reader variable, pass `this` to read_cutu_die_from_dwo.
14502 2020-02-27 Aaron Merey <amerey@redhat.com>
14504 * source.c (open_source_file): Check for nullptr when computing
14507 2020-02-27 Tom Tromey <tromey@adacore.com>
14509 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14511 (dwarf2_add_field): Don't update nfields.
14512 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14514 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14516 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14519 2020-02-26 Tom Tromey <tom@tromey.com>
14521 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14522 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14523 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14524 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14527 2020-02-26 Tom Tromey <tom@tromey.com>
14529 * dwarf2/index-write.c (psym_index_map): Change type.
14530 (add_address_entry_worker, write_one_signatured_type)
14531 (recursively_count_psymbols, recursively_write_psymbols)
14532 (class debug_names, psyms_seen_size, write_gdbindex)
14533 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14535 2020-02-26 Aaron Merey <amerey@redhat.com>
14537 * Makefile.in: Handle optional debuginfod support.
14539 * README: Add --with-debuginfod summary.
14540 * config.in: Regenerate.
14541 * configure: Regenerate.
14542 * configure.ac: Handle optional debuginfod support.
14543 * debuginfod-support.c: debuginfod helper functions.
14544 * debuginfod-support.h: Ditto.
14545 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14547 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14548 when a dwz file cannot be found.
14549 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14550 debuginfo file cannot be found.
14551 * source.c (open_source_file): Query debuginfod servers when a
14552 source file cannot be found.
14553 * top.c (print_gdb_configuration): Include
14554 --{with,without}-debuginfod in the output.
14556 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14558 * thread.c (thr_try_catch_cmd): Print thread name.
14560 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14562 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14563 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14564 dwarf2_fetch_die_type_sect_off): Move to...
14565 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14566 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14567 dwarf2_fetch_die_type_sect_off): ... here.
14568 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14569 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14570 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14572 2020-02-26 Tom de Vries <tdevries@suse.de>
14575 * symfile.c (set_initial_language): Exit-early if
14576 language_mode == language_mode_manual.
14578 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14580 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14581 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14582 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14584 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14586 * gdbtypes.c (create_array_type_with_stride): Handle negative
14588 * valarith.c (value_subscripted_rvalue): Likewise.
14590 2020-02-25 Luis Machado <luis.machado@linaro.org>
14592 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14594 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14596 * loc.h (dwarf2_get_die_type): Move to...
14597 * read.h (dwarf2_get_die_type): ... here.
14598 * read.c (dwarf2_get_die_type): Move doc to header.
14600 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14602 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14603 'gnulib/Makefile.in' to the list.
14605 2020-02-24 Tom Tromey <tom@tromey.com>
14607 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14609 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14612 2020-02-24 Tom Tromey <tom@tromey.com>
14614 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14616 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14617 (dw2_do_instantiate_symtab, dw2_get_file_names)
14618 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14620 2020-02-24 Tom Tromey <tom@tromey.com>
14622 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14623 make_scoped_restore.
14624 (dwarf2_psymtab::read_symtab): Don't clear
14625 reading_partial_symbols.
14627 2020-02-24 Tom de Vries <tdevries@suse.de>
14630 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14632 2020-02-24 Tom de Vries <tdevries@suse.de>
14634 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14635 commands layout next/prev/regs.
14637 2020-02-22 Tom Tromey <tom@tromey.com>
14639 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14640 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14642 2020-02-22 Tom Tromey <tom@tromey.com>
14644 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14646 2020-02-22 Tom Tromey <tom@tromey.com>
14648 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14649 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14650 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14651 * tui/tui.c (_initialize_tui): Add usage text.
14653 2020-02-22 Tom Tromey <tom@tromey.com>
14655 * tui/tui-win.c (tui_set_focus_command)
14656 (tui_set_win_height_command): Use error_no_arg.
14657 (_initialize_tui_win): Update help text.
14658 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14660 2020-02-22 Tom Tromey <tom@tromey.com>
14662 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14663 * tui/tui-disasm.h (struct tui_disasm_window)
14664 <display_start_addr>: Declare.
14665 * tui/tui-source.h (struct tui_source_window)
14666 <display_start_addr>: Declare.
14667 * tui/tui-winsource.h (struct tui_source_window_base)
14668 <show_source_line, display_start_addr>: New methods.
14669 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14670 Rename and move to protected section.
14671 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14672 (tui_source_window_base::do_erase_source_content): Update.
14673 (tui_source_window_base::show_source_line): Now a method.
14674 (tui_source_window_base::show_source_content)
14675 (tui_source_window_base::tui_source_window_base)
14676 (tui_source_window_base::rerender)
14677 (tui_source_window_base::refill)
14678 (tui_source_window_base::do_scroll_horizontal)
14679 (tui_source_window_base::set_is_exec_point_at)
14680 (tui_source_window_base::update_breakpoint_info)
14681 (tui_source_window_base::update_exec_info): Update.
14682 * tui/tui-source.c (tui_source_window::set_contents)
14683 (tui_source_window::showing_source_p)
14684 (tui_source_window::do_scroll_vertical)
14685 (tui_source_window::location_matches_p)
14686 (tui_source_window::line_is_displayed): Update.
14687 (tui_source_window::display_start_addr): New method.
14688 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14689 (tui_disasm_window::do_scroll_vertical)
14690 (tui_disasm_window::location_matches_p): Update.
14691 (tui_disasm_window::display_start_addr): New method.
14693 2020-02-22 Tom Tromey <tom@tromey.com>
14695 * NEWS: Add entry for gdb.register_window_type.
14696 * tui/tui-layout.h (window_factory): New typedef.
14697 (tui_register_window): Declare.
14698 * tui/tui-layout.c (saved_tui_windows): New global.
14699 (tui_apply_current_layout): Use it.
14700 (tui_register_window): New function.
14701 * python/python.c (do_start_initialization): Call
14702 gdbpy_initialize_tui.
14703 (python_GdbMethods): Add "register_window_type" function.
14704 * python/python-internal.h (gdbpy_register_tui_window)
14705 (gdbpy_initialize_tui): Declare.
14706 * python/py-tui.c: New file.
14707 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14709 2020-02-22 Tom Tromey <tom@tromey.com>
14711 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14713 2020-02-22 Tom Tromey <tom@tromey.com>
14715 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14716 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14717 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14718 (tui_set_win_focus_to): Move from tui-win.c.
14720 2020-02-22 Tom Tromey <tom@tromey.com>
14722 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14724 (known_window_types): New global.
14725 (tui_get_window_by_name): Reimplement.
14726 (initialize_known_windows): New function.
14727 (validate_window_name): Rewrite.
14728 (_initialize_tui_layout): Call initialize_known_windows.
14730 2020-02-22 Tom Tromey <tom@tromey.com>
14732 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14734 * tui/tui-winsource.h (struct tui_source_window_base)
14735 <tui_source_window_base>: Remove parameter.
14736 * tui/tui-winsource.c
14737 (tui_source_window_base::tui_source_window_base): Remove
14739 (tui_source_window_base::refill): Update.
14740 * tui/tui-stack.h (struct tui_locator_window)
14741 <tui_locator_window>: Update.
14742 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14743 Default the constructor.
14744 * tui/tui-regs.h (struct tui_data_item_window)
14745 <tui_data_item_window>: Default the constructor.
14746 (struct tui_data_window) <tui_data_window>: Likewise.
14747 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14748 Default the constructor.
14749 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14750 Default the constructor.
14752 (struct tui_win_info) <tui_win_info>: Default the constructor.
14753 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14754 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14755 Default the constructor.
14757 2020-02-22 Tom Tromey <tom@tromey.com>
14759 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14760 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14761 * tui/tui-win.c (tui_resize_all): Don't call
14762 tui_delete_invisible_windows.
14763 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14765 (tui_set_layout): Update.
14766 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14767 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14768 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14770 2020-02-22 Tom Tromey <tom@tromey.com>
14772 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14775 2020-02-22 Tom Tromey <tom@tromey.com>
14777 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14779 2020-02-22 Tom Tromey <tom@tromey.com>
14781 * tui/tui-winsource.h (struct tui_source_window_iterator)
14782 <inner_iterator>: New etytypedef.
14783 <tui_source_window_iterator>: Take "end" parameter.
14784 <tui_source_window_iterator>: Take iterator.
14785 <operator*, advance>: Update.
14786 <m_iter>: Change type.
14787 <m_end>: New field.
14788 (struct tui_source_windows) <begin, end>: Update.
14789 * tui/tui-layout.c (tui_windows): New global.
14790 (tui_apply_current_layout): Clear tui_windows.
14791 (tui_layout_window::apply): Update tui_windows.
14792 * tui/tui-data.h (tui_windows): Declare.
14793 (all_tui_windows): Now inline function.
14794 (class tui_window_iterator, struct all_tui_windows): Remove.
14796 2020-02-22 Tom Tromey <tom@tromey.com>
14799 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14800 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14802 (class tui_layout_window) <get_sizes>: Likewise.
14803 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14805 <get_sizes>: Add "height" argument.
14806 <m_vertical>: New field.
14807 * tui/tui-layout.c (tui_layout_split::clone): Update.
14808 (tui_layout_split::get_sizes): Add "height" argument.
14809 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14810 (tui_new_layout_command): Parse "-horizontal".
14811 (_initialize_tui_layout): Update help string.
14812 (tui_layout_split::specification): Add "-horizontal" when needed.
14813 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14815 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14818 2020-02-22 Tom Tromey <tom@tromey.com>
14820 * tui/tui-layout.h (enum tui_adjust_result): New.
14821 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14822 (class tui_layout_window) <adjust_size>: Return
14823 tui_adjust_result. Rewrite.
14824 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14825 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14827 2020-02-22 Tom Tromey <tom@tromey.com>
14829 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14830 parameter and return types.
14831 (class tui_layout_base) <specification>: Add "depth".
14832 (class tui_layout_window) <specification>: Add "depth".
14833 (class tui_layout_split) <specification>: Add "depth".
14834 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14836 (tui_new_layout_command): Parse sub-layouts.
14837 (_initialize_tui_layout): Update help string.
14838 (tui_layout_window::specification): Add "depth".
14839 (add_layout_command): Update.
14841 2020-02-22 Tom Tromey <tom@tromey.com>
14843 * NEWS: Add "tui new-layout" item.
14844 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14845 Add new-layout command to help text.
14846 (validate_window_name): New function.
14847 (tui_new_layout_command): New function.
14848 (_initialize_tui_layout): Register "new-layout".
14849 (tui_layout_window::specification): New method.
14850 (tui_layout_window::specification): New method.
14851 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14853 (class tui_layout_window) <specification>: New method.
14854 (class tui_layout_split) <specification>: New method.
14856 2020-02-22 Tom Tromey <tom@tromey.com>
14858 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14859 * tui/tui-win.c (window_name_completer): Update comment.
14860 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14862 (class tui_layout_window) <replace_window>: Likewise.
14863 (class tui_layout_split) <replace_window>: Likewise.
14864 (tui_set_layout): Don't declare.
14865 (tui_set_initial_layout): Declare function.
14866 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14867 (asm_regs_layout): New globals.
14868 (tui_current_layout, show_layout): Remove.
14869 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14870 (find_layout, tui_apply_layout): New function.
14871 (layout_completer): Remove.
14872 (tui_next_layout): Reimplement.
14873 (tui_next_layout_command): New function.
14874 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14875 (tui_regs_layout): Reimplement.
14876 (tui_regs_layout_command): New function.
14877 (extract_display_start_addr): Rewrite.
14878 (next_layout, prev_layout): Remove.
14879 (tui_layout_window::replace_window): New method.
14880 (tui_layout_split::replace_window): New method.
14881 (destroy_layout): New function.
14882 (layout_list): New global.
14883 (add_layout_command): New function.
14884 (initialize_layouts): Update.
14885 (tui_layout_command): New function.
14886 (_initialize_tui_layout): Install "layout" commands.
14887 * tui/tui-data.h (enum tui_layout_type): Remove.
14888 (tui_current_layout): Don't declare.
14890 2020-02-22 Tom Tromey <tom@tromey.com>
14892 * tui/tui-regs.c (tui_reg_layout): Remove.
14893 (tui_reg_command): Use tui_regs_layout.
14894 * tui/tui-layout.h (tui_reg_command): Declare.
14895 * tui/tui-layout.c (tui_reg_command): New function.
14897 2020-02-22 Tom Tromey <tom@tromey.com>
14899 * tui/tui.c (tui_rl_delete_other_windows): Call
14900 tui_remove_some_windows.
14901 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14903 (class tui_layout_window) <remove_windows>: New method.
14904 (class tui_layout_split) <remove_windows>: Declare.
14905 (tui_remove_some_windows): Declare.
14906 * tui/tui-layout.c (tui_remove_some_windows): New function.
14907 (tui_layout_split::remove_windows): New method.
14909 2020-02-22 Tom Tromey <tom@tromey.com>
14911 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14912 * tui/tui-layout.h (tui_next_layout): Declare.
14913 * tui/tui-layout.c (tui_next_layout): New function.
14915 2020-02-22 Tom Tromey <tom@tromey.com>
14917 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14918 correct coordinates.
14920 2020-02-22 Tom Tromey <tom@tromey.com>
14922 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14923 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14926 2020-02-22 Tom Tromey <tom@tromey.com>
14928 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14929 TUI_DISASM_WIN, not tui_win_list.
14931 2020-02-22 Tom Tromey <tom@tromey.com>
14933 * valprint.c (generic_val_print_enum_1)
14934 (val_print_type_code_flags): Style member names.
14935 * rust-lang.c (val_print_struct, rust_print_enum)
14936 (rust_print_struct_def, rust_internal_print_type): Style member
14938 * p-valprint.c (pascal_object_print_value_fields): Style member
14939 names. Only call fprintf_symbol_filtered for static members.
14940 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14941 * f-valprint.c (f_val_print): Style member names.
14942 * f-typeprint.c (f_type_print_base): Style member names.
14943 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14944 call fprintf_symbol_filtered for static members.
14945 (cp_print_class_member): Style member names.
14946 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14948 * ada-valprint.c (ada_print_scalar): Style enum names.
14949 (ada_val_print_enum): Likewise.
14950 * ada-typeprint.c (print_enum_type): Style enum names.
14952 2020-02-21 Tom Tromey <tom@tromey.com>
14954 * psympriv.h (struct partial_symtab): Update comment.
14956 2020-02-21 Tom Tromey <tromey@adacore.com>
14958 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14961 2020-02-21 Tom de Vries <tdevries@suse.de>
14964 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14965 if dependencies[i]->user != NULL.
14967 2020-02-21 Ali Tamur <tamur@google.com>
14969 * dwarf2/read.c (dwarf2_name): Add null check.
14971 2020-02-20 Tom Tromey <tom@tromey.com>
14973 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14974 ">=", in binary search.
14975 (dwarf2_find_containing_comp_unit): New overload.
14976 (run_test): New self-test.
14977 (_initialize_dwarf2_read): Register new test.
14979 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14981 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14982 * riscv-tdep.h: Likewise.
14983 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14985 * features/riscv/64bit-csr.xml: Regenerated.
14987 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14988 Tom Tromey <tom@tromey.com>
14990 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14991 of 'fputc_unfiltered'.
14992 (putchar_unfiltered): Call 'fputc_unfiltered'.
14993 (fputc_unfiltered): Call 'fputs_unfiltered'.
14995 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14997 * config.in: Regenerate.
14998 * configure: Regenerate.
14999 * configure.ac: Add --with-python-libdir option.
15000 * main.c: Use WITH_PYTHON_LIBDIR.
15002 2020-02-19 Tom Tromey <tom@tromey.com>
15004 * symtab.c (general_symbol_info::compute_and_set_names): Use
15005 obstack_strndup. Simplify call to symbol_set_demangled_name.
15007 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
15009 * dwarf2/read.c (allocate_signatured_type_table,
15010 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15011 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15012 Remove objfile parameter, update all callers.
15014 2020-02-19 Doug Evans <dje@google.com>
15017 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15018 rust_enum_variant calculation.
15020 2020-02-19 Tom Tromey <tromey@adacore.com>
15022 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15024 2020-02-19 Tom Tromey <tromey@adacore.com>
15026 * ada-lang.c (cache_symbol): Use obstack_strdup.
15028 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15030 * configure: Regenerate.
15032 2020-02-19 Tom Tromey <tromey@adacore.com>
15034 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15037 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
15039 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15041 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15043 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15044 if GDBSERVER is not defined.
15045 (riscv_tdesc_cache): Likewise, also store const target_desc.
15046 (STATIC_IN_GDB): Define.
15047 (riscv_create_target_description): Update declaration with
15049 (riscv_lookup_target_description): New function, only define if
15050 GDBSERVER is not defined.
15051 * arch/riscv.h (riscv_create_target_description): Declare only
15052 when GDBSERVER is defined.
15053 (riscv_lookup_target_description): New declaration when GDBSERVER
15055 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15056 (riscv_linux_read_features): ...this, and return
15057 riscv_gdbarch_features instead of target_desc.
15058 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15059 (riscv_linux_read_description): Rename to...
15060 (riscv_linux_read_features): ...this.
15061 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15062 Update to use riscv_gdbarch_features and
15063 riscv_lookup_target_description.
15064 * riscv-tdep.c (riscv_find_default_target_description): Use
15065 riscv_lookup_target_description instead of
15066 riscv_create_target_description.
15068 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15070 * valprint.c (generic_val_print_enum_1): When printing a flag
15071 enum with value 0 and there is no enumerator with value 0, print
15072 just "0" instead of "(unknown: 0x0)".
15074 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15076 * valprint.c (generic_val_print_enum_1): Print unknown part of
15079 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15081 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15082 flag enums to contain duplicate enumerators.
15083 * valprint.c (generic_val_print_enum_1): Update comment.
15085 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15087 * dwarf2/read.c: Include "count-one-bits.h".
15088 (update_enumeration_type_from_children): If an enumerator has
15089 multiple bits set, don't treat the enumeration as a "flag enum".
15090 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15091 of flag enums have 0 or 1 bit set.
15093 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15095 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15097 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15098 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15099 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15100 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15101 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15103 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15105 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15107 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15109 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15110 displaced_step_closure_up.
15111 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15112 (struct displaced_step_closure_up):
15113 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15114 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15115 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15117 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15118 * gdbarch.c, gdbarch.h: Re-generate.
15119 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15120 displaced_step_closure_up.
15121 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15122 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15123 * infrun.h (displaced_step_closure_up): New type alias.
15124 (struct displaced_step_inferior_state) <step_closure>: Change
15125 type to displaced_step_closure_up.
15126 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15127 displaced_step_closure_up.
15128 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15130 2020-02-14 Tom Tromey <tom@tromey.com>
15132 * minidebug.c (gnu_debug_key): New global.
15133 (find_separate_debug_file_in_section): Use it.
15135 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15137 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15139 * gdbarch.c: Re-generate.
15140 * gdbarch.h: Re-generate.
15141 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15143 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15144 type to std::unique_ptr.
15145 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15146 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15147 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15148 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15149 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15150 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15151 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15152 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15153 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15155 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15157 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15159 (displaced_step_clear): Rename to...
15160 (displaced_step_reset): ... this. Just call displaced->reset ().
15161 (displaced_step_clear_cleanup): Rename to...
15162 (displaced_step_reset_cleanup): ... this.
15163 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15164 (displaced_step_fixup): Likewise.
15165 (resume_1): Likewise.
15166 (handle_inferior_event): Restore child's memory before calling
15167 displaced_step_fixup on the parent.
15168 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15169 to std::unique_ptr.
15170 <step_closure>: Change type to std::unique_ptr.
15172 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15174 * arm-tdep.c: Include count-one-bits.h.
15175 (cleanup_block_store_pc): Use count_one_bits.
15176 (cleanup_block_load_pc): Use count_one_bits.
15177 (arm_copy_block_xfer): Use count_one_bits.
15178 (thumb2_copy_block_xfer): Use count_one_bits.
15179 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15180 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15181 (thumb_get_next_pcs_raw): Use count_one_bits.
15182 (arm_get_next_pcs_raw): Use count_one_bits_l.
15183 * arch/arm.c (bitcount): Remove.
15184 * arch/arm.h (bitcount): Remove.
15186 2020-02-14 Tom Tromey <tromey@adacore.com>
15188 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15190 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15191 * dwarf2/loc.c (call_site_find_chain_1): Return
15192 unique_xmalloc_ptr.
15193 (call_site_find_chain): Likewise.
15195 2020-02-14 Richard Biener <rguenther@suse.de>
15197 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15198 on expression with division operators.
15200 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15202 * MAINTAINERS (Write After Approval): Adding myself.
15204 2020-02-12 Tom Tromey <tom@tromey.com>
15206 * event-loop.c (event_data, gdb_event, event_handler_func):
15209 2020-02-12 Tom Tromey <tom@tromey.com>
15211 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15212 (dwarf2_frame_objfile_data): Add comment.
15213 (find_comp_unit, set_comp_unit): New functions.
15214 (dwarf2_frame_find_fde): Use find_comp_unit.
15215 (dwarf2_build_frame_info): Use set_comp_unit.
15217 2020-02-12 Tom Tromey <tom@tromey.com>
15219 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15220 (comp_unit): Don't initialize objfile.
15221 (execute_cfa_program): Add text_offset parameter.
15222 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15223 (dwarf2_frame_cache): Update.
15224 (dwarf2_build_frame_info): Don't set "objfile" member.
15226 2020-02-12 Tom Tromey <tom@tromey.com>
15228 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15229 (decode_frame_entry): Likewise.
15230 (dwarf2_build_frame_info): Update.
15232 2020-02-12 Tom Tromey <tom@tromey.com>
15234 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15235 (decode_frame_entry_1): Use the comp_unit obstack.
15237 2020-02-12 Tom Tromey <tom@tromey.com>
15239 * dwarf2/frame.c (struct comp_unit): Add initializers and
15241 (dwarf2_frame_objfile_data): Store a comp_unit.
15242 (dwarf2_frame_find_fde): Update.
15243 (dwarf2_build_frame_info): Use "new".
15245 2020-02-12 Tom Tromey <tom@tromey.com>
15247 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15248 (dwarf2_fde_table): Typedef for std::vector.
15249 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15250 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15251 (decode_frame_entry): Update.
15252 (dwarf2_build_frame_info): Use "new".
15254 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15256 * arm-tdep.c (arm_gdbarch_init): Update.
15257 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15258 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15259 have_neon, is_m>: Change to bool.
15261 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15263 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15265 2020-02-12 Tom Tromey <tom@tromey.com>
15267 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15269 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15271 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15272 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15274 2020-02-11 Tom Tromey <tom@tromey.com>
15276 * psymtab.h: Update comment.
15278 2020-02-11 Tom Tromey <tom@tromey.com>
15280 * gdb_obstack.h (struct auto_obstack): Use
15281 DISABLE_COPY_AND_ASSIGN.
15283 2020-02-11 Tom Tromey <tom@tromey.com>
15285 * dwarf2/frame.h (struct objfile): Don't forward declare.
15287 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15289 * cris-tdep.c (cris_supply_gregset): Change signature to match
15290 what struct regset expects.
15291 (cris_regset): New struct.
15292 (fetch_core_registers): Remove.
15293 (cris_iterate_over_regset_sections): New function.
15294 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15295 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15297 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15299 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15302 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15304 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15306 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15308 * configure: Re-generate.
15310 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15312 * configure: Re-generate.
15314 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15316 * acinclude: Update warning.m4 path.
15317 * warning.m4: Move to gdbsupport.
15319 2020-02-11 Tom Tromey <tromey@adacore.com>
15321 * remote.c (remote_console_output): Update.
15322 * printcmd.c (printf_command): Update.
15323 * event-loop.c (gdb_wait_for_event): Update.
15324 * linux-nat.c (sigchld_handler): Update.
15325 * remote-sim.c (gdb_os_write_stdout): Update.
15326 (gdb_os_flush_stdout): Update.
15327 (gdb_os_flush_stderr): Update.
15328 (gdb_os_write_stderr): Update.
15329 * exceptions.c (print_exception): Update.
15330 * remote-fileio.c (remote_fileio_func_read): Update.
15331 (remote_fileio_func_write): Update.
15332 * tui/tui.c (tui_enable): Update.
15333 * tui/tui-interp.c (tui_interp::init): Update.
15334 * utils.c (init_page_info): Update.
15335 (putchar_unfiltered, fputc_unfiltered): Update.
15336 (gdb_flush): Update.
15337 (emit_style_escape): Update.
15338 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15339 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15340 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15341 (stderr_file::write): Update.
15342 (stderr_file::puts): Update.
15343 * ui-file.h (ui_file_isatty, ui_file_write)
15344 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15345 (ui_file_puts): Don't declare.
15347 2020-02-10 Tom de Vries <tdevries@suse.de>
15349 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15350 sentinel to char *.
15352 2020-02-09 Tom de Vries <tdevries@suse.de>
15354 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15355 filename if it matches "<artificial>".
15357 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15359 * windows-tdep.c (struct enum_value_name): New struct.
15360 (create_enum): New function.
15361 (windows_get_siginfo_type): Create and use enum types.
15363 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15365 * NEWS: Mention $_siginfo support for Windows.
15366 * windows-nat.c (handle_exception): Set siginfo_er.
15367 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15368 (windows_xfer_siginfo): New function.
15369 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15370 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15371 (init_windows_gdbarch_data): New function.
15372 (get_windows_gdbarch_data): New function.
15373 (windows_get_siginfo_type): New function.
15374 (windows_init_abi): Register windows_get_siginfo_type.
15375 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15377 2020-02-08 Tom Tromey <tom@tromey.com>
15379 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15380 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15381 <keep>: Declare method.
15382 <m_keep>: Remove member.
15383 <~cutu_reader>: Remove.
15384 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15385 (cutu_reader::cutu_reader): Update.
15386 (cutu_reader::keep): Rename from ~cutu_reader.
15387 (process_psymtab_comp_unit, build_type_psymtabs_1)
15388 (process_skeletonless_type_unit, load_partial_comp_unit)
15389 (load_full_comp_unit, dwarf2_read_addr_index)
15390 (read_signatured_type): Update.
15392 2020-02-08 Tom Tromey <tom@tromey.com>
15394 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15395 "want_partial_unit" parameter.
15396 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15397 Inline check for DW_TAG_partial_unit.
15398 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15400 2020-02-08 Tom Tromey <tom@tromey.com>
15402 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15404 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15407 2020-02-08 Tom Tromey <tom@tromey.com>
15409 * dwarf2/read.c (read_address): Move to comp-unit.c.
15410 (dwarf2_rnglists_process, dwarf2_ranges_process)
15411 (read_attribute_value, dwarf_decode_lines_1)
15412 (var_decode_location, decode_locdesc): Update.
15413 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15414 read.c. Remove "cu" parameter.
15415 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15418 2020-02-08 Tom Tromey <tom@tromey.com>
15420 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15421 (read_indirect_line_string): Update.
15422 * dwarf2/comp-unit.c (read_offset): Remove.
15423 (read_comp_unit_head): Update.
15424 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15426 (read_offset): Don't declare.
15428 2020-02-08 Tom Tromey <tom@tromey.com>
15430 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15431 * dwarf2/read.c (struct comp_unit_head): Move to
15432 dwarf2/comp-unit.h.
15433 (enum class rcuh_kind): Move to comp-unit.h.
15434 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15435 (read_comp_unit_head, error_check_comp_unit_head)
15436 (read_and_check_comp_unit_head): Move to comp-unit.c.
15437 (read_offset, dwarf_unit_type_name): Likewise.
15438 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15439 (cutu_reader::cutu_reader, read_call_site_scope)
15440 (find_partial_die, follow_die_offset): Update.
15441 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15443 2020-02-08 Tom Tromey <tom@tromey.com>
15445 * dwarf2/read.c (read_offset_1): Move to leb.c.
15446 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15447 (dwarf_decode_macro_bytes): Update.
15448 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15449 * dwarf2/leb.h (read_offset): Declare.
15451 2020-02-08 Tom Tromey <tom@tromey.com>
15453 * dwarf2/read.c (dwarf2_section_size): Remove.
15454 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15456 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15458 2020-02-08 Tom Tromey <tom@tromey.com>
15460 * dwarf2/read.c (read_initial_length): Move to leb.c.
15461 * dwarf2/leb.h (read_initial_length): Declare.
15462 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15463 handle_nonstd parameter.
15464 * dwarf2/frame.c (read_initial_length): Remove.
15465 (decode_frame_entry_1): Update.
15467 2020-02-08 Tom Tromey <tom@tromey.com>
15469 * dwarf2/loc.c (dwarf2_find_location_expression)
15470 (dwarf_evaluate_loc_desc::get_tls_address)
15471 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15472 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15473 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15474 (dwarf2_compile_property_to_c)
15475 (dwarf2_loc_desc_get_symbol_read_needs)
15476 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15477 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15478 (loclist_describe_location, loclist_tracepoint_var_ref)
15479 (loclist_generate_c_location): Update.
15480 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15481 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15482 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15483 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15484 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15485 (dwarf2_per_cu_data::addr_size)
15486 (dwarf2_per_cu_data::ref_addr_size)
15487 (dwarf2_per_cu_data::text_offset)
15488 (dwarf2_per_cu_data::addr_type): Now methods.
15489 (per_cu_header_read_in): Make per_cu "const".
15490 (dwarf2_version): Remove.
15491 (dwarf2_per_cu_data::int_type): Now a method.
15492 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15493 (set_die_type, read_array_type, read_subrange_index_type)
15494 (read_tag_string_type, read_subrange_type): Update.
15495 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15496 offset_size, ref_addr_size, text_offset, addr_type, version,
15497 objfile, int_type, addr_sized_int_type>: Declare methods.
15499 2020-02-08 Tom Tromey <tom@tromey.com>
15501 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15504 2020-02-08 Tom Tromey <tom@tromey.com>
15506 * dwarf2/read.h (dwarf_line_debug): Declare.
15507 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15508 * dwarf2/read.c: Move line_header code to new files.
15509 (dwarf_line_debug): No longer static.
15510 * dwarf2/line-header.c: New file.
15511 * dwarf2/line-header.h: New file.
15513 2020-02-08 Tom Tromey <tom@tromey.com>
15515 * dwarf2/read.c (struct line_header) <file_full_name,
15516 file_file_name>: Return unique_xmalloc_ptr.
15517 (line_header::file_file_name): Update.
15518 (line_header::file_full_name): Update.
15519 (dw2_get_file_names_reader): Update.
15520 (macro_start_file): Update.
15522 2020-02-08 Tom Tromey <tom@tromey.com>
15524 * dwarf2/read.c (struct line_header) <file_full_name,
15525 file_file_name>: Declare methods.
15526 (dw2_get_file_names_reader): Update.
15527 (file_file_name): Now a method.
15528 (file_full_name): Likewise.
15529 (macro_start_file): Update.
15531 2020-02-08 Tom Tromey <tom@tromey.com>
15533 * dwarf2/read.c (dwarf_always_disassemble)
15534 (show_dwarf_always_disassemble): Move to loc.c.
15535 (_initialize_dwarf2_read): Move "always-disassemble" registration
15537 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15538 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15540 (show_dwarf_always_disassemble): Move from read.c.
15541 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15543 2020-02-08 Tom Tromey <tom@tromey.com>
15545 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15546 (create_quick_file_names_table): Return htab_up.
15547 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15549 * dwarf2/read.h (struct dwarf2_per_objfile)
15550 <quick_file_names_table>: Now htab_up.
15552 2020-02-08 Tom Tromey <tom@tromey.com>
15554 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15556 2020-02-08 Tom Tromey <tom@tromey.com>
15558 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15560 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15561 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15562 (abbrev_table::abbrev_table): No longer inline.
15563 (ABBREV_HASH_SIZE): Remove.
15564 (abbrev_table::m_abbrevs): Now an htab_up.
15566 2020-02-08 Tom Tromey <tom@tromey.com>
15568 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15569 (cutu_reader): Update.
15570 (build_type_psymtabs_1): Update.
15571 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15572 (abbrev_table::alloc_abbrev): Update.
15573 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15574 (abbrev_table::read): New static method, renamed from
15575 abbrev_table_read_table.
15576 (abbrev_table::alloc_abbrev)
15577 (abbrev_table::add_abbrev): Now private.
15578 (abbrev_table::abbrev_table): Now private.
15579 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15581 2020-02-08 Tom Tromey <tom@tromey.com>
15583 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15584 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15587 2020-02-08 Tom Tromey <tom@tromey.com>
15589 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15591 (lookup_dwo_unit_in_dwp): Update.
15592 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15595 2020-02-08 Tom Tromey <tom@tromey.com>
15597 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15600 2020-02-08 Tom Tromey <tom@tromey.com>
15602 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15604 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15605 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15606 Change type to htab_up.
15608 2020-02-08 Tom Tromey <tom@tromey.com>
15610 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15611 htab_up. Don't allocate on obstack.
15612 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15613 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15614 Change type to htab_up.
15616 2020-02-08 Tom Tromey <tom@tromey.com>
15618 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15619 Change type to htab_up.
15620 * dwarf2/read.c (create_signatured_type_table_from_index)
15621 (create_signatured_type_table_from_debug_names)
15622 (create_all_type_units, add_type_unit)
15623 (lookup_dwo_signatured_type, lookup_signatured_type)
15624 (process_skeletonless_type_unit): Update.
15625 (create_debug_type_hash_table, create_debug_types_hash_table):
15626 Change type of types_htab.
15627 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15628 htab_up. Don't allocate on obstack.
15629 (create_cus_hash_table): Change type of cus_htab parameter.
15630 (struct dwo_file) <cus, tus>: Now htab_up.
15631 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15632 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15633 (queue_and_load_all_dwo_tus): Update.
15634 * dwarf2/index-write.c (write_gdbindex): Update.
15635 (write_debug_names): Update.
15637 2020-02-08 Tom Tromey <tom@tromey.com>
15639 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15640 dwarf2/read.c. Remove "next" member. Add constructor ntad
15642 (struct dwarf2_per_objfile) <queue>: New member.
15643 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15645 (dwarf2_queue, dwarf2_queue_tail): Remove.
15646 (class dwarf2_queue_guard): Add parameter to constructor. Use
15647 DISABLE_COPY_AND_ASSIGN.
15648 <m_per_objfile>: New member.
15649 <~dwarf2_queue_guard>: Rewrite.
15650 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15652 (~dwarf2_queue_item): New.
15654 2020-02-08 Tom Tromey <tom@tromey.com>
15656 * dwarf2/read.c (struct die_info) <has_children>: New member.
15657 (dw2_get_file_names_reader): Remove has_children.
15658 (dw2_get_file_names): Update.
15659 (read_cutu_die_from_dwo): Remove has_children.
15660 (cutu_reader::init_tu_and_read_dwo_dies)
15661 (cutu_reader::cutu_reader): Update.
15662 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15663 Remove has_children.
15664 (build_type_psymtabs_1, process_skeletonless_type_unit)
15665 (load_partial_comp_unit, load_full_comp_unit): Update.
15666 (create_dwo_cu_reader): Remove has_children.
15667 (create_cus_hash_table, read_die_and_children): Update.
15668 (read_full_die_1,read_full_die): Remove has_children.
15669 (read_signatured_type): Update.
15670 (class cutu_reader) <has_children>: Remove.
15672 2020-02-08 Tom Tromey <tom@tromey.com>
15674 * dwarf2/expr.c: Rename from dwarf2expr.c.
15675 * dwarf2/expr.h: Rename from dwarf2expr.h.
15676 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15677 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15678 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15679 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15680 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15681 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15682 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15683 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15684 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15685 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15686 * dwarf2/loc.c: Rename from dwarf2loc.c.
15687 * dwarf2/loc.h: Rename from dwarf2loc.h.
15688 * dwarf2/read.c: Rename from dwarf2read.c.
15689 * dwarf2/read.h: Rename from dwarf2read.h.
15690 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15691 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15692 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15693 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15694 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15695 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15696 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15697 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15698 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15699 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15700 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15701 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15702 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15704 * Makefile.in (COMMON_SFILES): Update.
15705 (HFILES_NO_SRCDIR): Update.
15707 2020-02-08 Tom Tromey <tom@tromey.com>
15709 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15710 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15712 2020-02-08 Tom Tromey <tom@tromey.com>
15714 * dwarf2read.h (struct die_info): Don't declare.
15716 2020-02-08 Tom Tromey <tom@tromey.com>
15718 * dwarf2read.h (die_info_ptr): Remove typedef.
15720 2020-02-08 Tom Tromey <tom@tromey.com>
15722 * dwarf2read.c (read_call_site_scope)
15723 (handle_data_member_location, dwarf2_add_member_fn)
15724 (mark_common_block_symbol_computed, read_common_block)
15725 (attr_to_dynamic_prop, partial_die_info::read)
15726 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15727 (dwarf2_symbol_mark_computed, set_die_type): Update.
15728 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15730 (attr_form_is_block): Don't declare.
15731 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15733 2020-02-08 Tom Tromey <tom@tromey.com>
15735 * dwarf2read.c (dwarf2_find_base_address, )
15736 (read_call_site_scope, rust_containing_type)
15737 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15738 (handle_data_member_location, dwarf2_add_member_fn)
15739 (get_alignment, read_structure_type, process_structure_scope)
15740 (mark_common_block_symbol_computed, read_common_block)
15741 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15742 (partial_die_info::read, read_attribute_value, new_symbol)
15743 (lookup_die_type, dwarf2_get_ref_die_offset)
15744 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15745 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15746 (dwarf2_symbol_mark_computed): Update.
15747 * dwarf2/attribute.h (struct attribute) <value_as_address,
15748 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15750 (value_as_address, attr_form_is_section_offset)
15751 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15752 * dwarf2/attribute.c (attribute::value_as_address)
15753 (attribute::form_is_section_offset, attribute::form_is_constant)
15754 (attribute::form_is_ref): Now methods.
15756 2020-02-08 Tom Tromey <tom@tromey.com>
15758 * dwarf2read.c (struct attribute, DW_STRING)
15759 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15760 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15761 (attr_form_is_block, attr_form_is_section_offset)
15762 (attr_form_is_constant, attr_form_is_ref): Move.
15763 * dwarf2/attribute.h: New file.
15764 * dwarf2/attribute.c: New file, from dwarf2read.c.
15765 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15767 2020-02-08 Tom Tromey <tom@tromey.com>
15769 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15770 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15772 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15773 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15774 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15776 * dwarf2/abbrev.h: New file.
15777 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15778 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15780 2020-02-08 Tom Tromey <tom@tromey.com>
15782 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15783 (dwarf2_section_size, dwarf2_get_section_info)
15784 (create_signatured_type_table_from_debug_names)
15785 (create_addrmap_from_aranges, read_debug_names_from_section)
15786 (get_gdb_index_contents_from_section, read_comp_unit_head)
15787 (error_check_comp_unit_head, read_abbrev_offset)
15788 (create_debug_type_hash_table, init_cu_die_reader)
15789 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15790 (read_comp_units_from_section, create_cus_hash_table)
15791 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15792 (create_dwp_v2_section, dwarf2_rnglists_process)
15793 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15794 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15795 (read_indirect_string_from_dwz, read_addr_index_1)
15796 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15797 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15798 (fill_in_loclist_baton): Update.
15799 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15800 get_containing_section, get_bfd_owner, get_bfd_section,
15801 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15802 (dwarf2_read_section, get_section_name, get_section_file_name)
15803 (get_containing_section, get_section_bfd_owner)
15804 (get_section_bfd_section, get_section_name, get_section_file_name)
15805 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15807 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15808 (dwarf2_section_info::get_bfd_owner)
15809 (dwarf2_section_info::get_bfd_section)
15810 (dwarf2_section_info::get_name)
15811 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15812 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15813 (dwarf2_section_info::read): Now methods.
15814 * dwarf-index-write.c (class debug_names): Update.
15816 2020-02-08 Tom Tromey <tom@tromey.com>
15818 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15819 Move to dwarf2/section.h.
15820 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15821 (get_section_bfd_section, get_section_name)
15822 (get_section_file_name, get_section_id, get_section_flags)
15823 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15825 * dwarf2/section.h: New file.
15826 * dwarf2/section.c: New file, from dwarf2read.c.
15827 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15829 2020-02-08 Tom Tromey <tom@tromey.com>
15831 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15832 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15833 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15834 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15835 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15836 * dwarf2/leb.h: New file, from dwarf2read.c.
15837 * dwarf2/leb.c: New file, from dwarf2read.c.
15838 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15840 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15841 (COMMON_SFILES): Add dwarf2/leb.c.
15843 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15847 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15850 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15851 * gdb/remote.c (remote_console_output): Update.
15852 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15853 (ui_file_puts): ...this.
15854 * gdb/ui-file.h (ui_file_puts): Add declaration.
15855 * gdb/utils.c (emit_style_escape): Update.
15856 (flush_wrap_buffer): Update.
15857 (fputs_maybe_filtered): Update.
15858 (fputs_unfiltered): Add function.
15860 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15862 * gdb/event-loop.c (gdb_wait_for_event): Update.
15863 * gdb/printcmd.c (printf_command): Update.
15864 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15865 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15866 (gdb_os_flush_stderr): Update.
15867 * gdb/remote.c (remote_console_output): Update.
15868 * gdb/ui-file.c (gdb_flush): Rename to...
15869 (ui_file_flush): ...this.
15870 (stderr_file::write): Update.
15871 (stderr_file::puts): Update.
15872 * gdb/ui-file.h (gdb_flush): Rename to...
15873 (ui_file_flush): ...this.
15874 * gdb/utils.c (gdb_flush): Add function.
15875 * gdb/utils.h (gdb_flush): Add declaration.
15877 2020-02-07 Tom Tromey <tromey@adacore.com>
15879 PR breakpoints/24915:
15880 * source.c (find_and_open_source): Do not check basenames_may_differ.
15882 2020-02-07 Tom Tromey <tom@tromey.com>
15884 * README: Update gdbserver documentation.
15885 * gdbserver: Move to top level.
15886 * configure.tgt (build_gdbserver): Remove.
15887 * configure.ac: Remove --enable-gdbserver.
15888 * configure: Rebuild.
15889 * Makefile.in (distclean): Don't mention gdbserver.
15891 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15893 * source-cache.c (source_cache::ensure): Surround
15894 get_plain_source_lines with a try/catch.
15895 (source_cache::get_line_charpos): Get rid of try/catch
15896 and only check for the return value of "ensure".
15897 * tui/tui-source.c (tui_source_window::set_contents):
15898 Simplify "nlines" calculation.
15900 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15902 * MAINTAINERS (Write After Approval): Add myself.
15904 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15906 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15909 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15911 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15913 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15915 * nat/riscv-linux-tdesc.h: New file.
15916 * nat/riscv-linux-tdesc.c: New file, taking code from...
15917 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15919 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15922 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15924 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15925 we don't set the fake simulator ptid to the null_ptid.
15927 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15929 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15930 * gdbthread.h (class thread_info) <resumed>: Likewise.
15931 * infrun.c (resume_1): Likewise.
15932 (proceed): Likewise.
15933 (infrun_thread_stop_requested): Likewise.
15934 (stop_all_threads): Likewise.
15935 (handle_inferior_event): Likewise.
15936 (restart_threads): Likewise.
15937 (finish_step_over): Likewise.
15938 (keep_going_stepped_thread): Likewise.
15939 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15940 (linux_handle_extended_wait): Likewise.
15941 * record-btrace.c (get_thread_current_frame_id): Likewise.
15942 * record-full.c (record_full_wait_1): Likewise.
15943 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15944 * target.c (target_resume): Likewise.
15945 * thread.c (set_running_thread): Likewise.
15947 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15949 * f-valprint.c (f77_print_array_1): Changed datatype of index
15950 variable to LONGEST from int to enable it to contain bound
15953 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15955 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15956 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15957 offsets according to FLEN determined.
15958 (riscv_linux_nat_target::read_description): Determine FLEN
15960 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15961 according to FLEN determined.
15962 (riscv_linux_nat_target::store_registers): Likewise.
15964 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15966 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15967 when reg->group is empty and reggroup is not.
15969 2020-01-31 Tom Tromey <tromey@adacore.com>
15971 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15972 Call beneath target's mourn_inferior after unpushing.
15974 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15977 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15978 have enough lines to fill the screen, still return the lowest
15981 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15983 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15984 '-', '<', and '>' commands.
15986 2020-01-29 Pedro Alves <palves@redhat.com>
15987 Sergio Durigan Junior <sergiodj@redhat.com>
15989 * infcmd.c (construct_inferior_arguments): Assert that
15990 'argc' is greater than 0.
15992 2020-01-29 Luis Machado <luis.machado@linaro.org>
15994 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15995 (BRK_INSN_MASK): Define to 0xd4200000.
15996 (aarch64_program_breakpoint_here_p): New function.
15997 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15998 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16000 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16002 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16003 call gdbarch_program_breakpoint_here_p.
16004 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16005 default_program_breakpoint_here_p, changed return type to bool and
16007 * breakpoint.h (program_breakpoint_here): Moved prototype to
16008 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16009 return type to bool.
16010 * gdbarch.c: Regenerate.
16011 * gdbarch.h: Regenerate.
16012 * gdbarch.sh (program_breakpoint_here_p): New method.
16013 * infrun.c (handle_signal_stop): Call
16014 gdbarch_program_breakpoint_here_p.
16016 2020-01-26 Tom Tromey <tom@tromey.com>
16018 * ctfread.c (struct ctf_fp_info): Reindent.
16019 (_initialize_ctfread): Remove.
16021 2020-01-26 Tom Tromey <tom@tromey.com>
16023 * psymtab.c (partial_map_expand_apply)
16024 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16025 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16026 (psym_print_stats, psym_expand_symtabs_for_function)
16027 (psym_map_symbol_filenames, psym_map_matching_symbols)
16028 (psym_expand_symtabs_matching)
16029 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16030 (maintenance_check_psymtabs): Use new methods.
16031 * psympriv.h (struct partial_symtab) <readin_p,
16032 get_compunit_symtab>: New methods.
16033 <readin, compunit_symtab>: Remove members.
16034 (struct standard_psymtab): New.
16035 (struct legacy_psymtab): Derive from standard_psymtab.
16036 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16038 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16040 2020-01-26 Tom Tromey <tom@tromey.com>
16042 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16043 read_dependencies. Add assert.
16044 * psymtab.c (partial_symtab::read_dependencies): New method.
16045 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16047 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16048 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16050 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16053 2020-01-26 Tom Tromey <tom@tromey.com>
16055 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16056 Call expand_psymtab.
16057 (xcoff_read_symtab): Call expand_psymtab.
16058 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16059 legacy_expand_psymtab.
16060 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16062 (struct legacy_psymtab) <expand_psymtab>: Implement.
16063 <legacy_expand_psymtab>: New member.
16064 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16065 (parse_partial_symbols): Set legacy_expand_psymtab.
16066 (psymtab_to_symtab_1): Change argument order. Call
16068 (new_psymtab): Set legacy_expand_psymtab.
16069 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16070 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16072 (dwarf2_psymtab::expand_psymtab): Rename from
16073 psymtab_to_symtab_1. Call expand_psymtab.
16074 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16075 (dbx_end_psymtab): Likewise.
16076 (dbx_psymtab_to_symtab_1): Change argument order. Call
16078 (dbx_read_symtab): Call expand_psymtab.
16079 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16080 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16081 (ctf_psymtab::read_symtab): Call expand_psymtab.
16083 2020-01-26 Tom Tromey <tom@tromey.com>
16085 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16086 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16088 * mdebugread.c (mdebug_read_symtab): Remove prints.
16089 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16091 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16093 2020-01-26 Tom Tromey <tom@tromey.com>
16095 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16096 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16097 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16099 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16100 * psymtab.c (psymtab_to_symtab): Call method.
16101 (dump_psymtab): Update.
16102 * psympriv.h (struct partial_symtab): Add virtual destructor.
16103 <read_symtab>: New method.
16104 (struct legacy_symtab): New.
16105 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16106 (struct pst_map) <pst>: Now a legacy_psymtab.
16107 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16108 (new_psymtab): Use legacy_psymtab.
16109 * dwarf2read.h (struct dwarf2_psymtab): New.
16110 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16111 * dwarf2read.c (dwarf2_create_include_psymtab)
16112 (dwarf2_build_include_psymtabs, create_type_unit_group)
16113 (create_partial_symtab, process_psymtab_comp_unit_reader)
16114 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16115 (set_partial_user): Use dwarf2_psymtab.
16116 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16117 (psymtab_to_symtab_1, process_full_comp_unit)
16118 (process_full_type_unit, dwarf2_ranges_read)
16119 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16120 (dwarf_decode_lines): Use dwarf2_psymtab.
16121 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16122 (add_address_entry_worker, write_one_signatured_type)
16123 (recursively_count_psymbols, recursively_write_psymbols)
16124 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16125 (write_debug_names): Likewise.
16126 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16127 <pst>: Now a legacy_psymtab.
16128 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16129 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16130 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16131 * ctfread.c (struct ctf_psymtab): New.
16132 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16134 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16135 (create_partial_symtab): Return a ctf_psymtab.
16136 (scan_partial_symbols): Update.
16138 2020-01-26 Tom Tromey <tom@tromey.com>
16140 * xcoffread.c (xcoff_start_psymtab): Use new.
16141 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16142 renamed from start_psymtab_common.
16143 * psympriv.h (struct partial_symtab): Add new constructor.
16144 (start_psymtab_common): Don't declare.
16145 * mdebugread.c (parse_partial_symbols): Use new.
16146 * dwarf2read.c (create_partial_symtab): Use new.
16147 * dbxread.c (start_psymtab): Use new.
16148 * ctfread.c (create_partial_symtab): Use new.
16150 2020-01-26 Tom Tromey <tom@tromey.com>
16152 * xcoffread.c (xcoff_end_psymtab): Use new.
16153 * psymtab.c (start_psymtab_common): Use new.
16154 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16156 * psympriv.h (struct partial_symtab): Add parameters to
16157 constructor. Don't inline.
16158 (allocate_psymtab): Don't declare.
16159 * mdebugread.c (new_psymtab): Use new.
16160 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16161 * dbxread.c (dbx_end_psymtab): Use new.
16163 2020-01-26 Tom Tromey <tom@tromey.com>
16165 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16166 allocate_psymtab. Update documentation.
16167 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16168 allocate_psymtab. Do not use new.
16169 (allocate_psymtab): Use new. Update.
16171 2020-01-26 Tom Tromey <tom@tromey.com>
16173 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16174 * psymtab.c (psym_print_stats): Update.
16175 * psympriv.h (struct partial_symtab) <readin,
16176 psymtabs_addrmap_supported, anonymous>: Now bool.
16177 * mdebugread.c (psymtab_to_symtab_1): Update.
16178 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16179 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16180 (process_full_comp_unit, process_full_type_unit): Update.
16181 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16182 * ctfread.c (psymtab_to_symtab): Update.
16184 2020-01-26 Tom Tromey <tom@tromey.com>
16186 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16187 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16188 * psymtab.c (psymtab_storage): Delete psymtabs.
16189 (psymtab_storage::allocate_psymtab): Use new.
16190 (psymtab_storage::discard_psymtab): Use delete.
16191 * psympriv.h (struct partial_symtab): Add constructor and
16194 2020-01-26 Tom Tromey <tom@tromey.com>
16196 * machoread.c: Do not include psympriv.h.
16198 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16200 * NEWS: Mention the new option and the set/show commands.
16202 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16204 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16205 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16206 (validate_exec_file): New variables, enums, functions.
16207 (exec_file_locate_attach, print_section_info): Style the filenames.
16208 (_initialize_exec): Install show_exec_file_mismatch_command and
16209 set_exec_file_mismatch_command.
16210 * gdbcore.h (validate_exec_file): Declare.
16211 * infcmd.c (attach_command): Call validate_exec_file.
16212 * remote.c ( remote_target::remote_add_inferior): Likewise.
16214 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16216 * frame.c (find_frame_sal): Move call to get_next_frame into more
16218 * inline-frame.c (inilne_state) <inline_state>: Update argument
16220 (inilne_state) <skipped_symbol>: Rename to...
16221 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16222 (skip_inline_frames): Build vector of skipped symbols and use this
16223 to reate the inline_state.
16224 (inline_skipped_symbol): Add a comment and some assertions, fetch
16225 skipped symbol from the list.
16227 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16229 * buildsym.c (lte_is_less_than): Delete.
16230 (buildsym_compunit::end_symtab_with_blockvector): Create local
16231 lambda function to sort line table entries, and use
16232 std::stable_sort instead of std::sort.
16233 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16234 markers when looking for a previous line.
16236 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16238 * dwarf2read.c (lnp_state_machine::record_line): Include
16239 end_sequence parameter in debug print out. Record the line if we
16240 are at an end_sequence marker even if it's not the start of a
16242 * symmisc.c (maintenance_print_one_line_table): Print end of
16243 sequence markers with 'END' not '0'.
16245 2020-01-24 Pedro Alves <palves@redhat.com>
16248 * thread.c (scoped_restore_current_thread::restore): Use
16249 switch_to_inferior_no_thread.
16250 * exec.c: Include "progspace-and-thread.h".
16251 (add_target_sections, remove_target_sections):
16252 scoped_restore_current_pspace_and_thread instead of
16253 scoped_restore_current_thread.
16254 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16255 and aspace to the inferior before calling clone_program_space.
16256 Remove stale comment.
16258 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16260 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16261 (arm_netbsd_nat_target::fetch_registers): ...this.
16262 (arm_nbsd_nat_target::store_registers): Rename to...
16263 (arm_netbsd_nat_target::store_registers): ...this.
16265 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16267 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16270 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16272 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16274 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16276 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16277 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16278 the correct replacement (iterate_over_regset_sections).
16279 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16282 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16285 * gdb/python/python.c (execute_gdb_command): Call
16286 async_enable_stdin in catch block.
16288 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16290 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16291 SWITCH_THRU_ALL_UIS.
16293 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16296 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16297 comment, add extra parameter, and update to store previous symbol
16299 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16300 add extra parameter.
16301 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16302 remove unneeded parameter, add try/catch around gdb_print_insn,
16303 rewrite to add items to asm_lines vector.
16304 (tui_find_backward_disassembly_start_address): New function.
16305 (tui_find_disassembly_address): Updated throughout.
16306 (tui_disasm_window::set_contents): Update for changes to
16308 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16309 number of lines to scroll.
16311 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16313 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16314 (SECT_OFF_DATA): Likewise.
16315 (SECT_OFF_RODATA): Likewise.
16316 (SECT_OFF_TEXT): Likewise.
16317 (SECT_OFF_BSS): Likewise.
16318 (struct objfile) <text_section_offset, data_section_offset>: New
16320 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16321 objfile::text_section_offset.
16322 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16323 * coffread.c (coff_symtab_read): Likewise.
16324 (enter_linenos): Likewise.
16325 (process_coff_symbol): Likewise.
16326 * ctfread.c (get_objfile_text_range): Likewise.
16327 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16328 Use objfile::data_section_offset.
16329 * dwarf2-frame.c (execute_cfa_program): Use
16330 objfile::text_section_offset.
16331 (dwarf2_frame_find_fde): Likewise.
16332 * dwarf2read.c (create_addrmap_from_index): Likewise.
16333 (create_addrmap_from_aranges): Likewise.
16334 (dw2_find_pc_sect_compunit_symtab): Likewise.
16335 (process_psymtab_comp_unit_reader): Likewise.
16336 (add_partial_symbol): Likewise.
16337 (add_partial_subprogram): Likewise.
16338 (process_full_comp_unit): Likewise.
16339 (read_file_scope): Likewise.
16340 (read_func_scope): Likewise.
16341 (read_lexical_block_scope): Likewise.
16342 (read_call_site_scope): Likewise.
16343 (dwarf2_rnglists_process): Likewise.
16344 (dwarf2_ranges_process): Likewise.
16345 (dwarf2_ranges_read): Likewise.
16346 (dwarf_decode_lines_1): Likewise.
16347 (new_symbol): Likewise.
16348 (dwarf2_fetch_die_loc_sect_off): Likewise.
16349 (dwarf2_per_cu_text_offset): Likewise.
16350 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16351 * hppa-tdep.c (read_unwind_info): Likewise.
16352 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16353 * psympriv.h (struct partial_symtab): Likewise.
16354 * psymtab.c (find_pc_sect_psymtab): Likewise.
16355 * solib-svr4.c (enable_break): Likewise.
16356 * stap-probe.c (relocate_address): Use
16357 objfile::data_section_offset.
16358 * xcoffread.c (enter_line_range): Use
16359 objfile::text_section_offset.
16360 (read_xcoff_symtab): Likewise.
16362 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16364 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16365 declaration to narrower scopes.
16367 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16369 * darwin-nat.h (struct darwin_exception_msg, enum
16370 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16372 (class darwin_nat_target) <wait_1, check_new_threads,
16373 decode_exception_message, decode_message, stop_inferior,
16374 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16375 * darwin-nat.c (darwin_check_new_threads): Rename to...
16376 (darwin_nat_target::check_new_threads): ... this.
16377 (darwin_suspend_inferior_it): Remove.
16378 (darwin_decode_exception_message): Rename to...
16379 (darwin_nat_target::decode_exception_message): ... this.
16380 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16381 (darwin_decode_message): Rename to...
16382 (darwin_nat_target::decode_message): ... this.
16383 (cancel_breakpoint): Rename to...
16384 (darwin_nat_target::cancel_breakpoint): ... this.
16385 (darwin_wait): Rename to...
16386 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16387 instead of iterate_over_inferiors.
16388 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16389 (darwin_stop_inferior): Rename to...
16390 (darwin_nat_target::stop_inferior): ... this.
16391 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16392 (darwin_init_thread_list): Rename to...
16393 (darwin_nat_target::init_thread_list): ... this.
16394 (darwin_ptrace_him): Rename to...
16395 (darwin_nat_target::ptrace_him): ... this.
16396 (darwin_nat_target::create_inferior): Pass lambda function to
16398 (darwin_nat_target::detach): Call stop_inferior instead of
16399 darwin_stop_inferior.
16400 * fork-inferior.h (fork_inferior): Change init_trace_fun
16401 parameter to gdb::function_view.
16402 * fork-inferior.c (fork_inferior): Likewise.
16404 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16406 * i386-cygwin-tdep.c (core_process_module_section): Update.
16407 * windows-nat.c (struct lm_info_windows): Add text_offset.
16408 (windows_xfer_shared_libraries): Update.
16409 * windows-tdep.c (windows_xfer_shared_library):
16410 Add text_offset_cached argument.
16411 * windows-tdep.h (windows_xfer_shared_library): Update.
16413 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16415 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16417 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16419 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16420 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16421 replace with range-based for.
16422 (gdbsim_interrupt_inferior): Remove.
16423 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16424 with a range-based for. Inline code from
16425 gdbsim_interrupt_inferior.
16427 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16429 * infrun.c (proceed): Fix indentation.
16431 2020-01-21 Tom Tromey <tromey@adacore.com>
16433 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16434 * python/python.c (python_extension_ops): Update.
16435 (gdbpy_colorize): New function.
16436 * python/lib/gdb/__init__.py (colorize): New function.
16437 * extension.h (ext_lang_colorize): Declare.
16438 * extension.c (ext_lang_colorize): New function.
16439 * extension-priv.h (struct extension_language_ops) <colorize>: New
16441 * cli/cli-style.c (_initialize_cli_style): Update help text.
16443 2020-01-21 Luis Machado <luis.machado@linaro.org>
16445 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16446 <cond>: Change type to bool.
16447 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16448 (aarch64_displaced_step_cb): Likewise.
16449 (aarch64_displaced_step_tb): Likewise.
16451 2020-01-21 Luis Machado <luis.machado@linaro.org>
16453 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16456 2020-01-21 Luis Machado <luis.machado@linaro.org>
16458 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16459 <pc_adjust>: Adjust the documentation.
16460 (aarch64_displaced_step_fixup): Check if PC really moved before
16463 2020-01-19 Tom Tromey <tom@tromey.com>
16465 * disasm.c (~gdb_disassembler): New destructor.
16466 (gdb_buffered_insn_length): Call disassemble_free_target.
16467 * disasm.h (class gdb_disassembler): Declare destructor. Use
16468 DISABLE_COPY_AND_ASSIGN.
16470 2020-01-19 Tom Tromey <tom@tromey.com>
16472 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16473 (die_reader_func_ftype): Remove.
16474 (cutu_reader): New class.
16475 (dw2_get_file_names_reader): Remove "data" parameter.
16476 (dw2_get_file_names): Use cutu_reader.
16477 (create_debug_type_hash_table): Update.
16478 (read_cutu_die_from_dwo): Update comment.
16479 (lookup_dwo_unit): Add dwo_name parameter.
16480 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16481 die_reader_func_ftype and data parameters.
16482 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16483 Remove die_reader_func_ftype and data parameters.
16484 (~cutu_reader): New; from init_cutu_and_read_dies.
16485 (cutu_reader::cutu_reader): Rename from
16486 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16487 and data parameters.
16488 (init_cutu_and_read_dies_simple): Remove.
16489 (struct process_psymtab_comp_unit_data): Remove.
16490 (process_psymtab_comp_unit_reader): Remove data parameter; add
16491 want_partial_unit and pretend_language parameters.
16492 (process_psymtab_comp_unit): Use cutu_reader.
16493 (build_type_psymtabs_reader): Remove data parameter.
16494 (build_type_psymtabs_1): Use cutu_reader.
16495 (process_skeletonless_type_unit): Likewise.
16496 (load_partial_comp_unit_reader): Remove.
16497 (load_partial_comp_unit): Use cutu_reader.
16498 (load_full_comp_unit_reader): Remove.
16499 (load_full_comp_unit): Use cutu_reader.
16500 (struct create_dwo_cu_data): Remove.
16501 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16502 dwo_unit parameters.
16503 (create_cus_hash_table): Use cutu_reader.
16504 (struct dwarf2_read_addr_index_data): Remove.
16505 (dwarf2_read_addr_index_reader): Remove.
16506 (dwarf2_read_addr_index): Use cutu_reader.
16507 (read_signatured_type_reader): Remove.
16508 (read_signatured_type): Use cutu_reader.
16510 2020-01-19 Tom Tromey <tom@tromey.com>
16512 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16513 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16514 (tui_wrefresh): Declare.
16515 * tui/tui-wingeneral.c (suppress_output): New global.
16516 (tui_suppress_output, ~tui_suppress_output): New constructor and
16518 (tui_wrefresh): New function.
16519 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16520 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16521 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16523 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16525 (tui_data_window::no_refresh): New method.
16526 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16527 (tui_reg_command): Use tui_suppress_output
16528 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16529 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16531 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16533 2020-01-19 Tom Tromey <tom@tromey.com>
16535 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16536 Handle case where symtab is null.
16538 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16540 * linux-fork.c (one_fork_p): Simplify.
16542 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16544 * top.c (struct qt_args): Remove.
16545 (kill_or_detach): Change return type to void, replace `void *`
16546 parameter with a proper one.
16547 (print_inferior_quit_action): Likewise.
16548 (quit_confirm): Use range-based for loop to iterate over inferiors.
16549 (quit_force): Likewise.
16551 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16553 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16554 `void *` parameter with proper parameters.
16555 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16556 (print_one_inferior): Change return type to void, replace `void *`
16557 parameter with proper parameters.
16558 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16560 (get_other_inferior): Remove.
16561 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16564 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16566 * mi/mi-interp.c (report_initial_inferior): Remove.
16567 (mi_interp::init): Use range-based for to iterate over inferiors.
16569 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16571 * python/py-inferior.c (build_inferior_list): Remove.
16572 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16574 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16576 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16577 (btrace_stitch_trace): Likewise.
16578 * charset.c (intermediate_encoding): Likewise (vaild).
16579 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16580 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16581 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16583 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16585 * windows-tdep.c (windows_get_tlb_type):
16586 Add rtl_user_process_parameters type.
16588 2020-01-16 Pedro Alves <palves@redhat.com>
16589 Norbert Lange <nolange79@gmail.com>
16592 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16593 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16594 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16595 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16596 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16597 (ps_plog): Redeclare exported functions with default visibility.
16599 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16601 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16602 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16604 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16606 * infcmd.c (post_create_inferior): Use get_thread_regcache
16607 instead of get_current_regcache.
16609 2020-01-14 Tom Tromey <tom@tromey.com>
16612 * python/python.c (gdbpy_decode_line): Treat empty string the same
16615 2020-01-14 Tom Tromey <tom@tromey.com>
16617 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16619 2020-01-14 Tom Tromey <tom@tromey.com>
16621 * nat/linux-btrace.c: Don't include <config.h>.
16622 * nat/linux-ptrace.c: Don't include <config.h>.
16623 * nat/x86-linux-dregs.c: Don't include <config.h>.
16625 2020-01-14 Tom Tromey <tom@tromey.com>
16627 * configure: Rebuild.
16628 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16630 2020-01-14 Tom Tromey <tom@tromey.com>
16632 * nat/x86-linux-dregs.c: Include configh.h.
16633 * nat/linux-ptrace.c: Include configh.h.
16634 * nat/linux-btrace.c: Include configh.h.
16635 * defs.h: Include config.h, bfd.h.
16636 * configure.ac: Don't source common.host.
16637 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16638 * configure: Rebuild.
16639 * acinclude.m4: Update path.
16640 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16641 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16642 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16643 (CLIBS): Add LIBSUPPORT.
16645 (COMMON_SFILES): Remove gdbsupport files.
16646 (HFILES_NO_SRCDIR): Likewise.
16647 (stamp-version): Update path to create-version.sh.
16648 (ALLDEPFILES): Remove gdbsupport files.
16650 2020-01-14 Tom Tromey <tom@tromey.com>
16652 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16653 USE_WIN32API when needed.
16654 * configure.ac (USE_WIN32API): Don't define.
16655 (WIN32LIBS): Use WIN32APILIBS.
16656 * configure: Rebuild.
16658 2020-01-14 Tom Tromey <tom@tromey.com>
16660 * configure: Rebuild.
16661 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16663 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16665 * skip.c (skip_function_command): Make skip w/o arguments use the
16666 name of the inlined function if pc is inside any inlined function.
16668 2020-01-14 Luis Machado <luis.machado@linaro.org>
16670 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16671 * infrun.c (resume_1): Likewise.
16672 (handle_inferior_event): Remove stale comment.
16673 * linux-nat.c (linux_nat_target::resume): Update comments.
16674 (save_stop_reason): Likewise.
16675 (linux_nat_filter_event): Likewise.
16676 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16678 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16680 * elfread.c (record_minimal_symbol): Set section index to 0 for
16681 non-allocatable sections.
16684 2020-01-13 Ali Tamur <tamur@google.com>
16686 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16687 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16688 to gdb::optional. Update comments.
16689 (dwo_file): Update comments.
16690 (read_attribute): Update API to take an additional out parameter,
16691 need_reprocess. This is used to mark attributes that need other
16692 attributes (e.g. str_offsets_base) for correct computation which may not
16693 have been read yet.
16694 (read_attribute_reprocess): New function declaration.
16695 (read_addr_index): Likewise.
16696 (read_dwo_str_index): Likewise.
16697 (read_stub_str_index): Likewise.
16698 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16699 (lookup_addr_base): New function definition.
16700 (lookup_ranges_base): Likewise.
16701 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16702 lookup_ranges_base.
16703 (init_cutu_and_read_dies): Update comments.
16704 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16705 unit. This is used to inherit parent's str_offsets_base and addr_base.
16707 (init_cutu_and_read_dies_simple): Reflect API changes.
16708 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16709 (create_cus_hash_table): Change API to take parent compile unit.
16710 Reflect API changes.
16711 (open_and_init_dwo_file): Reflect API changes.
16712 (dwarf2_get_pc_bounds): Update comments.
16713 (dwarf2_record_block_ranges): Likewise.
16714 (read_full_die_1): Change implementation to reprocess attributes that
16715 need str_offsets_base and addr_base.
16716 (partial_die_info::read): Likewise.
16717 (read_attribute_reprocess): New function definition.
16718 (read_attribute_value): Change API to take an additional out parameter,
16719 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16720 when a non-dwo compile unit has index based attributes.
16721 (read_attribute): Reflect API changes.
16722 (read_addr_index_1): Reflect API changes. Update comments.
16723 (dwarf2_read_addr_index_data): Reflect API changes.
16724 (dwarf2_read_addr_index): Likewise.
16725 (read_str_index): Change API and implementation. This becomes a helper
16726 to be used by the new string index related methods. Update error
16727 message and comments.
16728 (read_dwo_str_index): New function definition.
16729 (read_stub_str_index): Likewise.
16730 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16731 * symfile.h (dwarf2_debug_sections): Likewise.
16732 * xcoffread.c (dwarf2_debug_sections): Likewise.
16734 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16736 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16737 core_reg_sect type to gdb_byte *.
16738 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16739 * cris-tdep.c (fetch_core_registers): Likewise.
16740 * corelow.c (core_target::get_core_register_section): Change
16741 type of `contents` to gdb::byte_vector.
16743 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16745 * tui/tui-wingeneral.c (box_win): Position the title in the center
16748 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16750 * corelow.c (core_target::get_core_register_section): Use
16751 std::vector instead of alloca.
16753 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16755 * warning.m4: Add -Wmissing-declarations to build_warnings.
16756 * configure: Re-generate.
16758 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16760 * python/python.c (init__gdb_module): Add declaration.
16762 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16764 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16765 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16766 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16767 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16768 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16769 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16770 * ada-exp.y (_initialize_ada_exp): Add declaration.
16771 * ada-lang.c (_initialize_ada_language): Add declaration.
16772 * ada-tasks.c (_initialize_tasks): Add declaration.
16773 * agent.c (_initialize_agent): Add declaration.
16774 * aix-thread.c (_initialize_aix_thread): Add declaration.
16775 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16776 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16777 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16778 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16779 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16780 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16781 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16782 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16783 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16784 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16785 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16786 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16787 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16788 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16789 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16790 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16791 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16792 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16793 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16794 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16795 * annotate.c (_initialize_annotate): Add declaration.
16796 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16797 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16798 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16799 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16800 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16801 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16802 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16803 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16804 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16805 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16806 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16807 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16808 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16809 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16810 * auto-load.c (_initialize_auto_load): Add declaration.
16811 * auxv.c (_initialize_auxv): Add declaration.
16812 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16813 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16814 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16815 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16816 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16817 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16818 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16819 * breakpoint.c (_initialize_breakpoint): Add declaration.
16820 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16821 * btrace.c (_initialize_btrace): Add declaration.
16822 * charset.c (_initialize_charset): Add declaration.
16823 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16824 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16825 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16826 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16827 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16828 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16829 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16830 * coffread.c (_initialize_coffread): Add declaration.
16831 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16832 * compile/compile.c (_initialize_compile): Add declaration.
16833 * complaints.c (_initialize_complaints): Add declaration.
16834 * completer.c (_initialize_completer): Add declaration.
16835 * copying.c (_initialize_copying): Add declaration.
16836 * corefile.c (_initialize_core): Add declaration.
16837 * corelow.c (_initialize_corelow): Add declaration.
16838 * cp-abi.c (_initialize_cp_abi): Add declaration.
16839 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16840 * cp-support.c (_initialize_cp_support): Add declaration.
16841 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16842 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16843 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16844 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16845 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16846 * ctfread.c (_initialize_ctfread): Add declaration.
16847 * d-lang.c (_initialize_d_language): Add declaration.
16848 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16849 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16850 * dbxread.c (_initialize_dbxread): Add declaration.
16851 * dcache.c (_initialize_dcache): Add declaration.
16852 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16853 * disasm.c (_initialize_disasm): Add declaration.
16854 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16855 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16856 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16857 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16858 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16859 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16860 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16861 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16862 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16863 * elfread.c (_initialize_elfread): Add declaration.
16864 * exec.c (_initialize_exec): Add declaration.
16865 * extension.c (_initialize_extension): Add declaration.
16866 * f-lang.c (_initialize_f_language): Add declaration.
16867 * f-valprint.c (_initialize_f_valprint): Add declaration.
16868 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16869 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16870 * filesystem.c (_initialize_filesystem): Add declaration.
16871 * findcmd.c (_initialize_mem_search): Add declaration.
16872 * findvar.c (_initialize_findvar): Add declaration.
16873 * fork-child.c (_initialize_fork_child): Add declaration.
16874 * frame-base.c (_initialize_frame_base): Add declaration.
16875 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16876 * frame.c (_initialize_frame): Add declaration.
16877 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16878 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16879 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16880 * gcore.c (_initialize_gcore): Add declaration.
16881 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16882 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16883 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16884 * gdbarch.c (_initialize_gdbarch): Add declaration.
16885 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16886 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16887 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16888 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16889 * go-lang.c (_initialize_go_language): Add declaration.
16890 * go32-nat.c (_initialize_go32_nat): Add declaration.
16891 * guile/guile.c (_initialize_guile): Add declaration.
16892 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16893 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16894 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16895 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16896 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16897 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16898 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16899 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16900 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16901 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16902 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16903 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16904 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16905 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16906 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16907 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16908 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16909 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16910 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16911 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16912 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16913 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16914 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16915 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16916 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16917 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16918 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16919 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16920 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16921 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16922 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16923 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16924 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16925 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16926 * infcall.c (_initialize_infcall): Add declaration.
16927 * infcmd.c (_initialize_infcmd): Add declaration.
16928 * inflow.c (_initialize_inflow): Add declaration.
16929 * infrun.c (_initialize_infrun): Add declaration.
16930 * interps.c (_initialize_interpreter): Add declaration.
16931 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16932 * jit.c (_initialize_jit): Add declaration.
16933 * language.c (_initialize_language): Add declaration.
16934 * linux-fork.c (_initialize_linux_fork): Add declaration.
16935 * linux-nat.c (_initialize_linux_nat): Add declaration.
16936 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16937 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16938 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16939 * m2-lang.c (_initialize_m2_language): Add declaration.
16940 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16941 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16942 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16943 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16944 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16945 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16946 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16947 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16948 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16949 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16950 * machoread.c (_initialize_machoread): Add declaration.
16951 * macrocmd.c (_initialize_macrocmd): Add declaration.
16952 * macroscope.c (_initialize_macroscope): Add declaration.
16953 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16954 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16955 * maint.c (_initialize_maint_cmds): Add declaration.
16956 * mdebugread.c (_initialize_mdebugread): Add declaration.
16957 * memattr.c (_initialize_mem): Add declaration.
16958 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16959 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16960 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16961 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16962 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16963 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16964 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16965 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16966 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16967 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16968 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16969 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16970 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16971 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16972 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16973 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16974 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16975 * mipsread.c (_initialize_mipsread): Add declaration.
16976 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16977 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16978 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16979 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16980 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16981 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16982 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16983 * nto-procfs.c (_initialize_procfs): Add declaration.
16984 * objc-lang.c (_initialize_objc_language): Add declaration.
16985 * observable.c (_initialize_observer): Add declaration.
16986 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16987 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16988 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16989 * osabi.c (_initialize_gdb_osabi): Add declaration.
16990 * osdata.c (_initialize_osdata): Add declaration.
16991 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16992 * parse.c (_initialize_parse): Add declaration.
16993 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16994 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16995 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16996 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16997 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16998 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16999 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17000 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17001 * printcmd.c (_initialize_printcmd): Add declaration.
17002 * probe.c (_initialize_probe): Add declaration.
17003 * proc-api.c (_initialize_proc_api): Add declaration.
17004 * proc-events.c (_initialize_proc_events): Add declaration.
17005 * proc-service.c (_initialize_proc_service): Add declaration.
17006 * procfs.c (_initialize_procfs): Add declaration.
17007 * producer.c (_initialize_producer): Add declaration.
17008 * psymtab.c (_initialize_psymtab): Add declaration.
17009 * python/python.c (_initialize_python): Add declaration.
17010 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17011 * record-btrace.c (_initialize_record_btrace): Add declaration.
17012 * record-full.c (_initialize_record_full): Add declaration.
17013 * record.c (_initialize_record): Add declaration.
17014 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17015 * regcache.c (_initialize_regcache): Add declaration.
17016 * reggroups.c (_initialize_reggroup): Add declaration.
17017 * remote-notif.c (_initialize_notif): Add declaration.
17018 * remote-sim.c (_initialize_remote_sim): Add declaration.
17019 * remote.c (_initialize_remote): Add declaration.
17020 * reverse.c (_initialize_reverse): Add declaration.
17021 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17022 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17023 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17024 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17025 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17026 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17027 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17028 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17030 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17031 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17032 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17033 * rust-exp.y (_initialize_rust_exp): Add declaration.
17034 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17035 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17036 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17037 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17038 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17039 * score-tdep.c (_initialize_score_tdep): Add declaration.
17040 * ser-go32.c (_initialize_ser_dos): Add declaration.
17041 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17042 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17043 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17044 * ser-uds.c (_initialize_ser_socket): Add declaration.
17045 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17046 * serial.c (_initialize_serial): Add declaration.
17047 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17048 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17049 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17050 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17051 * skip.c (_initialize_step_skip): Add declaration.
17052 * sol-thread.c (_initialize_sol_thread): Add declaration.
17053 * solib-aix.c (_initialize_solib_aix): Add declaration.
17054 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17055 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17056 * solib-frv.c (_initialize_frv_solib): Add declaration.
17057 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17058 * solib-target.c (_initialize_solib_target): Add declaration.
17059 * solib.c (_initialize_solib): Add declaration.
17060 * source-cache.c (_initialize_source_cache): Add declaration.
17061 * source.c (_initialize_source): Add declaration.
17062 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17063 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17064 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17065 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17066 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17067 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17068 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17069 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17070 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17071 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17072 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17073 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17074 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17075 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17076 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17077 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17078 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17079 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17080 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17081 * stabsread.c (_initialize_stabsread): Add declaration.
17082 * stack.c (_initialize_stack): Add declaration.
17083 * stap-probe.c (_initialize_stap_probe): Add declaration.
17084 * std-regs.c (_initialize_frame_reg): Add declaration.
17085 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17086 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17087 * symfile.c (_initialize_symfile): Add declaration.
17088 * symmisc.c (_initialize_symmisc): Add declaration.
17089 * symtab.c (_initialize_symtab): Add declaration.
17090 * target.c (_initialize_target): Add declaration.
17091 * target-connection.c (_initialize_target_connection): Add
17093 * target-dcache.c (_initialize_target_dcache): Add declaration.
17094 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17095 * thread.c (_initialize_thread): Add declaration.
17096 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17097 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17098 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17099 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17100 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17101 * tracectf.c (_initialize_ctf): Add declaration.
17102 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17103 * tracefile.c (_initialize_tracefile): Add declaration.
17104 * tracepoint.c (_initialize_tracepoint): Add declaration.
17105 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17106 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17107 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17108 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17109 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17110 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17111 * tui/tui.c (_initialize_tui): Add declaration.
17112 * typeprint.c (_initialize_typeprint): Add declaration.
17113 * ui-style.c (_initialize_ui_style): Add declaration.
17114 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17115 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17116 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17117 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17118 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17119 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17120 * unittests/filtered_iterator-selftests.c
17121 (_initialize_filtered_iterator_selftests): Add declaration.
17122 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17123 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17124 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17125 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17126 * unittests/main-thread-selftests.c
17127 (_initialize_main_thread_selftests): Add declaration.
17128 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17129 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17130 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17131 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17132 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17133 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17134 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17135 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17136 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17137 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17138 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17139 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17140 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17141 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17142 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17144 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17145 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17146 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17147 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17148 * user-regs.c (_initialize_user_regs): Add declaration.
17149 * utils.c (_initialize_utils): Add declaration.
17150 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17151 * valops.c (_initialize_valops): Add declaration.
17152 * valprint.c (_initialize_valprint): Add declaration.
17153 * value.c (_initialize_values): Add declaration.
17154 * varobj.c (_initialize_varobj): Add declaration.
17155 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17156 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17157 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17158 * windows-nat.c (_initialize_windows_nat): Add declaration.
17159 (_initialize_check_for_gdb_ini): Add declaration.
17160 (_initialize_loadable): Add declaration.
17161 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17162 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17163 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17164 * xcoffread.c (_initialize_xcoffread): Add declaration.
17165 * xml-support.c (_initialize_xml_support): Add declaration.
17166 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17167 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17168 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17169 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17171 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17173 * regformats/regdat.sh: Generate declaration for init function.
17175 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17177 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17179 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17180 close_one_inferior>: New methods.
17181 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17182 pass down target to find_inferior_pid.
17183 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17184 Pass down target to find_inferior_ptid.
17185 (gdbsim_target::create_inferior): Pass down target to
17187 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17188 target down to find_inferior_ptid and switch_to_thread.
17189 (gdbsim_target::close): Update to call close_one_inferior.
17190 (struct resume_data): Remove.
17191 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17192 directly, rather than through a void pointer.
17193 (gdbsim_target::resume): Update to call resume_one_inferior.
17195 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17197 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17199 2020-01-12 Pedro Alves <palves@redhat.com>
17201 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17202 directly for the current inferior instead of
17203 discard_all_inferiors.
17204 (discard_all_inferiors): Delete.
17206 2020-01-11 Tom Tromey <tom@tromey.com>
17208 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17209 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17210 deprecated_safe_get_selected_frame.
17212 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17214 * inferior.c (print_inferior): Switch inferior before printing it.
17216 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17217 Pedro Alves <palves@redhat.com>
17219 * progspace-and-thread.c (switch_to_program_space_and_thread):
17220 Assert there's an inferior for PSPACE. Use
17221 switch_to_inferior_no_thread to switch the inferior too.
17222 * progspace.c (program_space::~program_space): Call
17223 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17224 (program_space::free_all_objfiles): Don't call clear_symtab_users
17226 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17228 2020-01-10 Pedro Alves <palves@redhat.com>
17230 * NEWS: Mention multi-target debugging, "info connections", and
17231 "add-inferior -no-connection".
17233 2020-01-10 Pedro Alves <palves@redhat.com>
17235 * infrun.c: Include "target-connection.h".
17236 (check_multi_target_resumption): New.
17237 (proceed): Call it.
17238 * target-connection.c (make_target_connection_string): Make
17240 * target-connection.h (make_target_connection_string): Declare.
17242 2020-01-10 Pedro Alves <palves@redhat.com>
17244 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17245 * inferior.c (uiout_field_connection): New function.
17246 (print_inferior): Add new "connection-id" column.
17247 (add_inferior_command): Show connection number/string of added
17249 * process-stratum-target.h
17250 (process_stratum_target::connection_string): New virtual method.
17251 (process_stratum_target::connection_number): New field.
17252 * remote.c (remote_target::connection_string): New override.
17253 * target-connection.c: New file.
17254 * target-connection.h: New file.
17255 * target.c (decref_target): Remove process_stratum targets from
17256 the connection list.
17257 (target_stack::push): Add process_stratum targets to the
17260 2020-01-10 Pedro Alves <palves@redhat.com>
17263 2016-04-12 Pedro Alves <palves@redhat.com>
17264 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17265 Remove references to name.
17266 * serial.h (struct serial) <name>: Delete.
17268 2020-01-10 Pedro Alves <palves@redhat.com>
17270 * gdbarch-selftests.c (register_to_value_test): Remove "target
17271 already pushed" check.
17273 2020-01-10 Pedro Alves <palves@redhat.com>
17274 John Baldwin <jhb@FreeBSD.org>
17276 * aarch64-linux-nat.c
17277 (aarch64_linux_nat_target::thread_architecture): Adjust.
17278 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17279 (task_command_1): Likewise.
17280 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17281 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17282 (aix_thread_target::store_registers)
17283 (aix_thread_target::thread_alive): Adjust.
17284 * amd64-fbsd-tdep.c: Include "inferior.h".
17285 (amd64fbsd_get_thread_local_address): Pass down target.
17286 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17287 thread's gdbarch instead of target_gdbarch.
17288 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17289 get_last_target_status.
17290 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17291 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17293 (update_inserted_breakpoint_locations): Skip if inferiors with no
17295 (update_global_location_list): When handling moribund locations,
17296 find representative inferior for location's pspace, and use thread
17297 count of its process_stratum target.
17298 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17299 * bsd-uthread.c (bsd_uthread_target::wait): Use
17300 as_process_stratum_target and adjust thread_change_ptid and
17302 (bsd_uthread_target::update_thread_list): Use
17303 as_process_stratum_target and adjust find_thread_ptid,
17304 thread_change_ptid and add_thread calls.
17305 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17306 find_thread_ptid call.
17307 * corelow.c (add_to_thread_list): Adjust add_thread call.
17308 (core_target_open): Adjust add_thread_silent and thread_count
17310 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17311 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17312 * event-top.c (async_disconnect): Pop targets from all inferiors.
17313 * exec.c (add_target_sections): Push exec target on all inferiors
17314 sharing the program space.
17315 (remove_target_sections): Remove the exec target from all
17316 inferiors sharing the program space.
17317 (exec_on_vfork): New.
17318 * exec.h (exec_on_vfork): Declare.
17319 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17321 (fbsd_nat_target::update_thread_list): Adjust.
17322 (fbsd_nat_target::resume): Adjust.
17323 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17325 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17326 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17327 get_thread_arch_regcache call.
17328 * fork-child.c (gdb_startup_inferior): Pass target down to
17329 startup_inferior and set_executing.
17330 * gdbthread.h (struct process_stratum_target): Forward declare.
17331 (add_thread, add_thread_silent, add_thread_with_info)
17332 (in_thread_list): Add process_stratum_target parameter.
17333 (find_thread_ptid(inferior*, ptid_t)): New overload.
17334 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17336 (all_threads()): Delete overload.
17337 (all_threads, all_non_exited_threads): Add process_stratum_target
17339 (all_threads_safe): Use brace initialization.
17340 (thread_count): Add process_stratum_target parameter.
17341 (set_resumed, set_running, set_stop_requested, set_executing)
17342 (threads_are_executing, finish_thread_state): Add
17343 process_stratum_target parameter.
17344 (switch_to_thread): Use is_current_thread.
17345 * i386-fbsd-tdep.c: Include "inferior.h".
17346 (i386fbsd_get_thread_local_address): Pass down target.
17347 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17348 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17349 have_inferiors check.
17350 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17351 (inf_ptrace_target::attach): Adjust.
17352 * infcall.c (run_inferior_call): Adjust.
17353 * infcmd.c (run_command_1): Pass target to
17354 scoped_finish_thread_state.
17355 (proceed_thread_callback): Skip inferiors with no execution.
17356 (continue_command): Rename 'all_threads' local to avoid hiding
17357 'all_threads' function. Adjust get_last_target_status call.
17358 (prepare_one_step): Adjust set_running call.
17359 (signal_command): Use user_visible_resume_target. Compare thread
17360 pointers instead of inferior_ptid.
17361 (info_program_command): Adjust to pass down target.
17362 (attach_command): Mark target's 'thread_executing' flag.
17363 (stop_current_target_threads_ns): New, factored out from ...
17364 (interrupt_target_1): ... this. Switch inferior before making
17367 (struct all_inferiors_iterator, struct all_inferiors_range)
17368 (struct all_inferiors_safe_range)
17369 (struct all_non_exited_inferiors_range): Filter on
17370 process_stratum_target too. Remove explicit.
17371 * inferior.c (inferior::inferior): Push dummy target on target
17373 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17374 Add process_stratum_target parameter, and pass it down.
17375 (have_live_inferiors): Adjust.
17376 (switch_to_inferior_and_push_target): New.
17377 (add_inferior_command, clone_inferior_command): Handle
17378 "-no-connection" parameter. Use
17379 switch_to_inferior_and_push_target.
17380 (_initialize_inferior): Mention "-no-connection" option in
17381 the help of "add-inferior" and "clone-inferior" commands.
17382 * inferior.h: Include "process-stratum-target.h".
17383 (interrupt_target_1): Use bool.
17384 (struct inferior) <push_target, unpush_target, target_is_pushed,
17385 find_target_beneath, top_target, process_target, target_at,
17387 (discard_all_inferiors): Delete.
17388 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17389 (all_inferiors, all_non_exited_inferiors): Add
17390 process_stratum_target parameter.
17391 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17392 (target_last_proc_target): New global.
17393 (follow_fork_inferior): Push target on new inferior. Pass target
17394 to add_thread_silent. Call exec_on_vfork. Handle target's
17396 (follow_fork): Adjust get_last_target_status call. Also consider
17398 (follow_exec): Push target on new inferior.
17399 (struct execution_control_state) <target>: New field.
17400 (user_visible_resume_target): New.
17401 (do_target_resume): Call target_async.
17402 (resume_1): Set target's threads_executing flag. Consider resume
17404 (commit_resume_all_targets): New.
17405 (proceed): Also consider resume target. Skip threads of inferiors
17406 with no execution. Commit resumtion in all targets.
17407 (start_remote): Pass current inferior to wait_for_inferior.
17408 (infrun_thread_stop_requested): Consider target as well. Pass
17409 thread_info pointer to clear_inline_frame_state instead of ptid.
17410 (infrun_thread_thread_exit): Consider target as well.
17411 (random_pending_event_thread): New inferior parameter. Use it.
17412 (do_target_wait): Rename to ...
17413 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17415 (threads_are_resumed_pending_p, do_target_wait): New.
17416 (prepare_for_detach): Adjust calls.
17417 (wait_for_inferior): New inferior parameter. Handle it. Use
17418 do_target_wait_1 instead of do_target_wait.
17419 (fetch_inferior_event): Adjust. Switch to representative
17420 inferior. Pass target down.
17421 (set_last_target_status): Add process_stratum_target parameter.
17422 Save target in global.
17423 (get_last_target_status): Add process_stratum_target parameter and
17425 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17426 (context_switch): Check inferior_ptid == null_ptid before calling
17428 (get_inferior_stop_soon): Pass down target.
17429 (wait_one): Rename to ...
17430 (poll_one_curr_target): ... this.
17431 (struct wait_one_event): New.
17433 (stop_all_threads): Adjust.
17434 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17436 (switch_back_to_stepped_thread): Also consider target.
17437 (print_stop_event): Update.
17438 (normal_stop): Update. Also consider the resume target.
17439 * infrun.h (wait_for_inferior): Remove declaration.
17440 (user_visible_resume_target): New declaration.
17441 (get_last_target_status, set_last_target_status): New
17442 process_stratum_target parameter.
17443 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17444 process_stratum_target parameter, and use it.
17445 (clear_inline_frame_state (thread_info*)): New.
17446 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17447 process_stratum_target parameter.
17448 (clear_inline_frame_state (thread_info*)): Declare.
17449 * linux-fork.c (delete_checkpoint_command): Pass target down to
17451 (checkpoint_command): Adjust.
17452 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17453 instead of just tweaking inferior_ptid.
17454 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17455 (exit_lwp): Pass target down to find_thread_ptid.
17456 (attach_proc_task_lwp_callback): Pass target down to
17457 add_thread/set_running/set_executing.
17458 (linux_nat_target::attach): Pass target down to
17459 thread_change_ptid.
17460 (get_detach_signal): Pass target down to find_thread_ptid.
17461 Consider last target status's target.
17462 (linux_resume_one_lwp_throw, resume_lwp)
17463 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17464 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17465 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17466 (linux_nat_target::async_wait_fd): New.
17467 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17469 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17470 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17471 * linux-thread-db.c (struct thread_db_info::process_target): New
17473 (add_thread_db_info): Save target.
17474 (get_thread_db_info): New process_stratum_target parameter. Also
17476 (delete_thread_db_info): New process_stratum_target parameter.
17478 (thread_from_lwp): Adjust to pass down target.
17479 (thread_db_notice_clone): Pass down target.
17480 (check_thread_db_callback): Pass down target.
17481 (try_thread_db_load_1): Always push the thread_db target.
17482 (try_thread_db_load, record_thread): Pass target down.
17483 (thread_db_target::detach): Pass target down. Always unpush the
17485 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17486 target down. Always unpush the thread_db target.
17487 (find_new_threads_callback, thread_db_find_new_threads_2)
17488 (thread_db_target::update_thread_list): Pass target down.
17489 (thread_db_target::pid_to_str): Pass current inferior down.
17490 (thread_db_target::get_thread_local_address): Pass target down.
17491 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17493 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17494 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17495 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17496 (procfs_init_inferior): Rename to ...
17497 (procfs_target::procfs_init_inferior): ... this and adjust.
17498 (procfs_target::create_inferior, procfs_notice_thread)
17499 (procfs_do_thread_registers): Adjust.
17500 * ppc-fbsd-tdep.c: Include "inferior.h".
17501 (ppcfbsd_get_thread_local_address): Pass down target.
17502 * proc-service.c (ps_xfer_memory): Switch current inferior and
17503 program space as well.
17504 (get_ps_regcache): Pass target down.
17505 * process-stratum-target.c
17506 (process_stratum_target::thread_address_space)
17507 (process_stratum_target::thread_architecture): Pass target down.
17508 * process-stratum-target.h
17509 (process_stratum_target::threads_executing): New field.
17510 (as_process_stratum_target): New.
17511 * ravenscar-thread.c
17512 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17513 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17515 * record-btrace.c (record_btrace_target::info_record): Adjust.
17516 (record_btrace_target::record_method)
17517 (record_btrace_target::record_is_replaying)
17518 (record_btrace_target::fetch_registers)
17519 (get_thread_current_frame_id, record_btrace_target::resume)
17520 (record_btrace_target::wait, record_btrace_target::stop): Pass
17522 * record-full.c (record_full_wait_1): Switch to event thread.
17524 * regcache.c (regcache::regcache)
17525 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17526 process_stratum_target parameter and handle it.
17527 (current_thread_target): New global.
17528 (get_thread_regcache): Add process_stratum_target parameter and
17529 handle it. Switch inferior before calling target method.
17530 (get_thread_regcache): Pass target down.
17531 (get_thread_regcache_for_ptid): Pass target down.
17532 (registers_changed_ptid): Add process_stratum_target parameter and
17534 (registers_changed_thread, registers_changed): Pass target down.
17535 (test_get_thread_arch_aspace_regcache): New.
17536 (current_regcache_test): Define a couple local test_target_ops
17537 instances and use them for testing.
17538 (readwrite_regcache): Pass process_stratum_target parameter.
17539 (cooked_read_test, cooked_write_test): Pass mock_target down.
17540 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17541 (get_thread_arch_aspace_regcache): Add process_stratum_target
17543 (regcache::target): New method.
17544 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17545 (regcache::registers_changed_ptid): Add process_stratum_target
17547 (regcache::m_target): New field.
17548 (registers_changed_ptid): Add process_stratum_target parameter.
17549 * remote.c (remote_state::supports_vCont_probed): New field.
17550 (remote_target::async_wait_fd): New method.
17551 (remote_unpush_and_throw): Add remote_target parameter.
17552 (get_current_remote_target): Adjust.
17553 (remote_target::remote_add_inferior): Push target.
17554 (remote_target::remote_add_thread)
17555 (remote_target::remote_notice_new_inferior)
17556 (get_remote_thread_info): Pass target down.
17557 (remote_target::update_thread_list): Skip threads of inferiors
17558 bound to other targets. (remote_target::close): Don't discard
17559 inferiors. (remote_target::add_current_inferior_and_thread)
17560 (remote_target::process_initial_stop_replies)
17561 (remote_target::start_remote)
17562 (remote_target::remote_serial_quit_handler): Pass down target.
17563 (remote_target::remote_unpush_target): New remote_target
17564 parameter. Unpush the target from all inferiors.
17565 (remote_target::remote_unpush_and_throw): New remote_target
17566 parameter. Pass it down.
17567 (remote_target::open_1): Check whether the current inferior has
17568 execution instead of checking whether any inferior is live. Pass
17570 (remote_target::remote_detach_1): Pass down target. Use
17571 remote_unpush_target.
17572 (extended_remote_target::attach): Pass down target.
17573 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17574 (remote_target::append_resumption): Pass down target.
17575 (remote_target::append_pending_thread_resumptions)
17576 (remote_target::remote_resume_with_hc, remote_target::resume)
17577 (remote_target::commit_resume): Pass down target.
17578 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17579 (remote_target::interrupt_query)
17580 (remote_target::remove_new_fork_children)
17581 (remote_target::check_pending_events_prevent_wildcard_vcont)
17582 (remote_target::remote_parse_stop_reply)
17583 (remote_target::process_stop_reply): Pass down target.
17584 (first_remote_resumed_thread): New remote_target parameter. Pass
17586 (remote_target::wait_as): Pass down target.
17587 (unpush_and_perror): New remote_target parameter. Pass it down.
17588 (remote_target::readchar, remote_target::remote_serial_write)
17589 (remote_target::getpkt_or_notif_sane_1)
17590 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17592 (remote_target::mourn_inferior): Pass down target. Use
17593 remote_unpush_target.
17594 (remote_target::core_of_thread)
17595 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17596 (remote_target::pid_to_exec_file)
17597 (remote_target::thread_handle_to_thread_info): Pass down target.
17598 (remote_target::async_wait_fd): New.
17599 * riscv-fbsd-tdep.c: Include "inferior.h".
17600 (riscv_fbsd_get_thread_local_address): Pass down target.
17601 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17602 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17603 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17605 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17606 * solib-svr4.c (enable_break): Pass down target.
17607 * spu-multiarch.c (parse_spufs_run): Pass down target.
17608 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17609 * target-delegates.c: Regenerate.
17610 * target.c (g_target_stack): Delete.
17611 (current_top_target): Return the current inferior's top target.
17612 (target_has_execution_1): Refer to the passed-in inferior's top
17614 (target_supports_terminal_ours): Check whether the initial
17615 inferior was already created.
17616 (decref_target): New.
17617 (target_stack::push): Incref/decref the target.
17618 (push_target, push_target, unpush_target): Adjust.
17619 (target_stack::unpush): Defref target.
17620 (target_is_pushed): Return bool. Adjust to refer to the current
17621 inferior's target stack.
17622 (dispose_inferior): Delete, and inline parts ...
17623 (target_preopen): ... here. Only dispose of the current inferior.
17624 (target_detach): Hold strong target reference while detaching.
17626 (target_thread_name): Add assertion.
17627 (target_resume): Pass down target.
17628 (target_ops::beneath, find_target_at): Adjust to refer to the
17629 current inferior's target stack.
17630 (get_dummy_target): New.
17631 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17632 has a thread running.
17633 (initialize_targets): Rename to ...
17634 (_initialize_target): ... this.
17635 * target.h: Include "gdbsupport/refcounted-object.h".
17636 (struct target_ops): Inherit refcounted_object.
17637 (target_ops::shortname, target_ops::longname): Make const.
17638 (target_ops::async_wait_fd): New method.
17639 (decref_target): Declare.
17640 (struct target_ops_ref_policy): New.
17641 (target_ops_ref): New typedef.
17642 (get_dummy_target): Declare function.
17643 (target_is_pushed): Return bool.
17644 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17645 (all_matching_threads_iterator::all_matching_threads_iterator):
17646 Handle filter target.
17647 * thread-iter.h (struct all_matching_threads_iterator, struct
17648 all_matching_threads_range, class all_non_exited_threads_range):
17649 Filter by target too. Remove explicit.
17650 * thread.c (threads_executing): Delete.
17651 (inferior_thread): Pass down current inferior.
17652 (clear_thread_inferior_resources): Pass down thread pointer
17654 (add_thread_silent, add_thread_with_info, add_thread): Add
17655 process_stratum_target parameter. Use it for thread and inferior
17657 (is_current_thread): New.
17658 (thread_info::deletable): Use it.
17659 (find_thread_ptid, thread_count, in_thread_list)
17660 (thread_change_ptid, set_resumed, set_running): New
17661 process_stratum_target parameter. Pass it down.
17662 (set_executing): New process_stratum_target parameter. Pass it
17663 down. Adjust reference to 'threads_executing'.
17664 (threads_are_executing): New process_stratum_target parameter.
17665 Adjust reference to 'threads_executing'.
17666 (set_stop_requested, finish_thread_state): New
17667 process_stratum_target parameter. Pass it down.
17668 (switch_to_thread): Also match inferior.
17669 (switch_to_thread): New process_stratum_target parameter. Pass it
17671 (update_threads_executing): Reimplement.
17672 * top.c (quit_force): Pop targets from all inferior.
17673 (gdb_init): Don't call initialize_targets.
17674 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17676 (windows_add_thread, windows_delete_thread): Adjust.
17677 (get_windows_debug_event): Rename to ...
17678 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17679 * tracefile-tfile.c (tfile_target_open): Pass down target.
17680 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17682 (switch_to_thread): Add process_stratum_target parameter.
17683 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17685 (mi_on_resume): Pass target down.
17686 * nat/fork-inferior.c (startup_inferior): Add
17687 process_stratum_target parameter. Pass it down.
17688 * nat/fork-inferior.h (startup_inferior): Add
17689 process_stratum_target parameter.
17690 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17692 2020-01-10 Pedro Alves <palves@redhat.com>
17694 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17695 directly. Instead find the first thread in the thread list and
17696 use switch_to_thread.
17698 2020-01-10 Pedro Alves <palves@redhat.com>
17700 * remote.c (remote_target::remote_add_inferior): Don't bind a
17701 process to the current inferior if the current inferior is already
17702 bound to a process.
17704 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17705 Pedro Alves <palves@redhat.com>
17707 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17708 If no process is specified, return null_ptid instead of
17710 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17711 TARGET_WAITKIND_SIGNALLED with no pid.
17713 2020-01-10 Pedro Alves <palves@redhat.com>
17715 * remote.c (first_remote_resumed_thread): New.
17716 (remote_target::wait_as): Use it as default event_ptid instead of
17719 2020-01-10 Pedro Alves <palves@redhat.com>
17721 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17723 2020-01-10 Pedro Alves <palves@redhat.com>
17725 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17728 2020-01-10 Pedro Alves <palves@redhat.com>
17730 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17731 ptid to get_last_target_status.
17732 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17733 ptid to get_last_target_status.
17734 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17735 get_last_target_status.
17736 (info_program_command): Don't pass a target_waitstatus to
17737 get_last_target_status.
17738 * infrun.c (init_wait_for_inferior): Use
17739 nullify_last_target_wait_ptid.
17740 (get_last_target_status): Handle nullptr arguments.
17741 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17742 (print_stop_event): Don't pass a ptid to get_last_target_status.
17743 (normal_stop): Don't pass a ptid to get_last_target_status.
17744 * infrun.h (get_last_target_status, set_last_target_status): Move
17745 comments here and update.
17746 (nullify_last_target_wait_ptid): Declare.
17747 * linux-fork.c (fork_load_infrun_state): Remove local extern
17748 declaration of nullify_last_target_wait_ptid.
17749 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17750 to get_last_target_status.
17752 2020-01-10 Pedro Alves <palves@redhat.com>
17754 * gdbthread.h (scoped_restore_current_thread)
17755 <dont_restore, restore, m_dont_restore>: Declare.
17756 * thread.c (thread_alive): Add assertion. Return bool.
17757 (switch_to_thread_if_alive): New.
17758 (prune_threads): Switch inferior/thread.
17759 (print_thread_info_1): Switch thread before calling target methods.
17760 (scoped_restore_current_thread::restore): New, factored out from
17762 (scoped_restore_current_thread::~scoped_restore_current_thread):
17764 (scoped_restore_current_thread::scoped_restore_current_thread):
17766 (thread_apply_all_command, thread_select): Use
17767 switch_to_thread_if_alive.
17768 * infrun.c (proceed, restart_threads, handle_signal_stop)
17769 (switch_back_to_stepped_thread): Switch current thread before
17770 calling target methods.
17772 2020-01-10 Pedro Alves <palves@redhat.com>
17774 * inferior.c (switch_to_inferior_no_thread): New function,
17775 factored out from ...
17776 (inferior_command): ... here.
17777 * inferior.h (switch_to_inferior_no_thread): Declare.
17778 * mi/mi-main.c (run_one_inferior): Use
17779 switch_to_inferior_no_thread.
17781 2020-01-10 Pedro Alves <palves@redhat.com>
17783 * infcmd.c (kill_command): Remove dead code.
17785 2020-01-10 Pedro Alves <palves@redhat.com>
17787 * remote.c (remote_target::mourn_inferior): No longer check
17788 whether the target is running.
17790 2020-01-10 Pedro Alves <palves@redhat.com>
17792 * corelow.c (core_target::has_execution): Change parameter type to
17794 * inferior.c (number_of_live_inferiors): Use
17795 inferior::has_execution instead of target_has_execution_1.
17796 * inferior.h (inferior::has_execution): New.
17797 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17798 inferior::has_execution instead of target_has_execution_1.
17799 * process-stratum-target.c
17800 (process_stratum_target::has_execution): Change parameter type to
17801 inferior pointer. Check the inferior's PID instead of
17803 * process-stratum-target.h
17804 (process_stratum_target::has_execution): Change parameter type to
17806 * record-full.c (record_full_core_target::has_execution): Change
17807 parameter type to inferior pointer.
17808 * target.c (target_has_execution_1): Change parameter type to
17810 (target_has_execution_current): Adjust.
17811 * target.h (target_ops::has_execution): Change parameter type to
17813 (target_has_execution_1): Change parameter type to inferior
17814 pointer. Change return type to bool.
17815 * tracefile.h (tracefile_target::has_execution): Change parameter
17816 type to inferior pointer.
17818 2020-01-10 Pedro Alves <palves@redhat.com>
17820 * exceptions.c (print_flush): Remove current_top_target() check.
17822 2020-01-10 Pedro Alves <palves@redhat.com>
17824 * remote.c (show_remote_exec_file): Show the current inferior's
17825 exec-file instead of the command variable's value.
17827 2020-01-10 Pedro Alves <palves@redhat.com>
17829 * record-full.c (record_full_resume_ptid): New global.
17830 (record_full_target::resume): Set it.
17831 (record_full_wait_1): Use record_full_resume_ptid instead of
17834 2020-01-10 Pedro Alves <palves@redhat.com>
17836 * gdbthread.h (scoped_restore_current_thread)
17837 <dont_restore, restore, m_dont_restore>: Declare.
17838 * thread.c (thread_alive): Add assertion. Return bool.
17839 (switch_to_thread_if_alive): New.
17840 (prune_threads): Switch inferior/thread.
17841 (print_thread_info_1): Switch thread before calling target methods.
17842 (scoped_restore_current_thread::restore): New, factored out from
17844 (scoped_restore_current_thread::~scoped_restore_current_thread):
17846 (scoped_restore_current_thread::scoped_restore_current_thread):
17848 (thread_apply_all_command, thread_select): Use
17849 switch_to_thread_if_alive.
17851 2020-01-10 George Barrett <bob@bob131.so>
17853 * stap-probe.c (stap_modify_semaphore): Don't check for null
17855 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17856 for null semaphores.
17858 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17860 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17861 all source windows, and maintain horizontal scroll status while
17864 2020-01-09 Tom Tromey <tom@tromey.com>
17867 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17868 update_source_window, not print_source_lines.
17870 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17872 * tui/tui.c (tui_enable): Register tui hooks after calling
17875 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17877 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17879 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17881 * thread.c (print_thread_info_1): Fix indentation.
17883 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17885 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17886 unique_xmalloc_ptr outside the if to always free the demangled name.
17888 2020-01-08 Tom Tromey <tromey@adacore.com>
17890 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17891 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17892 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17893 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17895 (section_offsets): New typedef.
17896 * symtab.c (fixup_section, get_msymbol_address): Update.
17897 * symmisc.c (dump_msymbols): Update.
17898 * symfile.h (relative_addr_info_to_section_offsets)
17899 (symfile_map_offsets_to_segments): Update.
17900 * symfile.c (build_section_addr_info_from_objfile)
17901 (init_objfile_sect_indices): Update.
17902 (struct place_section_arg): Change type of "offsets".
17903 (place_section): Update.
17904 (relative_addr_info_to_section_offsets): Change type of
17905 "section_offsets". Remove "num_sections" parameter.
17906 (default_symfile_offsets, syms_from_objfile_1)
17907 (set_objfile_default_section_offset): Update.
17908 (reread_symbols): No need to preserve section offsets by hand.
17909 (symfile_map_offsets_to_segments): Change type of "offsets".
17910 * stap-probe.c (relocate_address): Update.
17911 * stabsread.h (process_one_symbol): Update.
17912 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17913 (solib_target_relocate_section_addresses): Update.
17914 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17916 * solib-frv.c (frv_relocate_main_executable): Update.
17917 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17918 * solib-aix.c (solib_aix_get_section_offsets): Change return
17920 (solib_aix_solib_create_inferior_hook): Update.
17921 * remote.c (remote_target::get_offsets): Update.
17922 * psymtab.c (find_pc_sect_psymtab): Update.
17923 * psympriv.h (struct partial_symbol) <address, text_low,
17924 text_high>: Update.
17925 * objfiles.h (obj_section_offset): Update.
17926 (struct objfile) <section_offsets>: Change type.
17927 <num_sections>: Remove.
17928 (objfile_relocate): Update.
17929 * objfiles.c (entry_point_address_query): Update
17930 (relocate_one_symbol): Change type of "section_offsets".
17931 (objfile_relocate1, objfile_relocate1): Change type of
17933 (objfile_rebase1): Update.
17934 * mipsread.c (mipscoff_symfile_read): Update.
17935 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17937 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17938 (parse_external, psymtab_to_symtab_1): Update.
17939 * machoread.c (macho_symfile_offsets): Update.
17940 * ia64-tdep.c (ia64_find_unwind_table): Update.
17941 * hppa-tdep.c (read_unwind_info): Update.
17942 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17943 * dwarf2read.c (create_addrmap_from_index)
17944 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17945 (process_psymtab_comp_unit_reader, add_partial_symbol)
17946 (add_partial_subprogram, process_full_comp_unit)
17947 (read_file_scope, read_func_scope, read_lexical_block_scope)
17948 (read_call_site_scope, dwarf2_rnglists_process)
17949 (dwarf2_ranges_process, dwarf2_ranges_read)
17950 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17951 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17953 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17955 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17956 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17957 (process_one_symbol): Change type of "section_offsets".
17958 * ctfread.c (get_objfile_text_range): Update.
17959 * coffread.c (coff_symtab_read, enter_linenos)
17960 (process_coff_symbol): Update.
17961 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17962 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17964 2020-01-08 Tom Tromey <tromey@adacore.com>
17966 * dwarf2read.c (parse_macro_definition): Use std::string.
17967 (parse_macro_definition): Likewise.
17969 2020-01-08 Tom Tromey <tromey@adacore.com>
17971 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17972 (ATTR_ALLOC_CHUNK): Remove.
17974 2020-01-08 Tom Tromey <tromey@adacore.com>
17976 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17978 2020-01-08 Tom Tromey <tromey@adacore.com>
17980 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17981 (dwarf2_compute_name, open_dwo_file): Likewise.
17982 (process_enumeration_scope): Use std::vector.
17983 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17984 (partial_die_info::fixup, dwarf2_start_subfile)
17985 (guess_full_die_structure_name, dwarf2_name): Likewise.
17986 (determine_prefix): Update.
17987 (guess_full_die_structure_name): Make return type const.
17988 (partial_die_full_name): Return unique_xmalloc_ptr.
17989 (DW_FIELD_ALLOC_CHUNK): Remove.
17991 2020-01-07 Tom Tromey <tromey@adacore.com>
17994 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17996 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17998 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18000 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18002 * stack.c (print_frame_info): Move disassemble_next_line code
18003 inside source_print block.
18005 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18007 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18008 gdb/signals.h, as we are now using native signal symbols.
18010 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18012 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18013 overflow by an early check of content vs threshold.
18014 * tui/tui-source.c (tui_source_window::line_is_displayed):
18017 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18019 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18021 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18023 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18024 export table if no section contains it's RVA.
18026 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18028 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18030 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
18032 * source.c (print_source_lines_base): Set last_line_listed.
18034 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18036 * tui/tui-disasm.c: Remove trailing spaces.
18038 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18039 Pedro Alves <palves@redhat.com>
18041 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18042 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18043 (windows_gdb_signal_to_target): New function, uses the above
18044 enumeration to convert GDB internal signal codes to equivalent
18046 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18047 * windows-nat.c: Include "gdb_wait.h".
18048 (get_windows_debug_event): Extract the fatal exception from the
18049 exit status and convert to the equivalent Posix signal number.
18050 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18051 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18052 * gdbsupport/gdb_wait.c: New file, implements
18053 windows_status_to_termsig.
18054 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18055 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18057 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18059 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18062 2020-01-05 Luis Machado <luis.machado@linaro.org>
18064 * aarch64-linux-nat.c
18065 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18066 and bfd_mach_aarch64.
18068 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18070 * ui-file.c (stdio_file::can_emit_style_escape)
18071 (tee_file::can_emit_style_escape): Ensure style is used also on
18072 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18074 * main.c (set_gdb_data_directory): Use file style to output the
18075 warning that the given pathname is not a directory.
18076 * top.c (show_history_filename, gdb_safe_append_history)
18077 (show_gdb_datadir): Use file style.
18079 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18081 * solib-target.c (struct lm_info_target):
18082 Change offsets to be a unique_xmalloc_ptr.
18083 (solib_target_relocate_section_addresses): Update.
18085 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18087 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18089 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18091 * MAINTAINERS (Write After Approval): Add myself.
18093 2020-01-02 Luis Machado <luis.machado@linaro.org>
18095 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18096 Cell BE architecture.
18097 * target.h (struct target_ops) <thread_architecture>: Likewise.
18099 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18101 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18103 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18105 * MAINTAINERS (Write After Approval): Add myself.
18107 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18109 * gdbarch.sh: Update copyright year range of generated files.
18111 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18113 Update copyright year range in all GDB files.
18115 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18117 * copyright.py: Convert to Python 3.
18119 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18121 * copyright.py: Adapt after move of gnulib directory from gdb
18122 directory to toplevel directory.
18124 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18126 * copyright.py (main): Exit if run from the wrong directory.
18128 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18130 * top.c (print_gdb_version): Change copyright year to 2020.
18132 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18134 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18136 For older changes see ChangeLog-2019.
18142 version-control: never