1 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
3 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
4 command.h, add extra parameter, and use this to guard giving a
6 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
7 include argument names in declaration, add new argument.
8 * completer.c (complete_line_internal_1): Remove unneeded
9 brackets, pass extra argument to lookup_cmd_1.
11 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
13 * infrun.h (debug_infrun): Make a bool.
14 * infrun.c (debug_infrun): Make a bool.
15 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
18 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
20 * displaced-stepping.h (displaced_debug_printf): Use
21 debug_prefixed_printf_cond.
22 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
23 (dwarf_read_debug_printf_v): Likewise.
24 * infrun.h (infrun_debug_printf): Likewise.
25 * linux-nat.c (linux_nat_debug_printf): Likewise.
27 2020-12-11 Tom Tromey <tom@tromey.com>
29 * p-exp.y (intvar): Remove global.
30 (DOLLAR_VARIABLE): Change type.
32 (exp): Call write_dollar_variable here...
33 (yylex): ... not here.
34 * m2-exp.y (DOLLAR_VARIABLE): Change type.
35 (variable): Call write_dollar_variable here...
36 (yylex): ... not here.
37 * f-exp.y (DOLLAR_VARIABLE): Change type.
38 (exp): Call write_dollar_variable here...
39 (yylex): ... not here.
41 2020-12-11 Tom Tromey <tom@tromey.com>
43 * varobj.c (varobj_create): Update.
44 (install_variable): Return void.
46 2020-12-11 Tom Tromey <tom@tromey.com>
48 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
50 2020-12-11 Tom Tromey <tom@tromey.com>
52 * varobj.c (varobj_clear_saved_item): Remove.
53 (update_dynamic_varobj_children): Update.
54 (varobj::~varobj): Don't call varobj_clear_saved_item.
56 2020-12-11 Tom Tromey <tom@tromey.com>
58 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
59 (update_dynamic_varobj_children, create_child)
60 (create_child_with_value): Update.
61 * varobj-iter.h (struct varobj_item) <value>: Now a
63 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
65 2020-12-11 Tom Tromey <tom@tromey.com>
67 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
68 (varobj_get_iterator): Return unique_ptr.
69 (update_dynamic_varobj_children, install_visualizer)
70 (varobj::~varobj): Update.
71 * python/python-internal.h (py_varobj_get_iterator): Return
73 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
75 2020-12-11 Tom Tromey <tom@tromey.com>
77 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
78 (varobj_clear_saved_item, update_dynamic_varobj_children):
81 2020-12-11 Tom Tromey <tom@tromey.com>
83 * varobj.c (update_dynamic_varobj_children): Update.
84 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
85 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
87 (py_varobj_iter::next): Likewise.
89 2020-12-11 Tom Tromey <tom@tromey.com>
91 * varobj.c (update_dynamic_varobj_children, install_visualizer)
92 (varobj::~varobj): Update.
93 * varobj-iter.h (struct varobj_iter): Change to interface class.
94 (struct varobj_iter_ops): Remove.
95 (varobj_iter_next, varobj_iter_delete): Remove.
96 * python/py-varobj.c (struct py_varobj_iter): Derive from
97 varobj_iter. Add constructor, destructor. Rename members.
98 (py_varobj_iter::~py_varobj_iter): Rename from
100 (py_varobj_iter::next): Rename from py_varobj_iter_next.
101 (py_varobj_iter_ops): Remove.
102 (py_varobj_iter): Rename from py_varobj_iter_ctor.
103 (py_varobj_iter_new): Remove.
104 (py_varobj_get_iterator): Update.
106 2020-12-11 Tom Tromey <tom@tromey.com>
108 * varobj.h (all_root_varobjs): Take a function_view.
109 * varobj.c (all_root_varobjs): Take a function_view.
110 (varobj_invalidate_iter): Remove unused parameter.
111 (varobj_invalidate): Update.
112 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
113 (mi_cmd_var_update_iter): Change parameters.
115 2020-12-11 Tom Tromey <tom@tromey.com>
117 * varobj.c (struct varobj_root) <next>: Remove.
118 (struct vlist): Remove.
119 (rootlist): Now a std::list.
120 (install_variable, uninstall_variable, all_root_varobjs): Update.
122 2020-12-11 Tom Tromey <tom@tromey.com>
124 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
125 (varobj_table): Now htab_t.
126 (varobj_get_handle, install_variable, uninstall_variable):
128 (hash_varobj, eq_varobj_and_string): New functions.
129 (hash_varobj): Update.
131 2020-12-11 Tom Tromey <tom@tromey.com>
133 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
134 * ada-lang.c (check_status_exception): Update.
135 * breakpoint.c (free_bp_location): Remove.
136 (decref_bp_location): Use bp_location_ref_policy.
137 (bpstats::bpstats): Don't call incref_bp_location.
138 (bpstats::~bpstats): Remove.
139 (bpstats::bpstats): Update.
140 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
141 (bp_location::bp_location): Update.
142 (incref_bp_location): Remove.
143 (bkpt_print_it): Update.
144 * breakpoint.h (class bp_location): Derive from
146 (struct bpstats): Remove destructor.
147 <bp_location_at>: Now a bp_location_ref_ptr.
149 (bp_location_ref_ptr): New typedef.
150 (struct bp_location_ref_policy): New.
152 2020-12-11 Tom Tromey <tom@tromey.com>
154 * thread.c (class scoped_inc_dec_ref): Remove.
155 (tp_array_compar_ascending, tp_array_compar_descending): Change
157 (thread_apply_all_command): Use thread_info_ref.
159 2020-12-11 Tom Tromey <tom@tromey.com>
161 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
162 (stop_context::stop_context): Update.
163 (stop_context::~stop_context): Remove.
165 2020-12-11 Tom Tromey <tom@tromey.com>
167 * inferior.c (current_inferior_): Change type.
168 (current_inferior, set_current_inferior, initialize_inferiors):
171 2020-12-11 Tom Tromey <tom@tromey.com>
173 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
176 2020-12-11 Tom Tromey <tromey@adacore.com>
178 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
180 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
181 (read_atcb): Use cpu_id_offset.
183 2020-12-10 Kevin Buettner <kevinb@redhat.com>
185 * ada-lang.c (ada_fold_name): Fix off-by-one error.
187 2020-12-10 Luis Machado <luis.machado@linaro.org>
189 * breakpoint.c (should_be_inserted): Don't output newline.
191 2020-12-10 Luis Machado <luis.machado@linaro.org>
193 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
194 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
195 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
196 * arch/aarch64.h: ... here.
197 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
198 (aarch64_maybe_swab128): New function.
199 (aarch64_sve_regs_copy_to_reg_buf)
200 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
201 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
203 (TF_REG_VALUE_BYTES): New enum value.
204 (trad_frame_value_bytes_p): New function.
205 (trad_frame_set_value_bytes): New function.
206 (trad_frame_set_reg_value_bytes): New function.
207 (trad_frame_get_prev_register): Handle register values saved as bytes.
208 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
209 (struct trad_frame_saved_reg) <data>: New field.
210 (trad_frame_set_value_bytes): New prototype.
211 (trad_frame_value_bytes_p): New prototype.
213 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
215 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
216 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
217 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
219 2020-12-09 Tom Tromey <tromey@adacore.com>
221 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
223 2020-12-09 Tom Tromey <tromey@adacore.com>
225 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
226 and "denominator" to gdb_mpz. Handle block forms.
227 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
228 "denominator" to gdb_mpz.
229 (finish_fixed_point_type): Update.
230 (has_zero_over_zero_small_attribute): Update.
232 2020-12-09 Tom Tromey <tromey@adacore.com>
234 * expprint.c (op_name): Update.
235 * expression.h (enum exp_opcode): Update.
236 * std-operator.def: Add more opcodes.
237 * ada-operator.def, fortran-operator.def: Remove, moving contents
238 into std-operator.def.
240 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
242 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
243 Return {} instead of false.
244 (get_discrete_bounds): Compute high bound only if low bound is
247 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
250 * gdbtypes.c (get_discrete_low_bound): Make non-static.
251 (get_discrete_high_bound): Make non-static.
252 * gdbtypes.h (get_discrete_low_bound): New declaration.
253 (get_discrete_high_bound): New declaration.
254 * valarith.c (value_subscript): Only fetch high bound if
257 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
259 * gdbtypes.c (get_discrete_bounds): Implement with
260 get_discrete_low_bound and get_discrete_high_bound.
261 (get_discrete_low_bound): New.
262 (get_discrete_high_bound): New.
264 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
266 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
268 * gdbtypes.c (get_discrete_bounds): Return bool.
270 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
272 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
273 (ada_value_slice): Adjust.
275 * gdbtypes.c (get_discrete_bounds): Adjust.
276 (discrete_position): Return optional.
277 * gdbtypes.h (discrete_position): Return optional.
279 2020-12-07 Tom Tromey <tromey@adacore.com>
281 * maint.c (_initialize_maint_cmds): Use expression command
282 completer for "maint print type".
284 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
286 * completer.c (complete_explicit_location): Also add keywords
287 that start with '-' to the completion list.
289 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
291 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
292 keyword may be followed by any keyword.
293 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
294 'toklen' in the case for "-force-condition".
296 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
298 * main.c (catch_command_errors): Add a flag parameter; invoke
299 `bpstat_do_actions` if the flag is set.
300 (execute_cmdargs): Update a call to `catch_command_errors`.
302 2020-12-07 Tom de Vries <tdevries@suse.de>
304 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
306 2020-12-06 Tom Tromey <tom@tromey.com>
309 * ada-lang.c (replace_operator_with_call): Rewrite.
311 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
314 * s390-tdep.h (op_bc): Correct BC opcode value.
316 2020-12-06 Joel Brobecker <brobecker@adacore.com>
318 * gmp-utils.h (gdb_mpz::safe_export): New private method.
319 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
320 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
321 (gdb_mpz::safe_export): New method.
322 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
323 Update function description.
324 (check_as_integer_raises_out_of_range_error): New function.
325 (gdb_mpz_as_integer_out_of_range): New function.
326 (_initialize_gmp_utils_selftests): Register
327 gdb_mpz_as_integer_out_of_range as a selftest.
329 2020-12-05 Joel Brobecker <brobecker@adacore.com>
331 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
333 (gdb_mpz::write): Likewise.
335 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
337 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
338 number of displaced step buffers.
340 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
342 * displaced-stepping.h (struct displaced_step_buffer): Rename
344 (struct displaced_step_buffers): ... this.
345 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
346 <struct displaced_step_buffer>: New inner class.
348 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
350 (displaced_step_buffers::prepare): ... this, adjust for multiple
352 (displaced_step_buffer::finish): Rename to...
353 (displaced_step_buffers::finish): ... this, adjust for multiple
355 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
356 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
357 adjust for multiple buffers.
358 (displaced_step_buffer::restore_in_ptid): Rename to...
359 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
361 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
362 for num_disp_step_buffers.
363 * linux-tdep.c (struct linux_gdbarch_data)
364 <num_disp_step_buffers>: New field.
365 (struct linux_info) <disp_step_buf>: Rename to...
366 <disp_step_bufs>: ... this, change type to
367 displaced_step_buffers.
368 (linux_displaced_step_prepare): Use
369 linux_gdbarch_data::num_disp_step_buffers to create that number
371 (linux_displaced_step_finish): Adjust.
372 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
373 (linux_displaced_step_restore_all_in_ptid): Adjust.
374 (linux_init_abi): Change supports_displaced_step parameter for
375 num_disp_step_buffers, save it in linux_gdbarch_data.
376 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
377 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
378 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
379 supports_displaced_step parameter for num_disp_step_buffers.
380 (amd64_linux_init_abi): Adjust.
381 (amd64_x32_linux_init_abi): Adjust.
382 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
383 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
384 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
385 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
386 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
387 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
388 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
389 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
390 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
391 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
392 * m68k-linux-tdep.c (m68k_linux_init_abi):
393 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
394 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
395 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
396 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
397 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
398 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
399 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
400 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
401 Change type to displaced_step_buffers.
402 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
403 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
404 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
405 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
406 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
407 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
408 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
410 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
412 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
414 (_initialize_linux_tdep): Register pre-init gdb data instead of
417 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
419 * displaced-stepping.h (struct
420 displaced_step_copy_insn_closure): Adjust comments.
421 (struct displaced_step_inferior_state) <step_thread,
422 step_gdbarch, step_closure, step_original, step_copy,
423 step_saved_copy>: Remove fields.
424 (struct displaced_step_thread_state): New.
425 (struct displaced_step_buffer): New.
426 * displaced-stepping.c (displaced_step_buffer::prepare): New.
427 (write_memory_ptid): Move from infrun.c.
428 (displaced_step_instruction_executed_successfully): New,
429 factored out of displaced_step_finish.
430 (displaced_step_buffer::finish): New.
431 (displaced_step_buffer::copy_insn_closure_by_addr): New.
432 (displaced_step_buffer::restore_in_ptid): New.
433 * gdbarch.sh (displaced_step_location): Remove.
434 (displaced_step_prepare, displaced_step_finish,
435 displaced_step_copy_insn_closure_by_addr,
436 displaced_step_restore_all_in_ptid): New.
437 * gdbarch.c: Re-generate.
438 * gdbarch.h: Re-generate.
439 * gdbthread.h (class thread_info) <displaced_step_state>: New
441 (thread_step_over_chain_remove): New declaration.
442 (thread_step_over_chain_next): New declaration.
443 (thread_step_over_chain_length): New declaration.
444 * thread.c (thread_step_over_chain_remove): Make non-static.
445 (thread_step_over_chain_next): New.
446 (global_thread_step_over_chain_next): Use
447 thread_step_over_chain_next.
448 (thread_step_over_chain_length): New.
449 (global_thread_step_over_chain_enqueue): Add debug print.
450 (global_thread_step_over_chain_remove): Add debug print.
451 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
453 * infrun.c (get_displaced_stepping_state): New.
454 (displaced_step_in_progress_any_inferior): Remove.
455 (displaced_step_in_progress_thread): Adjust.
456 (displaced_step_in_progress): Adjust.
457 (displaced_step_in_progress_any_thread): New.
458 (get_displaced_step_copy_insn_closure_by_addr): Remove.
459 (gdbarch_supports_displaced_stepping): Use
460 gdbarch_displaced_step_prepare_p.
461 (displaced_step_reset): Change parameter from inferior to
463 (displaced_step_prepare_throw): Implement using
464 gdbarch_displaced_step_prepare.
465 (write_memory_ptid): Move to displaced-step.c.
466 (displaced_step_restore): Remove.
467 (displaced_step_finish): Implement using
468 gdbarch_displaced_step_finish.
469 (start_step_over): Allow starting more than one displaced step.
470 (prepare_for_detach): Handle possibly multiple threads doing
472 (handle_inferior_event): Handle possibility that fork event
473 happens while another thread displaced steps.
474 * linux-tdep.h (linux_displaced_step_prepare): New.
475 (linux_displaced_step_finish): New.
476 (linux_displaced_step_copy_insn_closure_by_addr): New.
477 (linux_displaced_step_restore_all_in_ptid): New.
478 (linux_init_abi): Add supports_displaced_step parameter.
479 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
480 (linux_displaced_step_prepare): New.
481 (linux_displaced_step_finish): New.
482 (linux_displaced_step_copy_insn_closure_by_addr): New.
483 (linux_displaced_step_restore_all_in_ptid): New.
484 (linux_init_abi): Add supports_displaced_step parameter,
485 register displaced step methods if true.
486 (_initialize_linux_tdep): Register inferior_execd observer.
487 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
488 supports_displaced_step parameter, adjust call to
489 linux_init_abi. Remove call to
490 set_gdbarch_displaced_step_location.
491 (amd64_linux_init_abi): Adjust call to
492 amd64_linux_init_abi_common.
493 (amd64_x32_linux_init_abi): Likewise.
494 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
495 linux_init_abi. Remove call to
496 set_gdbarch_displaced_step_location.
497 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
498 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
499 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
501 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
502 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
503 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
504 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
505 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
506 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
507 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
508 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
509 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
510 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
511 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
512 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
513 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
514 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
515 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
516 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
517 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
518 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
519 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
520 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
521 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
522 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
523 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
524 linux_init_abi. Remove call to
525 set_gdbarch_displaced_step_location.
526 * arm-tdep.c (arm_pc_is_thumb): Call
527 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
528 get_displaced_step_copy_insn_closure_by_addr.
529 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
530 clear gdbarch methods.
531 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
532 (get_ppc_per_inferior): New function.
533 (ppc_displaced_step_prepare): New function.
534 (ppc_displaced_step_finish): New function.
535 (ppc_displaced_step_restore_all_in_ptid): New function.
536 (rs6000_gdbarch_init): Register new gdbarch methods.
537 * s390-tdep.c (s390_gdbarch_init): Don't call
538 set_gdbarch_displaced_step_location, set new gdbarch methods.
540 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
542 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
543 * aarch64-tdep.h: Include displaced-stepping.h.
544 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
546 (displaced_step_copy_insn_closure_up): Move here.
547 (struct buf_displaced_step_copy_insn_closure): Move here.
548 (struct displaced_step_inferior_state): Move here.
549 (debug_displaced): Move here.
550 (displaced_debug_printf_1): Move here.
551 (displaced_debug_printf): Move here.
552 * displaced-stepping.c: New file.
553 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
554 * gdbarch.h: Re-generate.
555 * inferior.h: Include displaced-stepping.h.
556 * infrun.h (debug_displaced): Move to displaced-stepping.h.
557 (displaced_debug_printf_1): Likewise.
558 (displaced_debug_printf): Likewise.
559 (struct displaced_step_copy_insn_closure): Likewise.
560 (displaced_step_copy_insn_closure_up): Likewise.
561 (struct buf_displaced_step_copy_insn_closure): Likewise.
562 (struct displaced_step_inferior_state): Likewise.
563 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
564 (displaced_debug_printf_1): Likewise.
565 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
567 (_initialize_infrun): Don't register "set/show debug displaced".
569 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
571 * linux-tdep.c (get_linux_inferior_data): Add inferior
573 (linux_vsyscall_range): Pass current inferior.
575 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
577 * infrun.c (displaced_step_prepare_throw): Change return type to
578 displaced_step_prepare_status.
579 (displaced_step_prepare): Likewise.
580 (displaced_step_finish): Change return type to
581 displaced_step_finish_status.
583 (stop_all_threads): Adjust.
584 * displaced-stepping.h: New file.
586 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
588 * infrun.c (displaced_step_fixup): Rename to...
589 (displaced_step_finish): ... this, update all callers.
591 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
593 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
594 (get_displaced_step_copy_insn_closure_by_addr): ... this.
596 (displaced_step_closure): Rename to...
597 (displaced_step_copy_insn_closure): ... this. Update all users.
598 (displaced_step_closure_up): Rename to...
599 (displaced_step_copy_insn_closure_up). ... this. Update all
601 (buf_displaced_step_closure): Rename to...
602 (buf_displaced_step_copy_insn_closure): ... this. Update all
604 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
605 (get_displaced_step_copy_insn_closure_by_addr): ... this.
607 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
608 (aarch64_displaced_step_copy_insn_closure): ... this. Update
610 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
611 (amd64_displaced_step_copy_insn_closure): ... this. Update all
613 * arm-tdep.h (arm_displaced_step_closure): Rename to...
614 (arm_displaced_step_copy_insn_closure): ... this. Update all
616 * i386-tdep.h (i386_displaced_step_closure): Rename to...
617 (i386_displaced_step_copy_insn_closure): ... this. Update all
619 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
620 (ppc_displaced_step_copy_insn_closure): ... this. Update all
622 * s390-tdep.c (s390_displaced_step_closure): Rename to...
623 (s390_displaced_step_copy_insn_closure): ... this. Update all
625 * gdbarch.h: Re-generate.
626 * gdbarch.c: Re-generate.
628 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
630 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
631 (global_thread_step_over_chain_enqueue): ... this. Update all
633 (thread_step_over_chain_remove): Rename to...
634 (global_thread_step_over_chain_remove): ... this. Update all
636 (thread_step_over_chain_next): Rename to...
637 (global_thread_step_over_chain_next): ... this. Update all
639 * infrun.h (step_over_queue_head): Rename to...
640 (global_thread_step_over_chain_head): ... this. Update all
642 * infrun.c (step_over_queue_head): Rename to...
643 (global_thread_step_over_chain_head): ... this. Update all
645 * thread.c (step_over_chain_remove): Rename to...
646 (thread_step_over_chain_remove): ... this. Update all users.
647 (thread_step_over_chain_next): Rename to...
648 (global_thread_step_over_chain_next): ... this. Update all
650 (thread_step_over_chain_enqueue): Rename to...
651 (global_thread_step_over_chain_enqueue): ... this. Update all
653 (thread_step_over_chain_remove): Rename to...
654 (global_thread_step_over_chain_remove): ... this. Update all
657 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
659 * infrun.c (get_displaced_stepping_state): Remove, change
660 callers to access the field directly.
662 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
664 * infrun.c (handle_inferior_event): Restore displaced step
665 buffer bytes in child process when handling fork, even if fork
666 happened in another thread than the displaced-stepping one.
668 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
670 * infrun.c (infrun_inferior_execd): New function.
671 (_initialize_infrun): Attach inferior_execd observer.
673 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
675 * observable.h (inferior_execd): Declare new observable.
676 * observable.c (inferior_execd): Declare new observable.
677 * infrun.c (follow_exec): Notify inferior_execd observer.
678 * jit.c (jit_inferior_created_hook): Make static.
679 (_initialize_jit): Register inferior_execd observer.
680 * jit.h (jit_inferior_created_hook): Remove declaration.
681 * solib.c (_initialize_solib): Register inferior_execd observer.
683 2020-12-04 Tom de Vries <tdevries@suse.de>
686 * completer.c (completion_tracker::build_completion_result): Don't
687 access match_list[0][-1].
689 2020-12-04 Tom Tromey <tromey@adacore.com>
691 * linespec.c (struct linespec_token): Rename; remove typedef.
692 * guile/scm-block.c (struct block_smob): Remove typedef.
693 (struct block_syms_progress_smob): Likewise.
694 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
695 * guile/scm-symtab.c (symtab_smob): Remove typedef.
696 (struct sal_smob): Remove typedef.
697 * guile/scm-param.c (struct param_smob): Remove typedef.
698 * guile/scm-progspace.c (struct pspace_smob): Rename.
699 * guile/scm-objfile.c (struct objfile_smob): Rename.
700 * guile/scm-iterator.c (struct iterator_smob): Rename.
701 * guile/scm-frame.c (struct frame_smob): Rename.
702 * guile/scm-arch.c (struct arch_smob): Rename.
703 * guile/scm-type.c (struct field_smob): Remove typedef.
704 (struct type_smob): Rename.
705 * guile/scm-cmd.c (struct command_smob): Remove typedef.
706 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
707 * guile/scm-value.c (struct value_smob): Remove typedef.
708 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
709 * guile/guile-internal.h (struct scheme_variable)
710 (struct scheme_function, struct scheme_integer_constant)
711 (struct gdb_smob, struct chained_gdb_smob)
712 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
713 (objfile_smob, pspace_smob, type_smob): Remove typedef.
714 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
715 (struct pretty_printer_worker_smob): Remove typedef.
716 * guile/scm-exception.c (struct exception_smob): Remove typedef.
717 * python/py-block.c (struct block_object): Remove typedef.
718 (block_syms_iterator_object): Update.
720 (block_syms_iterator_object): Remove typedef.
721 * python/py-inferior.c (struct membuf_object): Remove typedef.
722 * python/py-symtab.c (struct symtab_object): Remove typedef.
723 (set_symtab): Update.
724 (sal_object): Remove typedef.
726 * python/py-frame.c (frame_object): Remove typedef.
727 * python/py-record-btrace.c (struct btpy_list_object): Remove
729 * python/py-arch.c (struct arch_object): Remove typedef.
730 * python/py-linetable.c (struct linetable_entry_object)
731 (linetable_object, struct ltpy_iterator_object): Remove typedef.
732 * python/py-events.h (eventregistry_object): Remove typedef.
733 (struct events_object): Remove typedef.
734 * python/python-internal.h (gdbpy_breakpoint_object): Remove
736 (thread_object): Remove typedef.
737 * python/py-progspace.c (pspace_object): Remove typedef.
738 * python/py-value.c (struct value_object): Remove typedef.
739 * python/py-record.h (recpy_record_object): Remove typedef.
740 (struct recpy_element_object): Remove typedef.
741 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
742 * python/py-objfile.c (objfile_object): Remove typedef.
743 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
744 * python/py-type.c (type_object): Remove typedef.
745 (typy_iterator_object): Update.
747 (field_object): Remove typedef.
748 (typy_iterator_object): Remove typedef.
749 * python/py-registers.c (register_descriptor_iterator_object):
751 (struct register_descriptor_object)
752 (struct reggroup_iterator_object, struct reggroup_object): Remove
754 * python/py-record.c (recpy_gap_object): Remove typedef.
755 * python/py-symbol.c (symbol_object): Remove typedef.
756 (set_symbol): Update.
757 * python/py-event.h (event_object): Remove typedef.
758 * python/py-param.c (parmpy_object): Remove typedef.
759 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
760 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
761 (unwind_info_object, struct cached_frame_info): Likewise.
763 2020-12-04 Tom Tromey <tromey@adacore.com>
765 * value.c (value_internal_function_name): Make return type const.
766 * value.h (value_internal_function_name): Make return type const.
768 2020-12-04 Luis Machado <luis.machado@linaro.org>
770 * aarch64-tdep.c (submask, bit, bits): Remove.
771 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
772 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
773 (aarch64_decode_cb, aarch64_decode_tb)
774 (aarch64_decode_ldr_literal): Use sbits to extract a signed
776 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
778 2020-12-04 Tom de Vries <tdevries@suse.de>
781 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
783 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
786 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
787 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
789 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
791 * arch/riscv.c: Include 'rv32e-xregs.c'.
792 (riscv_create_target_description): Update to handle rv32e.
793 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
795 <operator==>: Update to account for new field.
797 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
798 * features/riscv/rv32e-xregs.c: Generated.
799 * features/riscv/rv32e-xregs.xml: New file.
800 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
802 (riscv_debug_infcall): Likewise.
803 (riscv_debug_unwinder): Likewise.
804 (riscv_debug_gdbarch): Likewise.
805 (enum riscv_register_required_status): Delete.
806 (struct riscv_register_feature): Add constructor, delete default
807 constructor, copy, and assign constructors.
808 (struct riscv_register_feature::register_info) <required>: Delete.
809 <check>: Update comment and arguments.
810 (struct riscv_register_feature) <name>: Change to member function.
811 <prefer_first_name>: Delete.
812 <tdesc_feature>: New member function.
813 <registers>: Rename to...
814 <m_registers>: ...this.
815 <m_feature_name>: New member variable.
816 (riscv_register_feature::register_info::check): Update arguments.
817 (riscv_xreg_feature): Rewrite as class, create a single static
818 instance of the class.
819 (riscv_freg_feature): Likewise.
820 (riscv_virtual_feature): Likewise.
821 (riscv_csr_feature): Likewise.
822 (riscv_create_csr_aliases): Has become a member function inside
823 riscv_csr_feature class.
824 (riscv_abi_embedded): New function definition.
825 (riscv_register_name): Adjust to use new feature objects.
826 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
827 and adjust available argument registers.
828 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
829 (riscv_check_tdesc_feature): Delete.
830 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
831 (riscv_gdbarch_init): Delete target description checking code, and
832 instead call to the new feature objects to perform the checks.
833 Reorder handling of no abi information case, allows small code
835 (_initialize_riscv_tdep): Remove call, this is now done in the
836 riscv_csr_feature constructor.
837 * riscv-tdep.h (riscv_abi_embedded): Declare.
839 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
841 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
844 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
846 * riscv-tdep.c (riscv_is_unknown_csr): New function,
847 implementation moved from riscv_register_reggroup_p.
848 (riscv_register_reggroup_p): Update group handling for unknown
851 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
853 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
854 (dwarf2_get_dwz_file): Convert 'filename' to a
855 std::string. Use dwz_search_other_debugdirs to search for DWZ
856 files in the debug-file-directories provided by the user as well.
858 2020-12-01 Tom Tromey <tom@tromey.com>
860 * parse.c (expr_builder::expr_builder): Initialize expout.
861 (expr_builder::release): Use expression::resize.
862 (expression::expression, expression::~expression)
863 (expression::resize): New methods.
864 (write_exp_elt): Use expression::resize.
865 (prefixify_expression): Update.
866 (increase_expout_size): Use expression::resize.
867 * expression.h (struct expression): Add constructor, destructor.
868 <resize>: New method.
869 (expression_up): Change type.
871 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
872 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
873 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
876 2020-11-30 Tom de Vries <tdevries@suse.de>
879 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
880 is_reference parameter.
881 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
883 2020-11-30 Tom Tromey <tom@tromey.com>
885 * rust-lang.c (rust_op_name): Remove.
886 (exp_descriptor_rust): Update.
887 * parser-defs.h (op_name_standard): Don't declare.
888 (struct exp_descriptor) <op_name>: Remove.
889 * parse.c (exp_descriptor_standard): Update.
890 * opencl-lang.c (exp_descriptor_opencl): Update.
891 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
892 * f-lang.c (op_name_f): Remove.
893 (f_language::exp_descriptor_tab): Update.
894 * expression.h (op_name): Update.
895 * expprint.c (op_name): Rewrite.
896 (op_name_standard): Remove.
897 (dump_raw_expression, dump_subexp): Update.
898 * c-lang.c (exp_descriptor_c): Update.
899 * ax-gdb.c (gen_expr): Update.
900 * ada-lang.c (ada_op_name): Remove.
901 (ada_exp_descriptor): Update.
903 2020-11-30 Tom Tromey <tom@tromey.com>
905 * eval.c (init_array_element): Remove.
906 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
908 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
911 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
912 static locator win info.
914 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
916 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
919 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
921 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
922 is always initialized.
924 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
925 * MAINTAINERS (Write After Approval): Add myself.
927 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
929 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
930 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
932 2020-11-25 Tom Tromey <tom@tromey.com>
934 * eval.c (evaluate_subexp_standard): Remove unnecessary
937 2020-11-25 Tom Tromey <tom@tromey.com>
939 * d-lang.c: Include parser-defs.h.
940 * rust-lang.c: Include parser-defs.h.
941 * c-lang.h: Do not include parser-defs.h.
943 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
945 * regcache.h (struct cached_reg): Remove typedef.
947 2020-11-24 Joel Brobecker <brobecker@adacore.com>
949 * README: Fix the URL of the MPFR library.
951 2020-11-24 Joel Brobecker <brobecker@adacore.com>
953 * README: Document the --with-libgmp-prefix configure option.
955 2020-11-24 Joel Brobecker <brobecker@adacore.com>
957 * NEWS: Add entry documenting support for DWARF-based fixed
960 2020-11-24 Joel Brobecker <brobecker@adacore.com>
962 * NEWS: Document that building GDB now requires GMP.
964 2020-11-24 Joel Brobecker <brobecker@adacore.com>
966 * typeprint.c (print_type_scalar): Add handling of
967 TYPE_CODE_FIXED_POINT.
969 2020-11-24 Joel Brobecker <brobecker@adacore.com>
971 * valarith.c (fixed_point_binop): Replace the
972 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
975 2020-11-24 Joel Brobecker <brobecker@adacore.com>
977 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
978 replacing fixed_point_scaling_factor. All callers updated
979 throughout this project.
980 (fixed_point_scaling_factor): Delete declaration.
981 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
982 fixed_point_scaling_factor. Adjust implementation accordingly.
984 2020-11-24 Joel Brobecker <brobecker@adacore.com>
986 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
987 replacing the fixed_point_type_base_type function. All callers
988 updated throughout this project.
989 (fixed_point_type_base_type): Remove declaration.
990 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
991 fixed_point_type_base_type. Adjust implementation accordingly.
993 2020-11-24 Joel Brobecker <brobecker@adacore.com>
995 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
997 (INIT_FIXED_POINT_SPECIFIC): Adjust.
998 (TYPE_FIXED_POINT_INFO): Delete macro.
999 (allocate_fixed_point_type_info): Change return type to void.
1000 * gdbtypes.c (copy_type_recursive): Replace the use of
1001 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1002 (fixed_point_scaling_factor): Likewise.
1003 (allocate_fixed_point_type_info): Change return type to void.
1004 Adjust implementation accordingly.
1005 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1006 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1008 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1010 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1011 into one single gdb::array_view parameter.
1012 (gdb_mpz::write): Likewise.
1013 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1014 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1015 into one single gdb::array_view parameter.
1016 Adjust implementation accordingly.
1017 (gdb_mpz::write): Likewise.
1018 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1019 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1020 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1022 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1024 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1025 Change return type to std::string. Update all callers.
1026 * gmp-utils.c (gmp_string_printf): Likewise.
1028 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1030 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1031 instead of mpq_set_ui to initialize our GMP rational.
1033 2020-11-23 Tom de Vries <tdevries@suse.de>
1035 * debuginfod-support.c (debuginfod_source_query)
1036 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1038 2020-11-21 Tom Tromey <tom@tromey.com>
1040 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1042 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1044 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1046 (gdb_mpz_write_all_from_small): Likewise.
1048 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1050 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1053 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1055 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1056 ctf_arc_open_by_name.
1058 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1060 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1061 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1063 2020-11-20 Pedro Alves <pedro@palves.net>
1065 * language.c (language_arch_info::lookup_primitive_type): Use
1066 gdb::function_view instead of gdb::function.
1067 (template language_lookup_primitive_type): Rename to ...
1068 (language_lookup_primitive_type_1): ... this, and make static.
1069 (language_lookup_primitive_type(const struct language_defn *,
1070 struct gdbarch *, const char *): Make non-template.
1071 (language_lookup_primitive_type(const struct language_defn *,
1072 struct gdbarch *, std::function<bool (struct type *)>): Make
1073 non-template and use gdb::function_view.
1074 * language.h (language_arch_info::lookup_primitive_type): Use
1075 gdb::function_view instead of std::function.
1076 (language_lookup_primitive_type): No longer template.
1077 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1078 lambda instead of a std::function.
1080 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1083 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1086 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1088 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1090 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1092 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1093 in `loop_cb` parameter.
1094 * gdbarch.c: Re-generate.
1095 * gdbarch.h: Re-generate.
1096 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1098 * arch-utils.h (default_read_core_file_mappings): Likewise.
1099 * corelow.c (core_target::build_file_mappings): Likewise.
1100 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1101 (linux_core_info_proc_mappings): Likewise.
1103 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1105 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1106 * NEWS: Mention new options.
1107 * f-array-walker.h: New file.
1108 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1109 (repack_array_slices): New static global.
1110 (show_repack_array_slices): New function.
1111 (fortran_array_slicing_debug): New static global.
1112 (show_fortran_array_slicing_debug): New function.
1113 (value_f90_subarray): Delete.
1114 (skip_undetermined_arglist): Delete.
1115 (class fortran_array_repacker_base_impl): New class.
1116 (class fortran_lazy_array_repacker_impl): New class.
1117 (class fortran_array_repacker_impl): New class.
1118 (fortran_value_subarray): Complete rewrite.
1119 (set_fortran_list): New static global.
1120 (show_fortran_list): Likewise.
1121 (_initialize_f_language): Register new commands.
1122 (fortran_adjust_dynamic_array_base_address_hack): New function.
1123 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1125 * f-valprint.c: Include 'f-array-walker.h'.
1126 (class fortran_array_printer_impl): New class.
1127 (f77_print_array_1): Delete.
1128 (f77_print_array): Delete.
1129 (fortran_print_array): New.
1130 (f_value_print_inner): Update to call fortran_print_array.
1131 * gdbtypes.c: Include 'f-lang.h'.
1132 (resolve_dynamic_type_internal): Call
1133 fortran_adjust_dynamic_array_base_address_hack.
1135 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1137 * breakpoint.c (struct watch_options): New struct.
1138 (watch_option_defs): New static global.
1139 (make_watch_options_def_group): New function.
1140 (watch_maybe_just_location): Convert option parsing.
1141 (watch_command_completer): New function.
1142 (_initialize_breakpoint): Build help text using options mechanism.
1144 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1146 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1147 (watch_command_1): Update parameter types. Convert locals to
1149 (watch_command_wrapper): Change parameter type.
1150 (watch_maybe_just_location): Change locals to bool.
1151 (rwatch_command_wrapper): Update parameter type.
1152 (awatch_command_wrapper): Update parameter type.
1153 * breakpoint.h (watch_command_wrapper): Change parameter type.
1154 (rwatch_command_wrapper): Update parameter type.
1155 (awatch_command_wrapper): Update parameter type.
1156 * eval.c (fetch_subexp_value): Change parameter type.
1157 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1159 * value.h (fetch_subexp_value): Change parameter type in
1162 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1164 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1167 2020-11-18 Keith Seitz <keiths@redhat.com>
1169 * linux-tdep.c (dump_note_entry_p): Return true instead of
1170 checking `filename'.
1172 2020-11-18 Tom de Vries <tdevries@suse.de>
1174 * debuginfod-support.c (debuginfod_source_query)
1175 (debuginfod_debuginfo_query): Also do early exit if
1176 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1178 2020-11-18 Tom de Vries <tdevries@suse.de>
1180 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1183 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1185 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1186 callers. Move doc here.
1187 * gdbtypes.c (get_array_bounds): Return bool
1189 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1191 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1193 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1194 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1195 case to the default.
1197 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1199 * printcmd.c: Include 'safe-ctype.c'.
1200 (skip_over_slash_fmt): New function.
1201 (print_command_completer): Call skip_over_slash_fmt.
1202 (display_and_x_command_completer): New function.
1203 (_initialize_printcmd): Add command completion for 'x' and
1206 2020-11-16 Pedro Alves <pedro@palves.net>
1208 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1209 (get_prev_frame_always_1): ... to here.
1210 * inline-frame.c (inline_frame_this_id): Mention
1211 get_prev_frame_always_1 in comment.
1213 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1215 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1217 (value_less): Add fixed-point handling.
1219 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1221 * eval.c (binop_promote): Add fixed-point type handling.
1222 * valarith.c (fixed_point_binop): New function.
1223 (scalar_binop): Add fixed-point type handling.
1224 (value_neg): Add fixed-point type handling.
1225 * valops.c (value_cast_to_fixed_point): New function.
1226 (value_cast): Add fixed-point type handling.
1228 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1230 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1232 * c-typeprint.c (c_type_print_varspec_prefix)
1233 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1234 TYPE_CODE_FIXED_POINT handling.
1235 * p-typeprint.c (pascal_type_print_varspec_prefix)
1236 (pascal_type_print_varspec_suffix): Likewise.
1237 * typeprint.c (print_type_fixed_point): New function.
1238 * typeprint.h (print_type_fixed_point): Add declaration.
1240 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1242 * printcmd.c (print_scalar_formatted): Add fixed-point type
1243 handling when options->format is set.
1245 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1247 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1248 * dwarf2/read.c (get_dwarf2_rational_constant)
1249 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1250 (has_zero_over_zero_small_attribute): New functions.
1251 read_base_type, set_die_type): Add fixed-point type handling.
1252 * gdb-gdb.py.in: Add fixed-point type handling.
1253 * gdbtypes.c: #include "gmp-utils.h".
1254 (create_range_type, set_type_code): Add fixed-point type handling.
1255 (init_fixed_point_type): New function.
1256 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1257 (print_fixed_point_type_info): New function.
1258 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1260 (fixed_point_type_storage): New typedef.
1261 (fixed_point_objfile_key): New static global.
1262 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1263 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1265 * gdbtypes.h: #include "gmp-utils.h".
1266 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1267 (union type_specific) <fixed_point_info>: New field.
1268 (struct fixed_point_type_info): New struct.
1269 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1270 (init_fixed_point_type, is_fixed_point_type)
1271 (fixed_point_type_base_type, fixed_point_scaling_factor)
1272 (allocate_fixed_point_type_info): Add declarations.
1273 * valprint.c (generic_val_print_fixed_point): New function.
1274 (generic_value_print): Add fixed-point type handling.
1275 * value.c (value_as_address, unpack_long): Add fixed-point type
1278 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1280 * utils.h (uinteger_pow): Add declaration.
1281 * utils.c (uinteger_pow): Moved here (without changes)...
1282 * valarith.c (uinteger_pow): ... from here.
1284 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1286 * gmp-utils.h, gmp-utils.c: New file.
1287 * unittests/gmp-utils-selftests.c: New file.
1288 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1289 unittests/gmp-utils-selftests.c.
1290 (COMMON_SFILES) Add gmp-utils.c.
1291 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1293 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1295 * configure.ac: Generate an error if a usable GMP library
1297 * configure: Regenerate.
1299 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1301 * configure.ac: Add support for --with-libgmp-prefix.
1302 * Makefile.in (LIBGMP): New variable.
1303 (CLIBS): Include $(LIBGMP).
1304 * configure, config.in: Regenerate
1306 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1309 * f-exp.y (COMPLETE): New token.
1310 (exp): Two new rules for tab-completion.
1311 (saw_name_at_eof): New static global.
1312 (last_was_structop): Likewise.
1313 (yylex): Set new variables, and return COMPLETE token at the end
1314 of the input stream in some cases.
1316 2020-11-14 Tom Tromey <tom@tromey.com>
1318 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1320 2020-11-14 Tom Tromey <tom@tromey.com>
1322 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1324 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1326 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1328 2020-11-13 Tom Tromey <tom@tromey.com>
1330 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1331 (convert_escape, parse_one_string): Constify.
1333 2020-11-13 Keith Seitz <keiths@redhat.com>
1335 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1336 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1337 outside of ELF segments" warning for debugin
1339 2020-11-13 Keith Seitz <keiths@redhat.com>
1342 * elfread.c (elf_symfile_segments): Output a BFD file name
1343 for the "Loadable section ... outside of ELF segments" warning.
1345 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1348 * arm-tdep.c (class arm_instruction_reader): New.
1349 (target_arm_instruction_reader): New.
1350 (arm_analyze_prologue): Add instruction reader parameter and use
1351 it. Use arm_expand_immediate.
1352 (class target_arm_instruction_reader): Adjust.
1353 (arm_skip_prologue): Adjust.
1354 (arm_expand_immediate): New.
1355 (arm_scan_prologue): Adjust.
1356 (arm_analyze_prologue_test): New.
1357 (class test_arm_instruction_reader): New.
1359 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1361 * f-lang.c (fortran_argument_convert): Add declaration. Add
1362 header comment, taken from f-lang.h. Make static.
1363 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1364 (fortran_argument_convert): Delete declaration.
1366 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1368 * ada-exp.y (find_primitive_type): Make parameter const.
1369 * ada-lang.c (enum ada_primitive_types): Delete.
1370 (ada_language::language_arch_info): Update.
1371 * c-lang.c (enum c_primitive_types): Delete.
1372 (c_language_arch_info): Update.
1373 (enum cplus_primitive_types): Delete.
1374 (cplus_language::language_arch_info): Update.
1375 * d-lang.c (enum d_primitive_types): Delete.
1376 (d_language::language_arch_info): Update.
1377 * f-lang.c (enum f_primitive_types): Delete.
1378 (f_language::language_arch_info): Update.
1379 * go-lang.c (enum go_primitive_types): Delete.
1380 (go_language::language_arch_info): Update.
1381 * language.c (auto_or_unknown_language::language_arch_info):
1383 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1384 (language_string_char_type): Add header comment, call function in
1386 (language_bool_type): Likewise
1387 (language_arch_info::bool_type): Define.
1388 (language_lookup_primitive_type_1): Delete.
1389 (language_lookup_primitive_type): Rewrite as a templated function
1390 to call function in language_arch_info, then instantiate twice.
1391 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1392 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1393 (language_arch_info::lookup_primitive_type): Define twice with
1394 different signatures.
1395 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1396 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1397 member function in language_arch_info.
1398 * language.h (language_arch_info): Complete rewrite.
1399 (language_lookup_primitive_type): Make templated.
1400 * m2-lang.c (enum m2_primitive_types): Delete.
1401 (m2_language::language_arch_info): Update.
1402 * opencl-lang.c (OCL_P_TYPE): Delete.
1403 (enum opencl_primitive_types): Delete.
1404 (opencl_type_data): Delete.
1405 (builtin_opencl_type): Delete.
1406 (lookup_opencl_vector_type): Update.
1407 (opencl_language::language_arch_info): Update, lots of content
1409 (build_opencl_types): ...here. This function is now deleted.
1410 (_initialize_opencl_language): Delete.
1411 * p-lang.c (enum pascal_primitive_types): Delete.
1412 (pascal_language::language_arch_info): Update.
1413 * rust-lang.c (enum rust_primitive_types): Delete.
1414 (rust_language::language_arch_info): Update.
1416 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1418 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1421 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1423 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1426 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1428 * dwarf2/read.c (dwarf_read_debug_printf,
1429 dwarf_read_debug_printf_v): New macros, use throughout the file.
1431 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1434 * arc-linux-tdep.c (collect_register): Populate "eret" by
1435 "pc" value from the regcache when asked for "pc" value.
1437 2020-11-12 Tom Tromey <tom@tromey.com>
1440 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1443 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1445 * features/Makefile (XMLTOC): Add rx.xml.
1446 (FEATURE_XMLFILES): Remove rx.xml.
1447 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1448 * features/rx.c: Regenerate.
1449 * features/rx.xml: Wrap in `target` tags, and reindent.
1450 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1452 (maint_print_c_tdesc_opt_def): New typedef.
1453 (maint_print_c_tdesc_opt_defs): New static global.
1454 (make_maint_print_c_tdesc_options_def_group): New function.
1455 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1456 print single feature C file for target descriptions containing a
1458 (maint_print_c_tdesc_cmd_completer): New function.
1459 (_initialize_target_descriptions): Update call to register command
1460 completer, and include command line flag in help text.
1462 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1464 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1466 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1469 2020-11-10 Tom Tromey <tom@tromey.com>
1471 * value.h (internalvar_name): Update.
1472 * value.c (internalvar_name): Make return type const.
1474 2020-11-10 Tom Tromey <tom@tromey.com>
1476 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1477 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1480 2020-11-10 Tom Tromey <tom@tromey.com>
1482 * objc-lang.h (value_nsstring): Update.
1483 * objc-lang.c (value_nsstring): Make "ptr" const.
1485 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1487 * expprint.c (print_subexp_funcall): Increment expression position
1488 after reading argument count.
1489 * f-lang.c (print_subexp_f): Skip over opcode before calling
1491 (dump_subexp_body_f): Likewise.
1493 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1496 * configure: Regenerate.
1497 * configure.ac: Check for python modules ctypes instead of
1500 2020-11-06 Pedro Alves <pedro@palves.net>
1502 * macroexp.c (struct macro_buffer): Split in two classes. Add
1504 (struct shared_macro_buffer): New, factored out from struct
1506 (struct growable_macro_buffer): New, factored out from struct
1508 (set_token, get_comment, get_identifier, get_pp_number)
1509 (get_character_constant, get_string_literal, get_punctuator)
1510 (get_next_token_for_substitution): Constify parameters.
1511 (substitute_args): Constify locals.
1513 2020-11-05 Tom Tromey <tom@tromey.com>
1515 * dwarf2/read.c (read_cutu_die_from_dwo)
1516 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1517 (build_type_psymtabs_1): Update.
1518 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1520 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1521 Don't read section. Add assert.
1523 2020-11-04 Tom Tromey <tromey@adacore.com>
1525 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1527 2020-11-04 Tom Tromey <tromey@adacore.com>
1529 * ada-typeprint.c (ada_print_type): Handle __T types.
1531 2020-11-04 Tom Tromey <tromey@adacore.com>
1533 * dwarf2/read.c (add_partial_symbol, process_die):
1534 Handle DW_TAG_array_type.
1535 (is_type_tag_for_partial): Add "lang" parameter.
1536 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1538 2020-11-04 Tom Tromey <tromey@adacore.com>
1540 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1542 2020-11-04 Tom Tromey <tromey@adacore.com>
1544 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1547 2020-11-04 Tom Tromey <tromey@adacore.com>
1549 * gdbtypes.c (update_static_array_size): Handle bit stride.
1551 2020-11-04 Tom Tromey <tromey@adacore.com>
1553 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1555 2020-11-04 Tom Tromey <tromey@adacore.com>
1557 * ada-lang.c (ada_is_any_packed_array_type): New function.
1558 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1560 2020-11-04 Tom Tromey <tromey@adacore.com>
1562 * dwarf2/read.c (recognize_bound_expression)
1563 (quirk_ada_thick_pointer): New functions.
1564 (read_array_type): Call quirk_ada_thick_pointer.
1565 (set_die_type): Add "skip_data_location" parameter.
1566 (quirk_ada_thick_pointer): New function.
1567 (process_structure_scope): Call quirk_ada_thick_pointer.
1568 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1569 (decode_packed_array_bitsize): Handle thick pointers without
1571 (ada_is_gnat_encoded_packed_array_type): Rename from
1572 ada_is_packed_array_type.
1573 (ada_is_constrained_packed_array_type): Update.
1574 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1575 (ada_value_print_1): Use ada_get_decoded_value.
1577 2020-11-04 Tom Tromey <tromey@adacore.com>
1579 * ada-lang.c (recursively_update_array_bitsize): New function.
1580 (decode_constrained_packed_array_type): Call it.
1582 2020-11-04 Tom Tromey <tromey@adacore.com>
1584 * ada-lang.c (to_fixed_array_type): Error if
1585 decode_constrained_packed_array_type returns NULL.
1587 2020-11-04 Tom Tromey <tromey@adacore.com>
1589 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1591 2020-11-02 Tom Tromey <tromey@adacore.com>
1593 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1594 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1595 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1596 * amd64-ravenscar-thread.c: New file.
1597 * amd64-ravenscar-thread.h: New file.
1598 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1599 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1601 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1603 * main.c (execute_cmdargs): New function.
1604 (captured_main_1): Make use of execute_cmdargs.
1606 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1608 * NEWS: Mention changes to config file search path.
1611 2020-11-02 Tom Tromey <tromey@adacore.com>
1613 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1614 (python_GdbModuleDef): Move earlier. Now static.
1615 (do_start_initialization): Consolidate some IS_PY3K blocks.
1617 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1619 * aarch64-linux-tdep.c: Fix indentation.
1620 * aarch64-ravenscar-thread.c: Fix indentation.
1621 * aarch64-tdep.c: Fix indentation.
1622 * aarch64-tdep.h: Fix indentation.
1623 * ada-lang.c: Fix indentation.
1624 * ada-lang.h: Fix indentation.
1625 * ada-tasks.c: Fix indentation.
1626 * ada-typeprint.c: Fix indentation.
1627 * ada-valprint.c: Fix indentation.
1628 * ada-varobj.c: Fix indentation.
1629 * addrmap.c: Fix indentation.
1630 * addrmap.h: Fix indentation.
1631 * agent.c: Fix indentation.
1632 * aix-thread.c: Fix indentation.
1633 * alpha-bsd-nat.c: Fix indentation.
1634 * alpha-linux-tdep.c: Fix indentation.
1635 * alpha-mdebug-tdep.c: Fix indentation.
1636 * alpha-nbsd-tdep.c: Fix indentation.
1637 * alpha-obsd-tdep.c: Fix indentation.
1638 * alpha-tdep.c: Fix indentation.
1639 * amd64-bsd-nat.c: Fix indentation.
1640 * amd64-darwin-tdep.c: Fix indentation.
1641 * amd64-linux-nat.c: Fix indentation.
1642 * amd64-linux-tdep.c: Fix indentation.
1643 * amd64-nat.c: Fix indentation.
1644 * amd64-obsd-tdep.c: Fix indentation.
1645 * amd64-tdep.c: Fix indentation.
1646 * amd64-windows-tdep.c: Fix indentation.
1647 * annotate.c: Fix indentation.
1648 * arc-tdep.c: Fix indentation.
1649 * arch-utils.c: Fix indentation.
1650 * arch/arm-get-next-pcs.c: Fix indentation.
1651 * arch/arm.c: Fix indentation.
1652 * arm-linux-nat.c: Fix indentation.
1653 * arm-linux-tdep.c: Fix indentation.
1654 * arm-nbsd-tdep.c: Fix indentation.
1655 * arm-pikeos-tdep.c: Fix indentation.
1656 * arm-tdep.c: Fix indentation.
1657 * arm-tdep.h: Fix indentation.
1658 * arm-wince-tdep.c: Fix indentation.
1659 * auto-load.c: Fix indentation.
1660 * auxv.c: Fix indentation.
1661 * avr-tdep.c: Fix indentation.
1662 * ax-gdb.c: Fix indentation.
1663 * ax-general.c: Fix indentation.
1664 * bfin-linux-tdep.c: Fix indentation.
1665 * block.c: Fix indentation.
1666 * block.h: Fix indentation.
1667 * blockframe.c: Fix indentation.
1668 * bpf-tdep.c: Fix indentation.
1669 * break-catch-sig.c: Fix indentation.
1670 * break-catch-syscall.c: Fix indentation.
1671 * break-catch-throw.c: Fix indentation.
1672 * breakpoint.c: Fix indentation.
1673 * breakpoint.h: Fix indentation.
1674 * bsd-uthread.c: Fix indentation.
1675 * btrace.c: Fix indentation.
1676 * build-id.c: Fix indentation.
1677 * buildsym-legacy.h: Fix indentation.
1678 * buildsym.c: Fix indentation.
1679 * c-typeprint.c: Fix indentation.
1680 * c-valprint.c: Fix indentation.
1681 * c-varobj.c: Fix indentation.
1682 * charset.c: Fix indentation.
1683 * cli/cli-cmds.c: Fix indentation.
1684 * cli/cli-decode.c: Fix indentation.
1685 * cli/cli-decode.h: Fix indentation.
1686 * cli/cli-script.c: Fix indentation.
1687 * cli/cli-setshow.c: Fix indentation.
1688 * coff-pe-read.c: Fix indentation.
1689 * coffread.c: Fix indentation.
1690 * compile/compile-cplus-types.c: Fix indentation.
1691 * compile/compile-object-load.c: Fix indentation.
1692 * compile/compile-object-run.c: Fix indentation.
1693 * completer.c: Fix indentation.
1694 * corefile.c: Fix indentation.
1695 * corelow.c: Fix indentation.
1696 * cp-abi.h: Fix indentation.
1697 * cp-namespace.c: Fix indentation.
1698 * cp-support.c: Fix indentation.
1699 * cp-valprint.c: Fix indentation.
1700 * cris-linux-tdep.c: Fix indentation.
1701 * cris-tdep.c: Fix indentation.
1702 * darwin-nat-info.c: Fix indentation.
1703 * darwin-nat.c: Fix indentation.
1704 * darwin-nat.h: Fix indentation.
1705 * dbxread.c: Fix indentation.
1706 * dcache.c: Fix indentation.
1707 * disasm.c: Fix indentation.
1708 * dtrace-probe.c: Fix indentation.
1709 * dwarf2/abbrev.c: Fix indentation.
1710 * dwarf2/attribute.c: Fix indentation.
1711 * dwarf2/expr.c: Fix indentation.
1712 * dwarf2/frame.c: Fix indentation.
1713 * dwarf2/index-cache.c: Fix indentation.
1714 * dwarf2/index-write.c: Fix indentation.
1715 * dwarf2/line-header.c: Fix indentation.
1716 * dwarf2/loc.c: Fix indentation.
1717 * dwarf2/macro.c: Fix indentation.
1718 * dwarf2/read.c: Fix indentation.
1719 * dwarf2/read.h: Fix indentation.
1720 * elfread.c: Fix indentation.
1721 * eval.c: Fix indentation.
1722 * event-top.c: Fix indentation.
1723 * exec.c: Fix indentation.
1724 * exec.h: Fix indentation.
1725 * expprint.c: Fix indentation.
1726 * f-lang.c: Fix indentation.
1727 * f-typeprint.c: Fix indentation.
1728 * f-valprint.c: Fix indentation.
1729 * fbsd-nat.c: Fix indentation.
1730 * fbsd-tdep.c: Fix indentation.
1731 * findvar.c: Fix indentation.
1732 * fork-child.c: Fix indentation.
1733 * frame-unwind.c: Fix indentation.
1734 * frame-unwind.h: Fix indentation.
1735 * frame.c: Fix indentation.
1736 * frv-linux-tdep.c: Fix indentation.
1737 * frv-tdep.c: Fix indentation.
1738 * frv-tdep.h: Fix indentation.
1739 * ft32-tdep.c: Fix indentation.
1740 * gcore.c: Fix indentation.
1741 * gdb_bfd.c: Fix indentation.
1742 * gdbarch.sh: Fix indentation.
1743 * gdbarch.c: Re-generate
1744 * gdbarch.h: Re-generate.
1745 * gdbcore.h: Fix indentation.
1746 * gdbthread.h: Fix indentation.
1747 * gdbtypes.c: Fix indentation.
1748 * gdbtypes.h: Fix indentation.
1749 * glibc-tdep.c: Fix indentation.
1750 * gnu-nat.c: Fix indentation.
1751 * gnu-nat.h: Fix indentation.
1752 * gnu-v2-abi.c: Fix indentation.
1753 * gnu-v3-abi.c: Fix indentation.
1754 * go32-nat.c: Fix indentation.
1755 * guile/guile-internal.h: Fix indentation.
1756 * guile/scm-cmd.c: Fix indentation.
1757 * guile/scm-frame.c: Fix indentation.
1758 * guile/scm-iterator.c: Fix indentation.
1759 * guile/scm-math.c: Fix indentation.
1760 * guile/scm-ports.c: Fix indentation.
1761 * guile/scm-pretty-print.c: Fix indentation.
1762 * guile/scm-value.c: Fix indentation.
1763 * h8300-tdep.c: Fix indentation.
1764 * hppa-linux-nat.c: Fix indentation.
1765 * hppa-linux-tdep.c: Fix indentation.
1766 * hppa-nbsd-nat.c: Fix indentation.
1767 * hppa-nbsd-tdep.c: Fix indentation.
1768 * hppa-obsd-nat.c: Fix indentation.
1769 * hppa-tdep.c: Fix indentation.
1770 * hppa-tdep.h: Fix indentation.
1771 * i386-bsd-nat.c: Fix indentation.
1772 * i386-darwin-nat.c: Fix indentation.
1773 * i386-darwin-tdep.c: Fix indentation.
1774 * i386-dicos-tdep.c: Fix indentation.
1775 * i386-gnu-nat.c: Fix indentation.
1776 * i386-linux-nat.c: Fix indentation.
1777 * i386-linux-tdep.c: Fix indentation.
1778 * i386-nto-tdep.c: Fix indentation.
1779 * i386-obsd-tdep.c: Fix indentation.
1780 * i386-sol2-nat.c: Fix indentation.
1781 * i386-tdep.c: Fix indentation.
1782 * i386-tdep.h: Fix indentation.
1783 * i386-windows-tdep.c: Fix indentation.
1784 * i387-tdep.c: Fix indentation.
1785 * i387-tdep.h: Fix indentation.
1786 * ia64-libunwind-tdep.c: Fix indentation.
1787 * ia64-libunwind-tdep.h: Fix indentation.
1788 * ia64-linux-nat.c: Fix indentation.
1789 * ia64-linux-tdep.c: Fix indentation.
1790 * ia64-tdep.c: Fix indentation.
1791 * ia64-tdep.h: Fix indentation.
1792 * ia64-vms-tdep.c: Fix indentation.
1793 * infcall.c: Fix indentation.
1794 * infcmd.c: Fix indentation.
1795 * inferior.c: Fix indentation.
1796 * infrun.c: Fix indentation.
1797 * iq2000-tdep.c: Fix indentation.
1798 * language.c: Fix indentation.
1799 * linespec.c: Fix indentation.
1800 * linux-fork.c: Fix indentation.
1801 * linux-nat.c: Fix indentation.
1802 * linux-tdep.c: Fix indentation.
1803 * linux-thread-db.c: Fix indentation.
1804 * lm32-tdep.c: Fix indentation.
1805 * m2-lang.c: Fix indentation.
1806 * m2-typeprint.c: Fix indentation.
1807 * m2-valprint.c: Fix indentation.
1808 * m32c-tdep.c: Fix indentation.
1809 * m32r-linux-tdep.c: Fix indentation.
1810 * m32r-tdep.c: Fix indentation.
1811 * m68hc11-tdep.c: Fix indentation.
1812 * m68k-bsd-nat.c: Fix indentation.
1813 * m68k-linux-nat.c: Fix indentation.
1814 * m68k-linux-tdep.c: Fix indentation.
1815 * m68k-tdep.c: Fix indentation.
1816 * machoread.c: Fix indentation.
1817 * macrocmd.c: Fix indentation.
1818 * macroexp.c: Fix indentation.
1819 * macroscope.c: Fix indentation.
1820 * macrotab.c: Fix indentation.
1821 * macrotab.h: Fix indentation.
1822 * main.c: Fix indentation.
1823 * mdebugread.c: Fix indentation.
1824 * mep-tdep.c: Fix indentation.
1825 * mi/mi-cmd-catch.c: Fix indentation.
1826 * mi/mi-cmd-disas.c: Fix indentation.
1827 * mi/mi-cmd-env.c: Fix indentation.
1828 * mi/mi-cmd-stack.c: Fix indentation.
1829 * mi/mi-cmd-var.c: Fix indentation.
1830 * mi/mi-cmds.c: Fix indentation.
1831 * mi/mi-main.c: Fix indentation.
1832 * mi/mi-parse.c: Fix indentation.
1833 * microblaze-tdep.c: Fix indentation.
1834 * minidebug.c: Fix indentation.
1835 * minsyms.c: Fix indentation.
1836 * mips-linux-nat.c: Fix indentation.
1837 * mips-linux-tdep.c: Fix indentation.
1838 * mips-nbsd-tdep.c: Fix indentation.
1839 * mips-tdep.c: Fix indentation.
1840 * mn10300-linux-tdep.c: Fix indentation.
1841 * mn10300-tdep.c: Fix indentation.
1842 * moxie-tdep.c: Fix indentation.
1843 * msp430-tdep.c: Fix indentation.
1844 * namespace.h: Fix indentation.
1845 * nat/fork-inferior.c: Fix indentation.
1846 * nat/gdb_ptrace.h: Fix indentation.
1847 * nat/linux-namespaces.c: Fix indentation.
1848 * nat/linux-osdata.c: Fix indentation.
1849 * nat/netbsd-nat.c: Fix indentation.
1850 * nat/x86-dregs.c: Fix indentation.
1851 * nbsd-nat.c: Fix indentation.
1852 * nbsd-tdep.c: Fix indentation.
1853 * nios2-linux-tdep.c: Fix indentation.
1854 * nios2-tdep.c: Fix indentation.
1855 * nto-procfs.c: Fix indentation.
1856 * nto-tdep.c: Fix indentation.
1857 * objfiles.c: Fix indentation.
1858 * objfiles.h: Fix indentation.
1859 * opencl-lang.c: Fix indentation.
1860 * or1k-tdep.c: Fix indentation.
1861 * osabi.c: Fix indentation.
1862 * osabi.h: Fix indentation.
1863 * osdata.c: Fix indentation.
1864 * p-lang.c: Fix indentation.
1865 * p-typeprint.c: Fix indentation.
1866 * p-valprint.c: Fix indentation.
1867 * parse.c: Fix indentation.
1868 * ppc-linux-nat.c: Fix indentation.
1869 * ppc-linux-tdep.c: Fix indentation.
1870 * ppc-nbsd-nat.c: Fix indentation.
1871 * ppc-nbsd-tdep.c: Fix indentation.
1872 * ppc-obsd-nat.c: Fix indentation.
1873 * ppc-ravenscar-thread.c: Fix indentation.
1874 * ppc-sysv-tdep.c: Fix indentation.
1875 * ppc64-tdep.c: Fix indentation.
1876 * printcmd.c: Fix indentation.
1877 * proc-api.c: Fix indentation.
1878 * producer.c: Fix indentation.
1879 * producer.h: Fix indentation.
1880 * prologue-value.c: Fix indentation.
1881 * prologue-value.h: Fix indentation.
1882 * psymtab.c: Fix indentation.
1883 * python/py-arch.c: Fix indentation.
1884 * python/py-bpevent.c: Fix indentation.
1885 * python/py-event.c: Fix indentation.
1886 * python/py-event.h: Fix indentation.
1887 * python/py-finishbreakpoint.c: Fix indentation.
1888 * python/py-frame.c: Fix indentation.
1889 * python/py-framefilter.c: Fix indentation.
1890 * python/py-inferior.c: Fix indentation.
1891 * python/py-infthread.c: Fix indentation.
1892 * python/py-objfile.c: Fix indentation.
1893 * python/py-prettyprint.c: Fix indentation.
1894 * python/py-registers.c: Fix indentation.
1895 * python/py-signalevent.c: Fix indentation.
1896 * python/py-stopevent.c: Fix indentation.
1897 * python/py-stopevent.h: Fix indentation.
1898 * python/py-threadevent.c: Fix indentation.
1899 * python/py-tui.c: Fix indentation.
1900 * python/py-unwind.c: Fix indentation.
1901 * python/py-value.c: Fix indentation.
1902 * python/py-xmethods.c: Fix indentation.
1903 * python/python-internal.h: Fix indentation.
1904 * python/python.c: Fix indentation.
1905 * ravenscar-thread.c: Fix indentation.
1906 * record-btrace.c: Fix indentation.
1907 * record-full.c: Fix indentation.
1908 * record.c: Fix indentation.
1909 * reggroups.c: Fix indentation.
1910 * regset.h: Fix indentation.
1911 * remote-fileio.c: Fix indentation.
1912 * remote.c: Fix indentation.
1913 * reverse.c: Fix indentation.
1914 * riscv-linux-tdep.c: Fix indentation.
1915 * riscv-ravenscar-thread.c: Fix indentation.
1916 * riscv-tdep.c: Fix indentation.
1917 * rl78-tdep.c: Fix indentation.
1918 * rs6000-aix-tdep.c: Fix indentation.
1919 * rs6000-lynx178-tdep.c: Fix indentation.
1920 * rs6000-nat.c: Fix indentation.
1921 * rs6000-tdep.c: Fix indentation.
1922 * rust-lang.c: Fix indentation.
1923 * rx-tdep.c: Fix indentation.
1924 * s12z-tdep.c: Fix indentation.
1925 * s390-linux-tdep.c: Fix indentation.
1926 * score-tdep.c: Fix indentation.
1927 * ser-base.c: Fix indentation.
1928 * ser-mingw.c: Fix indentation.
1929 * ser-uds.c: Fix indentation.
1930 * ser-unix.c: Fix indentation.
1931 * serial.c: Fix indentation.
1932 * sh-linux-tdep.c: Fix indentation.
1933 * sh-nbsd-tdep.c: Fix indentation.
1934 * sh-tdep.c: Fix indentation.
1935 * skip.c: Fix indentation.
1936 * sol-thread.c: Fix indentation.
1937 * solib-aix.c: Fix indentation.
1938 * solib-darwin.c: Fix indentation.
1939 * solib-frv.c: Fix indentation.
1940 * solib-svr4.c: Fix indentation.
1941 * solib.c: Fix indentation.
1942 * source.c: Fix indentation.
1943 * sparc-linux-tdep.c: Fix indentation.
1944 * sparc-nbsd-tdep.c: Fix indentation.
1945 * sparc-obsd-tdep.c: Fix indentation.
1946 * sparc-ravenscar-thread.c: Fix indentation.
1947 * sparc-tdep.c: Fix indentation.
1948 * sparc64-linux-tdep.c: Fix indentation.
1949 * sparc64-nbsd-tdep.c: Fix indentation.
1950 * sparc64-obsd-tdep.c: Fix indentation.
1951 * sparc64-tdep.c: Fix indentation.
1952 * stabsread.c: Fix indentation.
1953 * stack.c: Fix indentation.
1954 * stap-probe.c: Fix indentation.
1955 * stubs/ia64vms-stub.c: Fix indentation.
1956 * stubs/m32r-stub.c: Fix indentation.
1957 * stubs/m68k-stub.c: Fix indentation.
1958 * stubs/sh-stub.c: Fix indentation.
1959 * stubs/sparc-stub.c: Fix indentation.
1960 * symfile-mem.c: Fix indentation.
1961 * symfile.c: Fix indentation.
1962 * symfile.h: Fix indentation.
1963 * symmisc.c: Fix indentation.
1964 * symtab.c: Fix indentation.
1965 * symtab.h: Fix indentation.
1966 * target-float.c: Fix indentation.
1967 * target.c: Fix indentation.
1968 * target.h: Fix indentation.
1969 * tic6x-tdep.c: Fix indentation.
1970 * tilegx-linux-tdep.c: Fix indentation.
1971 * tilegx-tdep.c: Fix indentation.
1972 * top.c: Fix indentation.
1973 * tracefile-tfile.c: Fix indentation.
1974 * tracepoint.c: Fix indentation.
1975 * tui/tui-disasm.c: Fix indentation.
1976 * tui/tui-io.c: Fix indentation.
1977 * tui/tui-regs.c: Fix indentation.
1978 * tui/tui-stack.c: Fix indentation.
1979 * tui/tui-win.c: Fix indentation.
1980 * tui/tui-winsource.c: Fix indentation.
1981 * tui/tui.c: Fix indentation.
1982 * typeprint.c: Fix indentation.
1983 * ui-out.h: Fix indentation.
1984 * unittests/copy_bitwise-selftests.c: Fix indentation.
1985 * unittests/memory-map-selftests.c: Fix indentation.
1986 * utils.c: Fix indentation.
1987 * v850-tdep.c: Fix indentation.
1988 * valarith.c: Fix indentation.
1989 * valops.c: Fix indentation.
1990 * valprint.c: Fix indentation.
1991 * valprint.h: Fix indentation.
1992 * value.c: Fix indentation.
1993 * value.h: Fix indentation.
1994 * varobj.c: Fix indentation.
1995 * vax-tdep.c: Fix indentation.
1996 * windows-nat.c: Fix indentation.
1997 * windows-tdep.c: Fix indentation.
1998 * xcoffread.c: Fix indentation.
1999 * xml-syscall.c: Fix indentation.
2000 * xml-tdesc.c: Fix indentation.
2001 * xstormy16-tdep.c: Fix indentation.
2002 * xtensa-config.c: Fix indentation.
2003 * xtensa-linux-nat.c: Fix indentation.
2004 * xtensa-linux-tdep.c: Fix indentation.
2005 * xtensa-tdep.c: Fix indentation.
2007 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2008 Craig Blackmore <craig.blackmore@embecosm.com>
2010 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2011 as an unsigned value.
2013 2020-11-01 Tom Tromey <tom@tromey.com>
2015 * dbxread.c (dbx_end_psymtab): Update.
2016 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2017 (build_type_psymtabs_reader): Update.
2018 * xcoffread.c (xcoff_end_psymtab): Update.
2019 * ctfread.c (scan_partial_symbols): Update.
2020 * psymtab.c (sort_pst_symbols): Remove.
2021 (partial_symtab::end): Rename from end_psymtab_common. Inline
2023 * psympriv.h (struct partial_symtab) <end>: New method.
2024 (end_psymtab_common): Don't declare.
2026 2020-11-01 Tom Tromey <tom@tromey.com>
2028 * symmisc.c (count_psyms): New function.
2029 (print_objfile_statistics): Use it.
2030 * psymtab.c (append_psymbol_to_list): Remove.
2031 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2032 * objfiles.h (struct objstats) <n_psyms>: Remove.
2034 2020-11-01 Tom Tromey <tom@tromey.com>
2036 * dbxread.c (dbx_end_psymtab): Update.
2037 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2038 (build_type_psymtabs_reader): Update.
2039 * xcoffread.c (xcoff_end_psymtab): Update.
2040 * ctfread.c (scan_partial_symbols): Update.
2041 * psympriv.h (end_psymtab_common): Update.
2042 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2043 (sort_pst_symbols): Likewise.
2045 2020-11-01 Tom Tromey <tom@tromey.com>
2047 * dbxread.c (dbx_symfile_read): Update.
2048 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2049 * xcoffread.c (xcoff_initial_scan): Update.
2050 * psympriv.h (init_psymbol_list): Don't declare.
2051 * psymtab.c (init_psymbol_list): Remove.
2053 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2055 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2056 gnat_encoded_fixed_type_info. Update all callers.
2058 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2060 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2063 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2065 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2066 cast_from_fixed. Update all callers.
2067 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2069 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2071 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2073 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2074 to print_gnat_encoded_fixed_point_type.
2075 * ada-valprint.c: Likewise.
2077 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2079 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2080 (debug_prefixed_printf): Add check of debug_displaced flag.
2081 * linux-nat.c (linux_nat_debug_printf): Add check of
2082 debug_linux_nat flag.
2084 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2086 * infrun.c (infrun_debug_printf_1): Remove.
2087 (displaced_debug_printf_1): Remove.
2088 (stop_all_threads): Use debug_prefixed_printf.
2089 * infrun.h (infrun_debug_printf_1): Remove.
2090 (infrun_debug_printf): Use debug_prefixed_printf.
2091 (displaced_debug_printf_1): Remove.
2092 (displaced_debug_printf): Use debug_prefixed_printf.
2093 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2094 (linux_nat_debug_printf): Use debug_prefixed_printf.
2096 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2098 * configure: Re-generate.
2099 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2102 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2104 * configure: Re-generate.
2106 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2108 * configure: Re-generate.
2110 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2112 * configure: Re-generate.
2114 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2116 * configure: Re-generate.
2118 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2120 * acinclude.m4: Modernize.
2121 * configure: Re-generate.
2123 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2125 * configure.ac: Modernize.
2126 * configure: Re-generate.
2128 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2130 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2131 * configure: Re-generate.
2132 * configure.ac: Remove AM_PROG_CC_STDC.
2134 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2136 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2137 AC_CANONICAL_SYSTEM.
2138 * configure: Re-generate.
2140 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
2142 * infrun.h (displaced_debug_printf): New macro. Replace
2143 displaced debug prints throughout to use it.
2144 (displaced_debug_printf_1): New declaration.
2145 (displaced_step_dump_bytes): Return string, remove ui_file
2146 parameter, update all callers.
2147 * infrun.c (displaced_debug_printf_1): New function.
2148 (displaced_step_dump_bytes): Return string, remove ui_file
2151 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2153 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2155 2020-10-30 Tom Tromey <tromey@adacore.com>
2157 * Makefile.in (stamp-init): Depend on config.status.
2159 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2161 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2163 2020-10-30 Pedro Alves <pedro@palves.net>
2165 * thread.c (lookup_selected_frame): Move ...
2166 * frame.c (lookup_selected_frame): ... here.
2168 2020-10-30 Pedro Alves <pedro@palves.net>
2170 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2172 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2173 Use save_selected_frame. Save language as well.
2174 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2175 Use restore_selected_frame, and restore language as well.
2176 (selected_frame_id, selected_frame_level): New.
2177 (selected_frame): Update comments.
2178 (save_selected_frame, restore_selected_frame): New.
2179 (get_selected_frame): Use lookup_selected_frame.
2180 (get_selected_frame_if_set): Delete.
2181 (select_frame): Record selected_frame_level and selected_frame_id.
2182 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2184 (get_selected_frame): Make 'message' parameter optional.
2185 (get_selected_frame_if_set): Delete declaration.
2186 (select_frame): Update comments.
2187 (save_selected_frame, restore_selected_frame)
2188 (lookup_selected_frame): Declare.
2189 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2190 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2192 (save_infcall_control_state): Use save_selected_frame.
2193 (restore_selected_frame): Delete.
2194 (restore_infcall_control_state): Use restore_selected_frame.
2195 * stack.c (select_frame_command_core, frame_command_core): Use
2197 * thread.c (restore_selected_frame): Rename to ...
2198 (lookup_selected_frame): ... this and make extern. Select the
2199 current frame if the frame level is -1.
2200 (scoped_restore_current_thread::restore): Also restore the
2202 (scoped_restore_current_thread::~scoped_restore_current_thread):
2204 (scoped_restore_current_thread::scoped_restore_current_thread):
2205 Save the language as well. Use save_selected_frame.
2207 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2209 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2211 * gdbarch.h: Re-generate.
2213 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2215 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2217 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2219 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2221 * arch-utils.c (default_displaced_step_hw_singlestep):
2223 * arch-utils.h (default_displaced_step_hw_singlestep):
2225 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2227 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2229 * gdbarch.c: Re-generate.
2230 * gdbarch.h: Re-generate.
2231 * infrun.c (resume_1): Adjust.
2233 2020-10-29 Tom Tromey <tom@tromey.com>
2235 * progspace.c (program_space::~program_space): Don't call
2238 2020-10-29 Tom Tromey <tom@tromey.com>
2240 * exec.c (exec_target::close): Don't change current program
2243 2020-10-29 Tom Tromey <tom@tromey.com>
2245 * symfile.c (add_symbol_file_command): Update.
2246 * exec.c (program_space::add_target_sections): Rename.
2247 * symfile-mem.c (symbol_file_add_from_memory): Update.
2248 * progspace.h (struct program_space) <add_target_sections>:
2249 Declare new overload.
2250 * exec.h (add_target_sections_of_objfile): Don't declare.
2252 2020-10-29 Tom Tromey <tom@tromey.com>
2254 * solib.c (solib_map_sections): Update.
2255 * exec.c (program_space::add_target_sections): Now a method.
2256 (exec_file_attach): Update.
2257 * exec.h (add_target_sections): Don't declare.
2258 * progspace.h (struct program_space) <add_target_sections>:
2261 2020-10-29 Tom Tromey <tom@tromey.com>
2263 * progspace.h (struct program_space) <remove_target_sections>:
2265 * exec.c (program_space::remove_target_sections): Now a method.
2266 * exec.h (remove_target_sections): Don't declare.
2268 2020-10-29 Tom Tromey <tom@tromey.com>
2270 * inferior.c (delete_inferior): Update.
2271 * progspace.c (program_space::empty): Rename from
2272 program_space_empty_p. Return bool.
2273 * progspace.h (struct program_space) <empty>: New method.
2274 (program_space_empty_p): Don't declare.
2276 2020-10-29 Tom Tromey <tom@tromey.com>
2278 * progspace.c (program_space::~program_space): Don't call
2279 clear_program_space_solib_cache.
2280 (program_space::clear_solib_cache): Rename from
2282 * solib.c (handle_solib_event): Update.
2283 * progspace.h (struct program_space) <clear_solib_cache>: New
2285 (clear_program_space_solib_cache): Don't declare.
2287 2020-10-29 Tom Tromey <tom@tromey.com>
2289 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2290 * target.c (info_target_command): Update.
2291 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2292 (symbol_file_clear, reread_symbols): Update.
2293 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2294 * stabsread.c (scan_file_globals): Update.
2295 * solib.c (update_solib_list): Update.
2296 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2297 (svr4_fetch_objfile_link_map, enable_break)
2298 (svr4_relocate_main_executable)
2299 (svr4_iterate_over_objfiles_in_search_order): Update.
2300 * solib-frv.c (lm_base, enable_break)
2301 (frv_relocate_main_executable): Update.
2302 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2303 (frv_fetch_objfile_link_map): Update.
2304 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2305 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2306 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2307 * remote.c (remote_target::get_offsets): Update.
2308 (remote_target::start_remote)
2309 (extended_remote_target::post_attach): Update.
2310 * objfiles.c (entry_point_address_query): Update.
2311 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2312 * minsyms.c (get_symbol_leading_char): Update.
2313 * frame.c (inside_main_func): Update.
2314 * progspace.h (symfile_objfile): Remove macro.
2316 2020-10-29 Tom Tromey <tom@tromey.com>
2318 * exec.c (exec_file_attach): Update.
2319 * progspace.c (program_space::exec_close): Update.
2320 * progspace.h (struct program_space) <ebfd>: Now a
2322 <set_exec_bfd>: Change argument type.
2325 2020-10-29 Tom Tromey <tom@tromey.com>
2327 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2328 * symfile.c (reread_symbols): Update.
2329 * symfile-mem.c (add_symbol_file_from_memory_command)
2330 (add_vsyscall_page): Update.
2331 * source-cache.c (source_cache::get_plain_source_lines): Update.
2332 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2333 (svr4_current_sos_direct, svr4_exec_displacement)
2334 (svr4_relocate_main_executable): Update.
2335 (svr4_iterate_over_objfiles_in_search_order): Update.
2336 * solib-frv.c (enable_break2, enable_break): Update.
2337 * solib-dsbt.c (lm_base, enable_break): Update.
2338 * solib-darwin.c (find_program_interpreter)
2339 (darwin_solib_create_inferior_hook): Update.
2340 * sol-thread.c (rw_common, ps_pdmodel): Update.
2341 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2342 * remote.c (compare_sections_command)
2343 (remote_target::trace_set_readonly_regions): Update.
2344 * remote-sim.c (get_sim_inferior_data)
2345 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2346 (gdbsim_target_open, gdbsim_target::files_info): Update.
2347 * exec.h (exec_bfd): Remove macro.
2348 * progspace.c (initialize_progspace): Update.
2349 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2351 * nto-procfs.c (nto_procfs_target::post_attach)
2352 (nto_procfs_target::create_inferior): Update.
2353 * maint.c (maintenance_info_sections): Update.
2354 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2356 * infcmd.c (post_create_inferior): Update.
2357 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2358 (objfile_find_memory_regions): Update.
2359 * exec.c (validate_exec_file, exec_file_attach)
2360 (exec_read_partial_read_only, print_section_info): Update.
2361 * corelow.c (core_target_open): Update.
2362 * corefile.c (reopen_exec_file, validate_files): Update.
2363 * arm-tdep.c (gdb_print_insn_arm): Update.
2364 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2365 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2368 2020-10-29 Tom Tromey <tom@tromey.com>
2370 * progspace.h (current_target_sections): Remove macro.
2371 * solib-svr4.c (scan_dyntag): Update.
2372 * solib-dsbt.c (scan_dyntag): Update.
2373 * exec.c (exec_target::close): Update.
2374 (add_target_sections, add_target_sections_of_objfile)
2375 (remove_target_sections, exec_target::get_section_table)
2376 (exec_target::files_info, set_section_command)
2377 (exec_set_section_address, exec_target::has_memory)
2378 (exec_target::has_memory): Update.
2380 2020-10-29 Tom Tromey <tom@tromey.com>
2382 * source-cache.c (source_cache::get_plain_source_lines): Use
2383 current_program_space.
2384 * corefile.c (reopen_exec_file): Use current_program_space.
2385 * exec.c (exec_file_attach): Use current_program_space.
2386 * exec.h (exec_bfd_mtime): Remove.
2388 2020-10-29 Tom Tromey <tom@tromey.com>
2390 * gcore.c (default_gcore_mach): Remove.
2391 (create_gcore_bfd): Update.
2393 2020-10-29 Tom Tromey <tom@tromey.com>
2395 * progspace.c (program_space::exec_close): New method, from
2396 exec_close in exec.c.
2397 * exec.c (exec_close): Move to progspace.c.
2398 (exec_target::close, exec_file_attach): Update.
2399 * progspace.h (struct program_space) <exec_close>: Declare
2402 2020-10-29 Tom Tromey <tom@tromey.com>
2404 * progspace.h (struct program_space) <exec_filename>: Rename from
2405 pspace_exec_filename. Now a unique_xmalloc_ptr.
2406 * inferior.c (print_selected_inferior): Update.
2407 (print_inferior): Update.
2408 * mi/mi-main.c (print_one_inferior): Update.
2409 * exec.h (exec_filename): Remove macro.
2410 * corefile.c (get_exec_file): Update.
2411 * exec.c (exec_close): Update.
2412 (exec_file_attach): Update.
2413 * progspace.c (clone_program_space): Update.
2414 (print_program_space): Update.
2416 2020-10-29 Tom Tromey <tom@tromey.com>
2418 * target-section.h (struct target_section): Add constructor.
2419 * exec.c (build_section_table, add_target_sections_of_objfile):
2421 * corelow.c (core_target::build_file_mappings): Update.
2423 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2426 * inferior.c (detach_inferior_command): Restore the current thread.
2427 (kill_inferior_command): Ditto.
2429 2020-10-28 Tom de Vries <tdevries@suse.de>
2432 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2433 map, check it in the "best match" loop.
2435 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2437 * m32c-tdep.c: Remove unused includes.
2439 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2441 * xtensa-tdep.c: Remove includes.
2443 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2445 * breakpoint.c (struct condition_command_opts): New struct.
2446 (condition_command_option_defs): New static global.
2447 (make_condition_command_options_def_group): New function.
2448 (condition_completer): Update to consider the '-force' flag.
2449 (condition_command): Use gdb::option for the '-force' flag.
2451 2020-10-27 Tom de Vries <tdevries@suse.de>
2453 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2454 symbols in section check.
2456 2020-10-27 Tom de Vries <tdevries@suse.de>
2458 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2460 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2462 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2463 * breakpoint.c: Update the help text of the 'condition' and 'break'
2465 (set_breakpoint_condition): Take a new bool parameter
2466 to control whether condition definition should be forced even when
2467 the condition expression is invalid in all of the current locations.
2468 (condition_command): Update the call to 'set_breakpoint_condition'.
2469 (find_condition_and_thread): Take the "-force-condition" flag into
2471 * linespec.c (linespec_keywords): Add "-force-condition" as an
2473 (FORCE_KEYWORD_INDEX): New #define.
2474 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2476 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2477 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2478 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2479 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2481 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2483 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2484 * breakpoint.c (set_breakpoint_location_condition): New function.
2485 (set_breakpoint_condition): Disable a breakpoint location if parsing
2486 the condition string gives an error.
2487 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2488 (build_target_condition_list): Ditto.
2489 (build_target_command_list): Ditto.
2490 (build_bpstat_chain): Ditto.
2491 (print_one_breakpoint_location): Ditto.
2492 (print_one_breakpoint): Ditto.
2493 (breakpoint_1): Ditto.
2494 (bp_location::bp_location): Ditto.
2495 (locations_are_equal): Ditto.
2496 (update_breakpoint_locations): Ditto.
2497 (enable_disable_bp_num_loc): Ditto.
2498 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2499 (find_condition_and_thread_for_sals): New static function.
2500 (create_breakpoint): Call find_condition_and_thread_for_sals.
2501 (location_to_sals): Call find_condition_and_thread_for_sals instead
2502 of find_condition_and_thread.
2504 2020-10-26 Tom de Vries <tdevries@suse.de>
2506 * dwarf2/read.c (process_full_comp_unit): Call
2507 dwarf2_find_base_address.
2509 2020-10-26 Tom Tromey <tromey@adacore.com>
2511 * gdbtypes.c (create_range_type): Revert previous patch. Add
2514 2020-10-26 Pedro Alves <pedro@palves.net>
2516 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2517 (my_waitpid): Use gdb::handle_eintr.
2519 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2521 * acinclude.m4: Update ptrace.m4 path.
2522 * ptrace.m4: Moved to gdbsupport.
2524 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2526 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2527 instead of target_gdbarch.
2529 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2531 * jit.c (jit_reader_load_command): Pass current inferior.
2532 (jit_inferior_init): Change parameter type to inferior, use it.
2533 (jit_inferior_created): Remove.
2534 (jit_inferior_created_hook): Pass inferior parameter down.
2535 (_initialize_jit): Use jit_inferior_created_hook instead of
2536 jit_inferior_created.
2537 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2538 * infrun.c (follow_exec): Pass inferior to
2539 jit_inferior_created_hook.
2541 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2543 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2544 parameter and use it.
2545 (thread_db_inferior_created): Pass inferior argument.
2547 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2549 * aix-thread.c (aix_thread_inferior_created): Add inferior
2551 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2552 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2553 * jit.c (jit_inferior_created): Likewise.
2554 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2555 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2556 * observable.h (inferior_created): Likewise.
2557 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2558 * symfile-mem.c (add_vsyscall_page): Likewise.
2559 * infcmd.c (post_create_inferior): Pass inferior argument.
2561 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2565 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2567 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2568 to ada_check_typedef.
2570 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2572 * f-exp.y (f_parse): Rename to...
2573 (f_language::parser): ...this.
2574 * f-lang.c (f_get_encoding): Rename to...
2575 (f_language::get_encoding): ...this.
2576 (f_op_print_tab): Rename to...
2577 (f_language::op_print_tab): ...this.
2578 (exp_descriptor_f): Rename to...
2579 (f_language::exp_descriptor_tab): ...this.
2580 (class f_language): Moved to f-lang.h.
2581 (f_language::language_arch_info): New function, moved out of class
2583 (f_language::search_name_hash): Likewise.
2584 (f_language::lookup_symbol_nonlocal): Likewise.
2585 (f_language::get_symbol_name_matcher_inner): Likewise.
2586 * f-lang.h: Add 'valprint.h' include.
2587 (class f_language): Moved here from f-lang.c.
2588 * f-typeprint.c (f_type_print_args): Delete commented out
2590 (f_print_typedef): Rename to...
2591 (f_language::print_typedef): ...this.
2592 (f_print_type): Rename to...
2593 (f_language::print_type): ...this.
2594 (f_type_print_varspec_prefix): Delete declaration and rename to...
2595 (f_language::f_type_print_varspec_prefix): ...this.
2596 (f_type_print_varspec_suffix): Delete declaration and rename to...
2597 (f_language::f_type_print_varspec_suffix): ...this.
2598 (f_type_print_base): Delete declaration and rename to...
2599 (f_language::f_type_print_base): ...this.
2600 * f-valprint.c (f_value_print_inner): Rename to...
2601 (f_language::value_print_inner): ...this.
2602 * parse.c: Delete 'f-lang.h' include.
2604 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2606 * language.h (language_defn::print_type): Add variable names in
2607 declaration, and update header comment.
2609 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2611 * ada-lang.c (ada_language::demangle): Rename to...
2612 (ada_language::demangle_symbol): ...this.
2613 * c-lang.c (cplus_language::demangle): Rename to...
2614 (cplus_language::demangle_symbol): ...this.
2615 * d-lang.c (d_language::demangle): Rename to...
2616 (d_language::demangle_symbol): ...this.
2617 * f-lang.c (f_language::demangle): Rename to...
2618 (f_language::demangle_symbol): ...this.
2619 * go-lang.c (go_language::demangle): Rename to...
2620 (go_language::demangle_symbol): ...this.
2621 * language.c (language_demangle): Update call to demangle_symbol.
2622 (auto_or_unknown_language::demangle): Rename to...
2623 (auto_or_unknown_language::demangle_symbol): ...this.
2624 * language.h (language_defn::demangle): Rename to...
2625 (language_defn::demangle_symbol): ...this.
2626 * objc-lang.c (objc_language::demangle): Rename to...
2627 (objc_language::demangle_symbol): ...this.
2628 * rust-lang.c (rust_language::demangle): Rename to...
2629 (rust_language::demangle_symbol): ...this.
2631 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2633 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2634 (iterate_over_file_blocks): Replace use of macro with the macros
2637 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2639 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2640 * valprint.c (maybe_print_array_index): Replace use of macro with
2641 the macros definition.
2643 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2645 * ada-lang.c (ada_language::print_array_index): Call value_print
2647 * language.c (language_defn::print_array_index): Likewise.
2648 * language.h (LA_VALUE_PRINT): Delete.
2649 * valprint.c (value_print): Call value_print on the
2650 current_language directly.
2652 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2654 * language.h (LA_PRINT_TYPEDEF): Delete.
2655 * typeprint.c (typedef_print): Call print_typedef directly on the
2656 current_language object.
2658 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2660 * m2-exp.y (m2_parse): Rename to...
2661 (m2_language::parser): ...this. Update function signature.
2662 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2663 (m2_op_print): Rename to...
2664 (m2_language::op_print_tab): ...this, and make const.
2665 (exp_descriptor_modula2): Rename to...
2666 (m2_language::exp_descriptor_modula2): ...this.
2667 (class m2_language): Move to m2-lang.h.
2668 (m2_language::language_arch_info): New function, moved out of
2670 (m2_language::printchar): New function, body from m2_printchar.
2671 (m2_language::printstr): New function, moved out of class
2673 (m2_language::emitchar): Likewise.
2674 * m2-lang.h (m2_parse): Delete declaration.
2675 (m2_print_typedef): Delete declaration.
2676 (m2_value_print_inner): Delete declaration.
2677 (class m2_language): Class declaration moved from m2-lang.c,
2678 larger functions are left in m2-lang.c.
2679 * m2-typeprint.c (m2_print_typedef): Rename to...
2680 (m2_language::print_typedef): ...this, and update function
2682 * m2-valprint.c (m2_value_print_inner): Rename to...
2683 (m2_language::value_print_inner): ...this, replace use of
2684 LA_PRINT_STRING with a direct call to printstr member function,
2685 and update recursive call.
2687 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2689 * language.c (default_is_string_type_p): Delete, implementation
2690 moved into auto_or_unknown_language::is_string_type_p.
2691 (unk_op_print_tab): Moved into
2692 auto_or_unknown_language::opcode_print_table.
2693 (unknown_language_arch_info): Delete, implementation moved into
2694 auto_or_unknown_language::language_arch_info.
2695 (class auto_or_unknown_language): New class, member functions
2696 copied from unknown_language class, with some updates.
2697 (class unknown_language): Most member functions moved into
2698 auto_or_unknown_language class. Inherit from
2699 auto_or_unknown_language class.
2700 (class auto_language): Inherit from auto_or_unknown_language.
2701 Delete most member functions.
2703 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2705 * stabsread.c (read_member_functions): Remove gdb_assert.
2707 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2709 * gdbtypes.c (init_complex_type): Check target type name.
2711 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2713 * target-debug.h (target_debug_print_struct_target_ops_p):
2715 (target_debug_print_async_callback_ftype_p): Remove.
2716 (target_debug_print_struct_trace_state_variable_p): Remove.
2717 (target_debug_print_struct_traceframe_info_p): Remove.
2718 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2719 (target_debug_print_enum_btrace_format): Remove.
2720 (target_debug_print_enum_info_proc_what): Remove.
2721 (target_debug_print_thread_info_pp): Remove.
2723 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2725 * target.h (struct target_ops) <make_corefile_notes>:
2726 Change return type to unique pointer.
2727 * target.c (dummy_make_corefile_notes): Likewise.
2728 * exec.c (struct exec_target) <make_corefile_notes>:
2730 (exec_target::make_corefile_notes): Likewise.
2731 * procfs.c (class procfs_target) <make_corefile_notes>:
2733 (procfs_do_thread_registers): Adjust to unique pointer.
2734 (struct procfs_corefile_thread_data): Add constructor.
2735 <note_data>: Change type to unique pointer.
2736 (procfs_corefile_thread_callback): Adjust to unique pointer.
2737 (procfs_target::make_corefile_notes): Change return type to
2739 * target-delegates.c: Re-generate.
2740 * gcore.c (write_gcore_file_1): Adjust.
2741 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2744 2020-10-22 Tom de Vries <tdevries@suse.de>
2746 * block.c (find_block_in_blockvector): Make sure the returned block
2749 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2752 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2754 (load_cu): Pass existing CU.
2755 (process_imported_unit_die): Likewise.
2756 (follow_die_offset): Likewise.
2758 2020-10-22 Luis Machado <luis.machado@linaro.org>
2760 * corelow.c (core_target::xfer_partial): Also check for an empty
2761 m_core_unavailable_mappings vector.
2763 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2765 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2766 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2767 * f-exp.y (arglist): Allow for a series of subranges.
2768 (subrange): Add cases for subranges with strides.
2769 * f-lang.c (value_f90_subarray): Catch use of array strides and
2771 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2773 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2775 * expprint.c (print_subexp_standard): Change enum range_type to
2776 range_flag and rename variables to match.
2777 (dump_subexp_body_standard): Likewise.
2778 * expression.h (enum range_type): Rename to...
2779 (enum range_flag): ...this.
2780 (range_types): Rename to...
2781 (range_flags): ...this.
2782 * f-lang.c (value_f90_subarray): Change enum range_type to
2783 range_flag and rename variables to match.
2784 * parse.c (operator_length_standard): Likewise.
2785 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2786 range_type to range_flag.
2787 * rust-lang.c (rust_evaluate_funcall): Likewise.
2788 (rust_range): Likewise.
2789 (rust_compute_range): Likewise.
2790 (rust_subscript): Likewise.
2792 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2794 * expprint.c (print_subexp_standard): Update to reflect changes to
2796 (dump_subexp_body_standard): Likewise.
2797 * expression.h (enum range_type): Convert to a bit field enum, and
2798 make the enum unsigned.
2799 * f-exp.y (subrange): Update to reflect changes to enum
2801 * f-lang.c (value_f90_subarray): Likewise.
2802 * parse.c (operator_length_standard): Likewise.
2803 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2804 * rust-lang.c (rust_range): Likewise.
2805 (rust_compute_range): Likewise.
2806 (rust_subscript): Likewise.
2808 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2810 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2811 (displaced_step_in_progress): Fix comment.
2813 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2815 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2816 * gdbarch.c: Re-generate.
2817 * gdbarch.h: Re-generate.
2818 * gcore.c (write_gcore_file_1): Adjust.
2819 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2821 <note_data>: Change type to unique pointer.
2822 <abort_iteration>: Change type to bool.
2823 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2824 (fbsd_collect_thread_registers): Return void, adjust.
2825 (struct fbsd_corefile_thread_data): Add construtor.
2826 <note_data>: Change type to unique pointer.
2827 (fbsd_corefile_thread): Adjust.
2828 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2829 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2830 to unique pointer, adjust.
2831 (struct linux_collect_regset_section_cb_data): Add constructor.
2832 <note_data>: Change type to unique pointer.
2833 <abort_iteration>: Change type to bool.
2834 (linux_collect_thread_registers): Return void, adjust.
2835 (struct linux_corefile_thread_data): Add constructor.
2836 <note_data>: Change type to unique pointer.
2837 (linux_corefile_thread): Adjust.
2838 (linux_make_corefile_notes): Return unique pointer, adjust.
2840 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2842 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2843 * gdbarch.c: Re-generate.
2844 * gdbarch.h: Re-generate.
2845 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2847 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2849 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2850 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2851 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2852 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2854 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2856 * gdbarch.sh: Make generated predicates return bool.
2857 * gdbarch.c: Re-generate.
2858 * gdbarch.h: Re-generate.
2860 2020-10-20 Tom Tromey <tom@tromey.com>
2862 * varobj-iter.h (struct varobj_item): Remove typedef.
2864 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2866 * infrun.c (currently_stepping): Change int to bool
2867 (maybe_software_singlestep): Likewise.
2868 (show_stop_on_solib_events): Likewise.
2869 (stepping_past_nonsteppable_watchpoint): Likewise.
2870 (displaced_step_in_progress_any_inferior): Likewise.
2871 (displaced_step_in_progress_thread): Likewise.
2872 (keep_going_stepped_thread): Likewise.
2873 (thread_still_needs_step_over): Likewise.
2874 (start_step_over): Likewise.
2875 (do_target_resume): Likewise.
2876 (resume_1): Likewise.
2877 (clear_proceed_status): Likewise.
2878 (thread_still_needs_step_over_bp): Likewise.
2879 (proceed): Likewise.
2880 (switch_back_to_stepped_thread): Likewise.
2881 (adjust_pc_after_break): Likewise.
2882 (stepped_in_from): Likewise.
2883 (handle_stop_requested): Likewise.
2884 (handle_syscall_event): Likewise.
2885 (handle_no_resumed): Likewise.
2886 (handle_inferior_event): Likewise.
2887 (finish_step_over): Likewise.
2888 (handle_signal_stop): Likewise.
2889 (process_event_stop_test): Likewise.
2891 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2893 * infrun.c (get_displaced_stepping_state): Fix comment.
2895 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2897 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2899 2020-10-19 Tom Tromey <tromey@adacore.com>
2902 * tui/tui-winsource.h (struct tui_source_window_base)
2903 <refresh_window>: Rename from refresh_pad.
2904 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2905 Rename from refresh_pad.
2906 (tui_source_window_base::show_source_content)
2907 (tui_source_window_base::do_scroll_horizontal): Update.
2909 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2911 * thread.c (_initialize_thread): Fine-tune the help text of
2914 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2916 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2918 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2920 * breakpoint.c (handle_jit_event): Add an argument, change how
2921 `jit_event_handler` is called.
2923 2020-10-17 Tom Tromey <tom@tromey.com>
2925 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2926 (scan_xcoff_symtab): Update.
2927 * psymtab.h (class psymtab_storage) <global_psymbols,
2928 static_psymbols, current_global_psymbols,
2929 current_static_psymbols>: Remove.
2930 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2931 (match_partial_symbol, lookup_partial_symbol): Update.
2932 (print_partial_symbols): Change parameters.
2933 (dump_psymtab, recursively_search_psymtabs)
2934 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2935 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2937 (end_psymtab_common): Simplify.
2938 (append_psymbol_to_list): Change parameters.
2939 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2940 (init_psymbol_list): Simplify.
2941 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2942 * psympriv.h (struct partial_symtab) <empty>: New method.
2943 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2945 <global_psymbols, static_psymbols>: New members.
2946 <add_psymbol>: New methods.
2947 (add_psymbol_to_list): Don't declare.
2948 (psymbol_placement): Move earlier.
2949 * mdebugread.c (parse_partial_symbols): Update.
2950 (handle_psymbol_enumerators): Change parameters.
2951 (mdebug_expand_psymtab): Update.
2952 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2953 (add_partial_symbol): Update.
2954 * dwarf2/index-write.c (write_psymbols): Change parameters.
2955 (write_one_signatured_type): Update.
2956 (recursively_count_psymbols): Update.
2957 (recursively_write_psymbols): Update.
2958 (class debug_names) <recursively_write_psymbols>: Update.
2959 <write_psymbols>: Change parameters.
2960 <write_one_signatured_type>: Update.
2961 * dbxread.c (read_dbx_symtab): Update.
2962 (dbx_end_psymtab): Use partial_symtab::empty.
2963 * ctfread.c (struct ctf_context) <pst>: New member.
2964 (create_partial_symtab): Set it.
2965 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2966 (scan_partial_symbols): Use the psymtab's context. Update.
2968 2020-10-17 Tom Tromey <tom@tromey.com>
2970 * valprint.c (generic_value_print): Remove comment.
2971 * m2-valprint.c (m2_value_print_inner): Remove comment.
2972 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2975 2020-10-17 Tom de Vries <tdevries@suse.de>
2978 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2981 2020-10-14 Tom de Vries <tdevries@suse.de>
2984 * solib.c (solib_contains_address_p): Handle
2985 'solib->sections == nullptr'.
2987 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2990 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2991 target can't do async.
2992 * target.c (target_wait): Assert that we don't pass
2993 TARGET_WNOHANG to a target that can't async.
2995 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2997 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2998 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2999 * alpha-bsd-nat.c: Adjust include.
3000 * alpha-bsd-tdep.h: Adjust comment.
3001 * alpha-nbsd-tdep.c: Rename to ...
3002 * alpha-netbsd-tdep.c: ... this, adjust include.
3003 * amd64-nbsd-nat.c: Rename to ...
3004 * amd64-netbsd-nat.c: ... this, adjust include.
3005 * amd64-nbsd-tdep.c: Rename to ...
3006 * amd64-netbsd-tdep.c: ... this, adjust include.
3007 * amd64-tdep.h: Adjust include.
3008 * arm-nbsd-nat.c: Rename to ...
3009 * arm-netbsd-nat.c: ... this, adjust include.
3010 * arm-nbsd-tdep.c: Rename to ...
3011 * arm-netbsd-tdep.c: ... this, adjust include.
3012 * arm-nbsd-tdep.h: Rename to ...
3013 * arm-netbsd-tdep.h: ... this, adjust include.
3014 * configure.nat: Adjust file lists.
3015 * configure.tgt: Likewise.
3016 * hppa-nbsd-nat.c: Rename to ...
3017 * hppa-netbsd-nat.c: ... this, adjust include.
3018 * hppa-nbsd-tdep.c: Rename to ...
3019 * hppa-netbsd-tdep.c: ... this, adjust include.
3020 * i386-nbsd-nat.c: Rename to ...
3021 * i386-netbsd-nat.c: ... this, adjust include.
3022 * i386-nbsd-tdep.c: Rename to ...
3023 * i386-netbsd-tdep.c: ... this, adjust include.
3024 * m68k-bsd-nat.c: Adjust include.
3025 * mips-nbsd-nat.c: Rename to ...
3026 * mips-netbsd-nat.c: ... this, adjust include.
3027 * mips-nbsd-tdep.c: Rename to ...
3028 * mips-netbsd-tdep.c: ... this, adjust include.
3029 * mips-nbsd-tdep.h: Rename to ...
3030 * mips-netbsd-tdep.h: ... this.
3031 * nbsd-nat.c: Rename to ...
3032 * netbsd-nat.c: ... this, adjust include.
3033 * nbsd-nat.h: Rename to ...
3034 * netbsd-nat.h: ... this, adjust include.
3035 * nbsd-tdep.c: Rename to ...
3036 * netbsd-tdep.c: ... this, adjust include.
3037 * nbsd-tdep.h: Rename to ...
3038 * netbsd-tdep.h: ... this.
3039 * ppc-nbsd-nat.c: Rename to ...
3040 * ppc-netbsd-nat.c: ... this, adjust include.
3041 * ppc-nbsd-tdep.c: Rename to ...
3042 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3043 * ppc-nbsd-tdep.h: Rename to ...
3044 * ppc-netbsd-tdep.h: ... this.
3045 * sh-nbsd-nat.c: Rename to ...
3046 * sh-netbsd-nat.c: ... this, adjust include.
3047 * sh-nbsd-tdep.c: Rename to ...
3048 * sh-netbsd-tdep.c: ... this, adjust include.
3049 * sparc-nbsd-nat.c: Rename to ...
3050 * sparc-netbsd-nat.c: ... this.
3051 * sparc-nbsd-tdep.c: Rename to ...
3052 * sparc-netbsd-tdep.c: ... this, adjust include.
3053 * sparc64-nbsd-nat.c: Rename to ...
3054 * sparc64-netbsd-nat.c: ... this.
3055 * sparc64-nbsd-tdep.c: Rename to ...
3056 * sparc64-netbsd-tdep.c: ... this, adjust include.
3057 * sparc64-tdep.h: Adjust comment.
3058 * vax-bsd-nat.c: Adjust include.
3059 * vax-nbsd-tdep.c: Rename to ...
3060 * vax-netbsd-tdep.c: ... this, adjust include.
3062 2020-10-12 Tom Tromey <tom@tromey.com>
3064 * target.h (struct target_ops) <get_section_table>: Update.
3065 (target_get_section_table): Update.
3066 * target.c (target_get_section_table, target_section_by_addr)
3067 (memory_xfer_partial_1): Update.
3068 * target-section.h (target_section_table): Now an alias.
3069 * target-delegates.c: Rebuild.
3070 * target-debug.h (target_debug_print_target_section_table_p):
3071 Rename from target_debug_print_struct_target_section_table_p.
3072 * symfile.c (build_section_addr_info_from_section_table): Update.
3073 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3074 * solib-svr4.c (scan_dyntag): Update.
3075 * solib-dsbt.c (scan_dyntag): Update.
3076 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3078 * record-full.c (record_full_core_target::xfer_partial): Update.
3079 * progspace.h (struct program_space) <target_sections>: Update.
3080 * exec.h (print_section_info): Update.
3081 * exec.c (exec_target::close, build_section_table)
3082 (add_target_sections, add_target_sections_of_objfile)
3083 (remove_target_sections, exec_on_vfork)
3084 (section_table_available_memory)
3085 (section_table_xfer_memory_partial)
3086 (exec_target::get_section_table, exec_target::xfer_partial)
3087 (print_section_info, set_section_command)
3088 (exec_set_section_address, exec_target::has_memory): Update.
3089 * corelow.c (core_target::build_file_mappings)
3090 (core_target::xfer_partial, core_target::info_proc_mappings)
3091 (core_target::info_proc_mappings): Update.
3092 * bfd-target.c (class target_bfd): Update
3094 2020-10-12 Tom Tromey <tom@tromey.com>
3096 * progspace.c (program_space::~program_space): Don't call
3097 clear_section_table.
3098 * exec.h (clear_section_table): Don't declare.
3099 * exec.c (exec_target::close): Update.
3100 (clear_section_table): Remove.
3102 2020-10-12 Tom Tromey <tom@tromey.com>
3104 * exec.c (add_target_sections_of_objfile): Simplify.
3106 2020-10-12 Tom Tromey <tom@tromey.com>
3108 * solib.c (solib_map_sections): Update.
3109 * record-full.c (record_full_core_open_1): Update.
3110 * exec.h (build_section_table): Return a target_section_table.
3111 * exec.c (exec_file_attach): Update.
3112 (build_section_table): Return a target_section_table.
3113 * corelow.c (core_target::core_target): Update.
3114 * bfd-target.c (target_bfd::target_bfd): Update.
3116 2020-10-12 Tom Tromey <tom@tromey.com>
3118 * target.c (target_section_by_addr, memory_xfer_partial_1):
3120 * target-section.h (struct target_section_table): Use
3122 * symfile.h (build_section_addr_info_from_section_table): Take a
3123 target_section_table.
3124 * symfile.c (build_section_addr_info_from_section_table): Take a
3125 target_section_table.
3126 * solist.h (struct so_list) <sections>: Change type.
3127 <sections_end>: Remove.
3128 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3129 (solib_contains_address_p): Update.
3130 * solib-svr4.c (scan_dyntag): Update.
3131 * solib-dsbt.c (scan_dyntag): Update.
3132 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3134 * record-full.c (record_full_core_start, record_full_core_end):
3136 (record_full_core_sections): New global.
3137 (record_full_core_open_1, record_full_core_target::xfer_partial):
3139 * exec.h (build_section_table, section_table_xfer_memory_partial)
3140 (add_target_sections): Take a target_section_table.
3141 * exec.c (exec_file_attach, clear_section_table): Update.
3142 (resize_section_table): Remove.
3143 (build_section_table, add_target_sections): Take a
3144 target_section_table.
3145 (add_target_sections_of_objfile, remove_target_sections)
3146 (exec_on_vfork): Update.
3147 (section_table_available_memory): Take a target_section_table.
3148 (section_table_read_available_memory): Update.
3149 (section_table_xfer_memory_partial): Take a target_section_table.
3150 (print_section_info, set_section_command)
3151 (exec_set_section_address, exec_target::has_memory): Update.
3152 * corelow.c (class core_target) <m_core_section_table,
3153 m_core_file_mappings>: Remove braces.
3154 <~core_target>: Remove.
3155 (core_target::core_target): Update.
3156 (core_target::~core_target): Remove.
3157 (core_target::build_file_mappings)
3158 (core_target::xfer_memory_via_mappings)
3159 (core_target::xfer_partial, core_target::info_proc_mappings):
3161 * bfd-target.c (target_bfd::xfer_partial): Update.
3162 (target_bfd::target_bfd): Update.
3163 (target_bfd::~target_bfd): Remove.
3165 2020-10-12 Tom Tromey <tom@tromey.com>
3167 * target.h (struct target_section, struct target_section_table):
3168 Move to target-section.h.
3169 * target-section.h: New file.
3171 2020-10-12 Pedro Alves <pedro@palves.net>
3174 * valops.c (struct struct_field_searcher): New.
3175 (update_search_result): Rename to ...
3176 (struct_field_searcher::update_result): ... this. Simplify
3177 prototype. Record all found fields.
3178 (do_search_struct_field): Rename to ...
3179 (struct_field_searcher::search): ... this. Simplify prototype.
3180 Maintain stack of visited baseclass path. Call update_result for
3181 fields too. Keep searching fields in baseclasses instead of
3182 stopping at the first found field.
3183 (search_struct_field): Use struct_field_searcher. When looking
3184 for fields, report ambiguous access attempts.
3186 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3188 * frame.c (inside_main_func): Check full symbols as well as
3191 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3193 * ada-lang.c (advance_wild_match): Rewrite the function's
3194 description. Change the type of target0, t0 and t1 to char.
3196 2020-10-09 Tom Tromey <tromey@adacore.com>
3198 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3200 2020-10-09 Tom Tromey <tromey@adacore.com>
3202 * ada-lang.h (ada_encode): Return std::string.
3203 * ada-lang.c (ada_encode_1): Return std::string.
3204 (ada_encode): Likewise.
3205 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3207 * ada-exp.y (block_lookup, write_var_or_type): Update.
3209 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3212 * printcmd.c (print_formatted): Handle void results as
3215 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3217 * arch/aarch32.c (aarch32_create_target_description): Release the
3218 target_desc_up as late as possible.
3219 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3220 * arch/amd64.c (amd64_create_target_description): Likewise.
3221 * arch/arc.c (arc_create_target_description): Return a
3222 target_desc_up, don't release it.
3223 * arch/arc.h (arc_create_target_description): Update declaration.
3224 (arc_lookup_target_description): Move target_desc_up into the
3225 cache, and return a borrowed pointer.
3226 * arch/arm.c (arm_create_target_description): Release the
3227 target_desc_up as late as possible.
3228 * arch/i386.c (i386_create_target_description): Likewise.
3229 * arch/riscv.h (riscv_create_target_description): Update
3230 declaration to match definition.
3231 * arch/tic6x.c (tic6x_create_target_description): Release the
3232 target_desc_up as late as possible.
3234 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3236 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3237 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3239 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3241 * source.c (directory_command): Notify observers that "directories"
3242 parameter has changed.
3244 2020-10-08 Tom Tromey <tom@tromey.com>
3246 * cli/cli-cmds.c (print_disassembly): Style function name and
3247 addresses. Add _() wrappers.
3249 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3251 * NEWS: Mention ARC support in GDBserver.
3253 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3255 * arch/aarch32.c (aarch32_create_target_description): Release
3256 unique_ptr returned from allocate_target_description.
3257 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3258 * arch/amd64.c (amd64_create_target_description): Likewise.
3259 * arch/arc.c (arc_create_target_description): Likewise.
3260 * arch/arm.c (arm_create_target_description): Likewise.
3261 * arch/i386.c (i386_create_target_description): Likewise.
3262 * arch/riscv.c (riscv_create_target_description): Update return
3263 type. Handle allocate_target_description returning a unique_ptr.
3264 (riscv_lookup_target_description): Update to handle unique_ptr.
3265 * arch/tic6x.c (tic6x_create_target_description): Release
3266 unique_ptr returned from allocate_target_description.
3267 * features/microblaze-with-stack-protect.c: Regenerate.
3268 * features/microblaze.c: Regenerate.
3269 * features/mips-dsp-linux.c: Regenerate.
3270 * features/mips-linux.c: Regenerate.
3271 * features/mips64-dsp-linux.c: Regenerate.
3272 * features/mips64-linux.c: Regenerate.
3273 * features/nds32.c: Regenerate.
3274 * features/nios2.c: Regenerate.
3275 * features/or1k.c: Regenerate.
3276 * features/rs6000/powerpc-32.c: Regenerate.
3277 * features/rs6000/powerpc-32l.c: Regenerate.
3278 * features/rs6000/powerpc-403.c: Regenerate.
3279 * features/rs6000/powerpc-403gc.c: Regenerate.
3280 * features/rs6000/powerpc-405.c: Regenerate.
3281 * features/rs6000/powerpc-505.c: Regenerate.
3282 * features/rs6000/powerpc-601.c: Regenerate.
3283 * features/rs6000/powerpc-602.c: Regenerate.
3284 * features/rs6000/powerpc-603.c: Regenerate.
3285 * features/rs6000/powerpc-604.c: Regenerate.
3286 * features/rs6000/powerpc-64.c: Regenerate.
3287 * features/rs6000/powerpc-64l.c: Regenerate.
3288 * features/rs6000/powerpc-7400.c: Regenerate.
3289 * features/rs6000/powerpc-750.c: Regenerate.
3290 * features/rs6000/powerpc-860.c: Regenerate.
3291 * features/rs6000/powerpc-altivec32.c: Regenerate.
3292 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3293 * features/rs6000/powerpc-altivec64.c: Regenerate.
3294 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3295 * features/rs6000/powerpc-e500.c: Regenerate.
3296 * features/rs6000/powerpc-e500l.c: Regenerate.
3297 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3298 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3299 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3300 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3301 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3302 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3303 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3304 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3305 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3306 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3307 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3308 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3309 * features/rs6000/powerpc-vsx32.c: Regenerate.
3310 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3311 * features/rs6000/powerpc-vsx64.c: Regenerate.
3312 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3313 * features/rs6000/rs6000.c: Regenerate.
3314 * features/rx.c: Regenerate.
3315 * features/s390-gs-linux64.c: Regenerate.
3316 * features/s390-linux32.c: Regenerate.
3317 * features/s390-linux32v1.c: Regenerate.
3318 * features/s390-linux32v2.c: Regenerate.
3319 * features/s390-linux64.c: Regenerate.
3320 * features/s390-linux64v1.c: Regenerate.
3321 * features/s390-linux64v2.c: Regenerate.
3322 * features/s390-te-linux64.c: Regenerate.
3323 * features/s390-tevx-linux64.c: Regenerate.
3324 * features/s390-vx-linux64.c: Regenerate.
3325 * features/s390x-gs-linux64.c: Regenerate.
3326 * features/s390x-linux64.c: Regenerate.
3327 * features/s390x-linux64v1.c: Regenerate.
3328 * features/s390x-linux64v2.c: Regenerate.
3329 * features/s390x-te-linux64.c: Regenerate.
3330 * features/s390x-tevx-linux64.c: Regenerate.
3331 * features/s390x-vx-linux64.c: Regenerate.
3332 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3333 from allocate_target_description.
3334 * target-descriptions.c (allocate_target_description): Update
3336 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3337 allocate_target_description.
3339 2020-10-07 Tom Tromey <tromey@adacore.com>
3341 * unittests/search-memory-selftests.c: New file.
3342 * Makefile.in (SELFTESTS_SRCS): Add
3343 unittests/search-memory-selftests.c.
3345 2020-10-07 Tom Tromey <tromey@adacore.com>
3348 * findcmd.c (_initialize_mem_search): Mention that the range is
3351 2020-10-07 Tom Tromey <tromey@adacore.com>
3353 * target.h (simple_search_memory): Don't declare.
3354 * target.c (simple_search_memory): Move to gdbsupport.
3355 (default_search_memory): Update.
3356 * remote.c (remote_target::search_memory): Update.
3358 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3360 * Makefile.in (COMPILE): Add CXXFLAGS.
3361 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3362 (check-headers): Add CXXFLAGS.
3364 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3366 * arc-linux-tdep.h: New file.
3367 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3368 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3369 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3370 arc_linux_gregset, arc_linux_v2_regset,
3371 arc_linux_iterate_over_regset_sections,
3372 arc_linux_core_read_description): Implement.
3373 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3374 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3375 (arc_gdbarch_features_create): Add.
3376 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3378 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3380 * arch/arc.h: Rename "arc_gdbarch_features" to
3381 "arc_arch_features".
3382 * arc-tdep.h: Likewise.
3383 * arc-tdep.c: Likewise.
3385 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3387 * infcmd.c (attach_command): Remove the redundant call to
3388 `clear_proceed_status`.
3390 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3392 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3394 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3396 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3397 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3398 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3400 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3402 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3403 (_initialize_break_catch_sig): Don't allocate array.
3405 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3407 * symtab.c (find_pc_line): Return unmapped addresses when the
3408 requested address is also unmapped.
3410 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3412 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3415 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3417 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3418 type::is_vector instead of TYPE_VECTOR.
3420 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3422 * auto-load.c (auto_load_objfile_script_1): Don't use
3423 debugfile_holder as temporary variable when stripping drive
3426 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3428 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3429 Add TYPE_CODE_COMPLEX.
3430 (amd64_windows_return_value): Fix types returned via XMM0.
3432 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3434 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3435 AArch64/ARM maintainers.
3437 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3439 * NEWS: Mention set/show debug event-loop.
3441 2020-10-02 Tom Tromey <tromey@adacore.com>
3443 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3446 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3448 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3449 * procfs.c (procfs_inferior_created): Remove.
3450 (_initialize_procfs): Don't register procfs_inferior_created.
3452 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3454 * async-event.c (invoke_async_signal_handlers): Add debug
3456 (check_async_event_handlers): Likewise.
3457 * event-top.c (show_debug_event_loop): New function.
3458 (_initialize_event_top): Register "set debug event-loop"
3461 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3463 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3465 * infrun.c: Include gdbsupport/common-debug.h.
3466 * linux-nat.c: Likewise.
3468 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3470 * async-event.h (create_async_signal_handler): Add name
3472 (create_async_event_handler): Likewise.
3473 * async-event.c (struct async_signal_handler) <name>: New field.
3474 (struct async_event_handler) <name>: New field.
3475 (create_async_signal_handler): Assign name.
3476 (create_async_event_handler): Assign name.
3477 * event-top.c (async_init_signals): Pass name when creating
3479 * infrun.c (_initialize_infrun): Likewise.
3480 * record-btrace.c (record_btrace_push_target): Likewise.
3481 * record-full.c (record_full_open): Likewise.
3482 * remote-notif.c (remote_notif_state_allocate): Likewise.
3483 * remote.c (remote_target::open_1): Likewise.
3484 * tui/tui-win.c (tui_initialize_win): Likewise.
3486 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3488 * async-event.c (initialize_async_signal_handlers): Pass name to
3490 * event-top.c (ui_register_input_event_handler): Likewise.
3491 * linux-nat.c (linux_nat_target::async): Likewise.
3492 * run-on-main-thread.c (_initialize_run_on_main_thread):
3494 * ser-base.c (reschedule): Likewise.
3495 (ser_base_async): Likewise.
3496 * tui/tui-io.c: Likewise.
3497 * top.h (struct ui) <num>: New field.
3498 * top.c (highest_ui_num): New variable.
3499 (ui::ui): Initialize num.
3501 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3503 * observable.h <inferior_created>: Remove parameters. Update all
3505 * inferior.h (post_create_inferior): Remove target parameter.
3508 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3510 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3511 and DW_MACRO_undef_strx.
3512 (dwarf_decode_macros): Likewise
3513 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3514 which is the value of DW_AT_str_offsets_base.
3515 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3518 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3520 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3522 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3524 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3525 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3527 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3529 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3531 2020-09-30 Tom de Vries <tdevries@suse.de>
3534 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3536 2020-09-30 Tom Tromey <tromey@adacore.com>
3538 * dwarf2/read.c (handle_variant): Use constant_value.
3540 2020-09-29 Tom Tromey <tom@tromey.com>
3542 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3543 (read_file_scope, dwarf2_get_pc_bounds)
3544 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3545 (read_structure_type, handle_struct_member_die)
3546 (read_enumeration_type, read_array_type, read_set_type)
3547 (read_tag_pointer_type, read_tag_reference_type)
3548 (read_subroutine_type, read_base_type, read_subrange_type)
3549 (read_full_die_1, partial_die_info::read)
3550 (partial_die_info::read, by, new_symbol)
3551 (dwarf2_const_value_data, dwarf2_const_value_attr)
3552 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3553 (prepare_one_comp_unit): Update.
3554 * dwarf2/attribute.h (DW_UNSND): Remove.
3556 2020-09-29 Tom Tromey <tom@tromey.com>
3558 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3559 (read_subroutine_type, partial_die_info::read)
3560 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3561 (dwarf2_add_member_fn): Update.
3562 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3563 * dwarf2/attribute.c (attribute::as_boolean): New method.
3565 2020-09-29 Tom Tromey <tom@tromey.com>
3567 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3568 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3570 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3572 2020-09-29 Tom Tromey <tom@tromey.com>
3574 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3575 the attribute's form.
3577 2020-09-29 Tom Tromey <tom@tromey.com>
3579 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3580 (dwarf2_add_member_fn): Update.
3581 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3582 * dwarf2/attribute.c (attribute::defaulted): New method, from
3583 is_valid_DW_AT_defaulted.
3585 2020-09-29 Tom Tromey <tom@tromey.com>
3587 * dwarf2/read.c (dw2_get_file_names_reader)
3588 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3589 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3590 (dwarf2_symbol_mark_computed): Use as_unsigned.
3591 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3593 <form_is_section_offset>: Update comment.
3595 2020-09-29 Tom Tromey <tom@tromey.com>
3597 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3598 dwarf2_default_access_attribute. Look up attribute.
3599 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3602 2020-09-29 Tom Tromey <tom@tromey.com>
3604 * dwarf2/read.c (skip_one_die): Update.
3605 (read_full_die_1): Change how reprocessing is done.
3606 (partial_die_info::read): Update.
3607 (read_attribute_value): Remove need_reprocess parameter.
3608 (read_attribute): Likewise.
3609 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3612 2020-09-29 Tom Tromey <tom@tromey.com>
3614 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3615 (dwarf2_const_value_attr, dump_die_shallow)
3616 (dwarf2_fetch_constant_bytes): Update.
3617 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3619 <set_address>: New method.
3621 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3622 (attribute::as_string, attribute::as_address): Add assert.
3624 2020-09-29 Tom Tromey <tom@tromey.com>
3626 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3627 (read_attribute_reprocess, read_attribute_value): Update.
3628 (read_attribute): Clear requires_reprocessing.
3629 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3630 form_requires_reprocessing>: New methods.
3631 <string_init>: Clear requires_reprocessing.
3632 <set_unsigned_reprocess>: New method.
3633 <name>: Shrink by one bit.
3634 <requires_reprocessing>: New member.
3635 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3638 2020-09-29 Tom Tromey <tom@tromey.com>
3640 * dwarf2/read.c (read_attribute_value): Update.
3641 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3642 set_unsigned>: New methods.
3643 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3645 2020-09-29 Tom Tromey <tom@tromey.com>
3647 * dwarf2/read.c (get_alignment, read_array_order)
3648 (read_attribute_value, dwarf2_const_value_attr)
3649 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3650 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3654 2020-09-29 Tom Tromey <tom@tromey.com>
3656 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3657 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3659 * dwarf2/attribute.h (struct attribute) <as_signature,
3660 set_signature>: New methods.
3661 (DW_SIGNATURE): Remove.
3663 2020-09-29 Tom Tromey <tom@tromey.com>
3665 * dwarf2/read.c (read_call_site_scope)
3666 (handle_data_member_location, dwarf2_add_member_fn)
3667 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3668 (partial_die_info::read, read_attribute_value)
3669 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3670 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3671 (dwarf2_symbol_mark_computed): Update.
3672 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3675 * dwarf2/attribute.c (attribute::form_is_block): Add
3678 2020-09-29 Tom Tromey <tom@tromey.com>
3680 * dwarf2/read.c (read_cutu_die_from_dwo)
3681 (read_attribute_reprocess, read_attribute_value, read_attribute)
3682 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3683 (dwarf2_fetch_constant_bytes): Update.
3684 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3685 <set_string_noncanonical, set_string_canonical>: New methods.
3686 <string_is_canonical>: Update comment.
3687 <canonical_string_p>: Add assert.
3688 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3689 * dwarf2/attribute.c (attribute::form_is_string): New method.
3690 (attribute::string): Use it.
3692 2020-09-29 Tom Tromey <tom@tromey.com>
3694 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3695 (dump_die_shallow): Use canonical_string_p.
3696 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3699 2020-09-29 Tom Tromey <tom@tromey.com>
3701 * dwarf2/read.c (partial_die_info::read)
3702 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3703 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3704 attribute::as_string.
3706 2020-09-29 Tom Tromey <tom@tromey.com>
3708 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3710 (attribute::string): Don't use DW_STRING.
3711 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3712 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3714 2020-09-29 Tom Tromey <tom@tromey.com>
3716 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3717 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3718 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3719 * dwarf2/attribute.h (struct attribute): Rename methods.
3720 * dwarf2/attribute.c (attribute::as_address): Rename from
3722 (attribute::as_string): Rename from value_as_string.
3724 2020-09-29 Tom Tromey <tom@tromey.com>
3726 * dwarf2/read.c (partial_die_info::read) <case
3727 DW_AT_linkage_name>: Use value_as_string.
3728 (dwarf2_string_attr): Use value_as_string.
3729 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3731 * dwarf2/attribute.c (attribute::value_as_string): New method.
3733 2020-09-29 Pedro Alves <pedro@palves.net>
3735 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3736 defined before using '#pragma GCC diagnostic' instead of checking
3739 2020-09-28 Tom Tromey <tom@tromey.com>
3741 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3742 (handle_signal_stop): Update.
3743 * procfs.c (procfs_target::insert_watchpoint): Update.
3744 * target.h (target_have_steppable_watchpoint): Now a function.
3746 2020-09-28 Tom Tromey <tom@tromey.com>
3748 * infrun.c (set_schedlock_func): Update.
3749 * target.h (target_can_lock_scheduler): Now a function.
3751 2020-09-28 Tom Tromey <tom@tromey.com>
3753 * inferior.h (class inferior) <has_execution>: Update.
3754 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3755 * valops.c (find_function_in_inferior)
3756 (value_allocate_space_in_inferior): Update.
3757 * top.c (kill_or_detach): Update.
3758 * target.c (target_preopen, set_target_permissions): Update.
3759 (target_has_execution_current): Remove.
3760 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3762 * solib.c (update_solib_list, reload_shared_libraries): Update.
3763 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3764 * solib-dsbt.c (enable_break): Update.
3765 * score-tdep.c (score7_fetch_inst): Update.
3766 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3768 * remote.c (remote_target::start_remote)
3769 (remote_target::remote_check_symbols, remote_target::open_1)
3770 (remote_target::remote_detach_1, remote_target::verify_memory)
3771 (remote_target::xfer_partial, remote_target::read_description)
3772 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3773 * record-full.c (record_full_open_1): Update.
3774 * record-btrace.c (record_btrace_target_open): Update.
3775 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3776 (value_nsstring): Update.
3777 * linux-thread-db.c (add_thread_db_info)
3778 (thread_db_find_new_threads_silently, check_thread_db_callback)
3779 (try_thread_db_load_1, record_thread): Update.
3780 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3782 * linux-fork.c (checkpoint_command): Update.
3783 * infrun.c (set_non_stop, set_observer_mode)
3784 (check_multi_target_resumption, for_each_just_stopped_thread)
3785 (maybe_remove_breakpoints, normal_stop)
3786 (class infcall_suspend_state): Update.
3787 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3788 (info_program_command, attach_command): Update.
3789 * infcall.c (call_function_by_hand_dummy): Update.
3790 * inf-loop.c (inferior_event_handler): Update.
3791 * gcore.c (gcore_command, derive_heap_segment): Update.
3792 * exec.c (exec_file_command): Update.
3793 * eval.c (evaluate_subexp): Update.
3794 * compile/compile.c (compile_to_object): Update.
3795 * cli/cli-dump.c (restore_command): Update.
3796 * breakpoint.c (update_watchpoint)
3797 (update_inserted_breakpoint_locations)
3798 (insert_breakpoint_locations, get_bpstat_thread): Update.
3799 * target.h (target_has_execution): Remove macro.
3800 (target_has_execution_current): Don't declare.
3801 (target_has_execution): Rename from target_has_execution_1. Add
3804 2020-09-28 Tom Tromey <tom@tromey.com>
3806 * mi/mi-main.c (exec_reverse_continue)
3807 (mi_cmd_list_target_features): Update.
3808 * infrun.c (set_exec_direction_func): Update.
3809 * target.c (default_execution_direction): Update.
3810 * reverse.c (exec_reverse_once): Update.
3811 * target.h (target_can_execute_reverse): Now a function.
3813 2020-09-28 Tom Tromey <tom@tromey.com>
3815 * tui/tui-regs.c (tui_get_register)
3816 (tui_data_window::show_registers): Update.
3817 * thread.c (scoped_restore_current_thread::restore)
3818 (scoped_restore_current_thread::scoped_restore_current_thread):
3820 * regcache-dump.c (regcache_print): Update.
3821 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3823 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3824 * mep-tdep.c (current_me_module, current_options): Update.
3825 * linux-thread-db.c (thread_db_load): Update.
3826 * infcmd.c (registers_info, info_vector_command)
3827 (info_float_command): Update.
3828 * ia64-tdep.c (ia64_frame_prev_register)
3829 (ia64_sigtramp_frame_prev_register): Update.
3830 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3831 * gcore.c (derive_stack_segment): Update.
3832 * frame.c (get_current_frame, has_stack_frames): Update.
3833 * findvar.c (language_defn::read_var_value): Update.
3834 * arm-tdep.c (arm_pc_is_thumb): Update.
3835 * target.c (target_has_registers): Rename from
3836 target_has_registers_1.
3837 * target.h (target_has_registers): Remove macro.
3838 (target_has_registers): Rename from target_has_registers_1.
3840 2020-09-28 Tom Tromey <tom@tromey.com>
3842 * windows-tdep.c (tlb_make_value): Update.
3843 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3844 * thread.c (scoped_restore_current_thread::restore)
3845 (scoped_restore_current_thread::scoped_restore_current_thread)
3846 (thread_command): Update.
3847 * stack.c (backtrace_command_1, frame_apply_level_command)
3848 (frame_apply_all_command, frame_apply_command): Update.
3849 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3851 * gcore.c (derive_stack_segment): Update.
3852 * frame.c (get_current_frame, has_stack_frames): Update.
3853 * auxv.c (info_auxv_command): Update.
3854 * ada-tasks.c (ada_build_task_list): Update.
3855 * target.c (target_has_stack): Rename from target_has_stack_1.
3856 * target.h (target_has_stack): Remove macro.
3857 (target_has_stack): Rename from target_has_stack_1.
3859 2020-09-28 Tom Tromey <tom@tromey.com>
3861 * target.c (target_has_memory): Rename from target_has_memory_1.
3862 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3863 * thread.c (scoped_restore_current_thread::restore)
3864 (scoped_restore_current_thread::scoped_restore_current_thread):
3866 * frame.c (get_current_frame, has_stack_frames): Update.
3867 * target.h (target_has_memory): Remove macro.
3868 (target_has_memory): Rename from target_has_memory_1.
3870 2020-09-28 Tom Tromey <tom@tromey.com>
3872 * target.c (target_has_all_memory_1): Remove.
3873 * target.h (target_has_all_memory): Remove define.
3874 (target_has_all_memory_1): Don't declare.
3876 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3878 * ser-base.c: Adjust comments formatting.
3880 2020-09-27 Tom Tromey <tom@tromey.com>
3883 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3885 2020-09-27 Tom Tromey <tom@tromey.com>
3888 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3890 2020-09-27 Tom Tromey <tom@tromey.com>
3892 * unittests/tui-selftests.c: Update.
3893 * tui/tui-winsource.h (struct tui_source_window_base)
3894 <extra_margin, show_line_number, refresh_pad>: New methods.
3895 <m_max_length, m_pad>: New members.
3896 (tui_copy_source_line): Update.
3897 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3898 first_col, line_width, ndigits parameters. Add length.
3899 (tui_source_window_base::show_source_line): Write to pad. Line
3901 (tui_source_window_base::refresh_pad): New method.
3902 (tui_source_window_base::show_source_content): Write to pad. Call
3904 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3906 (tui_source_window_base::update_exec_info): Call
3908 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3910 <m_digits>: New member.
3911 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3913 (tui_source_window::show_line_number): New method.
3914 * tui/tui-io.h (tui_puts): Fix comment.
3915 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3918 2020-09-27 Tom Tromey <tom@tromey.com>
3920 * tui/tui-winsource.c
3921 (tui_source_window_base::set_is_exec_point_at): Don't call
3924 2020-09-27 Tom Tromey <tom@tromey.com>
3926 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3929 <cursor_x, cursor_y>: Remove.
3930 <m_inner_window>: New member.
3931 (tui_py_window::rerender): Create inner window.
3932 (tui_py_window::output): Write to inner window.
3934 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3937 * cli/cli-script.c (execute_control_commands): don't set
3938 instream to nullptr here as this breaks the from_tty argument
3939 to gdb.execute in Python.
3940 (execute_user_command): set instream to nullptr here instead.
3942 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3944 * infrun.h (infrun_debug_printf): Fix formatting.
3945 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3947 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3949 * compile/compile-object-load.h (struct munmap_list): Add
3950 explicitly-defined move constructor.
3952 2020-09-24 Tom Tromey <tromey@adacore.com>
3955 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3957 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3958 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3959 (tui_prev_win): Rewrite.
3961 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3963 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3964 in WOW64 processes as SIGINT.
3965 * nat/windows-nat.h: Make wow64_process a shared variable.
3966 * windows-nat.c: Remove static wow64_process variable.
3968 2020-09-23 Tom Tromey <tom@tromey.com>
3971 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3972 offset and bit size.
3973 * printcmd.c (print_scalar_formatted): Handle zero-length
3975 (print_scalar_formatted): Use bit_size_differs_p.
3976 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3978 (union type_specific): <int_stuff>: New member.
3979 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3981 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3982 TYPE_SPECIFIC_FIELD.
3983 (recursive_dump_type, copy_type_recursive): Update.
3984 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3985 DW_AT_data_bit_offset.
3987 2020-09-23 Tom Tromey <tom@tromey.com>
3989 * utils.h (class gdb_argv): Add move operators.
3990 <append>: New methods.
3991 * compile/compile.c (build_argc_argv): Remove.
3992 (compile_args_argc): Remove.
3993 (compile_args_argv): Change type.
3994 (set_compile_args): Simplify.
3995 (append_args): Remove.
3996 (filter_args): Remove argcp parameter.
3997 (get_args): Return gdb_argv. Simplify.
3998 (compile_to_object): Update.
4000 2020-09-23 Tom Tromey <tom@tromey.com>
4002 * compile/compile-object-run.c (do_module_cleanup)
4003 <~do_module_cleanup> :Remove.
4004 (do_module_cleanup): Update.
4005 * compile/compile-object-load.h (struct munmap_list): Add move
4006 assignment operator.
4007 <source_file>: Now a std::string.
4008 <munmap_list>: Rename. No longer a pointer.
4009 * compile/compile-object-load.c (struct setup_sections_data): Add
4011 <setup_one_section>: Declare.
4012 <munmap_list>: Move earlier.
4013 <m_bfd>: New member.
4014 <m_last_size, m_last_section_first, m_last_prot,
4015 m_last_max_alignment>: Rename, add initializers where needed.
4016 (setup_sections_data::setup_one_section): Rename from
4017 setup_sections. Update.
4018 (compile_object_load): Update. Don't use bfd_map_over_sections.
4020 2020-09-23 Tom Tromey <tom@tromey.com>
4022 * compile/compile-object-run.c (struct do_module_cleanup): Add
4023 parameters to constructor. Update destructor.
4024 <source_file, scope, scope_data, out_value_type, out_value_addr,
4025 munmap_list_head, objfile_name_string>: Remove.
4026 <module>: New member.
4027 (do_module_cleanup): Update.
4028 (compile_object_run): Update.
4030 2020-09-23 Tom Tromey <tom@tromey.com>
4032 * compile/compile.c (eval_compile_command): Update.
4033 * compile/compile-object-run.h (compile_object_run): Take a
4035 * compile/compile-object-run.c (compile_object_run): Take a
4037 * compile/compile-object-load.h (struct compile_module): Add
4038 constructor, destructor.
4039 (compile_module_up): New typedef.
4040 (compile_object_load): Return compile_object_up.
4041 * compile/compile-object-load.c (compile_object_load): Return
4044 2020-09-23 Tom Tromey <tom@tromey.com>
4046 * compile/compile-object-run.c (struct do_module_cleanup): Add
4047 constructor, destructor.
4048 <objfile_name_string>: Don't use struct hack.
4049 (do_module_cleanup): Use delete.
4050 (compile_object_run): Use new.
4052 2020-09-23 Tom Tromey <tom@tromey.com>
4054 * compile/compile-cplus-types.c
4055 (compile_cplus_convert_struct_or_union): Use std::vector.
4056 (compile_cplus_convert_func): Likewise.
4057 * compile/compile-c-types.c (convert_func): Use std::vector.
4059 2020-09-21 Tom Tromey <tromey@adacore.com>
4061 * sparc-tdep.c (sparc32_skip_prologue): Use
4062 skip_prologue_using_sal.
4064 2020-09-19 Tom Tromey <tom@tromey.com>
4066 * symfile.c (add_section_size_callback): Remove.
4067 (load_one_section): Rename from load_section_callback. Change
4069 (generic_load): Use foreach.
4071 2020-09-19 Tom Tromey <tom@tromey.com>
4073 * exec.c (add_to_section_table): Remove.
4074 (build_section_table): Use foreach.
4076 2020-09-19 Tom Tromey <tom@tromey.com>
4078 * elfread.c (elf_locate_sections): Change parameters.
4079 (elf_symfile_read): Use foreach.
4081 2020-09-19 Tom Tromey <tom@tromey.com>
4083 * cli/cli-dump.c (struct callback_data): Remove.
4084 (restore_one_section): Rename from restore_section_callback.
4086 (restore_binary_file): Change parameters.
4087 (restore_command): Use foreach.
4089 2020-09-19 Tom Tromey <tom@tromey.com>
4091 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4092 (gcore_copy_callback): Likewise.
4093 (gcore_memory_sections): Use foreach.
4095 2020-09-19 Tom Tromey <tom@tromey.com>
4097 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4098 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4100 (generic_elf_osabi_sniffer): Use foreach.
4101 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4102 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4104 2020-09-19 Tom Tromey <tom@tromey.com>
4106 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4107 (dwarf2_get_dwz_file): Use foreach.
4108 (dwarf2_locate_dwo_sections): Change parameters.
4109 (open_and_init_dwo_file): Use foreach.
4110 (dwarf2_locate_common_dwp_sections): Change parameters.
4111 (open_and_init_dwp_file): Use foreach.
4113 2020-09-19 Tom Tromey <tom@tromey.com>
4115 * symfile.h: (find_lowest_section): Don't declare.
4116 * symfile.c (find_lowest_section): Now static. Change
4118 (struct place_section_arg): Remove.
4119 (place_section): Change parameters.
4120 (addr_info_make_relative): Use foreach.
4121 (symfile_dummy_outputs): Remove.
4122 (default_symfile_relocate): Use foreach.
4124 2020-09-19 Tom Tromey <tom@tromey.com>
4126 * objfiles.c (add_to_objfile_sections): Rename from
4127 add_to_objfile_sections_full.
4128 (add_to_objfile_sections): Remove.
4129 (build_objfile_section_table): Use foreach.
4131 2020-09-19 Tom Tromey <tom@tromey.com>
4133 * stap-probe.c (get_stap_base_address_1): Remove.
4134 (get_stap_base_address): Use foreach.
4136 2020-09-19 Tom Tromey <tom@tromey.com>
4138 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4140 (gdb_bfd_close_or_warn): Use foreach.
4142 2020-09-19 Tom Tromey <tom@tromey.com>
4144 * corelow.c (add_to_thread_list): Change parameters.
4145 (core_target_open): Use foreach.
4147 2020-09-19 Tom Tromey <tom@tromey.com>
4149 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4152 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4154 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4157 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4159 * eval.c: Remove 'f-lang.h' include.
4160 (value_f90_subarray): Moved to f-lang.c.
4161 (eval_call): Renamed to...
4162 (evaluate_subexp_do_call): ...this, is no longer static, header
4163 comment moved into header file.
4164 (evaluate_funcall): Update call to eval_call.
4165 (skip_undetermined_arglist): Moved to f-lang.c.
4166 (fortran_value_subarray): Likewise.
4167 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4168 moved to evaluate_subexp_f.
4169 (calc_f77_array_dims): Moved to f-lang.c
4170 * expprint.c (print_subexp_funcall): New function.
4171 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4172 moved to print_subexp_f, OP_FUNCALL uses new function.
4173 (dump_subexp_body_funcall): New function.
4174 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4175 moved to dump_subexp_f, OP_FUNCALL uses new function.
4176 * expression.h (evaluate_subexp_do_call): Declare.
4177 * f-lang.c (value_f90_subarray): Moved from eval.c.
4178 (skip_undetermined_arglist): Likewise.
4179 (calc_f77_array_dims): Likewise.
4180 (fortran_value_subarray): Likewise.
4181 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4182 (operator_length_f): Likewise.
4183 (print_subexp_f): Likewise.
4184 (dump_subexp_body_f): Likewise.
4185 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4186 declaration of this operation to here.
4187 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4188 support moved to operator_length_f.
4189 * parser-defs.h (dump_subexp_body_funcall): Declare.
4190 (print_subexp_funcall): Declare.
4191 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4192 fortran-operator.def.
4194 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4196 * eval.c (fortran_value_subarray): New function, content is taken
4198 (evaluate_subexp_standard): ...here, in two places. Now arrays
4199 and strings both call the new function.
4200 (calc_f77_array_dims): Add header comment, handle strings.
4202 2020-09-18 Victor Collod <vcollod@nvidia.com>
4205 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4206 (i386_analyze_prologue): Call i386_skip_endbr.
4208 2020-09-18 Tom Tromey <tromey@adacore.com>
4210 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4211 (windows_nat_target::wait): Update.
4212 * target/wait.h (enum target_wait_flag): New. Use
4213 DEF_ENUM_FLAGS_TYPE.
4214 * target/target.h (target_wait): Change type of options.
4215 * target.h (target_options_to_string, default_target_wait):
4217 (struct target_ops) <wait>: Change type of options.
4218 * target.c (target_wait, default_target_wait, do_option): Change
4220 (target_options_to_string): Likewise.
4221 * target-delegates.c: Rebuild.
4222 * target-debug.h (target_debug_print_target_wait_flags): Rename
4223 from target_debug_print_options.
4224 * sol-thread.c (class sol_thread_target) <wait>: Update.
4225 (sol_thread_target::wait): Update.
4226 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4227 (rs6000_nat_target::wait): Update.
4228 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4230 (remote_target::wait_ns, remote_target::wait_as): Change type of
4232 (remote_target::wait): Update.
4233 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4234 (gdbsim_target::wait): Update.
4235 * record-full.c (class record_full_base_target) <wait>: Update.
4236 (record_full_wait_1): Change type of "options".
4237 (record_full_base_target::wait): Update.
4238 * record-btrace.c (class record_btrace_target) <wait>: Update.
4239 (record_btrace_target::wait): Update.
4240 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4242 (ravenscar_thread_target::wait): Update.
4243 * procfs.c (class procfs_target) <wait>: Update.
4244 (procfs_target::wait): Update.
4245 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4246 * obsd-nat.c (obsd_nat_target::wait): Update.
4247 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4248 (nto_procfs_target::wait): Update.
4249 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4250 * nbsd-nat.c (nbsd_wait): Change type of "options".
4251 (nbsd_nat_target::wait): Update.
4252 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4253 (thread_db_target::wait): Update.
4254 * linux-nat.h (class linux_nat_target) <wait>: Update.
4255 * linux-nat.c (linux_nat_target::wait): Update.
4256 (linux_nat_wait_1): Update.
4257 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4259 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4260 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4261 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4262 (go32_nat_target::wait): Update.
4263 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4264 * gnu-nat.c (gnu_nat_target::wait): Update.
4265 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4266 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4267 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4268 * darwin-nat.c (darwin_nat_target::wait): Update.
4269 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4270 (bsd_uthread_target::wait): Update.
4271 * aix-thread.c (class aix_thread_target) <wait>: Update.
4272 (aix_thread_target::wait): Update.
4274 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4276 * compile/compile-object-run.c (create_copied_type_recursive): New
4278 (compile_object_run): Use new function.
4280 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4282 * NEWS: Mention x86_64 Cygwin core file support.
4284 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4286 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4287 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4289 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4291 * windows-tdep.h: Add prototypes.
4292 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4293 (i386_windows_core_pid_to_str): Move and rename ...
4294 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4295 (windows_core_pid_to_str): ... and here.
4296 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4298 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4299 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4300 (amd64_windows_init_abi_common): ... and register.
4302 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4304 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4305 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4307 2020-09-18 Pedro Alves <pedro@palves.net>
4310 * thread.c (thread_find_command): Switch inferior before calling
4313 2020-09-17 Tom Tromey <tromey@adacore.com>
4315 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4316 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4317 (tdesc_arch_data_up): New typedef.
4318 (tdesc_use_registers, tdesc_data_alloc): Update.
4319 (tdesc_data_cleanup): Don't declare.
4320 * target-descriptions.c (tdesc_data_alloc): Return a
4322 (tdesc_arch_data_deleter::operator()): Rename from
4323 tdesc_data_cleanup. Change argument type.
4324 (tdesc_use_registers): Change early_data to an rvalue reference.
4325 (tdesc_use_registers): Don't use delete.
4326 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4327 * s390-tdep.c (s390_gdbarch_init): Update.
4328 * rx-tdep.c (rx_gdbarch_init): Update.
4329 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4330 * riscv-tdep.c (riscv_gdbarch_init): Update.
4331 * or1k-tdep.c (or1k_gdbarch_init): Update.
4332 * nios2-tdep.c (nios2_gdbarch_init): Update.
4333 * nds32-tdep.c (nds32_gdbarch_init): Update.
4334 * mips-tdep.c (mips_gdbarch_init): Update.
4335 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4336 * m68k-tdep.c (m68k_gdbarch_init): Update.
4337 * i386-tdep.c (i386_gdbarch_init): Update.
4338 * arm-tdep.c (arm_gdbarch_init): Update.
4339 * arc-tdep.c (arc_tdesc_init): Update.
4340 (arc_gdbarch_init): Update.
4341 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4343 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4345 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4346 for WOW64 processes.
4348 2020-09-17 Tom Tromey <tom@tromey.com>
4350 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4352 2020-09-17 Tom Tromey <tom@tromey.com>
4354 * value.c (preserve_values): Update.
4355 * python/py-type.c (save_objfile_types): Update.
4356 * guile/scm-type.c (save_objfile_types): Update.
4357 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4358 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4359 * compile/compile-object-run.c (compile_object_run): Update.
4361 2020-09-17 Tom Tromey <tom@tromey.com>
4363 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4365 <m_table>: Now htab_up.
4366 * typeprint.c (typedef_hash_table::recursively_update)
4367 (typedef_hash_table::add_template_parameters)
4368 (typedef_hash_table::typedef_hash_table): Update.
4369 (typedef_hash_table::~typedef_hash_table): Remove.
4370 (typedef_hash_table::typedef_hash_table)
4371 (typedef_hash_table::find_global_typedef)
4372 (typedef_hash_table::find_typedef): Update.
4374 2020-09-17 Tom Tromey <tom@tromey.com>
4376 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4378 2020-09-17 Tom Tromey <tom@tromey.com>
4380 * linespec.c (class decode_compound_collector)
4381 <~decode_compound_collector>: Remove.
4382 <m_unique_syms>: Now htab_up.
4383 (decode_compound_collector::operator ()): Update.
4384 (class symtab_collector) <~symtab_collector>: Remove.
4385 <m_symtab_table>: Now htab_up.
4386 (symtab_collector::operator ()): Update.
4388 2020-09-17 Tom Tromey <tom@tromey.com>
4390 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4391 (filename_seen_cache::clear): Update.
4392 (~filename_seen_cache): Remove.
4393 (filename_seen_cache::seen): Update.
4394 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4396 <~filename_seen_cache>: Remove.
4399 2020-09-17 Tom Tromey <tom@tromey.com>
4401 * completer.c (completion_tracker::discard_completions)
4402 (completion_tracker::~completion_tracker)
4403 (completion_tracker::maybe_add_completion)
4404 (completion_tracker::remove_completion)
4405 (completion_tracker::recompute_lowest_common_denominator)
4406 (completion_tracker::build_completion_result): Update.
4407 * completer.h (class completion_tracker) <have_completions>:
4409 <m_entries_hash>: Now htab_up.
4411 2020-09-17 Tom Tromey <tom@tromey.com>
4413 * breakpoint.c (ambiguous_names_p): Use htab_up.
4415 2020-09-17 Tom Tromey <tom@tromey.com>
4417 * auto-load.c (struct auto_load_pspace_info)
4418 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4419 <loaded_script_files, loaded_script_texts>: Change type to
4421 (~auto_load_pspace_info) Remove.
4422 (init_loaded_scripts_info, maybe_add_script_file)
4423 (maybe_add_script_text, auto_load_info_scripts): Update.
4425 2020-09-17 Tom Tromey <tromey@adacore.com>
4427 * c-exp.y (name_obstack): Now static.
4429 2020-09-17 Chungyi Chi <demonic@csie.io>
4431 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4433 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4435 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4436 (add_solib_catchpoint): Likewise.
4437 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4439 (add_solib_catchpoint): Change int parameter/variable to bool.
4440 (catch_load_or_unload): Likewise.
4441 (init_catchpoint): Likewise.
4442 (create_fork_vfork_event_catchpoint): Likewise.
4443 (catch_fork_command_1): Likewise.
4444 (catch_exec_command_1): Likewise.
4446 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4448 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4449 Change instance_flags to m_instance_flags.
4451 2020-09-16 Tom Tromey <tromey@adacore.com>
4454 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4456 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4458 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4460 (fbsd_nat_target::insert_exec_catchpoint)
4461 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4462 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4463 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4465 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4467 * configure.ac: Remove check for kinfo_getvmmap().
4468 * configure, config.in: Regenerate.
4469 * fbsd-nat.c (fbsd_read_mapping): Remove
4470 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4471 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4472 kinfo_get_vmmap() are always present.
4474 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4476 * fbsd-nat.c: Always include support for
4477 TARGET_OBJECT_SIGNAL_INFO.
4479 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4481 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4482 sysctl and remove procfs fallback.
4484 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4486 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4487 * fbsd-nat.h: Likewise.
4489 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4491 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4494 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4496 * ada-lang.c (ada_language_data): Delete.
4497 (ada_language): Remove references to ada_language_data.
4498 * c-lang.c (c_language_data): Delete.
4499 (c_language): Remove references to c_language_data.
4500 (cplus_language_data): Delete.
4501 (cplus_language): Remove references to cplus_language_data.
4502 (asm_language_data): Delete.
4503 (asm_language): Remove references to asm_language_data.
4504 (minimal_language_data): Delete.
4505 (minimal_language): Remove references to minimal_language_data.
4506 * d-lang.c (d_language_data): Delete.
4507 (d_language): Remove references to d_language_data.
4508 * f-lang.c (f_language_data): Delete.
4509 (f_language): Remove references to f_language_data.
4510 * go-lang.c (go_language_data): Delete.
4511 (go_language): Remove references to go_language_data.
4512 * language.c (unknown_language_data): Delete.
4513 (unknown_language): Remove references to unknown_language_data.
4514 (auto_language_data): Delete.
4515 (auto_language): Remove references to auto_language_data.
4516 * language.h (language_data): Delete struct.
4517 (language_defn): No longer inherit from language_data.
4518 * m2-lang.c (m2_language_data): Delete.
4519 (m2_language): Remove references to m2_language_data.
4520 * objc-lang.c (objc_language_data): Delete.
4521 (objc_language): Remove references to objc_language_data.
4522 * opencl-lang.c (opencl_language_data): Delete.
4523 (opencl_language): Remove references to opencl_language_data.
4524 * p-lang.c (pascal_language_data): Delete.
4525 (pascal_language): Remove references to pascal_language_data.
4526 * rust-lang.c (rust_language_data): Delete.
4527 (rust_language): Remove references to rust_language_data.
4529 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4531 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4533 (ada_language::opcode_print_table): New member function.
4534 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4535 (c_language::opcode_print_table): New member function.
4536 (cplus_language_data): Remove la_op_print_tab initializer.
4537 (cplus_language::opcode_print_table): New member function.
4538 (asm_language_data): Remove la_op_print_tab initializer.
4539 (asm_language::opcode_print_table): New member function.
4540 (minimal_language_data): Remove la_op_print_tab initializer.
4541 (minimal_language::opcode_print_table): New member function.
4542 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4543 (d_language::opcode_print_table): New member function.
4544 * expprint.c (print_subexp_standard): Update call to
4546 (op_string): Likewise.
4547 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4548 (f_language::opcode_print_table): New member function.
4549 * go-lang.c (go_language_data): Remove la_op_print_tab
4551 (go_language::opcode_print_table): New member function.
4552 * language.c (unknown_language_data): Remove la_op_print_tab
4554 (unknown_language::opcode_print_table): New member function.
4555 (auto_language_data): Remove la_op_print_tab initializer.
4556 (auto_language::opcode_print_table): New member function.
4557 * language.h (language_data): Remove la_op_print_tab field.
4558 (language_defn::opcode_print_table): Declare new member function.
4559 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4561 (m2_language::opcode_print_table): New member function.
4562 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4564 (objc_language::opcode_print_table): New member function.
4565 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4567 (opencl_language::opcode_print_table): New member function.
4568 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4570 (pascal_language::opcode_print_table): New member function.
4571 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4573 (rust_language::opcode_print_table): New member function.
4575 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4577 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4578 (ada_language::expression_ops): New member function.
4579 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4580 (c_language::expression_ops): New member function.
4581 (cplus_language_data): Remove la_exp_desc initializer.
4582 (cplus_language::expression_ops): New member function.
4583 (asm_language_data): Remove la_exp_desc initializer.
4584 (asm_language::expression_ops): New member function.
4585 (minimal_language_data): Remove la_exp_desc initializer.
4586 (minimal_language::expression_ops): New member function.
4587 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4588 (d_language::expression_ops): New member function.
4589 * eval.c (evaluate_subexp): Update call to expression_ops.
4590 * expprint.c (print_subexp): Likewise.
4591 (op_name): Likewise.
4592 (dump_subexp_body): Likewise.
4593 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4594 (f_language::expression_ops): New member function.
4595 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4596 (go_language::expression_ops): New member function.
4597 * language.c (language_defn::expression_ops): New function.
4598 (unknown_language_data): Remove la_exp_desc initializer.
4599 (auto_language_data): Likewise.
4600 * language.h (language_data): Remove la_exp_desc field.
4601 (language_defn::expression_ops): Declare new member function.
4602 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4603 (m2_language::expression_ops): New member function.
4604 * objc-lang.c (objc_language_data): Remove la_exp_desc
4606 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4608 (opencl_language::expression_ops): New member function.
4609 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4610 * parse.c (operator_length): Update call to expression_ops.
4611 (exp_iterate): Likewise.
4612 * rust-lang.c (rust_language_data): Remove la_exp_desc
4614 (ruse_language::expression_ops): New member function.
4616 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4618 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4620 (ada_language::varobj_ops): New member function.
4621 * c-lang.c (c_language_data): Remove la_varobj_ops
4623 (cplus_language_data): Likewise.
4624 (cplus_language::varobj_ops): New member function.
4625 (asm_language_data): Remove la_varobj_ops initializer.
4626 (minimal_language_data): Likewise.
4627 * d-lang.c (d_language_data): Likewise.
4628 * f-lang.c (f_language_data): Likewise.
4629 * go-lang.c (go_language_data): Likewise.
4630 * language.c (language_defn::varobj_ops): New function.
4631 (unknown_language_data): Remove la_varobj_ops
4633 (auto_language_data): Likewise.
4634 * language.h (language_data): Remove la_varobj_ops field.
4635 (language_defn::varobj_ops): Declare new member function.
4636 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4637 * objc-lang.c (objc_language_data): Likewise.
4638 * opencl-lang.c (opencl_language_data): Likewise.
4639 * p-lang.c (pascal_language_data): Likewise.
4640 * rust-lang.c (rust_language_data): Likewise.
4641 * varobj.c (varobj_create): Update call to varobj_ops.
4642 * varobj.h (default_varobj_ops): Delete define.
4644 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4646 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4648 * c-lang.c (c_language_data): Likewise.
4649 (c_language::macro_expansion): New member function.
4650 (cplus_language_data): Likewise.
4651 (cplus_language::macro_expansion): New member function.
4652 (asm_language_data): Likewise.
4653 (asm_language::macro_expansion): New member function.
4654 (minimal_language_data): Likewise.
4655 (minimal_language::macro_expansion): New member function.
4656 * d-lang.c (d_language_data): Remove la_macro_expansion
4658 * f-lang.c (f_language_data): Likewise.
4659 * go-lang.c (go_language_data): Likewise.
4660 * language.c (unknown_language_data): Likewise.
4661 (auto_language_data): Likewise.
4662 * language.h (language_data): Remove la_macro_expansion field.
4663 (language_defn::macro_expansion): New member function.
4664 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4666 * objc-lang.c (objc_language_data): Likewise.
4667 (objc_language::macro_expansion): New member function.
4668 * opencl-lang.c (opencl_language_data): Likewise.
4669 (opencl_language::macro_expansion): New member function.
4670 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4672 * rust-lang.c (rust_language_data): Likewise.
4673 * symtab.c (default_collect_symbol_completion_matches_break_on):
4674 Update call to macro_expansion.
4676 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4678 * ada-lang.c (ada_language_data): Remove la_array_ordering
4680 * c-lang.c (c_language_data): Likewise.
4681 (cplus_language_data): Likewise.
4682 (asm_language_data): Likewise.
4683 (minimal_language_data): Likewise.
4684 * d-lang.c (d_language_data): Likewise.
4685 * dwarf2/read.c (read_array_order): Update for call to
4687 * f-lang.c (f_language_data): Remove la_array_ordering
4689 (f_language::array_ordering): New member function.
4690 * go-lang.c (go_language_data): Remove la_array_ordering
4692 * language.c (unknown_language_data): Likewise.
4693 (auto_language_data): Likewise.
4694 * language.h (language_data): Delete la_array_ordering field.
4695 (language_defn::array_ordering): New member function.
4696 * m2-lang.c (m2_language_data): Remove la_array_ordering
4698 * objc-lang.c (objc_language_data): Likewise.
4699 * opencl-lang.c (opencl_language_data): Likewise.
4700 * p-lang.c (pascal_language_data): Likewise.
4701 * rust-lang.c (rust_language_data): Likewise.
4703 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4705 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4707 * c-lang.c (c_language_data): Likewise.
4708 (cplus_language_data): Likewise.
4709 (asm_language_data): Likewise.
4710 (minimal_language_data): Likewise.
4711 * d-lang.c (d_language_data): Likewise.
4712 * f-lang.c (f_language_data): Likewise.
4713 (f_language::case_sensitivity): New member function.
4714 * go-lang.c (go_language_data): Remove la_case_sensitivity
4716 * language.c (enum case_mode): Moved here from language.h.
4717 (case_mode): Make static.
4718 (show_case_command): Update for case_sensitivity being a method.
4719 (set_case_command): Likewise.
4720 (set_range_case): Likewise.
4721 (unknown_language_data): Remove la_case_sensitivity initializer.
4722 (auto_language_data): Likewise.
4723 * language.h (case_mode): Delete, move enum declaration to
4725 (language_data): Delete la_case_sensitivity field.
4726 (language_defn::case_sensitivity): New member function.
4727 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4729 * objc-lang.c (objc_language_data): Likewise.
4730 * opencl-lang.c (opencl_language_data): Likewise.
4731 * p-lang.c (pascal_language_data): Likewise.
4732 * rust-lang.c (rust_language_data): Likewise.
4734 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4736 * ada-lang.c (ada_language_data): Remove la_range_check
4738 * c-lang.c (c_language_data): Likewise.
4739 (cplus_language_data): Likewise.
4740 (asm_language_data): Likewise.
4741 (minimal_language_data): Likewise.
4742 * d-lang.c (d_language_data): Likewise.
4743 * f-lang.c (f_language_data): Likewise.
4744 (f_language::range_checking_on_by_default): New member function.
4745 * go-lang.c (go_language_data): Remove la_range_check initializer.
4746 * language.c (enum range_mode): Moved here from language.h.
4747 (range_mode): Made static.
4748 (show_range_command): Update to use
4749 range_checking_on_by_default.
4750 (set_range_command): Likewise.
4751 (set_range_case): Likewise.
4752 (unknown_language_data): Remove la_range_check initializer.
4753 (auto_language_data): Likewise.
4754 * language.h (range_mode): Delete. Enum definition moved to
4756 (language_data): Remove la_range_check field.
4757 (language_defn::range_checking_on_by_default): New member
4759 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4760 (m2_language::range_checking_on_by_default): New member function.
4761 * objc-lang.c (objc_language_data): Remove la_range_check
4763 * opencl-lang.c (opencl_language_data): Likewise.
4764 * p-lang.c (pascal_language_data): Likewise.
4765 (pascal_language::range_checking_on_by_default): New member
4767 * rust-lang.c (rust_language_data): Remove la_range_check
4769 (rust_language::range_checking_on_by_default): New member
4772 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4774 * dwarf2/read.c (dwarf2_physname): Remove special case for
4776 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4779 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4781 * ada-lang.c (ada_language_data): Remove
4782 la_store_sym_names_in_linkage_form_p initializer.
4783 (ada_language::store_sym_names_in_linkage_form_p): New member
4785 * c-lang.c (c_language_data): Remove
4786 la_store_sym_names_in_linkage_form_p initializer.
4787 (c_language::store_sym_names_in_linkage_form_p): New member
4789 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4791 (asm_language_data): Likewise.
4792 (asm_language::store_sym_names_in_linkage_form_p): New member
4794 (minimal_language_data): Remove
4795 la_store_sym_names_in_linkage_form_p initializer.
4796 (minimal_language::store_sym_names_in_linkage_form_p): New member
4798 * d-lang.c (d_language_data): Remove
4799 la_store_sym_names_in_linkage_form_p initializer.
4800 * dwarf2/read.c (dwarf2_physname): Update call to
4801 store_sym_names_in_linkage_form_p.
4802 * f-lang.c (f_language_data): Remove
4803 la_store_sym_names_in_linkage_form_p initializer.
4804 * go-lang.c (go_language_data): Remove
4805 la_store_sym_names_in_linkage_form_p initializer.
4806 * language.c (unknown_language_data): Remove
4807 la_store_sym_names_in_linkage_form_p initializer.
4808 (unknown_language::store_sym_names_in_linkage_form_p): New member
4810 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4812 (auto_language::store_sym_names_in_linkage_form_p): New member
4814 * language.h (language_data): Remove
4815 la_store_sym_names_in_linkage_form_p member variable.
4816 (language_defn::store_sym_names_in_linkage_form_p): New member
4818 * m2-lang.c (m2_language_data): Remove
4819 la_store_sym_names_in_linkage_form_p initializer.
4820 * objc-lang.c (objc_language_data): Likewise.
4821 * opencl-lang.c (opencl_language_data): Likewise.
4822 * p-lang.c (pascal_language_data): Likewise.
4823 * rust-lang.c (rust_language_data): Likewise.
4825 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4827 * ada-lang.c (ada_language_data): Remove string_lower_bound
4829 * c-lang.c (c_language_data): Likewise.
4830 (cplus_language_data): Likewise.
4831 (asm_language_data): Likewise.
4832 (minimal_language_data): Likewise.
4833 * d-lang.c (d_language_data): Likewise.
4834 * f-lang.c (f_language_data): Likewise.
4835 * go-lang.c (go_language_data): Likewise.
4836 * language.c (unknown_language_data): Likewise.
4837 (auto_language_data): Likewise.
4838 * language.h (language_data): Remove string_lower_bound field.
4839 (language_defn::string_lower_bound): New member function.
4840 * m2-lang.c (m2_language_data): Remove string_lower_bound
4842 (m2_language::string_lower_bound): New member function.
4843 * objc-lang.c (objc_language_data): Remove string_lower_bound
4845 * opencl-lang.c (opencl_language_data): Likewise.
4846 * p-lang.c (pascal_language_data): Likewise.
4847 * rust-lang.c (rust_language_data): Likewise.
4848 * valops.c (value_cstring): Update call to string_lower_bound.
4849 (value_string): Likewise.
4850 * value.c (allocate_repeated_value): Likewise.
4852 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4854 * valops.c (value_repeat): Fix incorrect argument name in comment.
4856 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4858 * ada-lang.c (ada_language_data): Remove c_style_arrays
4860 (ada_language::c_style_arrays_p): New member fuction.
4861 * c-lang.c (c_language_data): Remove c_style_arrays
4863 (cplus_language_data): Likewise.
4864 (asm_language_data): Likewise.
4865 (minimal_language_data): Likewise.
4866 * d-lang.c (d_language_data): Likewise.
4867 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4868 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4869 (f_language::c_style_arrays_p): New member function.
4870 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4871 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4872 * language.c (unknown_language_data): Remove c_style_arrays
4874 (auto_language_data): Likewise.
4875 * language.h (language_data): Remove c_style_arrays field.
4876 (language_defn::c_style_arrays_p): New member function.
4877 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4878 (m2_language::c_style_arrays_p): New member function.
4879 * objc-lang.c (objc_language_data): Remove c_style_arrays
4881 * opencl-lang.c (opencl_language_data): Likewise.
4882 * p-lang.c (pascal_language_data): Likewise.
4883 * rust-lang.c (rust_language_data): Likewise.
4884 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4885 and update local variable to a bool.
4886 * valops.c (value_cast): Update call to c_style_arrays_p.
4887 (value_array): Likewise.
4888 * value.c (coerce_array): Likewise.
4890 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4892 * ada-lang.c (ada_language_data): Remove la_language initializer.
4893 * c-lang.c (c_language_data): Likewise.
4894 (cplus_language_data): Likewise.
4895 (asm_language_data): Likewise.
4896 (minimal_language_data): Likewise.
4897 * d-lang.c (d_language_data): Likewise.
4898 * f-lang.c (f_language_data): Likewise.
4899 * go-lang.c (go_language_data): Likewise.
4900 * language.c (unknown_language_data): Likewise.
4901 (auto_language_data): Likewise.
4902 * language.h (language_data): Remove la_language field.
4903 (language_defn::language_defn): Initialise la_language field.
4904 (language_defn::la_language): New member variable.
4905 * m2-lang.c (m2_language_data): Remove la_language field.
4906 * objc-lang.c (objc_language_data): Likewise.
4907 * opencl-lang.c (opencl_language_data): Likewise.
4908 * p-lang.c (pascal_language_data): Likewise.
4909 * rust-lang.c (rust_language_data): Likewise.
4911 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4913 * ada-lang.c (ada_extensions): Delete, moved into
4914 ada_language::filename_extensions.
4915 (ada_language_data): Remove la_filename_extensions initializer.
4916 (ada_language::filename_extensions): New member function.
4917 * c-lang.c (c_extensions): Delete, moved into
4918 c_language::filename_extensions.
4919 (c_language_data): Remove la_filename_extensions initializer.
4920 (c_language::filename_extensions): New member function.
4921 (cplus_extensions): Delete, moved into
4922 cplus_language::filename_extensions.
4923 (cplus_language_data): Remove la_filename_extensions initializer.
4924 (cplus_language::filename_extensions): New member function.
4925 (asm_extensions): Delete, moved into
4926 asm_language::filename_extensions.
4927 (asm_language_data): Remove la_filename_extensions initializer.
4928 (asm_language::filename_extensions): New member function.
4929 (minimal_language_data): Remove la_filename_extensions
4931 * d-lang.c (d_extensions): Delete, moved into
4932 d_language::filename_extensions.
4933 (d_language_data): Remove la_filename_extensions initializer.
4934 (d_language::filename_extensions): New member function.
4935 * f-lang.c (f_extensions): Delete, moved into
4936 f_language::filename_extensions.
4937 (f_language_data): Remove la_filename_extensions initializer.
4938 (f_language::filename_extensions): New member function.
4939 * go-lang.c (go_language_data): Remove la_filename_extensions
4941 * language.c (add_set_language_command): Update now that
4942 filename_extensions returns a vector.
4943 (unknown_language_data): Remove la_filename_extensions
4945 (auto_language_data): Likewise.
4946 * language.h (language_data): Remove la_filename_extensions field.
4947 (language_defn::filename_extensions): New member function.
4948 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4950 * objc-lang.c (objc_extensions): Delete, moved into
4951 objc_language::filename_extensions.
4952 (objc_language_data): Remove la_filename_extensions initializer.
4953 (objc_language::filename_extensions): New member function.
4954 * opencl-lang.c (opencl_language_data): Remove
4955 la_filename_extensions initializer.
4956 * p-lang.c (pascal_extensions): Delete, moved into
4957 pascal_language::filename_extensions.
4958 (pascal_language_data): Remove la_filename_extensions initializer.
4959 (pascal_language::filename_extensions): New member function.
4960 * rust-lang.c (rust_extensions): Delete, moved into
4961 rust_language::filename_extensions.
4962 (rust_language_data): Remove la_filename_extensions initializer.
4963 (rust_language::filename_extensions): New member function.
4964 * symfile.c (add_filename_language): Add new assert.
4966 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4968 * ada-lang.c (ada_language_data): Remove la_name and
4969 la_natural_name initializers.
4970 (ada_language::name): New member function.
4971 (ada_language::natural_name): New member function.
4972 * c-lang.c (c_language_data): Remove la_name and
4973 la_natural_name initializers.
4974 (c_language::name): New member function.
4975 (c_language::natural_name): New member function.
4976 (cplus_language_data): Remove la_name and
4977 la_natural_name initializers.
4978 (cplus_language::name): New member function.
4979 (cplus_language::natural_name): New member function.
4980 (asm_language_data): Remove la_name and
4981 la_natural_name initializers.
4982 (asm_language::name): New member function.
4983 (asm_language::natural_name): New member function.
4984 (minimal_language_data): Remove la_name and
4985 la_natural_name initializers.
4986 (minimal_language::name): New member function.
4987 (minimal_language::natural_name): New member function.
4988 * compile/compile.c (compile_to_object): Update call to
4989 lanugage_defn::name.
4990 * d-lang.c (d_language_data): Remove la_name and
4991 la_natural_name initializers.
4992 (d_language::name): New member function.
4993 (d_language::natural_name): New member function.
4994 * expprint.c (print_subexp_standard): Update call to
4995 language_defn::name.
4996 (dump_raw_expression): Likewise
4997 (dump_prefix_expression): Likewise.
4998 * f-lang.c (f_language_data): Remove la_name and
4999 la_natural_name initializers.
5000 (f_language::name): New member function.
5001 (f_language::natural_name): New member function.
5002 * go-lang.c (go_language_data): Remove la_name and
5003 la_natural_name initializers.
5004 (go_language::name): New member function.
5005 (go_language::natural_name): New member function.
5006 * language.c (show_language_command): Update call to
5007 language_defn::name.
5008 (set_language_command): Likewise.
5009 (language_enum): Likewise.
5010 (language_str): Likewise.
5011 (add_set_language_command): Likewise, use
5012 language_defn::natural_name in the doc string.
5013 (unknown_language_data): Remove la_name and
5014 la_natural_name initializers.
5015 (unknown_language::name): New member function.
5016 (unknown_language::natural_name): New member function.
5017 (auto_language_data): Remove la_name and
5018 la_natural_name initializers.
5019 (auto_language::name): New member function.
5020 (auto_language::natural_name): New member function.
5021 (language_lookup_primitive_type_as_symbol): Update call to
5022 language_defn::name.
5023 * language.h (language_data): Remove la_name and la_natural_name
5025 (language_defn::name): New member function.
5026 (language_defn::natural_name): New member function.
5027 * m2-lang.c (m2_language_data): Remove la_name and
5028 la_natural_name initializers.
5029 (m2_language::name): New member function.
5030 (m2_language::natural_name): New member function.
5031 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5032 language_defn::natural_name.
5033 * objc-lang.c (objc_language_data): Remove la_name and
5034 la_natural_name initializers.
5035 (objc_language::name): New member function.
5036 (objc_language::natural_name): New member function.
5037 * opencl-lang.c (opencl_language_data): Remove la_name and
5038 la_natural_name initializers.
5039 (opencl_language::name): New member function.
5040 (opencl_language::natural_name): New member function.
5041 * p-lang.c (pascal_language_data): Remove la_name and
5042 la_natural_name initializers.
5043 (pascal_language::name): New member function.
5044 (pascal_language::natural_name): New member function.
5045 * rust-lang.c (rust_language_data): Remove la_name and
5046 la_natural_name initializers.
5047 (rust_language::name): New member function.
5048 (rust_language::natural_name): New member function.
5049 * symtab.c (lookup_language_this): Update call to
5050 language_defn::name.
5052 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5054 * ada-lang.c (ada_language_data): Remove la_name_of_this
5056 * ax-gdb.c (gen_expr): Update call to name_of_this.
5057 * c-exp.y (classify_name): Likewise.
5058 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5059 (cplus_language_data): Likewise.
5060 (cplus_language::name_of_this): New member function.
5061 (asm_language_data): Remove la_name_of_this initializer.
5062 (minimal_language_data): Likewise.
5063 * d-lang.c (d_language_data): Likewise.
5064 (d_language::name_of_this): New member function.
5065 * expprint.c (print_subexp_standard): Update call to name_of_this.
5066 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5067 * go-lang.c (go_language_data): Likewise.
5068 * language.c (unknown_language_data): Likewise.
5069 (unknown_language::name_of_this): New member function.
5070 (auto_language_data): Remove la_name_of_this initializer.
5071 (auto_language::name_of_this): New member function.
5072 * language.h (language_data): Delete la_name_of_this member
5074 (language_defn::name_of_this): New member function.
5075 * m2-lang.c (m2_language_data): Remove la_name_of_this
5077 * objc-lang.c (objc_language_data): Likewise.
5078 (objc_language::name_of_this): New member function.
5079 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5081 * p-lang.c (pascal_language_data): Likewise.
5082 (pascal_language::name_of_this): New member function.
5083 * rust-lang.c (rust_language_data): Remove la_name_of_this
5085 * symtab.c (lookup_language_this): Update call to name_of_this.
5086 (lookup_symbol_aux): Likewise.
5087 * valops.c (value_of_this): Likewise.
5089 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5091 * ada-lang.c (ada_language_data): Remove
5092 la_struct_too_deep_ellipsis initializer.
5093 (ada_language::struct_too_deep_ellipsis): New member function.
5094 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5096 (cplus_language_data): Likewise.
5097 (asm_language_data): Likewise.
5098 (minimal_language_data): Likewise.
5099 * cp-valprint.c (cp_print_value): Update call to
5100 struct_too_deep_ellipsis.
5101 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5103 * f-lang.c (f_language_data): Likewise.
5104 (f_language::struct_too_deep_ellipsis): New member function.
5105 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5107 * language.c (unknown_language_data): Likewise.
5108 (auto_language_data): Likewise.
5109 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5111 (language_defn::struct_too_deep_ellipsis): New member function.
5112 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5114 * objc-lang.c (objc_language_data): Likewise.
5115 * opencl-lang.c (opencl_language_data): Likewise.
5116 * p-lang.c (pascal_language_data): Likewise.
5117 * rust-lang.c (rust_language_data): Likewise.
5118 * valprint.c (val_print_check_max_depth): Update call to
5119 struct_too_deep_ellipsis.
5121 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5123 * MAINTAINERS (Write After Approval): Add myself.
5125 2020-09-15 Tom Tromey <tom@tromey.com>
5127 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5130 2020-09-15 Tom Tromey <tom@tromey.com>
5132 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5133 and TYPE_CODE_METHODPTR cases.
5134 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5135 (c_value_print_inner): Update.
5136 * valprint.c (generic_value_print_memberptr): New function, from
5137 c_value_print_memberptr.
5138 (generic_value_print): Use it. Call cplus_print_method_ptr.
5140 2020-09-15 Tom Tromey <tromey@adacore.com>
5142 * python/python-internal.h (PyInt_FromLong): Remove define.
5143 * python/py-value.c (convert_value_from_python): Use
5144 gdb_py_object_from_longest.
5145 * python/py-type.c (typy_get_code): Use
5146 gdb_py_object_from_longest.
5147 * python/py-symtab.c (salpy_get_line): Use
5148 gdb_py_object_from_longest.
5149 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5150 gdb_py_object_from_longest.
5151 * python/py-record.c (recpy_gap_reason_code): Use
5152 gdb_py_object_from_longest.
5153 * python/py-record-btrace.c (recpy_bt_insn_size)
5154 (recpy_bt_func_level, btpy_list_count): Use
5155 gdb_py_object_from_longest.
5156 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5157 gdb_py_object_from_longest. Fix error handling.
5158 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5159 gdb_py_object_from_longest.
5160 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5161 gdb_py_object_from_longest.
5162 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5163 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5164 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5166 2020-09-15 Tom Tromey <tromey@adacore.com>
5168 * python/python.c (gdbpy_parameter_value): Use
5169 gdb_py_object_from_ulongest.
5171 2020-09-15 Tom Tromey <tromey@adacore.com>
5173 * python/py-infevents.c (create_register_changed_event_object):
5174 Use gdb_py_object_from_longest.
5175 * python/py-exitedevent.c (create_exited_event_object): Use
5176 gdb_py_object_from_longest.
5178 2020-09-15 Tom Tromey <tromey@adacore.com>
5180 * python/python.c (gdbpy_parameter_value): Use
5181 gdb_py_object_from_longest.
5182 * python/py-type.c (convert_field, typy_range): Use
5183 gdb_py_object_from_longest.
5184 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5185 gdb_py_object_from_longest.
5186 * python/py-lazy-string.c (stpy_get_length): Use
5187 gdb_py_object_from_longest.
5188 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5189 gdb_py_object_from_longest.
5190 * python/py-infevents.c (create_memory_changed_event_object): Use
5191 gdb_py_object_from_longest.
5192 * python/py-inferior.c (infpy_get_num): Use
5193 gdb_py_object_from_longest.
5194 (infpy_get_pid): Likewise.
5196 2020-09-15 Tom Tromey <tromey@adacore.com>
5198 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5200 * python/py-value.c (valpy_long): Use
5201 gdb_py_object_from_ulongest.
5202 * python/py-symtab.c (salpy_get_pc): Use
5203 gdb_py_object_from_ulongest.
5204 (salpy_get_last): Likewise.
5205 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5206 gdb_py_object_from_ulongest.
5207 * python/py-lazy-string.c (stpy_get_address): Use
5208 gdb_py_object_from_ulongest.
5209 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5210 * python/py-arch.c (archpy_disassemble): Use
5211 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5214 2020-09-15 Tom Tromey <tromey@adacore.com>
5216 * python/python-internal.h (gdb_py_long_from_longest): Remove
5218 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5219 * python/py-type.c (convert_field, typy_get_sizeof): Use
5220 gdb_py_object_from_longest.
5221 * python/py-record-btrace.c (btpy_list_index): Use
5222 gdb_py_object_from_longest.
5224 2020-09-15 Tom Tromey <tromey@adacore.com>
5226 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5227 * python/py-record.c (recpy_element_number): Use
5228 gdb_py_object_from_longest.
5229 (recpy_gap_number): Likewise.
5231 2020-09-15 Tom Tromey <tromey@adacore.com>
5233 * top.c (ui::ui): Update.
5234 (highest_ui_num): Remove.
5235 * top.h (struct ui) <num>: Remove.
5237 2020-09-15 Tom Tromey <tromey@adacore.com>
5239 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5240 * ui-style.c (ansi_regex_text): Now array.
5241 * rust-exp.y (number_regex_text): Now array.
5242 * linespec.c (linespec_quote_characters): Now array.
5243 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5246 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5248 * debuginfod-support.c (debuginfod_client_deleter): New.
5249 (debuginfod_client_up): New.
5250 (debuginfod_init): Return debuginfod_client_up.
5251 (debuginfod_source_query): Adjust.
5252 (debuginfod_debuginfo_query): Adjust.
5254 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5256 * debuginfod-support.c (debuginfod_source_query): Use
5257 make_unique_xstrdup.
5259 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5261 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5262 with `type::instance_flags`.
5264 2020-09-14 Michael Mullin <masmullin@gmail.com>
5266 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5267 Remove baton parameter.
5269 2020-09-14 Pedro Alves <pedro@palves.net>
5271 * Makefile.in (SELFTESTS_SRCS): Add
5272 unittests/enum-flags-selftests.c.
5273 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5274 btrace_function_flags instead of enum btrace_function_flag.
5275 * compile/compile-c-types.c (convert_qualified): Use
5277 * compile/compile-cplus-symbols.c (convert_one_symbol)
5278 (convert_symbol_bmsym):
5279 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5280 (compile_cplus_convert_struct_or_union_methods)
5281 (compile_cplus_instance::convert_qualified_base):
5282 * go-exp.y (parse_string_or_char): Add cast to int.
5283 * unittests/enum-flags-selftests.c: New file.
5284 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5285 type to btrace_thread_flags from btrace_thread_flag.
5286 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5287 local's type to btrace_thread_flags from btrace_thread_flag. Add
5290 2020-09-14 Pedro Alves <pedro@palves.net>
5292 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5293 * gdbtypes.c (address_space_name_to_int): Rename to ...
5294 (address_space_name_to_type_instance_flags): ... this.
5295 (address_space_int_to_name): Rename to ...
5296 (address_space_type_instance_flags_to_name): ... this.
5297 * gdbtypes.h (address_space_name_to_int): Rename to ...
5298 (address_space_name_to_type_instance_flags): ... this.
5299 (address_space_int_to_name): Rename to ...
5300 (address_space_type_instance_flags_to_name): ... this.
5301 * type-stack.c (type_stack::insert): Adjust to rename.
5302 * type-stack.h (type_stack::insert): Likewise.
5304 2020-09-14 Pedro Alves <pedro@palves.net>
5305 Andrew Burgess <andrew.burgess@embecosm.com>
5307 * avr-tdep.c (avr_address_class_type_flags): Return
5308 type_instance_flags.
5309 (avr_address_class_type_flags_to_name): Take a
5310 type_instance_flags.
5311 (avr_address_class_name_to_type_flags): Return bool and take a
5312 type_instance_flags.
5313 * d-lang.c (build_d_types): Use type::set_instance_flags.
5314 * ft32-tdep.c (ft32_address_class_type_flags): Return
5315 type_instance_flags.
5316 (ft32_address_class_type_flags_to_name): Take a
5317 type_instance_flags.
5318 (ft32_address_class_name_to_type_flags): Return bool and take a
5319 type_instance_flags.
5320 (ft32_gdbarch_init): Use type::set_instance_flags.
5321 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5322 * gdbarch.h, gdbarch.c: Regenerate.
5323 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5324 (address_class_name_to_type_flags): Use type_instance_flags and
5326 * gdbtypes.c (address_space_name_to_int)
5327 (address_space_int_to_name, make_qualified_type): Use
5328 type_instance_flags.
5329 (make_qualified_type): Use type_instance_flags and
5330 type::set_instance_flags.
5331 (make_type_with_address_space, make_cv_type, make_vector_type)
5332 (check_typedef): Use type_instance_flags.
5333 (recursive_dump_type): Cast type_instance_flags to unsigned for
5335 (copy_type_recursive): Use type::set_instance_flags.
5336 (gdbtypes_post_init): Use type::set_instance_flags.
5337 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5338 <m_instance_flags>: ... this.
5339 <instance_flags, set_instance_flags>: New methods.
5340 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5341 (SET_TYPE_INSTANCE_FLAGS): New.
5342 (address_space_name_to_int, address_space_int_to_name)
5343 (make_type_with_address_space): Pass flags using
5344 type_instance_flags instead of int.
5345 * stabsread.c (cleanup_undefined_types_noname): Use
5346 type::set_instance_flags.
5347 * s390-tdep.c (s390_address_class_type_flags): Return
5348 type_instance_flags.
5349 (s390_address_class_type_flags_to_name): Take a
5350 type_instance_flags.
5351 (s390_address_class_name_to_type_flags): Return bool and take a
5352 type_instance_flags.
5353 * type-stack.c (type_stack::follow_types): Use
5354 type_instance_flags.
5355 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5357 2020-09-14 Tom Tromey <tromey@adacore.com>
5359 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5360 * x86-tdep.c (x86_is_thunk_register_name)
5361 (x86_in_indirect_branch_thunk): Update.
5362 * sparc64-tdep.c (sparc64_fpu_register_names)
5363 (sparc64_cp0_register_names, sparc64_register_names)
5364 (sparc64_pseudo_register_names): Now const.
5365 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5366 cp0_registers_num>: Now const.
5367 * sparc-tdep.c (sparc_core_register_names)
5368 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5369 (sparc32_pseudo_register_names): Now const.
5370 (validate_tdesc_registers): Update.
5371 * rust-lang.c (rust_extensions): Now const.
5372 * p-lang.c (p_extensions): Now const.
5373 * objc-lang.c (objc_extensions): Now const.
5374 * nto-tdep.c (nto_thread_state_str): Now const.
5375 * moxie-tdep.c (moxie_register_names): Now const.
5376 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5378 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5379 (mips_linux_reg_names): Now const.
5380 (mips_gdbarch_init): Update.
5381 * microblaze-tdep.c (microblaze_register_names): Now const.
5382 * m68k-tdep.c (m68k_register_names): Now const.
5383 * m32r-tdep.c (m32r_register_names): Now const.
5384 * ia64-tdep.c (ia64_register_names): Now const.
5385 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5386 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5387 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5388 ymm_avx512_register_names, pkeys_register_names>: Now const.
5389 * i386-tdep.c (i386_register_names, i386_zmm_names)
5390 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5391 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5392 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5393 * f-lang.c (f_extensions): Now const.
5394 * d-lang.c (d_extensions): Now const.
5395 * csky-tdep.c (csky_register_names): Now const.
5396 * charset.c (default_charset_names, charset_enum): Now const.
5397 (_initialize_charset): Update.
5398 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5400 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5401 (bsd_uthread_solib_loaded): Update.
5402 (bsd_uthread_state): Now const.
5403 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5404 (amd64_ymm_avx512_names, amd64_ymmh_names)
5405 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5406 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5407 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5408 (amd64_dword_names): Now const.
5409 * agent.c (can_use_agent_enum): Now const.
5410 * ada-tasks.c (task_states, long_task_states): Now const.
5411 * ada-lang.c (known_runtime_file_name_patterns)
5412 (known_auxiliary_function_name_patterns, attribute_names)
5413 (standard_exc, ada_extensions): Now const.
5415 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5417 * bcache.h (struct bcache) <bcache>: Remove constructor.
5418 <m_hash_function, m_compare_function>: Remove.
5419 <~bcache>: Make virtual.
5420 <compare>: Remove static method, introduce virtual method.
5421 <default_hash>: Remove.
5422 <hash>: New virtual method.
5423 * bcache.c (bcache::expand_hash_table): Update.
5424 (bcache::insert): Update.
5425 (bcache::hash): New.
5426 (bcache::compare): Update comment and parameter names.
5427 * gdbtypes.c (types_deeply_equal): Update.
5428 * psymtab.h (struct psymbol_bcache): New struct.
5429 (class psymtab_storage) <psymtab_storage>: Make default.
5430 <psymbol_cache>: Change type to psymbol_bcache.
5431 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5432 (psymbol_hash): Change to...
5433 (psymbol_bcache::hash): ... this.
5434 (psymbol_compare): Change to...
5435 (psymbol_bcache::compare): ... this.
5437 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5439 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5440 checking for initial lwp.
5442 2020-09-14 Tom Tromey <tromey@adacore.com>
5444 * m68k-tdep.c (m68k_extract_return_value): Use
5445 pointer_result_regnum.
5446 (m68k_store_return_value): Likewise.
5447 (m68k_reg_struct_return_p): Handle vectors and arrays.
5448 (m68k_return_value): Handle arrays.
5449 (m68k_svr4_return_value): Fix single-element aggregate handling.
5450 Handle long double. Adjust for embedded ABI.
5451 (m68k_svr4_init_abi): Set pointer_result_regnum.
5452 (m68k_embedded_init_abi): New function.
5453 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5454 (m68k_osabi_sniffer): New function.
5455 (_initialize_m68k_tdep): Register osabi sniffer.
5456 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5459 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5461 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5462 with gdb::unique_xmalloc_ptr<char>.
5464 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5466 * xml-support.h (xml_fetch_another): Change type to be a
5468 (xml_process_xincludes): Remove baton parameter.
5469 (xml_fetch_content_from_file): Change baton parameter to
5471 * xml-support.c (struct xinclude_parsing_data)
5472 <xinclude_parsing_data>: Remove baton parameter.
5473 <fetcher_baton>: Remove.
5474 (xinclude_start_include): Adjust.
5475 (xml_process_xincludes): Adjust.
5476 (xml_fetch_content_from_file): Replace baton parameter with
5478 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5479 (xml_init_syscalls_info): Use a lambda.
5480 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5481 (file_read_description_xml): Use a lambda.
5482 (fetch_available_features_from_target): Change baton parameter
5484 (target_read_description_xml): Use a lambda.
5485 (target_fetch_description_xml): Use a lambda.
5486 (string_read_description_xml): Update.
5488 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5490 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5491 uses with type::endianity_is_not_default.
5493 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5495 * gdbtypes.h (struct type) <endianity_is_not_default,
5496 set_endianity_is_not_default>: New methods.
5497 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5498 type::endianity_is_not_default, change all write call sites to
5499 use type::set_endianity_is_not_default.
5501 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5503 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5504 uses with type::is_fixed_instance.
5506 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5508 * gdbtypes.h (struct type) <is_fixed_instance,
5509 set_is_fixed_instance>: New methods.
5510 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5511 write call sites to use type::set_is_fixed_instance.
5513 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5515 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5516 uses with type::is_gnu_ifunc.
5518 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5520 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5521 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5522 use type::set_is_gnu_ifunc.
5524 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5526 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5527 uses with type::stub_is_supported.
5529 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5531 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5532 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5533 use type::set_stub_is_supported.
5535 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5537 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5538 uses with type::is_vector.
5540 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5542 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5543 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5544 use type::set_is_vector.
5546 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5548 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5549 uses with type::has_varargs.
5551 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5553 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5554 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5555 use type::set_has_varargs.
5557 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5559 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5560 uses with type::is_prototyped.
5562 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5564 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5566 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5567 call sites to use type::set_is_prototyped.
5569 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5571 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5572 uses with type::target_is_stub.
5574 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5576 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5578 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5579 sites to use type::set_target_is_stub.
5581 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5583 * gdbtypes.h (TYPE_STUB): Remove, replace all
5584 uses with type::is_stub.
5586 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5588 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5589 (TYPE_STUB): Use type::is_stub, change all write call sites to
5590 use type::set_is_stub.
5592 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5594 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5595 type::has_no_signedness.
5597 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5599 * gdbtypes.h (struct type) <has_no_signedness,
5600 set_has_no_signedness>: New methods.
5601 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5602 call sites to use type::set_has_no_signedness.
5604 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5606 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5609 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5611 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5613 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5614 sites to use type::set_is_unsigned.
5616 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5617 Adam Renquinha <arenquinha@cimeq.qc.ca>
5619 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5620 pointer and stack frame offset when unwinding.
5622 2020-09-13 Pedro Alves <pedro@palves.net>
5624 * NEWS: Document "-break-insert --qualified".
5625 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5627 2020-09-13 Pedro Alves <pedro@palves.net>
5629 * linespec.c (classify_mtype, compare_msyms): Delete.
5630 (search_minsyms_for_name): Remove classification logic. Instead
5631 filter out trampoline symbols if we also found an external
5632 function of the same name.
5634 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5636 * NEWS: Create a new section for the next release branch.
5637 Rename the section of the current branch, now that it has
5640 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5642 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5643 * version.in: Bump version to 11.0.50.DATE-git.
5645 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5647 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5649 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5650 Felix Willgerodt <Felix.Willgerodt@intel.com>
5652 * gdbarch.sh: Added bfloat16 type.
5653 * gdbarch.c: Regenerated.
5654 * gdbarch.h: Regenerated.
5655 * gdbtypes.c (floatformats_bfloat16): New struct.
5656 (gdbtypes_post_init): Add builtin_bfloat16.
5657 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5658 (floatformats_bfloat16): New struct.
5659 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5660 (i386_ymm_type): Add field "v16_bfloat16"
5661 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5662 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5663 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5664 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5665 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5666 * features/i386/64bit-avx512.c: Regenerated.
5667 * features/i386/64bit-sse.xml: Add bfloat16 type.
5668 * features/i386/64bit-sse.c: Regenerated.
5670 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5672 * i386-tdep.c (i386_zmm_type): Fix field names.
5673 (i386_ymm_type): Fix field names.
5675 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5677 * breakpoint.c: Fix typo in the help message of the
5678 "set breakpoint condition-evaluation" command.
5680 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5682 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5683 * (nbsd_nat_target::pid_to_exec_file)
5684 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5685 (nbsd_nat_target::post_startup_inferior)
5686 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5687 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5688 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5689 * (nbsd_thread_lister): Remove.
5691 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5693 * fork-inferior.c (startup_inferior): Avoid double free.
5695 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5697 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5698 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5700 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5702 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5703 * netbsd-nat.c: Include <sys/ptrace.h>.
5704 * (netbsd_nat::enable_proc_events): Add.
5706 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5708 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5709 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5710 (netbsd_nat::for_each_thread): Add.
5711 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5712 "gdbsupport/common-debug.h".
5713 * (netbsd_nat::netbsd_thread_lister)
5714 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5715 (netbsd_nat::for_each_thread): Add.
5717 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5719 * netbsd-nat.h: Include <unistd.h>.
5720 * (netbsd_nat::pid_to_exec_file): Add.
5721 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5722 * (netbsd_nat::pid_to_exec_file) Add.
5724 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5726 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5728 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5730 * netbsd-nat.h: New file.
5731 * netbsd-nat.c: Likewise.
5733 2020-09-09 Tom Tromey <tromey@adacore.com>
5735 * ada-lang.c (remove_extra_symbols): Do not increment when
5738 2020-09-08 Tom Tromey <tromey@adacore.com>
5740 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5742 2020-09-08 Tom Tromey <tromey@adacore.com>
5745 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5746 (gdb_bfd_init_data): New function.
5747 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5749 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5751 * infrun.c (fetch_inferior_event): Use
5752 `switch_to_target_no_thread` to switch the target.
5754 2020-09-06 Tom Tromey <tom@tromey.com>
5756 * symfile.h (dwarf2_free_objfile): Don't declare.
5758 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5760 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5761 to match 16 byte real/complex type generated by Flang compiler.
5763 2020-09-03 Tom de Vries <tdevries@suse.de>
5766 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5767 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5769 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5771 * maint.c (index_digits): New function.
5772 (struct maint_print_section_data): Remove.
5773 (print_bfd_section_info): Remove print_data parameter, add arg
5775 (print_objfile_section_info): Likewise.
5776 (print_bfd_section_info_maybe_relocated): Likewise (plus
5778 (maintenance_info_sections): Adjust calls.
5780 2020-09-02 Tom Tromey <tromey@adacore.com>
5782 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5784 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5786 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5788 * bcache.h (struct bcache) <insert>: Change type of `added` to
5790 * bcache.c (bcache::insert): Likewise.
5791 * gdbtypes.c (check_types_worklist): Adjust.
5792 * psymtab.c (add_psymbol_to_bcache): Adjust.
5794 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5796 * corelow.c (unordered_set): Include.
5797 (class core_target): Add field 'm_core_unavailable_mappings'.
5798 (core_target::build_file_mappings): Print only one warning
5799 per inaccessible file. Add unavailable/broken mappings
5800 to m_core_unavailable_mappings.
5801 (core_target::xfer_partial): Call...
5802 (core_target::xfer_memory_via_mappings): New method.
5804 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5806 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5809 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5811 * dwarf2/read.c (struct field_info): Fix indentation.
5813 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5815 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5816 ordering in comment.
5817 * frame.c (frame_id_eq): Fix indentation.
5819 2020-08-31 Scott Linder <scott@scottlinder.com>
5820 Simon Marchi <simon.marchi@efficios.com>
5822 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5823 inline frame ids in outer frame.
5825 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5827 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5828 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5829 (outer_frame_id): Use FID_STACK_OUTER instead of
5831 (frame_id_p): Don't check for outer_frame_id.
5833 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5835 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5836 regnum/frame in value. Call allocate_value_lazy.
5837 * frame.c (frame_unwind_register_value): Use
5838 val_print_not_saved.
5840 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5842 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5844 2020-08-29 Pedro Alves <pedro@palves.net>
5846 * progspace.c (print_program_space): Use all_inferiors. Switch to
5847 the inferior before calling target_pid_to_str.
5849 2020-08-28 Tom Tromey <tom@tromey.com>
5851 * xcoffread.c (xcoff_end_psymtab): Update comment.
5852 * dbxread.c (dbx_end_psymtab): Update comment.
5854 2020-08-28 Tom de Vries <tdevries@suse.de>
5857 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5859 (create_breakpoint): Same.
5860 (base_breakpoint_decode_location): Same.
5861 (bkpt_create_sals_from_location): Same.
5862 (bkpt_decode_location): Same.
5863 (bkpt_probe_create_sals_from_location): Same.
5864 (bkpt_probe_decode_location): Same.
5865 (tracepoint_create_sals_from_location): Same.
5866 (tracepoint_decode_location): Same.
5867 (tracepoint_probe_decode_location): Same.
5868 (strace_marker_create_sals_from_location): Same.
5869 (strace_marker_decode_location): Same.
5870 (create_sals_from_location_default): Same.
5871 (decode_location_default): Same.
5872 * breakpoint.h (struct breakpoint_ops): Same.
5873 (create_breakpoint): Same.
5874 * linespec.h (decode_line_full): Same.
5875 * linespec.c (decode_line_full): Same. Throw error if
5876 result.size () == 0.
5878 2020-08-27 Pedro Alves <pedro@palves.net>
5881 * breakpoint.c (until_break_fsm) <location_breakpoint,
5882 caller_breakpoint>: Delete fields.
5883 <breakpoints>: New field.
5884 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5885 two individual breakpoints.
5886 (until_break_fsm::should_stop): Loop over breakpoints in the
5888 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5890 (until_break_command): Handle location expanding into multiple
5893 2020-08-27 Pedro Alves <pedro@palves.net>
5896 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5897 bp_until breakpoints user-specified locations. Update intro
5900 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5902 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5903 gdb_bfd_sections): New.
5904 * maint.c (print_bfd_section_info): Change param type to
5905 maint_print_section_data.
5906 (print_objfile_section_info): Likewise.
5907 (print_bfd_section_info_maybe_relocated): Likewise.
5908 (maintenance_info_sections): Use gdb_bfd_sections.
5910 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5912 * MAINTAINERS: Add ARC target and maintainer.
5914 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5916 * configure.tgt: ARC support for GNU/Linux.
5917 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5918 * arc-linux-tdep.c: New file.
5919 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5920 * arc-tdep.c (arc_write_pc): Use it.
5922 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5924 * arc-tdep.c (arc_check_for_hardware_loop): New.
5925 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5927 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5929 * arc-tdep.h: Include "gdbarch.h".
5931 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5934 (arc_gdbarch_features): New class to stir the selection of target XML.
5935 (arc_create_target_description): Use FEATURES to choose XML target.
5936 (arc_lookup_target_description): Use arc_create_target_description
5937 to create _new_ target descriptions or return the already created
5938 ones if the FEATURES is the same.
5939 * arch/arc.c: Implementation of prototypes described above.
5940 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5941 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5942 * arc-tdep.c (*_feature_name): Make feature names consistent.
5943 (arc_register_feature): A new struct to hold information about
5944 registers of a particular target/feature.
5945 (arc_check_tdesc_feature): Check if XML provides registers in
5946 compliance with ARC_REGISTER_FEATURE structs.
5947 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5948 (determine_*_reg_feature_set): Which feature name to look for.
5949 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5950 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5951 to expected ISA enums to be used in arc_gdbarch_features structs.
5952 * features/Makefile (FEATURE_XMLFILES): Add new files.
5953 * gdb/features/arc/v1-aux.c: New file.
5954 * gdb/features/arc/v1-aux.xml: Likewise.
5955 * gdb/features/arc/v1-core.c: Likewise.
5956 * gdb/features/arc/v1-core.xml: Likewise.
5957 * gdb/features/arc/v2-aux.c: Likewise.
5958 * gdb/features/arc/v2-aux.xml: Likewise.
5959 * gdb/features/arc/v2-core.c: Likewise.
5960 * gdb/features/arc/v2-core.xml: Likewise.
5961 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5963 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5964 Andrew Burgess <andrew.burgess@embecosm.com>
5967 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5968 an assert. Remove single element array indexing pattern as the
5969 MULTI_SUBSCRIPT support will handle this case too.
5971 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5973 * value.h (valprint_check_validity): Move declaration from
5975 * valprint.h (valprint_check_validity): ... to here.
5977 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5979 * debug.h: New file.
5980 * debug.c (debug_prefixed_vprintf): New function.
5981 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5982 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5984 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5986 * infrun.h (infrun_debug_printf_1): New function declaration.
5987 (infrun_debug_printf): New macro.
5988 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5990 (infrun_debug_printf): New function.
5991 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5992 (handle_jit_event): Likewise.
5994 2020-08-21 Mark Wielaard <mark@klomp.org>
5996 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5998 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
6000 * frame.c (enum class frame_id_status): New.
6001 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6002 (fprintf_frame): Update.
6003 (compute_frame_id): Set frame id status to "computing" on entry.
6004 Set it back to "not_computed" on failure and to "computed" on
6006 (get_frame_id): Assert the frame id is not being computed.
6007 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6008 (create_new_frame): Likewise.
6009 (frame_cleanup_after_sniffer): Update assert.
6011 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6013 * regcache.c (pid_ptid_regcache_map): New type.
6014 (target_ptid_regcache_map): Remove.
6015 (target_pid_ptid_regcache_map): New type.
6016 (regcaches): Change type to target_pid_ptid_regcache_map.
6017 (get_thread_arch_aspace_regcache): Update.
6018 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6020 (regcaches_size): Update.
6021 (regcache_count): Update.
6022 (registers_changed_ptid_target_pid_test): New.
6023 (_initialize_regcache): Register new test.
6025 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6027 * regcache.c (regcache_count): New.
6028 (struct regcache_test_data): New.
6029 (regcache_test_data_up): New.
6030 (populate_regcaches_for_test): New.
6031 (regcaches_test): Remove.
6032 (get_thread_arch_aspace_regcache_test): New.
6033 (registers_changed_ptid_all_test): New.
6034 (registers_changed_ptid_target_test): New.
6035 (registers_changed_ptid_target_ptid_test): New.
6036 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6037 (_initialize_regcache): Register new tests.
6039 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6041 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6042 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6043 gdbarch and aspace parameter. Use current inferior's aspace.
6044 Validate regcache's arch value.
6045 (regcaches_test): Update.
6047 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6049 * regcache.c (regcaches_test): Call registers_changed.
6051 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6053 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6055 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6057 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6058 to find the end of prologue for flang compiled binaries.
6059 * arm-tdep.c (arm_skip_prologue): Likewise.
6060 * i386-tdep.c (i386_skip_prologue): Likewise.
6061 * producer.c (producer_is_llvm): New function.
6062 (producer_parsing_tests): Added new tests for clang/flang.
6063 * producer.h (producer_is_llvm): New declaration.
6065 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
6067 * linux-nat.c (linux_nat_debug_printf): New function.
6068 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6070 2020-08-18 Aaron Merey <amerey@redhat.com>
6072 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6073 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6074 (CLIBS): Add DEBUGINFOD_LIBS.
6076 2020-08-17 Sergei Trofimovich <siarheit@google.com>
6078 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6081 2020-08-17 Tom Tromey <tromey@adacore.com>
6083 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6084 ada_get_decoded_value returns NULL.
6086 2020-08-17 Tom Tromey <tromey@adacore.com>
6088 * python/py-inferior.c (infpy_search_memory): Use
6089 gdb_py_object_from_ulongest.
6090 * python/py-infevents.c (create_inferior_call_event_object)
6091 (create_memory_changed_event_object): Use
6092 gdb_py_object_from_ulongest.
6093 * python/py-linetable.c (ltpy_entry_get_pc): Use
6094 gdb_py_object_from_ulongest.
6096 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6098 * loc.c (class symbol_needs_eval_context): Fix indentation.
6100 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6102 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6105 2020-08-17 Tom de Vries <tdevries@suse.de>
6108 * gdbtypes.c (dump_dynamic_prop): New function.
6109 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6111 2020-08-15 Tom de Vries <tdevries@suse.de>
6114 * stack.c (print_frame_args): Temporarily set the selected
6115 frame to FRAME while printing the frame's arguments.
6117 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6119 PR breakpoints/26385
6120 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6121 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6123 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6125 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6126 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6127 and >= to check return value instead of == -1 and != -1.
6129 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6131 * utils.h (class gdb_argv) <as_array_view>: New method.
6132 * utils.c (gdb_argv_as_array_view_test): New.
6133 (_initialize_utils): Register selftest.
6134 * maint.c (maintenance_selftest): Use the new method.
6136 2020-08-13 Kamil Rytarowski <n54@gmx.com>
6138 * target.h (supports_dumpcore, dumpcore): New
6139 function declarations.
6140 * target.c (supports_dumpcore, dumpcore): New
6142 * target-delegates.c: Rebuild.
6143 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6144 and target_dumpcore ().
6146 2020-08-13 Aaron Merey <amerey@redhat.com>
6148 * debuginfod-support.c: Replace global variables with user_data.
6150 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6152 * maint.c (maintenance_selftest): Split args and pass array_view
6155 2020-08-12 Luis Machado <luis.machado@linaro.org>
6157 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6159 Use %s and pulongest to print the length.
6161 2020-08-12 Pedro Alves <palves@redhat.com>
6163 * NEWS: Move "Multi-target debugging support" item to the
6164 "Changes since GDB 9" section.
6166 2020-08-12 Pedro Alves <palves@redhat.com>
6169 * progspace.c (program_space::remove_objfile): Invalidate the
6172 2020-08-11 Tom de Vries <tdevries@suse.de>
6174 * MAINTAINERS: Mark ms1 as deleted.
6176 2020-08-10 Luis Machado <luis.machado@linaro.org>
6180 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6182 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6183 movz/str/stur/stp skipping behavior.
6185 2020-08-10 Luis Machado <luis.machado@linaro.org>
6187 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6188 struct user_sve_header instead of struct sve_context.
6190 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6192 * read.h (dwarf2_fetch_die_loc_sect_off,
6193 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6194 `void *` parameter with function_view.
6195 * read.c (dwarf2_fetch_die_loc_sect_off,
6196 dwarf2_fetch_die_loc_cu_off): Likewise.
6197 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6198 (per_cu_dwarf_call): Adjust.
6199 (get_frame_address_in_block_wrapper): Remove.
6200 (indirect_synthetic_pointer): Adjust.
6201 (get_ax_pc): Remove.
6202 (dwarf2_compile_expr_to_ax): Adjust.
6204 2020-08-08 Tom de Vries <tdevries@suse.de>
6207 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6209 * regcache.c (get_thread_arch_aspace_regcache): Same.
6211 2020-08-07 Tom Tromey <tromey@adacore.com>
6213 * ravenscar-thread.c
6214 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6216 (ravenscar_thread_target::wait): Check
6217 runtime_initialized.
6218 (ravenscar_thread_target::prepare_to_store)
6219 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6220 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6221 (ravenscar_thread_target::stopped_by_watchpoint)
6222 (ravenscar_thread_target::stopped_data_address)
6223 (ravenscar_thread_target::core_of_thread): Use
6224 scoped_restore_current_thread and
6225 set_base_thread_from_ravenscar_task.
6227 2020-08-07 Tom Tromey <tromey@adacore.com>
6229 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6231 2020-08-07 Tom Tromey <tromey@adacore.com>
6233 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6234 update_inferior_ptid before update_thread_list.
6235 (temporarily_change_regcache_ptid): New class.
6236 (ravenscar_thread_target::fetch_registers)
6237 (ravenscar_thread_target::store_registers)
6238 (ravenscar_thread_target::prepare_to_store): Use base thread when
6239 forwarding operation.
6241 2020-08-07 Tom Tromey <tromey@adacore.com>
6243 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6246 2020-08-07 Tom Tromey <tromey@adacore.com>
6248 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6250 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6252 (ravenscar_thread_target::add_thread): Rename from
6253 ravenscar_add_thread.
6254 (ravenscar_thread_target::update_thread_list): Use a lambda.
6255 (ravenscar_thread_target::xfer_partial): New method.
6257 2020-08-07 Tom Tromey <tromey@adacore.com>
6259 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6261 (iterate_over_live_ada_tasks): Change type of argument.
6262 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6265 2020-08-07 Tom Tromey <tromey@adacore.com>
6267 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6269 (ravenscar_thread_target::extra_thread_info): Remove.
6270 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6271 defer to target beneath for non-Ravenscar threads.
6273 2020-08-07 Tom Tromey <tromey@adacore.com>
6275 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6276 get_base_thread_from_ravenscar_task>: Now methods.
6277 <m_cpu_map>: New member.
6278 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6279 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6280 (ravenscar_thread_target::task_is_currently_active): Update.
6281 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6283 (ravenscar_thread_target::add_active_thread): Put initial thread
6286 2020-08-07 Tom Tromey <tromey@adacore.com>
6288 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6291 2020-08-07 Tom Tromey <tromey@adacore.com>
6293 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6294 runtime_initialized.
6296 2020-08-07 Tom Tromey <tromey@adacore.com>
6298 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6300 (ravenscar_thread_target::add_active_thread): Now public.
6301 (ravenscar_inferior_created): Call add_active_thread after pushing
6304 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6306 * regcache.c (ptid_regcache_map): New type.
6307 (target_ptid_regcache_map): New type.
6308 (regcaches): Change type to target_ptid_regcache_map.
6309 (get_thread_arch_aspace_regcache): Update to regcaches' new
6311 (regcache_thread_ptid_changed): Likewise.
6312 (registers_changed_ptid): Likewise.
6313 (regcaches_size): Likewise.
6314 (regcaches_test): Update.
6315 (regcache_thread_ptid_changed): Update.
6316 * regcache.h (regcache_up): New type.
6317 * gdbsupport/ptid.h (hash_ptid): New struct.
6319 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6321 * observable.h (thread_ptid_changed): Add parameter
6322 `process_stratum_target *`.
6323 * infrun.c (infrun_thread_ptid_changed): Add parameter
6324 `process_stratum_target *` and use it.
6325 (selftests): New namespace.
6326 (infrun_thread_ptid_changed): New function.
6327 (_initialize_infrun): Register selftest.
6328 * regcache.c (regcache_thread_ptid_changed): Add parameter
6329 `process_stratum_target *` and use it.
6330 (regcache_thread_ptid_changed): New function.
6331 (_initialize_regcache): Register selftest.
6332 * thread.c (thread_change_ptid): Pass target to
6333 thread_ptid_changed observable.
6335 2020-08-06 Caroline Tice <cmtice@google.com>
6337 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6338 (struct dwp_sections): Update field comments. Add loclists and
6340 (struct virtual_v2_dwo_sections): Rename struct to
6341 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6342 size & offset fields for loclists and rnglists.
6343 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6344 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6345 skipping dummy type units.
6346 (create_dwp_hash_table): Update the large comment above the function to
6347 discuss Version 5 DWP files as well, with references. Update all the
6348 version checks in the function to check for version 5 as well. Add new
6349 section at the end to create dwp hash table for version 5.
6350 (create_dwp_v2_section): Rename function to
6351 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6352 Add V5 to error message text.
6353 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6354 into calls to create_dwp_v2_or_v5_section.
6355 (create_dwo_unit_in_dwp_v5): New function.
6356 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6357 check for version2; add else clause to handle version 5.
6358 (open_and_init_dwo_file): Add code to check dwarf version & only call
6359 create_debug_types_hash_table (with sections.types) if version is not 5;
6360 else call create_debug_type_hash_table, with sections.info.
6361 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6363 (dwarf2_locate_v5_dwp_sections): New function.
6364 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6365 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6367 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6369 * regcache.h (class regcache): Remove friend
6370 registers_changed_ptid.
6371 <regcache_thread_ptid_changed>: Remove.
6372 <regcaches>: Remove.
6373 * regcache.c (regcache::regcaches): Rename to...
6374 (regcaches): ... this. Make static.
6375 (get_thread_arch_aspace_regcache): Update.
6376 (regcache::regcache_thread_ptid_changed): Rename to...
6377 (regcache_thread_ptid_changed): ... this. Update.
6378 (class regcache_access): Remove.
6379 (regcaches_test): Update.
6380 (_initialize_regcache): Update.
6381 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6384 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6386 * regcache.h (class regcache) <current_regcache>: Rename to...
6387 <regcaches>: ... this. Move doc here.
6388 * regcache.c (regcache::current_regcache) Rename to...
6389 (regcache::regcaches): ... this. Move doc to header.
6390 (get_thread_arch_aspace_regcache): Update.
6391 (regcache::regcache_thread_ptid_changed): Update.
6392 (registers_changed_ptid): Update.
6393 (class regcache_access) <current_regcache_size>: Rename to...
6394 <regcaches_size>: ... this.
6395 (current_regcache_test): Rename to...
6396 (regcaches_test): ... this.
6397 (_initialize_regcache): Update.
6399 2020-08-06 Victor Collod <vcollod@nvidia.com>
6401 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6403 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6405 * corelow.c (core_target::build_file_mappings): Don't output
6406 null pathname in warning.
6408 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6410 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6411 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6412 gdb.dwarf2/dw2-single-line-discriminators.exp,
6413 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6415 2020-08-05 Tom Tromey <tromey@adacore.com>
6418 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6419 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6420 Fix off-by-one and type size errors in ordinary case.
6422 2020-08-05 Tom de Vries <tdevries@suse.de>
6424 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6425 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6427 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6429 * frame.h (frame_id_p): Return bool.
6430 (frame_id_artificial_p): Return bool.
6431 (frame_id_eq): Return bool.
6432 (has_stack_frames): Return bool.
6433 (get_selected_frame): Fix typo in comment.
6434 (get_frame_pc_if_available): Return bool.
6435 (get_frame_address_in_block_if_available): Return bool.
6436 (get_frame_func_if_available): Return bool.
6437 (read_frame_register_unsigned): Return bool.
6438 (get_frame_register_bytes): Return bool.
6439 (safe_frame_unwind_memory): Return bool.
6440 (deprecated_frame_register_read): Return bool.
6441 (frame_unwinder_is): Return bool.
6442 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6444 <this_id::p>: Likewise.
6446 (frame_stash_add): Return bool.
6447 (get_frame_id): Use bool.
6448 (frame_id_build_special) Use bool.
6449 (frame_id_build_unavailable_stack): Use bool.
6450 (frame_id_build): Use bool.
6451 (frame_id_p): Return bool, use true/false instead of 1/0.
6452 (frame_id_artificial_p): Likewise.
6453 (frame_id_eq): Likewise.
6454 (frame_id_inner): Likewise.
6455 (get_frame_func_if_available): Likewise.
6456 (read_frame_register_unsigned): Likewise.
6457 (deprecated_frame_register_read): Likewise.
6458 (get_frame_register_bytes): Likewise.
6459 (has_stack_frames): Likewise.
6460 (inside_main_func): Likewise.
6461 (inside_entry_func): Likewise.
6462 (get_frame_pc_if_available): Likewise.
6463 (get_frame_address_in_block_if_available): Likewise.
6464 (frame_unwinder_is): Likewise.
6465 (safe_frame_unwind_memory): Likewise.
6466 (frame_unwind_arch): Likewise.
6468 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6470 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6471 type to cached_copy_status.
6472 (fprintf_frame): Adjust.
6473 (get_frame_func_if_available): Adjust.
6474 (frame_cleanup_after_sniffer): Adjust.
6476 2020-08-04 Mark Wielaard <mark@klomp.org>
6478 * MAINTAINERS (Write After Approval): Update email address.
6480 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6482 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6483 dynamic_prop::const_val.
6485 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6487 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6490 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6492 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6494 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6496 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6498 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6499 Jose E. Marchesi <jose.marchesi@oracle.com>
6501 * configure.tgt: Add entry for bpf-*-*.
6502 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6503 (ALLDEPFILES): Add bpf-tdep.c.
6504 * bpf-tdep.c: New file.
6505 * MAINTAINERS: Add bpf target and maintainer.
6506 * NEWS: Mention the support for the new target.
6508 2020-08-04 Tom de Vries <tdevries@suse.de>
6511 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6514 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6516 * syscalls/freebsd.xml: Regenerate.
6518 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6520 * syscalls/update-freebsd.sh: Fix usage and year range.
6522 2020-08-03 Tom de Vries <tdevries@suse.de>
6525 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6526 DW_LNE_lo_user/DW_LNE_hi_user range.
6528 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6531 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6534 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6536 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6538 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6540 * breakpoint.c (set_breakpoint_condition): Update the condition
6541 expressions after checking that the input condition string parses
6542 successfully and does not contain junk at the end.
6544 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6546 * breakpoint.c (set_breakpoint_condition): Update the
6547 condition string after parsing the new condition successfully.
6549 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6551 * proc-api.c (_STRUCTURED_PROC): Don't define.
6552 * proc-events.c: Likewise.
6553 * proc-flags.c: Likewise.
6554 * proc-why.c: Likewise.
6555 * procfs.c: Likewise.
6557 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6558 * configure, config.in: Regenerate.
6560 2020-07-30 Tom de Vries <tdevries@suse.de>
6563 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6564 m_red/m_green/m_blue in a union.
6566 2020-07-29 Tom de Vries <tdevries@suse.de>
6569 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6571 2020-07-28 Tom Tromey <tromey@adacore.com>
6574 * symtab.h (find_pc_partial_function_sym): Declare.
6575 * cli/cli-cmds.c (disassemble_command): Use
6576 find_pc_partial_function_sym. Check asm_demangle.
6577 * blockframe.c (cache_pc_function_sym): New global.
6578 (cache_pc_function_name): Remove.
6579 (clear_pc_function_cache): Update.
6580 (find_pc_partial_function_sym): New function, from
6581 find_pc_partial_function.
6582 (find_pc_partial_function): Rewrite using
6583 find_pc_partial_function_sym.
6585 2020-07-28 Tom Tromey <tromey@adacore.com>
6587 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6590 2020-07-28 Tom Tromey <tromey@adacore.com>
6592 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6593 <DW_OP_GNU_variable_value>: Cast to address type.
6595 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6597 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6598 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6599 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6600 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6601 (nbsd_get_siginfo_type): New.
6602 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6603 (_initialize_nbsd_tdep): New.
6605 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6608 * configure: Regenerated.
6610 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6613 * configure: Regenerated.
6615 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6617 * python/py-frame.c: Remove 'user-regs.h' include.
6618 (frapy_read_register): Rewrite to make use of
6619 gdbpy_parse_register_id.
6620 * python/py-registers.c (gdbpy_parse_register_id): New function,
6621 moved here from python/py-unwind.c. Updated the return type, and
6622 also accepts register descriptor objects.
6623 * python/py-unwind.c: Remove 'user-regs.h' include.
6624 (pyuw_parse_register_id): Moved to python/py-registers.c.
6625 (unwind_infopy_add_saved_register): Update to use
6626 gdbpy_parse_register_id.
6627 (pending_framepy_read_register): Likewise.
6628 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6630 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6632 * python/py-registers.c: Add 'user-regs.h' include.
6633 (register_descriptor_iter_find): New function.
6634 (register_descriptor_iterator_object_methods): New static global
6636 (register_descriptor_iterator_object_type): Add pointer to methods
6639 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6641 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6642 for all architectures on FreeBSD 11.3 and later.
6644 2020-07-27 Tom Tromey <tromey@adacore.com>
6646 * gcore.h (load_corefile): Don't declare.
6648 2020-07-27 Tom de Vries <tdevries@suse.de>
6650 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6651 * config.in: Regenerate.
6652 * configure: Regenerate.
6654 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6656 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6657 ws2tcpip.h. When checking whether socklen_t type is defined, use
6658 ws2tcpip.h if it is available and sys/socket.h isn't.
6659 * configure: Regenerate.
6660 * config.in: Regenerate.
6662 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6666 * valops.c (value_ind): Pass address to
6667 readjust_indirect_value_type.
6668 * value.c (readjust_indirect_value_type): Make parameter
6669 non-const, and add extra address parameter. Resolve original type
6671 * value.h (readjust_indirect_value_type): Update function
6672 signature and comment.
6674 2020-07-25 Tom de Vries <tdevries@suse.de>
6677 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6680 2020-07-24 Aaron Merey <amerey@redhat.com>
6682 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6683 * configure: Rebuild.
6685 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6688 * corelow.c (_initialize_corelow): Add period to help text
6689 for "maintenance print core-file-backed-mappings".
6691 2020-07-23 Pedro Alves <pedro@palves.net>
6693 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6694 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6696 * frame.c (frame_cache_generation, get_frame_cache_generation):
6698 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6699 (get_prev_frame_if_no_cycle): On exception, don't touch
6700 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6701 * frame.h (get_frame_cache_generation): Declare.
6703 2020-07-23 Tom de Vries <tdevries@suse.de>
6706 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6707 New default constructor.
6709 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6711 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6712 exclude non-statement entries.
6714 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6716 * NEWS (New commands): Mention new command
6717 "maintenance print core-file-backed-mappings".
6719 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6721 * corelow.c (gdbcmd.h): Include.
6722 (core_target::info_proc_mappings): New method.
6723 (get_current_core_target): New function.
6724 (maintenance_print_core_file_backed_mappings): New function.
6725 (_initialize_corelow): Add core-file-backed-mappings to
6726 "maint print" commands.
6728 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6730 * linux-tdep.c (dump_note_entry_p): New function.
6731 (linux_dump_mapping_p_ftype): New typedef.
6732 (linux_find_memory_regions_full): Add new parameter,
6733 should_dump_mapping_p.
6734 (linux_find_memory_regions): Adjust call to
6735 linux_find_memory_regions_full.
6736 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6737 call to linux_find_memory_regions_full.
6739 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6741 * corelow.c (solist.h, unordered_map): Include.
6742 (class core_target): Add field m_core_file_mappings and
6743 method build_file_mappings.
6744 (core_target::core_target): Call build_file_mappings.
6745 (core_target::~core_target): Free memory associated with
6746 m_core_file_mappings.
6747 (core_target::build_file_mappings): New method.
6748 (core_target::xfer_partial): Use m_core_file_mappings
6749 for memory transfers.
6750 * linux-tdep.c (linux_read_core_file_mappings): New
6752 (linux_core_info_proc_mappings): Rewrite to use
6753 linux_read_core_file_mappings.
6754 (linux_init_abi): Register linux_read_core_file_mappings.
6756 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6758 * arch-utils.c (default_read_core_file_mappings): New function.
6759 * arch-utils.c (default_read_core_file_mappings): Declare.
6760 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6761 * gdbarch.h, gdbarch.c: Regenerate.
6763 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6766 * corelow.c (core_target:xfer_partial): Revise
6767 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6768 case after first checking the stratum beneath the core
6770 (has_all_memory): Return true.
6771 * target.c (raw_memory_xfer_partial): Revise comment
6772 regarding use of has_all_memory.
6774 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6776 * exec.h (section_table_xfer_memory): Revise declaration,
6777 replacing section name parameter with an optional callback
6779 * exec.c (section_table_xfer_memory): Likewise.
6780 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6781 of section_table_xfer_memory.
6783 2020-07-22 Tom Tromey <tromey@adacore.com>
6785 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6786 lookup_symbol_search_name.
6788 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6790 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6791 redundant local variable.
6792 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6793 reference, not pointer, update code accordingly.
6795 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6796 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6798 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6799 * jit.c (jit_breakpoint_re_set_internal): Use the
6800 `skip_jit_symbol_lookup` field.
6802 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6803 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6805 * jit.c (jit_read_descriptor): Define the descriptor address once,
6807 (jit_breakpoint_deleted): Move the declaration of the loop variable
6808 `iter` into the loop header.
6809 (jit_breakpoint_re_set_internal): Move the declaration of the local
6810 variable `objf_data` to the first point of definition.
6811 (jit_event_handler): Move the declaration of local variables
6812 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6813 Rename `objf` to `jited`.
6815 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6817 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6819 * jit.c (get_jiter_objfile_data): Update.
6821 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6822 Simon Marchi <simon.marchi@polymtl.ca>
6824 * jit.c (struct jit_program_space_data): Remove.
6825 (jit_program_space_key): Remove.
6826 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6828 (get_jit_program_space_data): Remove.
6829 (jit_breakpoint_deleted): Iterate on all of the program space's
6831 (jit_inferior_init): Likewise.
6832 (jit_breakpoint_re_set_internal): Likewise. Also change return
6834 (jit_breakpoint_re_set): Pass current_program_space to
6835 jit_breakpoint_re_set_internal.
6837 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6839 * jit.h (struct jiter_objfile_data) <cached_code_address,
6840 jit_breakpoint>: Move to here from ...
6841 * jit.c (jit_program_space_data): ... here.
6842 (jiter_objfile_data::~jiter_objfile_data): Update.
6843 (jit_breakpoint_deleted): Update.
6844 (jit_breakpoint_re_set_internal): Update.
6846 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6848 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6850 (jit_read_descriptor): Remove NULL check.
6851 (jit_event_handler): Add an assertion.
6853 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6855 * jit.h (struct jit_objfile_data): Split into...
6856 (struct jiter_objfile_data): ... this ...
6857 (struct jited_objfile_data): ... and this.
6858 * objfiles.h (struct objfile) <jit_data>: Remove.
6859 <jiter_data, jited_data>: New fields.
6860 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6861 (jiter_objfile_data::~jiter_objfile_data): ... this.
6862 (get_jit_objfile_data): Rename to ...
6863 (get_jiter_objfile_data): ... this.
6864 (add_objfile_entry): Update.
6865 (jit_read_descriptor): Use get_jiter_objfile_data.
6866 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6867 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6868 (jit_inferior_exit_hook): Use objfile's jited_data field.
6870 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6872 * jit.h: Forward-declare `struct minimal_symbol`.
6873 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6874 constructor, destructor, and an objfile* field.
6875 * jit.c (jit_objfile_data): Remove.
6876 (struct jit_objfile_data): Migrate from here to jit.h.
6877 (jit_objfile_data::~jit_objfile_data): New destructor
6878 implementation with code moved from free_objfile_data.
6879 (free_objfile_data): Delete.
6880 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6881 (jit_find_objf_with_entry_addr): Ditto.
6882 (jit_inferior_exit_hook): Ditto.
6883 (_initialize_jit): Remove the call to
6884 register_objfile_data_with_cleanup.
6885 * objfiles.h (struct objfile) <jit_data>: New field.
6887 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6889 * jit.h: Forward-declare `struct objfile`.
6890 (jit_event_handler): Add a second parameter, the JITer objfile.
6891 * jit.c (jit_read_descriptor): Change the signature to take the
6892 JITer objfile as an argument instead of the jit_program_space_data.
6893 (jit_inferior_init): Update the call to jit_read_descriptor.
6894 (jit_event_handler): Use the new JITer objfile argument when calling
6895 jit_read_descriptor.
6896 * breakpoint.c (handle_jit_event): Update the call to
6897 jit_event_handler to pass the JITer objfile.
6899 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6901 * gdbarch.c: Regenerate.
6902 * gdbarch.h: Regenerate.
6903 * gdbarch.sh (handle_segmentation_fault): Remove method.
6904 * infrun.c (handle_segmentation_fault): Remove.
6905 (print_signal_received_reason): Remove call to
6906 handle_segmentation_fault.
6908 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6910 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6911 Rename to sparc64_linux_report_signal_info and add siggnal
6913 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6914 instead of sparc64_linux_handle_segmentation_fault.
6916 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6918 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6919 i386_linux_report_signal_info instead of
6920 i386_linux_handle_segmentation_fault.
6921 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6922 to i386_linux_report_signal_info and add siggnal argument.
6923 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6924 of i386_linux_handle_segmentation_fault.
6925 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6926 to i386_linux_report_signal_info and add siggnal argument.
6928 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6930 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6933 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6935 * gdbarch.c: Regenerate.
6936 * gdbarch.h: Regenerate.
6937 * gdbarch.sh (report_signal_info): New method.
6938 * infrun.c (print_signal_received_reason): Invoke gdbarch
6939 report_signal_info hook if present.
6941 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6943 * python/py-registers.c : Add 'unordered_map' include.
6944 (gdbpy_new_reggroup): Renamed to...
6945 (gdbpy_get_reggroup): ...this. Update to only create register
6946 group descriptors when needed.
6947 (gdbpy_reggroup_iter_next): Update.
6949 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6951 * python/py-registers.c (gdbpy_register_object_data): New static
6953 (gdbpy_register_object_data_init): New function.
6954 (gdbpy_new_register_descriptor): Renamed to...
6955 (gdbpy_get_register_descriptor): ...this, and update to reuse
6956 existing register descriptors where possible.
6957 (gdbpy_register_descriptor_iter_next): Update.
6958 (gdbpy_initialize_registers): Register new gdbarch data.
6960 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6962 * linux-nat.c (stopped_pids): Make static.
6964 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6967 * gdbtypes.c (ada_discrete_type_low_bound,
6968 ada_discrete_type_high_bound): Handle undefined bounds.
6970 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6972 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6974 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6977 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6979 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6980 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6981 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6982 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6983 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6986 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6988 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6989 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6990 which are deprecated in Guile 3.0.
6991 * configure.ac (try_guile_versions): Add "guile-3.0".
6992 * configure (try_guile_versions): Regenerate.
6993 * NEWS: Update entry.
6995 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6996 Doug Evans <dje@google.com>
6999 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7000 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7001 USING_GUILE_BEFORE_2_2.
7002 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7003 Change type to 'scm_t_port_type *'.
7004 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7005 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7006 parameter and honor it. Update callers.
7007 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7008 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7010 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7011 USING_GUILE_BEFORE_2_2.
7012 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7013 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7014 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7015 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7016 and 'SCM_PORT_TYPE'.
7017 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7018 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7019 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7020 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7021 [!USING_GUILE_BEFORE_2_2]: New functions.
7022 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7023 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7024 'gdbscm_memory_port_read'.
7025 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7026 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7027 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7029 (ioscm_init_memory_port): Remove.
7030 (ioscm_init_memory_port_stream): New function
7031 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7033 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7034 Return scm_from_uint (0).
7035 (gdbscm_set_memory_port_read_buffer_size_x)
7036 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7037 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7038 Return scm_from_uint (0).
7039 (gdbscm_set_memory_port_write_buffer_size_x)
7040 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7041 * configure.ac (try_guile_versions): Add "guile-2.2".
7042 * configure: Regenerate.
7045 2020-07-18 Tom Tromey <tom@tromey.com>
7047 * linux-nat.c (linux_multi_process): Remove.
7048 (linux_nat_target::supports_multi_process): Return true.
7050 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7052 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7053 (riscv_lookup_target_description): Return pointer out of
7055 * target-descriptions.c (allocate_target_description): Add
7057 (target_desc_deleter::operator()): Likewise.
7058 * target-descriptions.h (struct target_desc_deleter): Moved to
7060 (target_desc_up): Likewise.
7062 2020-07-17 Tom Tromey <tromey@adacore.com>
7064 * linux-nat.c (linux_nat_target::supports_non_stop)
7065 (linux_nat_target::always_non_stop_p): Use "true".
7066 (linux_nat_target::supports_disable_randomization): Use "true" and
7069 2020-07-16 Caroline Tice <cmtice@google.com>
7071 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7072 (RNGLIST_HEADER_SIZE64): New constant definition.
7073 (struct dwop_section_names): Add rnglists_dwo.
7074 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7075 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7076 (struct dwo_sections): Add rnglists field.
7077 (read_attribut_reprocess): Add tag parameter.
7078 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7079 (cu_debug_rnglists_section): New function (decl & definition).
7080 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7081 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7082 die whose range is being checked; get rnglist section from
7083 cu_debug_rnglists_section, to get from either objfile or dwo file as
7084 appropriate. Add cases for DW_RLE_base_addressx,
7085 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7086 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7087 test inside if-condition and updating complaint message.
7088 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7089 dwarf2_rnglists_process.
7090 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7091 dwarf2_ranges_process.
7092 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7093 need_ranges_base and update comment appropriately. Also pass die tag
7094 to dwarf2_ranges_read.
7095 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7096 need_ranges_base and update comment appropriately. Also pass die tag
7097 to dwarf2_ranges_process.
7098 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7099 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7100 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7101 need_ranges_base and update comment appropriately. Also pass die tag
7102 to read_attribute_reprocess and dwarf2_ranges_read.
7103 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7104 and update function comment appropriately.
7105 (read_loclist_index): Call read_loclists_rnglists_header instead of
7106 read_loclist_header.
7107 (read_rnglist_index): New function.
7108 (read_attribute_reprocess): Add tag parameter. Add code for
7109 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7110 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7112 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7114 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7117 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7119 * arch-utils.c (show_architecture): Update formatting of messages.
7121 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7123 * gdbtypes.h (struct type) <bounds>: Handle array and string
7125 * ada-lang.c (assign_aggregate): Use type::bounds on
7127 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7128 * c-varobj.c (c_number_of_children): Likewise.
7129 (c_describe_child): Likewise.
7130 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7131 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7132 (f_type_print_base): Likewise.
7133 * f-valprint.c (f77_array_offset_tbl): Likewise.
7134 (f77_get_upperbound): Likewise.
7135 (f77_print_array_1): Likewise.
7136 * guile/scm-type.c (gdbscm_type_range): Likewise.
7137 * m2-typeprint.c (m2_array): Likewise.
7138 (m2_is_long_set_of_type): Likewise.
7139 * m2-valprint.c (get_long_set_bounds): Likewise.
7140 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7141 * python/py-type.c (typy_range): Likewise.
7142 * rust-lang.c (rust_internal_print_type): Likewise.
7143 * type-stack.c (type_stack::follow_types): Likewise.
7144 * valarith.c (value_subscripted_rvalue): Likewise.
7145 * valops.c (value_cast): Likewise.
7147 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7149 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7150 callers to use the equivalent accessor methods.
7152 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7154 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7155 (struct type) <bit_stride>: New method.
7156 (TYPE_BIT_STRIDE): Remove.
7157 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7159 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7161 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7162 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7163 callers to use the equivalent accessor methods instead.
7165 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7167 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7168 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7169 callers to use the equivalent accessor methods instead.
7171 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7173 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7174 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7175 to use dynamic_prop::kind.
7177 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7179 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7180 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7181 to get the bound property's kind and check against
7184 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7186 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7187 all callers to use type::range_bounds followed by
7188 dynamic_prop::{low,high}.
7190 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7192 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7193 const_val, set_const_val, baton, set_locexpr, set_loclist,
7194 set_addr_offset, variant_parts, set_variant_parts,
7195 original_type, set_original_type>: New methods.
7196 <kind>: Rename to...
7197 <m_kind>: ... this. Update all users to use the new methods
7199 <data>: Rename to...
7200 <m_data>: ... this. Update all users to use the new methods
7203 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7205 * gdbtypes.c (get_discrete_bounds): Return failure if
7206 the range type's bounds are not both defined and constant
7208 (get_array_bounds): Update comment. Remove undefined bound check.
7210 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7212 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7213 the type::bounds method directly.
7215 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7217 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7218 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7219 are used to set the range type's bounds to use set_bounds.
7221 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7223 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7225 2020-07-10 Pedro Alves <pedro@palves.net>
7227 * gdbthread.h (inferior_ref): Define.
7228 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7229 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7231 (scoped_restore_current_thread::restore):
7232 Adjust to gdb::ref_ptr.
7233 (scoped_restore_current_thread::~scoped_restore_current_thread):
7234 Remove manual decref handling.
7235 (scoped_restore_current_thread::scoped_restore_current_thread):
7237 inferior_ref::new_reference/thread_info_ref::new_reference.
7238 Incref the thread before calling get_frame_id instead of after.
7239 Let TARGET_CLOSE_ERROR propagate.
7241 2020-07-10 Pedro Alves <pedro@palves.net>
7243 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7244 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7245 NOT_AVAILABLE_ERROR.
7246 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7247 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7249 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7250 Pedro Alves <pedro@palves.net>
7253 * infrun.c (threads_are_resumed_pending_p): Delete.
7254 (do_target_wait): Remove threads_are_executing and
7255 threads_are_resumed_pending_p checks from the inferior_matches
7256 lambda. Update comments.
7258 2020-07-10 Pedro Alves <pedro@palves.net>
7261 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7264 2020-07-10 Pedro Alves <pedro@palves.net>
7267 * infrun.c (handle_no_resumed): Handle multiple targets.
7269 2020-07-10 Pedro Alves <pedro@palves.net>
7272 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7275 2020-07-10 Pedro Alves <pedro@palves.net>
7278 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7279 threads, not all threads.
7281 2020-07-10 Pedro Alves <pedro@palves.net>
7284 * remote.c (remote_target::open_1): Pass remote target pointer as
7285 data to create_async_event_handler.
7286 (remote_async_inferior_event_handler): Mark async event handler
7287 before returning if the remote target still has either pending
7288 events or unacknowledged notifications.
7290 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7292 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7294 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7297 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7299 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7302 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7304 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7305 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7306 AT_FREEBSD_PS_STRINGS.
7308 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7310 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7311 of debugfile path on Windows.
7313 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7315 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7318 2020-07-08 Tom Tromey <tromey@adacore.com>
7320 * ada-lang.c (ada_exception_message_1): Use read_memory.
7322 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7325 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7326 special handling for inline frames.
7327 * findvar.c (value_of_register_lazy): Skip inline frames when
7328 creating lazy register values.
7329 * frame.c (frame_id_computed_p): Delete definition.
7330 * frame.h (frame_id_computed_p): Delete declaration.
7332 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7334 * NEWS: Mention additions to Python API.
7335 * python/py-arch.c (archpy_register_groups): New function.
7336 (arch_object_methods): Add 'register_groups' method.
7337 * python/py-registers.c (reggroup_iterator_object): New struct.
7338 (reggroup_object): New struct.
7339 (gdbpy_new_reggroup): New function.
7340 (gdbpy_reggroup_to_string): New function.
7341 (gdbpy_reggroup_name): New function.
7342 (gdbpy_reggroup_iter): New function.
7343 (gdbpy_reggroup_iter_next): New function.
7344 (gdbpy_new_reggroup_iterator): New function
7345 (gdbpy_initialize_registers): Register new types.
7346 (reggroup_iterator_object_type): Define new Python type.
7347 (gdbpy_reggroup_getset): New static global.
7348 (reggroup_object_type): Define new Python type.
7349 * python/python-internal.h
7351 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7353 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7354 * python/py-arch.c (archpy_registers): New function.
7355 (arch_object_methods): Add 'registers' method.
7356 * python/py-registers.c: New file.
7357 * python/python-internal.h
7358 (gdbpy_new_register_descriptor_iterator): Declare.
7359 (gdbpy_initialize_registers): Declare.
7360 * python/python.c (do_start_initialization): Call
7361 gdbpy_initialize_registers.
7362 * NEWS: Mention additions to the Python API.
7364 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7366 * NEWS: Mention new Python API method.
7367 * python/py-unwind.c (pending_framepy_architecture): New function.
7368 (pending_frame_object_methods): Add architecture method.
7370 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7372 * gdbarch.c: Regenerate.
7373 * gdbarch.h: Regenerate.
7374 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7375 (gdbarch_data): Use internal_error for the case where
7376 deprecated_set_gdbarch_data was originally needed.
7377 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7378 and use passed in obstack.
7379 (libunwind_frame_set_descr): Should no longer get back NULL from
7381 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7383 * user-regs.c (user_regs_init): Update parameters, and use passed
7385 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7386 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7388 2020-07-06 Tom de Vries <tdevries@suse.de>
7390 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7391 End-Of-Sequence in lte_is_less_than.
7392 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7393 "gdb: Don't reorder line table entries too much when sorting".
7395 2020-07-06 Tom de Vries <tdevries@suse.de>
7398 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7400 2020-07-05 Tom de Vries <tdevries@suse.de>
7403 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7404 std::uncaught_exceptions instead of deprecated
7405 std::uncaught_exception.
7407 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7409 * macroexp.h (macro_stringify): Return
7410 gdb::unique_xmalloc_ptr<char>.
7411 * macroexp.c (macro_stringify): Likewise.
7412 * macrotab.c (fixup_definition): Update.
7414 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7416 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7417 (lex_one_token): Update.
7418 * macroexp.c (struct macro_buffer) <release>: Return
7419 gdb::unique_xmalloc_ptr<char>.
7420 (macro_stringify): Update.
7421 (macro_expand): Update.
7422 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7423 * macroexp.h (macro_expand_next): Likewise.
7425 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7427 * macroexp.h (macro_lookup_ftype): Remove.
7428 (macro_expand, macro_expand_once, macro_expand_next): Remove
7429 lookup function parameters, add scope parameter.
7430 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7431 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7432 * macroscope.h (standard_macro_lookup): Change parameter type
7434 * macroscope.c (standard_macro_lookup): Likewise.
7435 * c-exp.y (lex_one_token): Update.
7436 * macrocmd.c (macro_expand_command): Likewise.
7437 (macro_expand_once_command): Likewise.
7439 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7441 * inf-loop.c (inferior_event_handler): Remove client_data param.
7442 * inf-loop.h (inferior_event_handler): Likewise.
7443 * infcmd.c (step_1): Adjust.
7444 * infrun.c (proceed): Adjust.
7445 (fetch_inferior_event): Remove client_data param.
7446 (infrun_async_inferior_event_handler): Adjust.
7447 * infrun.h (fetch_inferior_event): Remove `void *` param.
7448 * linux-nat.c (handle_target_event): Adjust.
7449 * record-btrace.c (record_btrace_handle_async_inferior_event):
7451 * record-full.c (record_full_async_inferior_event_handler):
7453 * remote.c (remote_async_inferior_event_handler): Adjust.
7455 2020-07-01 Tom Tromey <tom@tromey.com>
7457 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7458 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7460 2020-07-01 Tom Tromey <tom@tromey.com>
7462 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7464 (tui_win_info::make_window): Merge with
7465 tui_gen_win_info::make_window.
7466 (tui_win_info::make_visible): Move from tui_gen_win_info.
7467 * tui/tui-win.c (tui_win_info::max_width): Move from
7469 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7471 <window_factory>: Likewise.
7472 * tui/tui-layout.c (tui_win_info::resize): Move from
7474 (make_standard_window): Change return type.
7475 (get_locator_window, tui_get_window_by_name): Likewise.
7476 (tui_layout_window::apply): Remove a cast.
7477 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7478 (struct tui_win_info): Merge with tui_gen_win_info.
7479 (struct tui_gen_win_info): Remove.
7481 2020-07-01 Tom Tromey <tom@tromey.com>
7483 * tui/tui-stack.h (struct tui_locator_window): Derive from
7485 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7486 <can_box>: New method.
7488 2020-07-01 Tom Tromey <tom@tromey.com>
7490 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7492 2020-07-01 Tom Tromey <tom@tromey.com>
7494 * tui/tui-regs.c (tui_data_window::display_registers_from)
7495 (tui_data_window::display_registers_from)
7496 (tui_data_window::first_data_item_displayed)
7497 (tui_data_window::delete_data_content_windows): Update.
7498 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7500 (tui_data_window::check_register_values): Update.
7501 (tui_data_item_window::rerender): Add parameters. Update.
7502 (tui_data_item_window::refresh_window): Remove.
7503 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7505 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7507 <refresh_window, max_height, min_height>: Remove.
7508 <rerender>: Add parameters.
7509 <x, y, visible>: New members.
7510 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7511 <m_item_width>: New member.
7513 2020-07-01 Tom Tromey <tom@tromey.com>
7515 * tui/tui-regs.c (tui_data_window::show_register_group)
7516 (tui_data_window::check_register_values): Update.
7517 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7520 2020-07-01 Tom Tromey <tom@tromey.com>
7522 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7525 2020-07-01 Tom Tromey <tom@tromey.com>
7527 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7528 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7530 2020-07-01 Tom Tromey <tom@tromey.com>
7532 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7533 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7534 (struct tui_line_or_address): Move from tui-data.h.
7535 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7536 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7537 (tui_cmd_window, tui_source_window_base, tui_source_window)
7538 (tui_disasm_window): Don't declare.
7539 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7541 (SINGLE_KEY): Move to tui-stack.c.
7543 2020-07-01 Tom Tromey <tom@tromey.com>
7545 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7547 * tui/tui-regs.c (class tab_expansion_file): New.
7548 (tab_expansion_file::write): New method.
7549 (tui_register_format): Change return type. Use
7551 (tui_get_register, tui_data_window::display_registers_from)
7552 (tui_data_item_window::rerender): Update.
7553 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7554 * tui/tui-io.c (tui_expand_tabs): Remove.
7556 2020-07-01 Tom Tromey <tom@tromey.com>
7558 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7560 2020-07-01 Fangrui Song <maskray@google.com>
7562 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7564 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7566 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7567 forms for DW_AT_associated and DW_AT_allocated attributes,
7568 which is already checked in function attr_to_dynamic_prop.
7570 2020-06-30 Tom Tromey <tromey@adacore.com>
7572 * dwarf2/read.c (quirk_rust_enum): Correctly call
7573 alloc_rust_variant for default-less enum.
7575 2020-06-30 Tom Tromey <tromey@adacore.com>
7578 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7581 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7583 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7584 * gdbarch.h: Re-generate.
7586 2020-06-28 Tom Tromey <tom@tromey.com>
7588 * command.h (cmd_types): Remove.
7589 (cmd_type): Don't declare.
7590 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7592 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7593 * cli/cli-decode.c (cmd_type): Remove.
7595 2020-06-27 Pedro Alves <palves@redhat.com>
7597 * fork-child.c (prefork_hook): Adjust.
7598 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7600 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7601 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7602 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7603 Remove declarations.
7604 (struct inferior) <set_tty, tty>: New methods.
7605 (struct inferior) <terminal>: Rename to ...
7606 (struct inferior) <m_terminal>: ... this and make private.
7607 * main.c (captured_main_1): Adjust.
7608 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7609 (mi_cmd_inferior_tty_show): Adjust.
7610 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7611 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7613 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7615 * configure.ac: Add --enable-libctf: handle --disable-static
7617 * acinclude.m4: sinclude ../config/enable.m4.
7618 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7619 (LIBCTF): Substitute in.
7620 (CTF_DEPS): New, likewise.
7621 (CLIBS): libctf needs symbols from libbfd: move earlier.
7622 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7624 * ctfread.c: Surround in ENABLE_LIBCTF.
7625 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7626 * configure: Regenerate.
7627 * config.in: Likewise.
7629 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7631 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7633 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7635 * inferior.h (struct inferior) <terminal>: Change type to
7636 gdb::unique_xmalloc_ptr<char>.
7637 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7638 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7639 field, adjust to unique pointer.
7640 (get_inferior_io_terminal): Adjust to unique pointer.
7642 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7644 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7645 registers, not just the known core set of registers.
7647 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7649 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7650 fflags, frm, and fcsr registers.
7651 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7653 (riscv_tdesc_unknown_reg): New function.
7654 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7655 tdesc_use_registers.
7656 * riscv-tdep.h (struct gdbarch_tdep): Add
7657 unknown_csrs_first_regnum, unknown_csrs_count,
7658 duplicate_fflags_regnum, duplicate_frm_regnum, and
7659 duplicate_fcsr_regnum fields.
7661 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7663 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7664 callback, use the callback (when not null) to help number unknown
7666 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7667 (tdesc_use_registers): Add extra parameter to declaration.
7669 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7671 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7673 (class riscv_pending_register_alias): Likewise.
7674 (riscv_register_feature::register_info): Change 'required_p' field
7675 to 'required', and change its type. Add 'check' member function.
7676 (riscv_register_feature::register_info::check): Define new member
7678 (riscv_xreg_feature): Change initialisation of 'required' field.
7679 (riscv_freg_feature): Likewise.
7680 (riscv_virtual_feature): Likewise.
7681 (riscv_csr_feature): Likewise.
7682 (riscv_check_tdesc_feature): Take extra parameter, the csr
7683 tdesc_feature, rewrite the function to use the new
7684 riscv_register_feature::register_info::check function.
7685 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7687 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7689 * features/Makefile: Remove all references to the deleted files
7691 * features/riscv/32bit-csr.c: Deleted.
7692 * features/riscv/32bit-csr.xml: Deleted.
7693 * features/riscv/64bit-csr.c: Deleted.
7694 * features/riscv/64bit-csr.xml: Deleted.
7695 * features/riscv/rebuild-csr-xml.sh: Deleted.
7697 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7699 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7700 whitespace error for declaration of names member variable.
7701 (struct riscv_register_feature): Add new prefer_first_name member
7702 variable, and fix whitespace error in declaration of registers.
7703 (riscv_xreg_feature): Initialize prefer_first_name field.
7704 (riscv_freg_feature): Likewise.
7705 (riscv_virtual_feature): Likewise.
7706 (riscv_csr_feature): Likewise.
7707 (riscv_register_name): Expand on comments. Remove register name
7708 modifications for CSR and virtual registers.
7710 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7712 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7715 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7717 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7719 (class riscv_pending_register_alias): New class.
7720 (riscv_check_tdesc_feature): Take vector of pending aliases and
7721 populate it as appropriate.
7722 (riscv_setup_register_aliases): Delete.
7723 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7724 to riscv_check_tdesc_feature in all cases. Use the vector to
7725 create the register aliases.
7727 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7729 * sol2-tdep.c (sol2_static_transform_name): Remove.
7730 (sol2_init_abi): Don't register it.
7731 * gdbarch.sh (static_transform_name): Remove.
7732 * gdbarch.c, gdbarch.h: Regenerate.
7734 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7735 gdbarch_static_transform_name.
7736 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7737 * stabsread.c (define_symbol) <'X'>: Remove.
7738 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7741 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7742 <'S'>: Remove call to gdbarch_static_transform_name.
7744 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7746 * procfs.c (procfs_pre_trace): New function.
7747 (procfs_target::create_inferior): Pass it to fork_inferior.
7749 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7751 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7752 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7753 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7754 sol2-tdep.o, sparc-sol2-tdep.o.
7755 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7756 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7757 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7758 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7760 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7762 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7763 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7765 Remove calls to set_gdbarch_skip_solib_resolver,
7766 set_gdbarch_core_pid_to_str.
7767 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7768 (i386_sol2_static_transform_name): Remove.
7769 (i386_sol2_init_abi): Call sol2_init_abi.
7770 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7771 set_gdbarch_static_transform_name,
7772 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7773 Use sol2_sigtramp_p.
7774 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7775 (sol2_sigtramp_p): New function.
7776 (sol2_static_transform_name): New function.
7777 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7778 (sol2_init_abi): New function.
7779 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7780 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7781 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7782 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7783 (sparc_sol2_static_transform_name): Remove.
7784 (sparc32_sol2_init_abi): Call sol2_init_abi.
7785 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7786 set_gdbarch_static_transform_name,
7787 set_gdbarch_skip_solib_resolver,
7788 set_gdbarch_core_pid_to_str.
7789 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7790 (sparc_sol2_static_transform_name): Remove
7791 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7792 call sol2_sigtramp_p.
7793 (sparc64_sol2_init_abi): Call sol2_init_abi.
7794 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7795 set_gdbarch_static_transform_name,
7796 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7798 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7800 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7801 * exec.c (validate_exec_file): If from_tty, set both
7802 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7803 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7804 and from_tty, unconditionally ask a confirmation.
7806 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7808 * target-descriptions.c (tdesc_architecture_name): Protect against
7809 NULL pointer dereference.
7810 (maint_print_xml_tdesc_cmd): New function.
7811 (_initialize_target_descriptions): Register new 'maint print
7812 xml-tdesc' command and give it the filename completer.
7813 * NEWS: Mention new 'maint print xml-tdesc' command.
7815 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7817 * target-descriptions.c (class tdesc_compatible_info): New class.
7818 (struct target_desc): Change type of compatible vector.
7819 (tdesc_compatible_p): Update for change in type of
7820 target_desc::compatible.
7821 (tdesc_compatible_info_list): New function.
7822 (tdesc_compatible_info_arch_name): New function.
7823 (tdesc_add_compatible): Update for change in type of
7824 target_desc::compatible.
7825 (print_c_tdesc::visit_pre): Likewise.
7827 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7829 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7830 whitespace to underscore.
7831 (maint_print_c_tdesc_cmd): Use fake filename for target
7832 descriptions that came from the target.
7833 (_initialize_target_descriptions): Add filename command completion
7834 for 'maint print c-tdesc'.
7836 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7838 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7841 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7843 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7845 (dwarf2_find_location_expression): Likewise.
7846 (call_site_parameter_matches): Likewise.
7847 (dwarf2_compile_expr_to_ax): Likewise.
7848 (disassemble_dwarf_expression): Likewise.
7849 (loclist_describe_location): Likewise.
7851 2020-06-23 Pedro Alves <palves@redhat.com>
7853 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7854 progspace-and-thread.h. Include scoped-mock-context.h instead.
7855 (register_to_value_test): Use scoped_mock_context.
7856 * regcache.c: Include "scoped-mock-context.h".
7857 (cooked_read_test): Don't error out if a target is already pushed.
7858 Use scoped_mock_context. Adjust.
7859 * scoped-mock-context.h: New file.
7861 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7863 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7865 (ada_language::is_string_type_p): New member function.
7866 * c-lang.c (c_language_data): Delete la_is_string_type_p
7868 (cplus_language_data): Likewise.
7869 (asm_language_data): Likewise.
7870 (minimal_language_data): Likewise.
7871 * d-lang.c (d_language_data): Likewise.
7872 * f-lang.c (f_is_string_type_p): Delete function, implementation
7873 moved to f_language::is_string_type_p.
7874 (f_language_data): Delete la_is_string_type_p initializer.
7875 (f_language::is_string_type_p): New member function,
7876 implementation from f_is_string_type_p.
7877 * go-lang.c (go_is_string_type_p): Delete function, implementation
7878 moved to go_language::is_string_type_p.
7879 (go_language_data): Delete la_is_string_type_p initializer.
7880 (go_language::is_string_type_p): New member function,
7881 implementation from go_is_string_type_p.
7882 * language.c (language_defn::is_string_type_p): Define new member
7884 (default_is_string_type_p): Make static, add comment copied from
7886 (unknown_language_data): Delete la_is_string_type_p initializer.
7887 (unknown_language::is_string_type_p): New member function.
7888 (auto_language_data): Delete la_is_string_type_p initializer.
7889 (auto_language::is_string_type_p): New member function.
7890 * language.h (language_data): Delete la_is_string_type_p field.
7891 (language_defn::is_string_type_p): Declare new function.
7892 (default_is_string_type_p): Delete desclaration, move comment to
7894 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7895 moved to m2_language::is_string_type_p.
7896 (m2_language_data): Delete la_is_string_type_p initializer.
7897 (m2_language::is_string_type_p): New member function,
7898 implementation from m2_is_string_type_p.
7899 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7901 * opencl-lang.c (opencl_language_data): Likewise.
7902 * p-lang.c (pascal_is_string_type_p): Delete function,
7903 implementation moved to pascal_language::is_string_type_p.
7904 (pascal_language_data): Delete la_is_string_type_p initializer.
7905 (pascal_language::is_string_type_p): New member function,
7906 implementation from pascal_is_string_type_p.
7907 * rust-lang.c (rust_is_string_type_p): Delete function,
7908 implementation moved to rust_language::is_string_type_p.
7909 (rust_language_data): Delete la_is_string_type_p initializer.
7910 (rust_language::is_string_type_p): New member function,
7911 implementation from rust_is_string_type_p.
7912 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7915 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7917 * ada-lang.c (ada_language_data): Delete la_print_typedef
7919 (ada_language::print_typedef): New member function.
7920 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7921 (cplus_language_data): Likewise.
7922 (asm_language_data): Likewise.
7923 (minimal_language_data): Likewise.
7924 * d-lang.c (d_language_data): Likewise.
7925 * f-lang.c (f_language_data): Likewise.
7926 (f_language::print_typedef): New member function.
7927 * go-lang.c (go_language_data): Delete la_print_typedef
7929 * language.c (language_defn::print_typedef): Define member
7931 (unknown_language_data): Delete la_print_typedef initializer.
7932 (unknown_language::print_typedef): New member function.
7933 (auto_language_data): Delete la_print_typedef initializer.
7934 (auto_language::print_typedef): New member function.
7935 * language.h (language_data): Delete la_print_typedef field.
7936 (language_defn::print_typedef): Declare new member function.
7937 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7938 (default_print_typedef): Delete declaration.
7939 * m2-lang.c (m2_language_data): Delete la_print_typedef
7941 (m2_language::print_typedef): New member function.
7942 * objc-lang.c (objc_language_data): Delete la_print_typedef
7944 * opencl-lang.c (opencl_language_data): Likewise.
7945 * p-lang.c (pascal_language_data): Likewise.
7946 (pascal_language::print_typedef): New member function.
7947 * rust-lang.c (rust_print_typedef): Delete function,
7948 implementation moved to rust_language::print_typedef.
7949 (rust_language): Delete la_print_typedef initializer.
7950 (rust_language::print_typedef): New member function,
7951 implementation from rust_print_typedef.
7952 * typeprint.c (default_print_typedef): Delete.
7954 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7956 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7957 (ada_language::printstr): New member function.
7958 * c-lang.c (c_language_data): Delete la_printstr initializer.
7959 (cplus_language_data): Likewise.
7960 (asm_language_data): Likewise.
7961 (minimal_language_data): Likewise.
7962 * d-lang.c (d_language_data): Likewise.
7963 * f-lang.c (f_printstr): Rename to f_language::printstr.
7964 (f_language_data): Delete la_printstr initializer.
7965 (f_language::printstr): New member function, implementation from
7967 * go-lang.c (go_language_data): Delete la_printstr initializer.
7968 * language.c (language_defn::printstr): Define new member
7970 (unk_lang_printstr): Delete.
7971 (unknown_language_data): Delete la_printstr initializer.
7972 (unknown_language::printstr): New member function.
7973 (auto_language_data): Delete la_printstr initializer.
7974 (auto_language::printstr): New member function.
7975 * language.h (language_data): Delete la_printstr field.
7976 (language_defn::printstr): Declare new member function.
7977 (LA_PRINT_STRING): Update call to printstr.
7978 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7979 (m2_language_data): Delete la_printstr initializer.
7980 (m2_language::printstr): New member function, implementation from
7982 * objc-lang.c (objc_language_data): Delete la_printstr
7984 * opencl-lang.c (opencl_language_data): Likewise.
7985 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7986 (pascal_language_data): Delete la_printstr initializer.
7987 (pascal_language::printstr): New member function, implementation
7988 from pascal_printstr.
7989 * p-lang.h (pascal_printstr): Delete declaration.
7990 * rust-lang.c (rust_printstr): Update header comment.
7991 (rust_language_data): Delete la_printstr initializer.
7992 (rust_language::printstr): New member function.
7994 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7996 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7997 (ada_language::printchar): New member function.
7998 * c-lang.c (c_language_data): Delete la_printchar initializer.
7999 (cplus_language_data): Likewise.
8000 (asm_language_data): Likewise.
8001 (minimal_language_data): Likewise.
8002 * d-lang.c (d_language_data): Likewise.
8003 * f-lang.c (f_printchar): Rename to f_language::printchar.
8004 (f_language_data): Delete la_printchar initializer.
8005 (f_language::printchar): New member function, implementation from
8007 * go-lang.c (go_language_data): Delete la_printchar initializer.
8008 * language.c (unk_lang_printchar): Delete.
8009 (language_defn::printchar): Define new member function.
8010 (unknown_language_data): Delete la_printchar initializer.
8011 (unknown_language::printchar): New member function.
8012 (auto_language_data): Delete la_printchar initializer.
8013 (auto_language::printchar): New member function.
8014 * language.h (language_data): Delete la_printchar field.
8015 (language_defn::printchar): Declare new member function.
8016 (LA_PRINT_CHAR): Update call to printchar.
8017 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8018 (m2_language::printchar): New member function.
8019 * objc-lang.c (objc_language_data): Delete la_printchar
8021 * opencl-lang.c (opencl_language_data): Likewise.
8022 * p-lang.c (pascal_language_data): Delete la_printchar
8024 (pascal_language::printchar): New member function.
8025 * rust-lang.c (rust_printchar): Rename to
8026 rust_language::printchar.
8027 (rust_language_data): Delete la_printchar initializer.
8028 (rust_language::printchar): New member function, implementation
8029 from rust_printchar.
8031 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8033 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8034 (ada_language_data): Delete la_emitchar initializer.
8035 (ada_language::emitchar): New member function, implementation from
8037 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8038 (cplus_language_data): Likewise.
8039 (asm_language_data): Likewise.
8040 (minimal_language_data): Likewise.
8041 * d-lang.c (d_language_data): Likewise.
8042 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8043 (f_language_data): Delete la_emitchar initializer.
8044 (f_language::emitchar): New member function, implementation from
8046 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8047 * language.c (unk_lang_emit_char): Delete.
8048 (language_defn::emitchar): New member function definition.
8049 (unknown_language_data): Delete la_emitchar initializer.
8050 (unknown_language::emitchar): New member function.
8051 (auto_language_data): Delete la_emitchar initializer.
8052 (auto_language::emitchar): New member function.
8053 * language.h (language_data): Delete la_emitchar field.
8054 (language_defn::emitchar): New member field declaration.
8055 (LA_EMIT_CHAR): Update call to emitchar.
8056 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8057 (m2_language_data): Delete la_emitchar initializer.
8058 (m2_language::emitchar): New member function, implementation from
8060 * objc-lang.c (objc_language_data): Delete la_emitchar
8062 * opencl-lang.c (opencl_language_data): Likewise.
8063 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8064 (pascal_language_data): Delete la_emitchar initializer.
8065 (pascal_language::emitchar): New member function, implementation
8066 from pascal_emit_char.
8067 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8068 (rust_language_data): Delete la_emitchar initializer.
8069 (rust_language::emitchar): New member function, implementation
8072 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8074 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8075 (ada_language_data): Delete la_post_parser initializer.
8076 (ada_language::post_parser): New member function.
8077 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8078 (cplus_language_data): Likewise.
8079 (asm_language_data): Likewise.
8080 (minimal_language_data): Likewise.
8081 * d-lang.c (d_language_data): Likewise.
8082 * f-lang.c (f_language_data): Likewise.
8083 * go-lang.c (go_language_data): Likewise.
8084 * language.c (unknown_language_data): Likewise.
8085 (auto_language_data): Likewise.
8086 * language.h (language_data): Delete la_post_parser field.
8087 (language_defn::post_parser): New member function.
8088 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8089 * objc-lang.c (objc_language_data): Likewise.
8090 * opencl-lang.c (opencl_language_data): Likewise.
8091 * p-lang.c (pascal_language_data): Likewise.
8092 * parse.c (parse_exp_in_context): Update call to post_parser.
8093 (null_post_parser): Delete definition.
8094 * parser-defs.h (null_post_parser): Delete declaration.
8095 * rust-lang.c (rust_language_data): Delete la_post_parser
8098 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8100 * ada-lang.c (parse): Rename to ada_language::parser.
8101 (ada_language_data): Delete la_parser initializer.
8102 (ada_language::parser): New member function, implementation from
8104 * c-lang.c (c_language_data): Delete la_parser initializer.
8105 (cplus_language_data): Likewise.
8106 (asm_language_data): Likewise.
8107 (minimal_language_data): Likewise.
8108 * d-lang.c (d_language_data): Likewise.
8109 (d_language::parser): New member function.
8110 * f-lang.c (f_language_data): Delete la_parser initializer.
8111 (f_language::parser): New member function.
8112 * go-lang.c (go_language_data): Delete la_parser initializer.
8113 (go_language::parser): New member function.
8114 * language.c (unk_lang_parser): Delete.
8115 (language_defn::parser): Define new member function.
8116 (unknown_language_data): Delete la_parser initializer.
8117 (unknown_language::parser): New member function.
8118 (auto_language_data): Delete la_parser initializer.
8119 (auto_language::parser): New member function.
8120 * language.h (language_data): Delete la_parser field.
8121 (language_defn::parser): Declare new member function.
8122 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8123 (m2_language::parser): New member function.
8124 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8125 * opencl-lang.c (opencl_language_data): Likewise.
8126 * p-lang.c (pascal_language_data): Likewise.
8127 (pascal_language::parser): New member function.
8128 * parse.c (parse_exp_in_context): Update call to parser.
8129 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8130 (rust_language::parser): New member function.
8132 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8134 * top.c (print_gdb_configuration): Print --with-python-libdir
8135 configuration value.
8137 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8139 * NEWS: Mention change to the alias command.
8141 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8143 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8144 (alias_command_completer)
8145 (make_alias_options_def_group): New functions.
8146 (alias_opts, alias_option_defs): New struct and array.
8147 (alias_usage_error): Update usage.
8148 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8149 Use option framework.
8150 (_initialize_cli_cmds): Update alias command help.
8151 Update aliases command help.
8153 Add NULL for new default_args lookup_cmd argument.
8154 (valid_command_p): Rename to validate_aliased_command.
8155 Add NULL for new default_args lookup_cmd argument. Verify that the
8156 aliased_command has no default args.
8157 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8158 (lookup_cmd_1, lookup_cmd): New argument default_args.
8160 Add NULL for new default_args lookup_cmd argument.
8161 (print_help_for_command): Show default args under the layout
8162 alias some_alias = some_aliased_cmd some_alias_default_arg.
8163 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8164 xfree default_args in destructor.
8165 * cli/cli-script.c (process_next_line, do_define_command):
8166 Add NULL for new default_args lookup_cmd argument.
8167 * command.h: Declare new default_args argument in lookup_cmd
8169 * completer.c (complete_line_internal_1):
8170 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8171 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8172 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8174 * infcmd.c (_initialize_infcmd): Likewise.
8175 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8176 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8177 * python/py-param.c (add_setshow_generic): Likewise.
8178 * remote.c (_initialize_remote): Likewise.
8179 * top.c (execute_command): Prepend default_args if command has some.
8181 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8182 * tracepoint.c (validate_actionline, encode_actions_1):
8183 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8185 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8187 * jit.c (jit_read_descriptor): Use bool as the return type.
8188 (jit_breakpoint_re_set_internal): Use bool as the return type.
8189 Invert the return value logic; return true if the jit breakpoint
8190 has been successfully initialized.
8191 (jit_inferior_init): Update the call to
8192 jit_breakpoint_re_set_internal.
8194 2020-06-22 Pedro Alves <palves@redhat.com>
8197 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8198 Use the current inferior instead. Don't return
8199 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8201 * sol-thread.c (sol_thread_target::wait): Don't reference
8203 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8204 (sol_update_thread_list_callback): Use the current inferior's pid
8205 instead of inferior_ptid.
8207 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8209 * procfs.c: Cleanup many comments.
8211 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8212 (AFTER_WATCHFLAG): Replace by value.
8214 (MAIN_PROC_NAME_FORMAT): Inline ...
8215 (create_procinfo): ... here.
8217 (procfs_debug_inferior): Remove SYS_exec handling.
8218 (syscall_is_exec): Likewise.
8219 (procfs_set_exec_trap): Likewise.
8221 (syscall_is_lwp_exit): Inline in callers.
8222 (syscall_is_exit): Likewise.
8223 (syscall_is_exec): Likewise.
8224 (syscall_is_lwp_create): Likewise.
8226 (invalidate_cache): Remove #if 0 code.
8228 (make_signal_thread_runnable): Remove.
8229 (procfs_target::resume): Remove #if 0 code.
8231 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8234 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8236 (procfs_target::create_inferior): ... here.
8238 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8240 * exec.c (validate_exec_file): Ensure the build-id is up to
8241 date by calling reopen_exec_file (that checks file timestamp
8242 to decide to re-read the file).
8244 2020-06-18 Pedro Alves <palves@redhat.com>
8247 * gdbthread.h (delete_thread, delete_thread_silent)
8248 (find_thread_ptid): Update comments.
8249 * thread.c (current_thread_): New global.
8250 (is_current_thread): Move higher, and reimplement.
8251 (inferior_thread): Reimplement.
8252 (set_thread_exited): Use bool. Add assertions.
8253 (add_thread_silent): Simplify thread-reuse handling by always
8254 calling delete_thread.
8255 (delete_thread): Remove intro comment.
8256 (find_thread_ptid): Skip exited threads.
8257 (switch_to_thread_no_regs): Write to current_thread_.
8258 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8259 INFERIOR_PTID. Clear current_thread_.
8261 2020-06-18 Pedro Alves <palves@redhat.com>
8263 * aix-thread.c (pd_update): Use switch_to_thread.
8265 2020-06-18 Pedro Alves <palves@redhat.com>
8267 * ravenscar-thread.c (ravenscar_thread_target): Update.
8268 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8269 (ravenscar_thread_target::add_active_thread): ... this. Don't
8270 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8271 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8273 2020-06-18 Pedro Alves <palves@redhat.com>
8275 * nat/windows-nat.c (current_windows_thread): Remove.
8276 * nat/windows-nat.h (current_windows_thread): Remove.
8277 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8279 (display_selectors): Adjust to fetch the current
8280 windows_thread_info based on inferior_ptid.
8281 (fake_create_process): No longer write to current_windows_thread.
8282 (windows_nat_target::get_windows_debug_event):
8283 Don't set inferior_ptid or current_windows_thread.
8284 (windows_nat_target::wait): Adjust to not rely on
8285 current_windows_thread.
8286 (do_initial_windows_stuff): Now a method of windows_nat_target.
8287 Switch to the last_ptid thread.
8288 (windows_nat_target::attach): Adjust.
8289 (windows_nat_target::detach): Use switch_to_no_thread instead of
8290 writing to inferior_ptid directly.
8291 (windows_nat_target::create_inferior): Adjust.
8293 2020-06-18 Pedro Alves <palves@redhat.com>
8295 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8297 2020-06-18 Pedro Alves <palves@redhat.com>
8299 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8300 after creating it, instead of writing to inferior_ptid. Don't
8301 write to inferior_ptid.
8303 2020-06-18 Pedro Alves <palves@redhat.com>
8305 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8307 2020-06-18 Pedro Alves <palves@redhat.com>
8309 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8310 it, instead of writing to inferior_ptid.
8312 2020-06-18 Pedro Alves <palves@redhat.com>
8314 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8317 2020-06-18 Pedro Alves <palves@redhat.com>
8319 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8320 instead of writing to inferior_ptid directly.
8322 2020-06-18 Pedro Alves <palves@redhat.com>
8324 * corelow.c (core_target::close): Use switch_to_no_thread instead
8325 of writing to inferior_ptid directly.
8326 (add_to_thread_list, core_target_open): Use switch_to_thread
8327 instead of writing to inferior_ptid directly.
8329 2020-06-18 Pedro Alves <palves@redhat.com>
8331 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8333 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8335 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8336 inferior_ptid directly.
8337 (darwin_nat_target::init_thread_list): Switch to thread, instead
8338 of writing to inferior_ptid.
8339 (darwin_nat_target::attach): Don't write to inferior_ptid.
8340 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8342 2020-06-18 Pedro Alves <palves@redhat.com>
8344 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8346 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8347 Instead use switch_to_thread.
8348 (gnu_nat_target::detach): Use switch_to_no_thread
8349 instead of writing to inferior_ptid directly. Used passed-in
8350 inferior instead of looking up the inferior by pid.
8352 2020-06-18 Pedro Alves <palves@redhat.com>
8354 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8357 2020-06-18 Pedro Alves <palves@redhat.com>
8359 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8361 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8363 (nto_procfs_target::detach): Avoid referencing
8364 inferior_ptid. Use switch_to_no_thread instead of writing to
8365 inferior_ptid directly.
8366 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8367 instead of writing to inferior_ptid directly.
8368 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8371 2020-06-18 Pedro Alves <palves@redhat.com>
8373 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8374 after creating it, instead of writing to inferior_ptid.
8375 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8376 to inferior_ptid directly.
8377 (gdbsim_target::wait): Don't write to inferior_ptid.
8379 2020-06-18 Pedro Alves <palves@redhat.com>
8381 * remote.c (remote_target::remote_notice_new_inferior): Use
8382 switch_to_thread instead of writing to inferior_ptid directly.
8383 (remote_target::add_current_inferior_and_thread): Use
8384 switch_to_no_thread instead of writing to inferior_ptid directly.
8385 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8386 and switch_to_thread instead of using set_current_inferior or
8387 writing to inferior_ptid directly.
8389 2020-06-18 Pedro Alves <palves@redhat.com>
8391 * tracectf.c (ctf_target_open): Switch to added thread instead of
8392 writing to inferior_ptid directly.
8393 (ctf_target::close): Use switch_to_no_thread instead of writing to
8394 inferior_ptid directly.
8396 2020-06-18 Pedro Alves <palves@redhat.com>
8398 * tracefile-tfile.c (tfile_target_open): Don't write to
8399 inferior_ptid directly, instead switch to added thread.
8400 (tfile_target::close): Use switch_to_no_thread instead of writing
8401 to inferior_ptid directly.
8403 2020-06-18 Pedro Alves <palves@redhat.com>
8405 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8406 (procfs_target::detach): Use switch_to_no_thread
8407 instead of writing to inferior_ptid directly.
8408 (do_attach): Change return type to void. Switch to the added
8410 (procfs_target::create_inferior): Switch to the added thread.
8411 (procfs_do_thread_registers): Don't write to inferior_ptid.
8413 2020-06-18 Pedro Alves <palves@redhat.com>
8415 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8416 of writing to inferior_ptid.
8417 (scoped_restore_exited_inferior): Delete.
8418 (handle_vfork_child_exec_or_exit): Simplify using
8419 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8420 instead of writing to inferior_ptid.
8421 (THREAD_STOPPED_BY): Delete.
8422 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8423 (thread_stopped_by_hw_breakpoint): Delete.
8424 (save_waitstatus): Use
8425 scoped_restore_current_thread+switch_to_thread, and call
8426 target_stopped_by_watchpoint instead of
8427 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8428 instead of thread_stopped_by_sw_breakpoint, and
8429 target_stopped_by_hw_breakpoint instead of
8430 thread_stopped_by_hw_breakpoint.
8431 (handle_inferior_event)
8432 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8433 inferior_ptid directly, nor
8434 set_current_inferior/set_current_program_space. Use
8435 switch_to_thread / switch_to_inferior_no_thread instead.
8437 2020-06-18 Pedro Alves <palves@redhat.com>
8439 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8440 instead of writing to inferior_ptid.
8442 2020-06-18 Pedro Alves <palves@redhat.com>
8444 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8446 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8447 to the added thread.
8448 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8449 instead of writing to inferior_ptid.
8451 2020-06-18 Pedro Alves <palves@redhat.com>
8453 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8454 (register_to_value_test): Mock a program_space too. Heap-allocate
8455 the address space. Don't write to inferior_ptid. Use
8456 switch_to_thread instead.
8458 2020-06-18 Pedro Alves <palves@redhat.com>
8460 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8462 (find_signalled_thread()): New, factored out from
8463 linux_make_corefile_notes and adjusted to handle exited threads.
8464 (linux_make_corefile_notes): Adjust to use the new
8465 find_signalled_thread.
8467 2020-06-18 Pedro Alves <palves@redhat.com>
8469 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8470 of saving/restoring inferior_ptid.
8472 2020-06-17 Tom Tromey <tom@tromey.com>
8474 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8475 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8477 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8479 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8481 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8484 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8486 * regformats/reg-arm.dat: Remove.
8487 * regformats/reg-bfin.dat: Remove.
8488 * regformats/reg-cris.dat: Remove.
8489 * regformats/reg-crisv32.dat: Remove.
8490 * regformats/reg-m32r.dat: Remove.
8491 * regformats/reg-tilegx.dat: Remove.
8492 * regformats/reg-tilegx32.dat: Remove.
8494 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8496 * features/Makefile (WHICH): Remove arm files.
8497 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8498 * regformats/arm/arm-with-neon.dat: Remove.
8499 * regformats/arm/arm-with-vfpv2.dat: Remove.
8500 * regformats/arm/arm-with-vfpv3.dat: Remove.
8502 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8504 * features/Makefile (XMLTOC): Remove rx.xml.
8506 2020-06-17 Pedro Alves <palves@redhat.com>
8508 * gdbthread.h (thread_control_state) <trap_expected> Update
8511 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8513 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8514 ada_language::lookup_symbol_nonlocal.
8515 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8516 (ada_language::lookup_symbol_nonlocal): New member function,
8517 implementation from ada_lookup_symbol_nonlocal.
8518 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8520 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8522 (cplus_language::lookup_symbol_nonlocal): New member function.
8523 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8524 (minimal_language_data) Likewise.
8525 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8526 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8528 (d_language::lookup_symbol_nonlocal): New member function.
8529 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8531 (f_language::lookup_symbol_nonlocal): New member function.
8532 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8534 * language.c (unknown_language_data): Likewise.
8535 (auto_language_data): Likewise.
8536 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8538 (language_defn::lookup_symbol_nonlocal): New member function.
8539 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8541 * objc-lang.c (objc_language_data): Likewise.
8542 * opencl-lang.c (opencl_language_data): Likewise.
8543 * p-lang.c (pascal_language_data): Likewise.
8544 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8545 rust_language::lookup_symbol_nonlocal.
8546 (rust_language_data): Delete la_lookup_symbol_nonlocal
8548 (rust_language::lookup_symbol_nonlocal): New member function,
8549 implementation from rust_lookup_symbol_nonlocal.
8550 * symtab.c (lookup_symbol_aux): Update call to
8551 lookup_symbol_nonlocal.
8552 (basic_lookup_symbol_nonlocal): Rename to...
8553 (language_defn::lookup_symbol_nonlocal): ...this, and update
8554 header comment. Remove language_defn parameter, and replace with
8556 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8558 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8560 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8562 (ada_language::value_print_inner): New member function.
8563 * c-lang.c (c_language_data): Delete la_value_print_inner
8565 (cplus_language_data): Likewise.
8566 (asm_language_data): Likewise.
8567 (minimal_language_data): Likewise.
8568 * d-lang.c (d_language_data): Likewise.
8569 (d_language::value_print_inner): New member function.
8570 * f-lang.c (f_language_data): Delete la_value_print_inner
8572 (f_language::value_print_inner): New member function.
8573 * f-lang.h (f_value_print_innner): Rename to...
8574 (f_value_print_inner): ...this (note spelling of 'inner').
8575 * f-valprint.c (f_value_print_innner): Rename to...
8576 (f_value_print_inner): ...this (note spelling of 'inner').
8577 * go-lang.c (go_language_data): Delete la_value_print_inner
8579 (go_language::value_print_inner): New member function.
8580 * language.c (language_defn::value_print_inner): Define new member
8582 (unk_lang_value_print_inner): Delete.
8583 (unknown_language_data): Delete la_value_print_inner initializer.
8584 (unknown_language::value_print_inner): New member function.
8585 (auto_language_data): Delete la_value_print_inner initializer.
8586 (auto_language::value_print_inner): New member function.
8587 * language.h (language_data): Delete la_value_print_inner field.
8588 (language_defn::value_print_inner): Delcare new member function.
8589 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8591 (m2_language::value_print_inner): New member function.
8592 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8594 * opencl-lang.c (opencl_language_data): Likewise.
8595 * p-lang.c (pascal_language_data): Likewise.
8596 (pascal_language::value_print_inner): New member function.
8597 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8599 (rust_language::value_print_inner): New member function.
8600 * valprint.c (do_val_print): Update call to value_print_inner.
8602 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8604 * ada-lang.c (ada_language_data): Delete la_value_print
8606 (ada_language::value_print): New member function.
8607 * c-lang.c (c_language_data): Delete la_value_print initializer.
8608 (cplus_language_data): Likewise.
8609 (asm_language_data): Likewise.
8610 (minimal_language_data): Likewise.
8611 * d-lang.c (d_language_data): Likewise.
8612 * f-lang.c (f_language_data): Likewise.
8613 * go-lang.c (go_language_data): Likewise.
8614 * language.c (unk_lang_value_print): Delete.
8615 (language_defn::value_print): Define new member function.
8616 (unknown_language_data): Delete la_value_print initializer.
8617 (unknown_language::value_print): New member function.
8618 (auto_language_data): Delete la_value_print initializer.
8619 (auto_language::value_print): New member function.
8620 * language.h (language_data): Delete la_value_print field.
8621 (language_defn::value_print): Declare new member function.
8622 (LA_VALUE_PRINT): Update call to value_print.
8623 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8624 * objc-lang.c (objc_language_data): Likewise.
8625 * opencl-lang.c (opencl_language_data): Likewise.
8626 * p-lang.c (pascal_language_data): Likewise.
8627 (pascal_language::value_print): New member function.
8628 * rust-lang.c (rust_language_data): Delete la_value_print
8631 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8633 * ada-lang.c (ada_watch_location_expression): Rename to
8634 ada_language::watch_location_expression.
8635 (ada_language_data): Delete la_watch_location_expression
8637 (ada_language::watch_location_expression): New member function,
8638 implementation from ada_watch_location_expression.
8639 * breakpoint.c (watch_command_1): Update call to
8640 watch_location_expression.
8641 * c-lang.c (c_watch_location_expression): Rename to
8642 language_defn::watch_location_expression.
8643 (c_language_data): Delete la_watch_location_expression
8645 (cplus_language_data): Likewise.
8646 (asm_language_data): Likewise.
8647 (minimal_language_data): Likewise.
8648 * c-lang.h (c_watch_location_expression): Delete declaration.
8649 * d-lang.c (d_language_data): Delete la_watch_location_expression
8651 * f-lang.c (f_language_data): Likewise.
8652 * go-lang.c (go_language_data): Likewise.
8653 * language.c (language_defn::watch_location_expression): Member
8654 function implementation from c_watch_location_expression.
8655 (unknown_language_data): Delete la_watch_location_expression
8657 (auto_language_data): Likewise.
8658 * language.h (language_data): Delete la_watch_location_expression
8660 (language_defn::watch_location_expression): Declare new member
8662 * m2-lang.c (m2_language_data): Delete
8663 la_watch_location_expression initializer.
8664 * objc-lang.c (objc_language_data): Likewise.
8665 * opencl-lang.c (opencl_language_data): Likewise.
8666 * p-lang.c (pascal_language_data): Likewise.
8667 * rust-lang.c (rust_watch_location_expression): Rename to
8668 rust_language::watch_location_expression.
8669 (rust_language_data): Delete la_watch_location_expression
8671 (rust_language::watch_location_expression): New member function,
8672 implementation from rust_watch_location_expression.
8674 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8676 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8677 ada_language::collect_symbol_completion_matches.
8678 (ada_language_data): Delete la_collect_symbol_completion_matches
8680 (ada_language::collect_symbol_completion_matches): New member
8681 function, implementation from
8682 ada_collect_symbol_completion_matches.
8683 * c-lang.c (c_language_data): Delete
8684 la_collect_symbol_completion_matches initializer.
8685 (cplus_language_data): Likewise.
8686 (asm_language_data): Likewise.
8687 (minimal_language_data): Likewise.
8688 * d-lang.c (d_language_data): Likewise.
8689 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8690 f_language::collect_symbol_completion_matches.
8691 (f_language_data): Delete la_collect_symbol_completion_matches
8693 (f_language::collect_symbol_completion_matches) New member
8694 function, implementation from f_collect_symbol_completion_matches.
8695 * go-lang.c (go_language_data): Delete
8696 la_collect_symbol_completion_matches initializer.
8697 * language.c (unknown_language_data): Likewise.
8698 (auto_language_data): Likewise.
8699 * language.h (language_data): Delete
8700 la_collect_symbol_completion_matches field.
8701 (language_defn::collect_symbol_completion_matches): New member
8703 * m2-lang.c (m2_language_data): Delete
8704 la_collect_symbol_completion_matches initializer.
8705 * objc-lang.c (objc_language_data): Likewise.
8706 * opencl-lang.c (opencl_language_data): Likewise.
8707 * p-lang.c (pascal_language_data): Likewise.
8708 * rust-lang.c (rust_language_data): Likewise.
8709 * symtab.c (default_collect_symbol_completion_matches): Delete.
8710 (collect_symbol_completion_matches): Update call to
8711 collect_symbol_completion_matches.
8712 (collect_symbol_completion_matches_type): Likewise.
8713 * symtab.h (default_collect_symbol_completion_matches): Delete
8716 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8718 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8719 (ada_language_data): Delete la_word_break_characters initializer.
8720 (ada_language::word_break_characters): New member function.
8721 * c-lang.c (c_language_data): Delete la_word_break_characters
8723 (cplus_language_data): Likewise.
8724 (asm_language_data): Likewise.
8725 (minimal_language_data): Likewise.
8726 * completer.c: Update global comment.
8727 (advance_to_expression_complete_word_point): Update call to
8728 word_break_characters.
8729 (complete_files_symbols): Likewise.
8730 (complete_line_internal_1): Likewise.
8731 (default_completer_handle_brkchars): Likewise.
8732 (skip_quoted_chars): Likewise.
8733 * d-lang.c (d_language_data): Delete la_word_break_characters
8735 * f-lang.c (f_word_break_characters): Delete.
8736 (f_language_data): Delete la_word_break_characters initializer.
8737 (f_language::word_break_characters): New member function.
8738 * go-lang.c (go_language_data): Delete la_word_break_characters
8740 * language.c (unknown_language_data): Likewise.
8741 (auto_language_data): Likewise.
8742 * language.h (default_word_break_characters): Move declaration to
8743 earlier in the file.
8744 (language_data): Delete la_word_break_characters field.
8745 (language_defn::word_break_characters): New member function.
8746 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8748 * objc-lang.c (objc_language_data): Likewise.
8749 * opencl-lang.c (opencl_language_data): Likewise.
8750 * p-lang.c (pascal_language_data): Likewise.
8751 * rust-lang.c (rust_language_data): Likewise.
8753 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8755 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8756 (ada_language_data): Delete la_get_symbol_name_matcher
8758 (language_defn::get_symbol_name_matcher_inner): New member
8760 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8762 (cplus_language_data): Likewise.
8763 (cplus_language::get_symbol_name_matcher_inner): New member
8765 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8766 (minimal_language_data): Likewise.
8767 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8768 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8770 * dictionary.c (iter_match_first_hashed): Update call to
8771 get_symbol_name_matcher.
8772 (iter_match_next_hashed): Likewise.
8773 (iter_match_next_linear): Likewise.
8774 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8775 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8777 (f_language::get_symbol_name_matcher_inner): New member function.
8778 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8780 * language.c (default_symbol_name_matcher): Update header comment,
8782 (language_defn::get_symbol_name_matcher): New definition.
8783 (language_defn::get_symbol_name_matcher_inner): Likewise.
8784 (get_symbol_name_matcher): Delete.
8785 (unknown_language_data): Delete la_get_symbol_name_matcher
8787 (auto_language_data): Likewise.
8788 * language.h (language_data): Delete la_get_symbol_name_matcher
8790 (language_defn::get_symbol_name_matcher): New member function.
8791 (language_defn::get_symbol_name_matcher_inner): Likewise.
8792 (default_symbol_name_matcher): Delete declaration.
8793 * linespec.c (find_methods): Update call to
8794 get_symbol_name_matcher.
8795 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8797 * minsyms.c (lookup_minimal_symbol): Update call to
8798 get_symbol_name_matcher.
8799 (iterate_over_minimal_symbols): Likewise.
8800 * objc-lang.c (objc_language_data): Delete
8801 la_get_symbol_name_matcher initializer.
8802 * opencl-lang.c (opencl_language_data): Likewise.
8803 * p-lang.c (pascal_language_data): Likewise.
8804 * psymtab.c (psymbol_name_matches): Update call to
8805 get_symbol_name_matcher.
8806 * rust-lang.c (rust_language_data): Delete
8807 la_get_symbol_name_matcher initializer.
8808 * symtab.c (symbol_matches_search_name): Update call to
8809 get_symbol_name_matcher.
8810 (compare_symbol_name): Likewise.
8812 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8814 * ada-lang.c (ada_language_data): Delete la_compute_program
8816 * c-lang.c (c_language_data): Likewise.
8817 (c_language::compute_program): New member function.
8818 (cplus_language_data): Delete la_compute_program initializer.
8819 (cplus_language::compute_program): New member function.
8820 (asm_language_data): Delete la_compute_program initializer.
8821 (minimal_language_data): Likewise.
8822 * c-lang.h (c_compute_program): Update comment.
8823 (cplus_compute_program): Likewise.
8824 * compile/compile-c-support.c (c_compute_program): Likewise.
8825 (cplus_compute_program): Likewise.
8826 * compile/compile.c (compile_to_object): Update call to
8828 * d-lang.c (d_language_data): Delete la_compute_program
8830 * f-lang.c (f_language_data): Likewise.
8831 * go-lang.c (go_language_data): Likewise.
8832 * language.c (unknown_language_data): Likewise.
8833 (auto_language_data): Likewise.
8834 * language.h (language_data): Delete la_compute_program field.
8835 (language_defn::compute_program): New member function.
8836 * m2-lang.c (m2_language_data): Delete la_compute_program
8838 * objc-lang.c (objc_language_data): Likewise.
8839 * opencl-lang.c (opencl_language_data): Likewise.
8840 * p-lang.c (pascal_language_data): Likewise.
8841 * rust-lang.c (rust_language_data): Likewise.
8843 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8845 * ada-lang.c (ada_language_data) Delete
8846 la_class_name_from_physname initializer.
8847 * c-lang.c (c_language_data): Likewise.
8848 (cplus_language_data): Likewise.
8849 (cplus_language::class_name_from_physname): New member function.
8850 (asm_language_data): Delete la_class_name_from_physname
8852 (minimal_language_data): Likewise.
8853 * d-lang.c (d_language_data): Likewise.
8854 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8855 method on language_defn class.
8856 (guess_full_die_structure_name): Likewise.
8857 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8859 * go-lang.c (go_language_data): Likewise.
8860 * language.c (language_class_name_from_physname): Delete.
8861 (unk_lang_class_name): Delete.
8862 (unknown_language_data): Delete la_class_name_from_physname
8864 (auto_language_data): Likewise.
8865 * language.h (language_data): Delete la_class_name_from_physname
8867 (language_defn::class_name_from_physname): New function.
8868 (language_class_name_from_physname): Delete declaration.
8869 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8871 * objc-lang.c (objc_language_data): Likewise.
8872 * opencl-lang.c (opencl_language_data): Likewise.
8873 * p-lang.c (pascal_language_data): Likewise.
8874 * rust-lang.c (rust_language_data): Likewise.
8876 2020-06-16 Tom Tromey <tom@tromey.com>
8878 * tui/tui-data.h (STATUS_NAME): New macro.
8879 * tui/tui-layout.c (tui_remove_some_windows)
8880 (initialize_known_windows, tui_register_window)
8881 (tui_layout_split::remove_windows, initialize_layouts)
8882 (tui_new_layout_command): Don't use hard-coded window names.
8884 2020-06-16 Tom Tromey <tom@tromey.com>
8887 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8888 tui_initialize_readline. Only run once. Call rl_initialize.
8889 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8890 tui_initialize_readline.
8891 * tui/tui-io.c (tui_setup_io): Call
8892 tui_ensure_readline_initialized.
8893 * tui/tui-interp.c (tui_interp::init): Update.
8895 2020-06-16 Tom Tromey <tom@tromey.com>
8897 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8898 Also preserve the status window.
8900 2020-06-16 Tom Tromey <tom@tromey.com>
8902 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8903 where m_window==nullptr.
8905 2020-06-15 Tom Tromey <tromey@adacore.com>
8907 * windows-nat.c (windows_nat::handle_output_debug_string):
8909 (windows_nat::handle_ms_vc_exception): Update.
8910 * target.h (target_read_string): Change API.
8911 * target.c (target_read_string): Change API.
8912 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8914 * solib-frv.c (frv_current_sos): Update.
8915 * solib-dsbt.c (dsbt_current_sos): Update.
8916 * solib-darwin.c (darwin_current_sos): Update.
8917 * linux-thread-db.c (inferior_has_bug): Update.
8918 * expprint.c (print_subexp_standard): Update.
8919 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8920 (ada_exception_message_1): Update.
8922 2020-06-15 Tom Tromey <tromey@adacore.com>
8924 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8926 2020-06-15 Tom Tromey <tromey@adacore.com>
8928 * valprint.c (read_string): Update comment.
8929 * target.c (MIN): Remove.
8930 (target_read_string): Rewrite.
8932 2020-06-15 Tom Tromey <tromey@adacore.com>
8934 * corefile.c (read_memory_string): Remove.
8935 * ada-valprint.c (ada_value_print_ptr): Update.
8936 * ada-lang.h (ada_tag_name): Change return type.
8937 * ada-lang.c (type_from_tag): Update.
8938 (ada_tag_name_from_tsd): Change return type. Use
8940 (ada_tag_name): Likewise.
8941 * gdbcore.h (read_memory_string): Don't declare.
8943 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8945 * symtab.c (rbreak_command): Ignore Windows drive colon.
8947 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8949 * NEWS: Mention removed GDBserver host support.
8951 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8953 * features/riscv/rebuild-csr-xml.sh: Updated.
8955 2020-06-11 Tom Tromey <tom@tromey.com>
8958 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8960 2020-06-09 Jonny Grant <jg@jguk.org>
8961 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8963 * main.c (captured_main_1): Don't print new line after help.
8964 (print_gdb_help): add mailing list and IRC channel information
8965 to --help. Add new lines between items in the footer. Remove
8966 quotes around bug url.
8968 2020-06-11 Keith Seitz <keiths@redhat.com>
8971 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8972 Resolve typedefs for type length calculations.
8974 2020-06-10 Tom de Vries <tdevries@suse.de>
8977 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8978 (write_psymbols): Enable .gdb_index for ada.
8979 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8982 2020-06-10 Tom de Vries <tdevries@suse.de>
8984 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8985 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8986 namei" instead of "const char *name" argument.
8987 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8988 dw2_symtab_iter_init.
8990 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8992 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8993 to use type::field and field::type instead.
8995 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8997 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8998 to use field::type instead.
9000 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9002 * gdbtypes.h (struct field) <type, set_type>: New methods.
9003 Rename `type` field to...
9004 <m_type>: ... this. Change references throughout to use type or
9006 (FIELD_TYPE): Use field::type. Change call sites that modify
9007 the field's type to use field::set_type instead.
9009 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9011 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9012 to use type::index_type instead.
9014 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9016 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9018 (TYPE_INDEX_TYPE): Use type::index_type.
9019 * gdbtypes.c (create_array_type_with_stride): Likewise.
9021 2020-06-07 Tom Tromey <tom@tromey.com>
9023 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9025 (generic_value_print): Update.
9027 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9029 Revert commit 982a38f60b0.
9030 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9032 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9034 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9035 avoid use after free.
9037 2020-06-05 Tom de Vries <tdevries@suse.de>
9041 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
9043 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9045 (dwarf2_read_debug_names): Likewise.
9046 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9047 object when re-using a per_bfd object with an index.
9049 2020-06-03 Tom de Vries <tdevries@suse.de>
9052 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9054 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9057 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9059 * ada-lang.c (ada_language_data): Delete skip_trampoline
9061 * c-lang.c (c_language_data): Likewise.
9062 (cplus_language_data): Likewise.
9063 (cplus_language::skip_trampoline): New member function.
9064 (asm_language_data): Delete skip_trampoline initializer.
9065 (minimal_language_data): Likewise.
9066 * d-lang.c (d_language_data): Likewise.
9067 * f-lang.c (f_language_data): Likewise.
9068 * go-lang.c (go_language_data): Likewise.
9069 * language.c (unk_lang_trampoline): Delete function.
9070 (skip_language_trampoline): Update.
9071 (unknown_language_data): Delete skip_trampoline initializer.
9072 (auto_language_data): Likewise.
9073 * language.h (language_data): Delete skip_trampoline field.
9074 (language_defn::skip_trampoline): New function.
9075 * m2-lang.c (m2_language_data): Delete skip_trampoline
9077 * objc-lang.c (objc_skip_trampoline): Delete function, move
9078 implementation to objc_language::skip_trampoline.
9079 (objc_language_data): Delete skip_trampoline initializer.
9080 (objc_language::skip_trampoline): New member function with
9081 implementation from objc_skip_trampoline.
9082 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9084 * p-lang.c (pascal_language_data): Likewise.
9085 * rust-lang.c (rust_language_data): Likewise.
9087 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9089 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9090 (ada_language::demangle): New member function.
9091 * c-lang.c (c_language_data): Delete la_demangle initializer.
9092 (cplus_language_data): Delete la_demangle initializer.
9093 (cplus_language::demangle): New member function.
9094 (asm_language_data): Delete la_demangle initializer.
9095 (minimal_language_data): Delete la_demangle initializer.
9096 * d-lang.c (d_language_data): Delete la_demangle initializer.
9097 (d_language::demangle): New member function.
9098 * f-lang.c (f_language_data): Delete la_demangle initializer.
9099 (f_language::demangle): New member function.
9100 * go-lang.c (go_language_data): Delete la_demangle initializer.
9101 (go_language::demangle): New member function.
9102 * language.c (language_demangle): Update.
9103 (unk_lang_demangle): Delete.
9104 (unknown_language_data): Delete la_demangle initializer.
9105 (unknown_language::demangle): New member function.
9106 (auto_language_data): Delete la_demangle initializer.
9107 (auto_language::demangle): New member function.
9108 * language.h (language_data): Delete la_demangle field.
9109 (language_defn::demangle): New function.
9110 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9111 * objc-lang.c (objc_language_data): Delete la_demangle
9113 (objc_language::demangle): New member function.
9114 * opencl-lang.c (opencl_language_data): Delete la_demangle
9116 * p-lang.c (pascal_language_data): Likewise.
9117 * rust-lang.c (rust_language_data): Likewise.
9118 (rust_language::demangle): New member function.
9120 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9122 * ada-lang.c (ada_language_data): Delete la_print_type
9124 (ada_language::print_type): New member function.
9125 * c-lang.c (c_language_data): Delete la_print_type initializer.
9126 (c_language::print_type): New member function.
9127 (cplus_language_data): Delete la_print_type initializer.
9128 (cplus_language::print_type): New member function.
9129 (asm_language_data): Delete la_print_type initializer.
9130 (asm_language::print_type): New member function.
9131 (minimal_language_data): Delete la_print_type initializer.
9132 (minimal_language::print_type): New member function.
9133 * d-lang.c (d_language_data): Delete la_print_type initializer.
9134 (d_language::print_type): New member function.
9135 * f-lang.c (f_language_data): Delete la_print_type initializer.
9136 (f_language::print_type): New member function.
9137 * go-lang.c (go_language_data): Delete la_print_type initializer.
9138 (go_language::print_type): New member function.
9139 * language.c (unk_lang_print_type): Delete.
9140 (unknown_language_data): Delete la_print_type initializer.
9141 (unknown_language::print_type): New member function.
9142 (auto_language_data): Delete la_print_type initializer.
9143 (auto_language::print_type): New member function.
9144 * language.h (language_data): Delete la_print_type field.
9145 (language_defn::print_type): New function.
9146 (LA_PRINT_TYPE): Update.
9147 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9148 (m2_language::print_type): New member function.
9149 * objc-lang.c (objc_language_data): Delete la_print_type
9151 (objc_language::print_type): New member function.
9152 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9153 to opencl_language::print_type.
9154 (opencl_language_data): Delete la_print_type initializer.
9155 (opencl_language::print_type): New member function, implementation
9156 from opencl_print_type.
9157 * p-lang.c (pascal_language_data): Delete la_print_type
9159 (pascal_language::print_type): New member function.
9160 * rust-lang.c (rust_print_type): Delete, implementation moved to
9161 rust_language::print_type.
9162 (rust_language_data): Delete la_print_type initializer.
9163 (rust_language::print_type): New member function, implementation
9164 from rust_print_type.
9166 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9168 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9169 implementation moves to...
9170 (ada_language::sniff_from_mangled_name): ...here. Update return
9172 (ada_language_data): Delete la_sniff_from_mangled_name
9174 * c-lang.c (c_language_data): Likewise.
9175 (cplus_language_data): Likewise.
9176 (cplus_language::sniff_from_mangled_name): New member function,
9177 implementation taken from gdb_sniff_from_mangled_name.
9178 (asm_language_data): Delete la_sniff_from_mangled_name
9180 (minimal_language_data): Likewise.
9181 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9182 implementation moves to cplus_language::sniff_from_mangled_name.
9183 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9184 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9186 (d_language::sniff_from_mangled_name): ...here.
9187 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9188 * f-lang.c (f_language_data): Likewise.
9189 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9191 (go_language::sniff_from_mangled_name): ...here.
9192 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9193 * language.c (language_sniff_from_mangled_name): Delete.
9194 (unknown_language_data): Delete la_sniff_from_mangled_name
9196 (auto_language_data): Likewise.
9197 * language.h (language_data): Delete la_sniff_from_mangled_name
9199 (language_defn::sniff_from_mangled_name): New function.
9200 (language_sniff_from_mangled_name): Delete declaration.
9201 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9203 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9204 implementation moves to...
9205 (objc_language::sniff_from_mangled_name): ...here.
9206 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9207 * opencl-lang.c (opencl_language_data): Likewise.
9208 * p-lang.c (pascal_language_data): Likewise.
9209 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9210 implementation moves to...
9211 (rust_language::sniff_from_mangled_name): ...here.
9212 (rust_language_data): Delete la_sniff_from_mangled_name
9214 * symtab.c (symbol_find_demangled_name): Call
9215 sniff_from_mangled_name member function.
9217 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9219 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9221 * c-lang.c (c_language_data): Likewise.
9222 (cplus_language_data): Likewise.
9223 (cplus_language::search_name_hash): New member function.
9224 (asm_language_data): Delete la_search_name_hash initializer.
9225 (minimal_language_data): Likewise.
9226 * d-lang.c (d_language_data): Likewise.
9227 * dictionary.c (default_search_name_hash): Rename to...
9228 (language_defn::search_name_hash): ...this.
9229 * f-lang.c (f_language_data): Likewise.
9230 (f_language::search_name_hash): New member function.
9231 * go-lang.c (go_language_data): Delete la_search_name_hash
9233 * language.c (unknown_language_data): Likewise.
9234 (auto_language_data): Likewise.
9235 * language.h (struct language_data): Delete la_search_name_hash
9237 (language_defn::search_name_hash): Declare new member function.
9238 (default_search_name_hash): Delete declaration.
9239 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9241 * objc-lang.c (objc_language_data): Likewise.
9242 * opencl-lang.c (opencl_language_data): Likewise.
9243 * p-lang.c (pascal_language_data): Likewise.
9244 * rust-lang.c (rust_language_data): Likewise.
9245 * symtab.c (search_name_hash): Update call.
9247 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9249 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9251 * c-lang.c (class compile_instance): Declare.
9252 (c_language_data): Delete la_get_compile_instance initializer.
9253 (c_language::get_compile_instance): New member function.
9254 (cplus_language_data): Delete la_get_compile_instance initializer.
9255 (cplus_language::get_compile_instance): New member function.
9256 (asm_language_data): Delete la_get_compile_instance initializer.
9257 (minimal_language_data): Likewise.
9258 * c-lang.h (c_get_compile_context): Update comment.
9259 (cplus_get_compile_context): Update comment.
9260 * compile/compile.c (compile_to_object): Update calls, don't rely
9261 on function pointer being NULL.
9262 * d-lang.c (d_language_data): Delete la_get_compile_instance
9264 * f-lang.c (f_language_data): Likewise.
9265 * go-lang.c (go_language_data): Likewise.
9266 * language.c (unknown_language_data): Likewise.
9267 (auto_language_data): Likewise.
9268 * language.h (language_data): Delete la_get_compile_instance field.
9269 (language_defn::get_compile_instance): New member function.
9270 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9272 * objc-lang.c (objc_language_data): Likewise.
9273 * opencl-lang.c (opencl_language_data): Likewise.
9274 * p-lang.c (pascal_language_data): Likewise.
9275 * rust-lang.c (rust_language_data): Likewise.
9277 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9279 * ada-lang.c (ada_add_all_symbols): Update comment.
9280 (ada_iterate_over_symbols): Delete, move implementation to...
9281 (ada_language::iterate_over_symbols): ...here, a new member
9282 function, rewrite to use range based for loop.
9283 (ada_language_data): Delete la_iterate_over_symbols initializer.
9284 * c-lang.c (c_language_data): Likewise.
9285 (cplus_language_data): Likewise.
9286 (asm_language_data): Likewise.
9287 (minimal_language_data): Likewise.
9288 * d-lang.c (d_language_data): Likewise.
9289 * f-lang.c (f_language_data): Likewise.
9290 * go-lang.c (go_language_data): Likewise.
9291 * language.c (unknown_language_data): Likewise.
9292 (auto_language_data): Likewise.
9293 * language.h (language_data): Delete la_iterate_over_symbols field.
9294 (language_defn::iterate_over_symbols): New member function.
9295 (LA_ITERATE_OVER_SYMBOLS): Update.
9296 * linespec.c (iterate_over_all_matching_symtabs): Update.
9297 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9299 * objc-lang.c (objc_language_data): Likewise.
9300 * opencl-lang.c (opencl_language_data): Likewise.
9301 * p-lang.c (pascal_language_data): Likewise.
9302 * rust-lang.c (rust_language_data): Likewise.
9304 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9306 * ada-lang.c (ada_language_data): Delete
9307 la_lookup_transparent_type initializer.
9308 * c-lang.c (c_language_data): Likewise.
9309 (cplus_language_data): Likewise.
9310 (cplus_language::lookup_transparent_type): New member function.
9311 (asm_language_data): Delete la_lookup_transparent_type
9313 (minimal_language_data): Likewise.
9314 * d-lang.c (d_language_data): Likewise.
9315 * f-lang.c (f_language_data): Likewise.
9316 * go-lang.c (go_language_data): Likewise.
9317 * language.c (unknown_language_data): Likewise.
9318 (auto_language_data): Likewise.
9319 * language.h (struct language_data): Delete
9320 la_lookup_transparent_type field.
9321 (language_defn::lookup_transparent_type): New member function.
9322 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9324 * objc-lang.c (objc_language_data): Likewise.
9325 * opencl-lang.c (opencl_language_data): Likewise.
9326 * p-lang.c (pascal_language_data): Likewise.
9327 * rust-lang.c (rust_language_data): Likewise.
9328 * symtab.c (symbol_matches_domain): Update call.
9330 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9332 * ada-lang.c (ada_language_arch_info): Delete function, move
9333 implementation to...
9334 (ada_language::language_arch_info): ...here, a new member
9336 (ada_language_data): Delete la_language_arch_info.
9337 * c-lang.c (c_language_data): Likewise.
9338 (c_language::language_arch_info): New member function.
9339 (cplus_language_arch_info): Delete function, move
9340 implementation to...
9341 (cplus_language::language_arch_info): ...here, a new member
9343 (cplus_language_data): Delete la_language_arch_info.
9344 (asm_language_data): Likewise.
9345 (asm_language::language_arch_info): New member function.
9346 (minimal_language_data): Delete la_language_arch_info.
9347 (minimal_language::language_arch_info): New member function.
9348 * d-lang.c (d_language_arch_info): Delete function, move
9349 implementation to...
9350 (d_language::language_arch_info): ...here, a new member
9352 (d_language_data): Delete la_language_arch_info.
9353 * f-lang.c (f_language_arch_info): Delete function, move
9354 implementation to...
9355 (f_language::language_arch_info): ...here, a new member
9357 (f_language_data): Delete la_language_arch_info.
9358 * go-lang.c (go_language_arch_info): Delete function, move
9359 implementation to...
9360 (go_language::language_arch_info): ...here, a new member
9362 (go_language_data): Delete la_language_arch_info.
9363 * language.c (unknown_language_data): Likewise.
9364 (unknown_language::language_arch_info): New member function.
9365 (auto_language_data): Delete la_language_arch_info.
9366 (auto_language::language_arch_info): New member function.
9367 (language_gdbarch_post_init): Update call to
9368 la_language_arch_info.
9369 * language.h (language_data): Delete la_language_arch_info
9371 (language_defn::language_arch_info): New function.
9372 * m2-lang.c (m2_language_arch_info): Delete function, move
9373 implementation to...
9374 (m2_language::language_arch_info): ...here, a new member
9376 (m2_language_data): Delete la_language_arch_info.
9377 * objc-lang.c (objc_language_arch_info): Delete function, move
9378 implementation to...
9379 (objc_language::language_arch_info): ...here, a new member
9381 (objc_language_data): Delete la_language_arch_info.
9382 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9383 implementation to...
9384 (opencl_language::language_arch_info): ...here, a new member
9386 (opencl_language_data): Delete la_language_arch_info.
9387 * p-lang.c (pascal_language_arch_info): Delete function, move
9388 implementation to...
9389 (pascal_language::language_arch_info): ...here, a new member
9391 (pascal_language_data): Delete la_language_arch_info.
9392 * rust-lang.c (rust_language_arch_info): Delete function, move
9393 implementation to...
9394 (rust_language::language_arch_info): ...here, a new member
9396 (rust_language_data): Delete la_language_arch_info.
9398 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9400 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9402 * c-lang.c (c_language_data): Likewise.
9403 (cplus_language_data): Likewise.
9404 (cplus_language::pass_by_reference_info): New method.
9405 (asm_language_data): Delete la_pass_by_reference initializer.
9406 (minimal_language_data): Likewise.
9407 * cp-abi.c (cp_pass_by_reference): Remove use of
9408 default_pass_by_reference.
9409 * d-lang.c (d_language_data): Likewise.
9410 * f-lang.c (f_language_data): Likewise.
9411 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9412 default_pass_by_reference.
9413 * go-lang.c (go_language_data): Likewise.
9414 * language.c (language_pass_by_reference): Update.
9415 (default_pass_by_reference): Delete.
9416 (unknown_language_data): Delete la_pass_by_reference
9418 (auto_language_data): Likewise.
9419 * language.h (struct language_data): Delete la_pass_by_reference
9421 (language_defn::pass_by_reference_info): New member function.
9422 (default_pass_by_reference): Delete declaration.
9423 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9425 * objc-lang.c (objc_language_data): Likewise.
9426 * opencl-lang.c (opencl_language_data): Likewise.
9427 * p-lang.c (pascal_language_data): Likewise.
9428 * rust-lang.c (rust_language_data): Likewise.
9430 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9432 * ada-lang.c (ada_read_var_value): Delete function, move
9433 implementation to...
9434 (ada_language::read_var_value): ...here.
9435 (ada_language_data): Delete la_read_var_value initializer.
9436 * c-lang.c (c_language_data): Likewise.
9437 (cplus_language_data): Likewise.
9438 (minimal_language_data): Likewise.
9439 * d-lang.c (d_language_data): Likewise.
9440 * f-lang.c (f_language_data): Likewise.
9441 * findvar.c (default_read_var_value): Rename to...
9442 (language_defn::read_var_value): ...this.
9443 * findvar.c (read_var_value): Update header comment, and change to
9444 call member function instead of function pointer.
9445 * go-lang.c (go_language_data): Likewise.
9446 * language.c (unknown_language_data): Delete la_read_var_value
9448 (auto_language_data): Likewise.
9449 * language.h (struct language_data): Delete la_read_var_value
9451 (language_defn::read_var_value): New member function.
9452 (default_read_var_value): Delete declaration.
9453 * m2-lang.c (m2_language_data): Delete la_read_var_value
9455 * objc-lang.c (objc_language_data): Likewise.
9456 * opencl-lang.c (opencl_language_data): Likewise.
9457 * p-lang.c (pascal_language_data): Likewise.
9458 * rust-lang.c (rust_language_data): Likewise.
9459 * value.h (default_read_var_value): Delete declaration.
9461 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9463 * ada-lang.c (ada_print_array_index): Delete function, move
9464 implementation to...
9465 (ada_language::print_array_index): ...here.
9466 (ada_language_data): Delete la_print_array_index initializer.
9467 * c-lang.c (c_language_data): Likewise.
9468 (cplus_language_data): Likewise.
9469 (minimal_language_data): Likewise.
9470 * d-lang.c (d_language_data): Likewise.
9471 * f-lang.c (f_language_data): Likewise.
9472 * go-lang.c (go_language_data): Likewise.
9473 * language.c (default_print_array_index): Delete function, move
9474 implementation to...
9475 (language_defn::print_array_index): ...here.
9476 (unknown_language_data): Delete la_print_array_index initializer.
9477 (auto_language_data): Likewise.
9478 * language.h (struct language_data): Delete la_print_array_index
9480 (language_defn::print_array_index): New member function.
9481 (LA_PRINT_ARRAY_INDEX): Update.
9482 (default_print_array_index): Delete declaration.
9483 * m2-lang.c (m2_language_data): Delete la_print_array_index
9485 * objc-lang.c (objc_language_data): Likewise.
9486 * opencl-lang.c (opencl_language_data): Likewise.
9487 * p-lang.c (pascal_language_data): Likewise.
9488 * rust-lang.c (rust_language_data): Likewise.
9490 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9492 * gdb/ada-lang.c (ada_language_defn): Convert to...
9493 (ada_language_data): ...this.
9494 (class ada_language): New class.
9495 (ada_language_defn): New static global.
9496 * gdb/c-lang.c (c_language_defn): Convert to...
9497 (c_language_data): ...this.
9498 (class c_language): New class.
9499 (c_language_defn): New static global.
9500 (cplus_language_defn): Convert to...
9501 (cplus_language_data): ...this.
9502 (class cplus_language): New class.
9503 (cplus_language_defn): New static global.
9504 (asm_language_defn): Convert to...
9505 (asm_language_data): ...this.
9506 (class asm_language): New class.
9507 (asm_language_defn): New static global.
9508 (minimal_language_defn): Convert to...
9509 (minimal_language_data): ...this.
9510 (class minimal_language): New class.
9511 (minimal_language_defn): New static global.
9512 * gdb/d-lang.c (d_language_defn): Convert to...
9513 (d_language_data): ...this.
9514 (class d_language): New class.
9515 (d_language_defn): New static global.
9516 * gdb/f-lang.c (f_language_defn): Convert to...
9517 (f_language_data): ...this.
9518 (class f_language): New class.
9519 (f_language_defn): New static global.
9520 * gdb/go-lang.c (go_language_defn): Convert to...
9521 (go_language_data): ...this.
9522 (class go_language): New class.
9523 (go_language_defn): New static global.
9524 * gdb/language.c (unknown_language_defn): Remove declaration.
9525 (current_language): Initialize to nullptr, real initialization is
9526 moved to _initialize_language.
9527 (languages): Delete global.
9528 (language_defn::languages): Define.
9529 (set_language_command): Use language_defn::languages.
9530 (set_language): Likewise.
9531 (range_error): Likewise.
9532 (language_enum): Likewise.
9533 (language_def): Likewise.
9534 (add_set_language_command): Use language_def::languages for the
9535 language list, and language_def to lookup language pointers.
9536 (skip_language_trampoline): Use language_defn::languages.
9537 (unknown_language_defn): Convert to...
9538 (unknown_language_data): ...this.
9539 (class unknown_language): New class.
9540 (unknown_language_defn): New static global.
9541 (auto_language_defn): Convert to...
9542 (auto_language_data): ...this.
9543 (class auto_language): New class.
9544 (auto_language_defn): New static global.
9545 (language_gdbarch_post_init): Use language_defn::languages.
9546 (_initialize_language): Initialize current_language.
9547 * gdb/language.h (struct language_defn): Rename to...
9548 (struct language_data): ...this.
9549 (struct language_defn): New.
9550 (auto_language_defn): Delete.
9551 (unknown_language_defn): Delete.
9552 (minimal_language_defn): Delete.
9553 (ada_language_defn): Delete.
9554 (asm_language_defn): Delete.
9555 (c_language_defn): Delete.
9556 (cplus_language_defn): Delete.
9557 (d_language_defn): Delete.
9558 (f_language_defn): Delete.
9559 (go_language_defn): Delete.
9560 (m2_language_defn): Delete.
9561 (objc_language_defn): Delete.
9562 (opencl_language_defn): Delete.
9563 (pascal_language_defn): Delete.
9564 (rust_language_defn): Delete.
9565 * gdb/m2-lang.c (m2_language_defn): Convert to...
9566 (m2_language_data): ...this.
9567 (class m2_language): New class.
9568 (m2_language_defn): New static global.
9569 * gdb/objc-lang.c (objc_language_defn): Convert to...
9570 (objc_language_data): ...this.
9571 (class objc_language): New class.
9572 (objc_language_defn): New static global.
9573 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9574 (opencl_language_data): ...this.
9575 (class opencl_language): New class.
9576 (opencl_language_defn): New static global.
9577 * gdb/p-lang.c (pascal_language_defn): Convert to...
9578 (pascal_language_data): ...this.
9579 (class pascal_language): New class.
9580 (pascal_language_defn): New static global.
9581 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9582 language pointer, update comment format.
9583 * gdb/rust-lang.c (rust_language_defn): Convert to...
9584 (rust_language_data): ...this.
9585 (class rust_language): New class.
9586 (rust_language_defn): New static global.
9588 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9590 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9592 <m_stmt_at_address>: New member variable.
9593 (lnp_state_machine::record_line): Don't record some lines, update
9594 tracking of is_stmt at the same address.
9595 (lnp_state_machine::lnp_state_machine): Initialise new member
9598 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9600 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9601 "-include gnu-nat-mig.h".
9602 * gnu-nat-mig.h: New file.
9603 * gnu-nat.c: Include "gnu-nat-mig.h".
9604 (exc_server, msg_reply_server, notify_server,
9605 process_reply_server): Remove declarations.
9607 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9609 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9610 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9611 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9612 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9613 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9614 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9615 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9616 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9617 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9618 to gnu_nat_target class.
9619 * gnu-nat.c: Likewise.
9620 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9621 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9622 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9624 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9625 instead of `gnu_target'.
9627 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9629 * i386-gnu-tdep.c: Include "gdbcore.h"
9630 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9631 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9632 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9633 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9634 i386_gnu_sigcontext_addr): New functions
9635 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9636 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9639 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9641 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9642 before fork_inferior call. Avoid calling it if target_is_pushed returns
9645 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9647 * gnu-nat.h (gnu_target): New variable declaration.
9648 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9650 * gnu-nat.c (gnu_target): New variable.
9651 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9652 add_thread_silent, and add_thread calls.
9653 (gnu_nat_target::create_inferior): Pass gnu_target to
9654 add_thread_silent, thread_change_ptid call.
9655 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9658 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9660 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9661 (gnu_nat_target::find_memory_regions): Remove unused
9662 `old_address' variable.
9664 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9666 * gnu-nat.c: Include "gdbarch.h".
9668 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9670 * reply_mig_hack.awk (Error return): Cast function through
9671 void *, to bypass compiler function call check.
9673 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9675 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9676 $(srcdir)/reply_mig_hack.awk.
9678 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9680 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9682 2020-05-30 Jonny Grant <jg@jguk.org>
9684 * configure.ac (ACX_BUGURL): change bug URL to https.
9686 2020-05-30 Pedro Alves <palves@redhat.com>
9688 * cp-support.c (replace_typedefs_template): New.
9689 (replace_typedefs_qualified_name): Handle
9690 DEMANGLE_COMPONENT_TEMPLATE.
9692 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9694 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9695 dwarf2/index-cache.h, dwarf2/index-write.c,
9696 dwarf2/index-write.h, dwarf2/line-header.c,
9697 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9698 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9699 variables and fields from `dwarf2_per_objfile` to just
9700 `per_objfile` throughout.
9702 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9704 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9705 <push_dwarf_reg_entry_value>: Add comment.
9707 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9708 Keith Seitz <keiths@redhat.com>
9710 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9711 instead of PyEval_ReleaseLock.
9712 (class gdbpy_gil): Move to earlier in file.
9713 (finalize_python): Set gdb_python_initialized.
9714 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9715 when not initialized.
9717 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9719 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9720 <push_dwarf_reg_entry_value>: Remove assert. Override
9721 per_objfile with caller_per_objfile.
9723 2020-05-28 Tom de Vries <tdevries@suse.de>
9725 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9726 PR gold/15646 workaround to symbol kind "type".
9728 2020-05-27 Tom Tromey <tromey@adacore.com>
9730 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9732 2020-05-27 Tom Tromey <tromey@adacore.com>
9734 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9735 Use htab_find_with_hash.
9736 <add_abbrev>: Remove "abbrev_number" parameter.
9737 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9738 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9739 (hash_abbrev): Add comment.
9740 (abbrev_table::lookup_abbrev): Move to header file.
9741 (abbrev_table::read): Update.
9743 2020-05-27 Tom Tromey <tromey@adacore.com>
9745 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9747 <canonical_name>: New member.
9748 <raw_name>: Rename from "name".
9749 (partial_die_info): Initialize canonical_name.
9750 (scan_partial_symbols): Check raw_name.
9751 (partial_die_parent_scope, partial_die_full_name)
9752 (add_partial_symbol, add_partial_subprogram)
9753 (add_partial_enumeration, load_partial_dies): Use "name" method.
9754 (partial_die_info::name): New method.
9755 (partial_die_info::read, guess_partial_die_structure_name)
9756 (partial_die_info::fixup): Update.
9758 2020-05-27 Tom Tromey <tromey@adacore.com>
9760 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9761 <get_ref_die_offset>: Inline.
9762 <get_ref_die_offset_complaint>: New method.
9763 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9764 (attribute::get_ref_die_offset_complaint): Rename from
9765 get_ref_die_offset. Just issue complaint.
9767 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9769 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9771 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9773 * exec.c (exec_file_attach): Use errno value of first openp failure.
9775 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9777 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9778 Don't close thread handle.
9780 2020-05-27 Tom Tromey <tom@tromey.com>
9781 Simon Marchi <simon.marchi@efficios.com>
9783 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9785 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9787 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9788 dwarf2_per_bfd_objfile_data_key>: New globals.
9789 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9790 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9791 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9793 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9794 short-circuit when sharing.
9795 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9796 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9798 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9800 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9802 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9803 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9805 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9807 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9808 build_name_components, find_name_components_bounds>:
9809 Add per_objfile parameter.
9810 (struct mapped_index) <symbol_name_at>: Likewise.
9811 (struct mapped_debug_names): Remove constructor.
9812 <dwarf2_per_objfile>: Remove field.
9813 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9814 (mapped_index_base::find_name_components_bounds,
9815 mapped_index_base::build_name_components,
9816 dw2_expand_symtabs_matching_symbol): Likewise.
9817 (class mock_mapped_index) <symbol_name_at>: Likewise.
9818 (check_match): Likewise.
9819 (check_find_bounds_finds): Likewise.
9820 (test_mapped_index_find_name_component_bounds): Update.
9821 (CHECK_MATCH): Update.
9822 (dw2_expand_symtabs_matching): Update.
9823 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9824 per_objfile parameter.
9825 <find_vec_in_debug_names>: Likewise.
9826 <m_per_objfile>: New field.
9827 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9829 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9830 (dw2_debug_names_iterator::next): Update.
9831 (dw2_debug_names_lookup_symbol): Update.
9832 (dw2_debug_names_expand_symtabs_for_function): Update.
9833 (dw2_debug_names_map_matching_symbols): Update.
9834 (dw2_debug_names_expand_symtabs_matching): Update.
9835 (dwarf2_read_debug_names): Update.
9837 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9839 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9840 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9841 move to dwarf2_per_objfile.
9842 <read_in_chain>: Remove.
9843 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9844 remove_all_cus, age_comp_units>: New methods.
9845 <m_dwarf2_cus>: New member.
9846 (struct dwarf2_per_cu_data) <cu>: Remove.
9847 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9848 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9849 moved to methods of dwarf2_per_objfile.
9850 (dwarf2_clear_marks): Remove.
9851 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9852 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9853 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9854 (dwarf2_per_objfile::remove_all_cus): New.
9855 (class free_cached_comp_units) <~free_cached_comp_units>:
9858 (dw2_do_instantiate_symtab): Adjust.
9859 (fill_in_sig_entry_from_dwo_entry): Adjust.
9860 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9861 (cutu_reader::cutu_reader): Likewise.
9862 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9863 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9864 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9865 and dwarf2_per_objfile::age_comp_units.
9866 (load_partial_comp_unit): Update.
9867 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9868 (process_queue): Likewise.
9869 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9871 (dwarf2_read_addr_index): Likewise.
9872 (follow_die_offset): Likewise.
9873 (dwarf2_fetch_die_loc_sect_off): Likewise.
9874 (dwarf2_fetch_constant_bytes): Likewise.
9875 (dwarf2_fetch_die_type_sect_off): Likewise.
9876 (follow_die_sig_1): Likewise.
9877 (load_full_type_unit): Likewise.
9878 (read_signatured_type): Likewise.
9879 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9880 (dwarf2_cu::~dwarf2_cu): Remove.
9881 (dwarf2_per_objfile::get_cu): New.
9882 (dwarf2_per_objfile::set_cu): New.
9883 (age_cached_comp_units): Rename to...
9884 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9885 to std::unordered_map.
9886 (free_one_cached_comp_unit): Rename to...
9887 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9888 to std::unordered_map.
9889 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9890 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9891 a dwarf2_per_objfile in data.
9892 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9893 (dwarf2_clear_marks): Remove.
9895 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9897 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9898 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9899 (init_tu_and_read_dwo_dies): Likewise.
9900 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9901 (cutu_reader::cutu_reader): Likewise.
9902 (load_partial_comp_unit): Likewise.
9903 (process_psymtab_comp_unit): Update.
9904 (build_type_psymtabs_1): Update.
9905 (process_skeletonless_type_unit): Update.
9906 (load_full_comp_unit): Update.
9907 (find_partial_die): Update.
9908 (dwarf2_read_addr_index): Update.
9909 (read_signatured_type): Update.
9911 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9913 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9914 m_header_read_in>: New fields.
9915 <get_header>: New method.
9916 * dwarf2/read.c (per_cu_header_read_in): Remove.
9917 (dwarf2_per_cu_data::get_header): New.
9918 (dwarf2_per_cu_data::addr_size): Update.
9919 (dwarf2_per_cu_data::offset_size): Update.
9920 (dwarf2_per_cu_data::ref_addr_size): Update.
9922 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9924 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9925 (dw2_do_instantiate_symtab): Update.
9926 (queue_and_load_all_dwo_tus): Change parameter from
9927 dwarf2_per_cu_data to dwarf2_cu.
9928 (dwarf2_fetch_die_loc_sect_off): Update.
9929 (dwarf2_fetch_constant_bytes): Update.
9930 (dwarf2_fetch_die_type_sect_off): Update.
9932 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9934 * dwarf2/read.c (process_full_comp_unit,
9935 process_full_type_unit): Remove per_cu, per_objfile paramters.
9936 Add dwarf2_cu parameter.
9937 (process_queue): Update.
9939 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9941 * dwarf2/read.c (create_cu_from_index_list): Replace
9942 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9943 (create_cus_from_index_list): Likewise.
9944 (create_cus_from_index): Likewise.
9945 (create_signatured_type_table_from_index): Likewise.
9946 (create_cus_from_debug_names_list): Likewise.
9947 (create_cus_from_debug_names): Likewise.
9948 (dwarf2_read_gdb_index): Update.
9949 (dwarf2_read_debug_names): Update.
9951 2020-05-27 Tom Tromey <tom@tromey.com>
9952 Simon Marchi <simon.marchi@efficios.com>
9954 * dwarf2/read.h (struct dwarf2_per_objfile)
9955 <get_type_for_signatured_type, set_type_for_signatured_type>:
9957 <m_type_map>: New member.
9958 (struct signatured_type) <type>: Remove.
9960 (dwarf2_per_objfile::get_type_for_signatured_type,
9961 dwarf2_per_objfile::set_type_for_signatured_type): New.
9962 (get_signatured_type): Use new methods.
9964 2020-05-27 Tom Tromey <tom@tromey.com>
9965 Simon Marchi <simon.marchi@efficios.com>
9967 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9968 (struct dwarf2_per_objfile) <type_units>: New member.
9969 <get_type_unit_group_unshareable>: New method.
9970 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9971 num_symtabs, symtabs>: Remove; move to
9972 type_unit_group_unshareable.
9973 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9974 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9975 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9977 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9979 * dwarf2/read.h (struct dwarf2_per_cu_data):
9980 <dwarf2_per_objfile>: Remove.
9981 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9983 (create_signatured_type_table_from_index): Likewise.
9984 (create_signatured_type_table_from_debug_names): Likewise.
9985 (create_debug_type_hash_table): Likewise.
9986 (fill_in_sig_entry_from_dwo_entry): Likewise.
9987 (create_type_unit_group): Likewise.
9988 (read_comp_units_from_section): Likewise.
9989 (create_cus_hash_table): Likewise.
9991 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9993 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9994 dwarf2_per_cu_data::dwarf2_per_objfile.
9995 (compute_compunit_symtab_includes): Likewise.
9996 (dwarf2_cu::start_symtab): Likewise.
9998 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10000 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10002 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10003 (read_namespace_alias): Update.
10004 (lookup_die_type): Update.
10005 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10006 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10008 (disassemble_dwarf_expression): Update.
10010 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10012 * dwarf2/read.h (struct dwarf2_queue_item): Add
10013 dwarf2_per_objfile parameter, assign new parameter.
10014 <per_objfile>: New field.
10015 * dwarf2/read.c (free_one_cached_comp_unit): Add
10016 dwarf2_per_objfile parameter.
10017 (queue_comp_unit): Likewise.
10018 (dw2_do_instantiate_symtab): Update.
10019 (process_psymtab_comp_unit): Update.
10020 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10021 (process_imported_unit_die): Update.
10022 (queue_and_load_dwo_tu): Update.
10023 (follow_die_offset): Update.
10024 (follow_die_sig_1): Update.
10026 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10028 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10029 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10030 (read_call_site_scope): Assign per_objfile.
10031 (dwarf2_per_cu_data::objfile): Remove.
10032 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10033 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10034 dwarf2_per_objfile parameter.
10035 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10036 dwarf2_per_objfile parameter.
10037 (dwarf_expr_reg_to_entry_parameter): Add output
10038 dwarf2_per_objfile parameter.
10039 (locexpr_get_frame_base): Update.
10040 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10041 <push_dwarf_reg_entry_value>: Update.
10042 <call_site_to_target_addr>: Update.
10043 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10045 (value_of_dwarf_reg_entry): Update.
10046 (rw_pieced_value): Update.
10047 (indirect_synthetic_pointer): Update.
10048 (dwarf2_evaluate_property): Update.
10049 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10051 (locexpr_read_variable): Update.
10052 (locexpr_get_symbol_read_needs): Update.
10053 (loclist_read_variable): Update.
10055 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10057 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10058 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10059 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10061 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10062 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10063 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10065 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10066 sect_variable_value): Add dwarf2_per_objfile parameter.
10067 (class dwarf_evaluate_loc_desc) <dwarf_call,
10068 dwarf_variable_value>: Update.
10069 (fetch_const_value_from_synthetic_pointer): Add
10070 dwarf2_per_objfile parameter.
10071 (fetch_const_value_from_synthetic_pointer): Update.
10072 (coerced_pieced_ref): Update.
10073 (class symbol_needs_eval_context) <dwarf_call,
10074 dwarf_variable_value>: Update.
10075 (dwarf2_compile_expr_to_ax): Update.
10077 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10079 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10081 (dwarf2_evaluate_loc_desc_full): Update.
10083 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10085 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10087 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10088 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10089 dwarf2_per_objfile parameter.
10090 (decode_debug_loc_dwo_addresses): Likewise.
10091 (dwarf2_find_location_expression): Update.
10092 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10093 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10095 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10097 (locexpr_describe_location_1): Likewise.
10098 (locexpr_describe_location): Update.
10100 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10102 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10104 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10105 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10106 (dwarf2_compile_property_to_c): Update.
10107 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10108 use text offset from objfile.
10109 (locexpr_tracepoint_var_ref): Update.
10110 (locexpr_generate_c_location): Update.
10111 (loclist_describe_location): Update.
10112 (loclist_tracepoint_var_ref): Update.
10113 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10114 dwarf2_per_objfile parameter.
10115 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10116 use text offset from objfile.
10117 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10119 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10121 * dwarf2/expr.h (struct dwarf_expr_context)
10122 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10124 <per_objfile>: New member.
10125 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10126 dwarf2_per_objfile parameter. Don't set offset, set
10128 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10129 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10130 a dwarf2_per_objfile object instead of an offset.
10131 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10133 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10134 to dwarf2_expr_executor constructor. Don't set offset.
10135 (dwarf2_fetch_cfa_info): Update.
10136 (struct dwarf2_frame_cache) <text_offset>: Remove.
10137 <per_objfile>: New field.
10138 (dwarf2_frame_cache): Update.
10139 (dwarf2_frame_prev_register): Update.
10140 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10141 <dwarf_evaluate_loc_desc>: Add constructor.
10142 (dwarf2_evaluate_loc_desc_full): Update.
10143 (dwarf2_locexpr_baton_eval): Update.
10144 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10146 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10148 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10150 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10151 addr_sized_int_type>: Move to dwarf2_cu.
10152 <int_type>: Move to dwarf2_per_objfile.
10153 (struct dwarf2_per_objfile) <int_type>: Move here.
10154 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10155 addr_sized_int_type>: Move here.
10156 (read_func_scope): Update.
10157 (read_array_type): Update.
10158 (read_tag_string_type): Update.
10159 (attr_to_dynamic_prop): Update.
10160 (dwarf2_per_cu_data::int_type): Rename to...
10161 (dwarf2_per_objfile::int_type): ... this.
10162 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10163 (dwarf2_cu::addr_sized_int_type): ... this.
10164 (read_subrange_type): Update.
10165 (dwarf2_per_cu_data::addr_type): Rename to...
10166 (dwarf2_cu::addr_type): ... this.
10167 (set_die_type): Update.
10169 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10171 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10172 data through per_cu->cu.
10174 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10176 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10177 dwarf2_per_cu_data parameter fo dwarf2_cu.
10178 (lookup_dwo_type_unit): Likewise.
10179 (read_cutu_die_from_dwo): Likewise.
10180 (lookup_dwo_unit): Likewise.
10181 (open_and_init_dwo_file): Likewise.
10182 (lookup_dwo_cutu): Likewise.
10183 (lookup_dwo_comp_unit): Likewise.
10184 (lookup_dwo_type_unit): Likewise.
10185 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10186 (cutu_reader::cutu_reader): Update.
10188 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10190 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10192 (process_full_type_unit): Likewise.
10193 (process_queue): Update.
10195 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10197 * dwarf2/read.c (recursively_compute_inclusions): Add
10198 dwarf2_per_objfile parameter.
10199 (compute_compunit_symtab_includes): Likewise.
10200 (process_cu_includes): Update.
10202 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10204 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10206 (create_type_unit_group): Update.
10207 (process_psymtab_comp_unit_reader): Update.
10208 (build_type_psymtabs_reader): Update.
10210 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10212 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10213 object through m_this_cu->cu.
10215 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10217 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10218 the info parameter.
10219 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10221 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10223 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10224 per_objfile parameter.
10225 (load_full_type_unit): Add per_objfile parameter.
10226 (read_signatured_type): Likewise.
10227 (load_full_comp_unit): Likewise.
10228 (load_cu): Likewise.
10229 (dw2_do_instantiate_symtab): Likewise.
10230 (dw2_get_file_names): Likewise.
10231 (dw2_map_symtabs_matching_filename): Update.
10232 (dw_expand_symtabs_matching_file_matcher): Update.
10233 (dw2_map_symbol_filenames): Update.
10234 (process_psymtab_comp_unit): Add per_objfile parameter.
10235 (build_type_psymtabs_1): Update.
10236 (process_skeletonless_type_unit): Update.
10237 (dwarf2_build_psymtabs_hard): Update.
10238 (load_partial_comp_unit): Add per_objfile parameter.
10239 (scan_partial_symbols): Update.
10240 (load_full_comp_unit): Add per_objfile parameter.
10241 (process_imported_unit_die): Update.
10242 (create_cus_hash_table): Update.
10243 (find_partial_die): Update.
10244 (dwarf2_read_addr_index): Update.
10245 (follow_die_offset): Update.
10246 (dwarf2_fetch_die_loc_sect_off): Update.
10247 (dwarf2_fetch_constant_bytes): Update.
10248 (dwarf2_fetch_die_type_sect_off): Update.
10249 (follow_die_sig_1): Update.
10250 (load_full_type_unit): Add per_objfile parameter.
10251 (read_signatured_type): Likewise.
10253 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10255 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10258 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10260 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10261 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10262 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10264 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10265 (create_cus_from_index): Update.
10266 (dwarf2_read_gdb_index): Update.
10267 (create_cus_from_debug_names): Update.
10268 (dwarf2_read_debug_names): Update.
10269 (get_abbrev_section_for_cu): Update.
10270 (create_all_comp_units): Update.
10271 (read_attribute_value): Update.
10272 (get_debug_line_section): Update.
10273 * dwarf2/index-cache.c (index_cache::store): Update.
10274 * dwarf2/index-write.c (save_gdb_index_command): Update.
10275 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10277 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10279 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10281 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10282 dwarf2_per_cu_data::per_bfd.
10283 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10284 (create_type_unit_group): Likewise.
10285 (queue_comp_unit): Remove reference to
10286 per_cu->dwarf2_per_objfile.
10287 (maybe_queue_comp_unit): Likewise.
10288 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10289 (create_cus_hash_table): Assign new field.
10291 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10293 * dwarf2/read.c: Replace
10294 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10295 dwarf2_cu->per_objfile throughout.
10297 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10299 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10300 parameter, don't use per_cu->dwarf2_per_objfile.
10301 (dw2_instantiate_symtab): Likewise.
10302 (dw2_find_last_source_symtab): Update.
10303 (dw2_map_expand_apply): Update.
10304 (dw2_lookup_symbol): Update.
10305 (dw2_expand_symtabs_for_function): Update.
10306 (dw2_expand_all_symtabs): Update.
10307 (dw2_expand_symtabs_with_fullname): Update.
10308 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10309 don't use per_cu->dwarf2_per_objfile.
10310 (dw2_expand_marked_cus): Update.
10311 (dw2_find_pc_sect_compunit_symtab): Update.
10312 (dw2_debug_names_lookup_symbol): Update.
10313 (dw2_debug_names_expand_symtabs_for_function): Update.
10314 (dw2_debug_names_map_matching_symbols): Update.
10315 (dwarf2_psymtab::expand_psymtab): Update.
10317 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10319 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10320 <per_objfile>: New member.
10321 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10322 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10324 (cutu_reader::cutu_reader): Update.
10325 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10327 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10329 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10330 struct dwarf2_per_objfile.
10331 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10333 * dwarf2/read.c (set_die_type): Update.
10334 (get_die_type_at_offset): Update.
10336 2020-05-27 Tom Tromey <tom@tromey.com>
10337 Simon Marchi <simon.marchi@efficios.com>
10339 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10341 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10342 get_symtab, set_symtab>: New methods.
10343 <m_symtabs>: New field.
10344 (struct dwarf2_psymtab): Derive from partial_symtab.
10345 <readin_p, get_compunit_symtab>: Declare methods.
10346 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10347 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10349 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10350 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10351 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10352 (dw2_symtab_iter_next, dw2_print_stats)
10353 (dw2_expand_symtabs_with_fullname)
10354 (dw2_expand_symtabs_matching_one)
10355 (dw_expand_symtabs_matching_file_matcher)
10356 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10357 (dw2_debug_names_iterator::next)
10358 (dw2_debug_names_map_matching_symbols)
10359 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10360 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10361 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10363 (get_compunit_symtab, process_full_comp_unit)
10364 (process_full_type_unit): Update.
10365 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10367 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10369 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10370 then introduce a new dwarf2_per_objfile type.
10371 <read_line_string>: Move to the new dwarf2_per_objfile type.
10372 <objfile>: Likewise.
10373 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10374 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10375 dwarf2_per_objfile->per_bfd.
10376 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10377 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10378 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10379 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10380 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10381 (dwarf2_per_objfile::locate_sections): Rename to...
10382 (dwarf2_per_bfd::locate_sections): ... this.
10383 (dwarf2_per_objfile::get_cutu): Rename to...
10384 (dwarf2_per_bfd::get_cutu): ... this.
10385 (dwarf2_per_objfile::get_cu): Rename to...
10386 (dwarf2_per_bfd::get_cu): ... this.
10387 (dwarf2_per_objfile::get_tu): Rename to...
10388 (dwarf2_per_bfd::get_tu): ... this.
10389 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10390 (dwarf2_per_bfd::allocate_per_cu): ... this.
10391 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10392 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10393 (get_gdb_index_contents_ftype): Change parameter from
10394 dwarf2_per_objfile to dwarf2_per_bfd.
10395 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10396 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10398 2020-05-27 Tom Tromey <tom@tromey.com>
10399 Simon Marchi <simon.marchi@efficios.com>
10401 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10402 (allocate_piece_closure): Set "per_objfile" member.
10403 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10404 (locexpr_describe_location, loclist_describe_location): Use new
10406 * dwarf2/read.c (read_call_site_scope)
10407 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10408 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10409 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10410 handle_data_member_location): Set per_objfile member.
10411 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10413 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10415 2020-05-27 Tom Tromey <tom@tromey.com>
10417 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10418 allocate_signatured_type>: Declare new methods.
10419 <m_num_psymtabs>: New member.
10420 (struct dwarf2_per_cu_data) <index>: New member.
10421 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10422 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10423 (create_cu_from_index_list): Use allocate_per_cu.
10424 (create_signatured_type_table_from_index)
10425 (create_signatured_type_table_from_debug_names)
10426 (create_debug_type_hash_table, add_type_unit)
10427 (read_comp_units_from_section): Use allocate_signatured_type.
10429 2020-05-27 Tom Tromey <tom@tromey.com>
10431 * psymtab.c (partial_map_expand_apply)
10432 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10433 (psym_lookup_global_symbol_language)
10434 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10435 (psym_print_stats, psym_expand_symtabs_for_function)
10436 (psym_map_symbol_filenames, psym_map_matching_symbols)
10437 (psym_expand_symtabs_matching)
10438 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10439 (maintenance_check_psymtabs): Update.
10440 * psympriv.h (struct partial_symtab) <readin_p,
10441 get_compunit_symtab>: Add objfile parameter.
10442 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10444 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10445 get_compunit_symtab>: Likewise.
10446 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10448 2020-05-27 Tom Tromey <tom@tromey.com>
10450 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10452 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10453 (create_cu_from_index_list)
10454 (create_signatured_type_table_from_index)
10455 (create_signatured_type_table_from_debug_names)
10456 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10457 (dwarf2_create_include_psymtab)
10458 (create_debug_type_hash_table, add_type_unit)
10459 (create_type_unit_group, read_comp_units_from_section)
10460 (dwarf2_compute_name, create_cus_hash_table)
10461 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10462 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10464 (dw2_get_real_path): Likewise. Change argument to
10465 dwarf2_per_objfile.
10467 2020-05-27 Luis Machado <luis.machado@linaro.org>
10470 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10471 for ldrd (immediate).
10473 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10475 * command.h: Add comment giving the name of class_tui.
10476 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10477 create the fake command for the help for class_tui.
10479 2020-05-26 Tom Tromey <tromey@adacore.com>
10481 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10482 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10483 (val_atr): New function.
10484 (value_val_atr): Use it.
10485 * ada-valprint.c (print_optional_low_bound): Change low bound
10486 handling for enums.
10487 (val_print_packed_array_elements): Don't call discrete_position.
10488 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10489 discrete_position for enum types.
10490 * language.c (default_print_array_index): Change type.
10491 * language.h (struct language_defn) <la_print_array_index>: Add
10492 index_type parameter, change type of index_value.
10493 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10494 (default_print_array_index): Update.
10495 * valprint.c (maybe_print_array_index): Don't call
10496 value_from_longest. Update.
10497 (value_print_array_elements): Don't call discrete_position.
10499 2020-05-26 Tom Tromey <tromey@adacore.com>
10501 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10502 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10504 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10507 * avr-tdep.c (avr_integer_to_address): Return data or code
10508 address accordingly to the second 'type' argument of the
10511 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10513 * infcmd.c, inferior.h: (construct_inferior_arguments):
10514 Moved function from here to gdbsupport/common-inferior.{h,cc}
10516 2020-05-23 Tom Tromey <tom@tromey.com>
10518 Revert commit eca1f90c:
10519 * NEWS: Remove entry for completion styling.
10520 * completer.c (_rl_completion_prefix_display_length): Move
10522 (gdb_fnprint): Revert.
10523 (gdb_display_match_list_1): Likewise.
10524 * cli/cli-style.c (completion_prefix_style)
10525 (completion_difference_style, completion_suffix_style): Remove.
10526 (_initialize_cli_style): Revert.
10527 * cli/cli-style.h (completion_prefix_style)
10528 (completion_difference_style, completion_suffix_style): Don't
10531 2020-05-24 Pedro Alves <palves@redhat.com>
10533 * symtab.c (completion_list_add_name): Return boolean indication
10534 of whether the symbol matched.
10535 (completion_list_add_symbol): Don't try to remove C++ aliases if
10536 the symbol didn't match in the first place.
10537 * symtab.h (completion_list_add_name): Return bool.
10539 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10541 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10544 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10548 2020-05-23 Tom Tromey <tom@tromey.com>
10550 * NEWS: Add entry for completion styling.
10551 * completer.c (_rl_completion_prefix_display_length): Move
10552 declaration earlier.
10553 (gdb_fnprint): Use completion_style.
10554 (gdb_display_match_list_1): Likewise.
10555 * cli/cli-style.c (completion_prefix_style)
10556 (completion_difference_style, completion_suffix_style): New
10558 (_initialize_cli_style): Register new globals.
10559 * cli/cli-style.h (completion_prefix_style)
10560 (completion_difference_style, completion_suffix_style): Declare.
10562 2020-05-23 Pedro Alves <palves@redhat.com>
10564 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10565 (parse_escape): Use ISDIGIT instead of isdigit.
10566 (puts_debug): Use gdb_isprint instead of isprint.
10567 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10568 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10569 ISSPACE instead of isspace.
10570 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10571 instead of isspace.
10572 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10573 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10574 instead of isxdigit and ISDIGIT instead of isdigit.
10576 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10578 * gdbtypes.h (struct type) <field>: New method.
10579 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10582 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10584 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10585 (TYPE_FIELDS): Use type::fields. Change all call sites that
10586 modify the propery to use type::set_fields instead.
10588 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10590 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10591 type::num_fields instead.
10593 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10595 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10597 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10598 that modify the number of fields to use type::set_num_fields
10601 2020-05-22 Tom Tromey <tromey@adacore.com>
10603 * compile/compile-object-load.h (munmap_list_free): Don't
10606 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10608 * annotate.c (annotate_source_line): Update return type, add call
10609 to update current symtab and line.
10610 * annotate.h (annotate_source_line): Update return type, and
10611 extend header comment.
10612 * source.c (info_line_command): Check annotation_level before
10613 calling annotate_source_line.
10614 * stack.c (print_frame_info): If calling annotate_source_line
10615 returns true, then don't print any other source line information.
10617 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10619 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10621 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10623 * coffread.c (patch_type): Remove NULL check before xfree.
10624 * corefile.c (set_gnutarget): Likewise.
10625 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10626 * exec.c (build_section_table): Likewise.
10627 * remote.c (remote_target::pass_signals): Likewise.
10628 * utils.c (n_spaces): Likewise.
10629 * cli/cli-script.c (document_command): Likewise.
10630 * i386-windows-tdep.c (core_process_module_section): Likewise.
10631 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10633 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10635 * symfile.c (reread_symbols): Clear objfile's section_offsets
10636 vector and section indices, re-compute them by calling
10639 2020-05-20 Tom Tromey <tromey@adacore.com>
10641 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10642 (desc_one_bound, desc_index_type): Compute field name.
10644 2020-05-20 Tom de Vries <tdevries@suse.de>
10647 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10649 2020-05-20 Alan Modra <amodra@gmail.com>
10652 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10654 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10655 passed to bfd_set_filename.
10656 * symfile-mem.c (add_vsyscall_page): Likewise for string
10657 passed to symbol_file_add_from_memory.
10658 (symbol_file_add_from_memory): Make name param a const char* and
10661 2020-05-20 Alan Modra <amodra@gmail.com>
10663 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10664 rather than accessing bfd->filename directly.
10665 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10666 and use bfd_section_name.
10667 * dwarf2/frame.c (decode_frame_entry): Likewise.
10668 * exec.c (exec_set_section_address): Likewise.
10669 * solib-aix.c (solib_aix_bfd_open): Likewise.
10670 * stap-probe.c (get_stap_base_address): Likewise.
10671 * symfile.c (reread_symbols): Likewise.
10673 2020-05-19 Tom Tromey <tromey@adacore.com>
10675 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10677 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10679 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10681 2020-05-19 Pedro Alves <palves@redhat.com>
10683 * NEWS (set exec-file-mismatch): Adjust entry.
10684 * exec.c: Include "build-id.h".
10685 (validate_exec_file): Try to match build IDs instead of filenames.
10686 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10687 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10688 and pass down 'warn_if_slow'.
10689 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10690 gdb_bfd_open_closure to pass it down.
10691 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10693 2020-05-19 Pedro Alves <palves@redhat.com>
10695 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10696 * target.c (target_fileio_open_1): Rename to target_fileio_open
10697 and make extern. Use bool.
10698 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10699 (target_fileio_read_alloc_1): Adjust.
10700 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10701 (target_fileio_open_warn_if_slow): Delete declaration.
10703 2020-05-19 Pedro Alves <palves@redhat.com>
10705 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10706 Adjust all callers.
10708 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10710 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10711 whether disp is negative.
10713 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10715 * symfile.h (struct symfile_segment_data)
10716 <~symfile_segment_data>: Remove.
10717 <segment_info>: Change to std::vector.
10718 * symfile.c (default_symfile_segments): Update.
10719 * elfread.c (elf_symfile_segments): Update.
10721 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10723 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10725 <segment_bases, segment_sizes>: Remove.
10726 * symfile.c (default_symfile_segments): Update.
10727 * elfread.c (elf_symfile_segments): Update.
10728 * remote.c (remote_target::get_offsets): Update.
10729 * solib-target.c (solib_target_relocate_section_addresses):
10732 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10734 * symfile.h (struct symfile_segment_data): Initialize fields.
10735 <~symfile_segment_data>: Add.
10736 (symfile_segment_data_up): New.
10737 (struct sym_fns) <sym_segments>: Return a
10738 symfile_segment_data_up.
10739 (default_symfile_segments): Return a symfile_segment_data_up.
10740 (free_symfile_segment_data): Remove.
10741 (get_symfile_segment_data): Return a symfile_segment_data_up.
10742 * symfile.c (default_symfile_segments): Likewise.
10743 (get_symfile_segment_data): Likewise.
10744 (free_symfile_segment_data): Remove.
10745 (symfile_find_segment_sections): Update.
10746 * elfread.c (elf_symfile_segments): Return a
10747 symfile_segment_data_up.
10748 * remote.c (remote_target::get_offsets): Update.
10749 * solib-target.c (solib_target_relocate_section_addresses):
10751 * symfile-debug.c (debug_sym_segments): Return a
10752 symfile_segment_data_up.
10754 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10757 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10758 Hardcode register numbers.
10761 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10762 procfs_find_LDT_entry): Remove.
10763 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10764 procfs_find_LDT_entry): Remove.
10765 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10768 2020-05-17 Pedro Alves <palves@redhat.com>
10769 Andrew Burgess <andrew.burgess@embecosm.com>
10770 Keno Fischer <keno@juliacomputing.com>
10773 * breakpoint.c (build_target_condition_list): Update comments.
10774 (build_target_command_list): Update comments and skip matching
10776 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10777 a separate function. Simplify "set breakpoint auto-hw off"
10779 (insert_breakpoints): Update comment.
10780 (tracepoint_locations_match): New parameter. For breakpoints,
10781 compare location types too, if the caller wants to.
10782 (handle_automatic_hardware_breakpoints): New functions.
10783 (bp_location_is_less_than): Also sort by location type and
10784 hardware breakpoint length.
10785 (update_global_location_list): Handle "set breakpoint auto-hw on"
10787 (update_breakpoint_locations): Ask breakpoint_locations_match to
10788 ignore location types.
10790 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10792 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10793 type::name instead.
10795 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10797 * gdbtypes.h (struct type) <name, set_name>: New methods.
10798 (TYPE_CODE): Use type::name. Change all call sites used to set
10799 the name to use type::set_name instead.
10801 2020-05-16 Tom Tromey <tom@tromey.com>
10803 * top.c (quit_force): Update.
10804 * infrun.c (handle_no_resumed): Update.
10805 * top.h (all_uis): New function.
10808 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10810 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10812 2020-05-16 Pedro Alves <palves@redhat.com>
10815 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10817 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10819 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10821 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10822 (sparc64_adi_info): Likewise.
10824 2020-05-15 Tom Tromey <tom@tromey.com>
10826 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10828 (lookup_objfile_from_block): Remove.
10829 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10830 (lookup_global_symbol): Use block_objfile.
10831 * symtab.h (lookup_objfile_from_block): Don't declare.
10832 * printcmd.c (clear_dangling_display_expressions): Use
10834 * parse.c (operator_check_standard): Use block_objfile.
10836 2020-05-15 Tom Tromey <tom@tromey.com>
10838 * language.c (language_alloc_type_symbol): Set
10840 * symtab.c (initialize_objfile_symbol): Remove.
10841 (allocate_symbol): Remove.
10842 (allocate_template_symbol): Remove.
10843 * dwarf2/read.c (fixup_go_packaging): Use "new".
10844 (new_symbol): Use "new".
10845 (read_variable): Don't call initialize_objfile_symbol. Use
10847 (read_func_scope): Use "new".
10848 * xcoffread.c (process_xcoff_symbol): Don't call
10849 initialize_objfile_symbol.
10850 (SYMBOL_DUP): Remove.
10851 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10853 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10854 (allocate_template_symbol): Don't declare.
10855 (struct symbol): Add copy constructor. Change defaults.
10856 * jit.c (finalize_symtab): Use "new".
10857 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10859 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10860 (common_block_end): Use "new".
10861 * mdebugread.c (parse_symbol): Use "new".
10862 (new_symbol): Likewise.
10864 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10866 * NEWS: Mention changes to help and apropos.
10868 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10870 * command.h (enum command_class): Improve comments, document
10871 that class_alias is for user-defined aliases, give the class
10872 name for each class, remove unused class_xdb.
10873 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10874 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10875 by a precise class.
10876 * infcmd.c (_initialize_infcmd): Likewise.
10877 * reverse.c (_initialize_reverse): Likewise.
10878 * stack.c (_initialize_stack): Likewise.
10879 * symfile.c (_initialize_symfile): Likewise.
10880 * tracepoint.c (_initialize_tracepoint): Likewise.
10882 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10884 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10885 when their aliased command is traversed.
10886 (help_cmd): Add fput_command_names_styled call to
10887 output command name and aliases when command has an alias.
10889 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10891 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10892 * cli/cli-decode.c (help_cmd_list): Declare as static,
10893 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10894 a command together with the command.
10895 (fput_command_name_styled, fput_command_names_styled): New functions.
10896 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10897 fput_command_name_styled.
10898 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10899 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10901 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10903 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10904 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10905 * command.h (cmd_show_list): Likewise.
10906 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10907 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10909 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10911 * unittests/command-def-selftests.c (traverse_command_structure):
10912 Verify all commands of a list have the same prefix command and
10913 that only the top cmdlist commands have a null prefix.
10915 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10917 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10918 as prefix, not one of its aliases.
10919 (set_cmd_prefix): Remove.
10920 (do_add_cmd): Centralize the setting of the prefix of a command, when
10921 command is defined after its full chain of prefix commands.
10922 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10923 (add_setshow_cmd_full): Likewise.
10924 (update_prefix_field_of_prefixed_commands): New function.
10925 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10926 update_prefix_field_of_prefixed_commands.
10927 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10928 addresses of remote_set_cmdlist and remote_show_cmdlist given
10929 as argument, not the address of an argument.
10930 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10931 * gdb/remote.c (_initialize_remote): Likewise.
10933 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10935 * cli/cli-cmds.c (alias_command): Check for an existing alias
10936 using lookup_cmd_composition, as valid_command_p is too strict
10937 and forbids aliases that are the prefix of an existing alias
10939 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10940 command is properly recognised as a valid command.
10942 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10944 * unittests/help-doc-selftests.c: Rename to
10945 unittests/command-def-selftests.c
10946 * unittests/command-def-selftests.c (help_doc_tests): Update some
10948 (command_structure_tests, traverse_command_structure): New namespace
10950 (command_structure_invariants_tests): New function.
10951 (_initialize_command_def_selftests) Renamed from
10952 _initialize_help_doc_selftests, register command_structure_invariants
10955 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10957 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10958 an alias of 'show'.
10960 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10962 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10963 ada_is_fixed_point_type. Update all callers.
10964 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10966 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10967 Update all callers.
10968 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10969 print_fixed_point_type. Update all callers.
10970 * ada-valprint.c (ada_value_print_num): Replace call to
10971 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10973 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10975 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10977 (cpu_supports_bts): Add CV_AMD case.
10979 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10980 Simon Marchi <simon.marchi@efficios.com>
10982 * infrun.c (stop_all_threads): Collect multiple wait events at
10985 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10987 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10988 type::code instead.
10990 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10992 * gdbtypes.h (struct type) <code, set_code>: New methods.
10993 (TYPE_CODE): Use type::code. Change all call sites used to set
10994 the code to use type::set_code instead.
10996 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10997 Tom de Vries <tdevries@suse.de>
10998 Pedro Alves <palves@redhat.com>
11001 * infrun.c (stop_all_threads): Do NOT ignore
11002 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11003 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11005 (handle_no_resumed): Remove code handling a live inferior with no
11007 * remote.c (has_single_non_exited_thread): New.
11008 (remote_target::update_thread_list): Do not delete a thread if is
11009 the last thread of the process.
11010 * thread.c (thread_select): Call delete_exited_threads instead of
11013 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11015 * infrun.c (stop_all_threads): Enable/disable thread events of all
11016 targets. Move a debug message denoting the end of the function
11017 into the SCOPED_EXIT block.
11019 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11021 * process-stratum-target.h: Include <set>.
11022 (all_non_exited_process_targets, switch_to_target_no_thread): New
11023 function declarations.
11024 * process-stratum-target.c (all_non_exited_process_targets)
11025 (switch_to_target_no_thread): New function implementations.
11027 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11029 * infrun.c (handle_inferior_event): Extract out a piece of code
11031 (mark_non_executing_threads): ...this new function.
11033 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11035 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11038 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11040 * regcache.c (regcache_read_pc_protected): New function
11041 implementation that returns 0 if the PC cannot read via
11042 'regcache_read_pc'.
11043 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11044 instead of 'regcache_read_pc'.
11045 (keep_going_pass_signal): Ditto.
11047 2020-05-13 Tom Tromey <tromey@adacore.com>
11049 * ada-lang.c (align_value): Remove.
11050 (ada_template_to_fixed_record_type_1): Use align_up.
11052 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11054 * async-event.c: Update the copyright year.
11055 * async-event.h: Update the copyright year.
11057 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
11059 * objfiles.h (is_addr_in_objfile,
11060 shared_objfile_contains_address_p): Return bool.
11061 * objfile.c (is_addr_in_objfile,
11062 shared_objfile_contains_address_p): Return bool.
11064 2020-05-11 Tom Tromey <tromey@adacore.com>
11066 * cli/cli-cmds.c (info_command): Restore.
11067 (_initialize_cli_cmds): Use add_prefix_command for "info".
11068 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11070 2020-05-11 Tom Tromey <tromey@adacore.com>
11072 * ada-lang.c (ada_value_primitive_field): Now public.
11073 * ada-lang.h (ada_value_primitive_field): Declare.
11074 * ada-valprint.c (print_field_values): Use
11075 ada_value_primitive_field for wrapper fields.
11077 2020-05-11 Tom de Vries <tdevries@suse.de>
11079 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11082 2020-05-11 Tom de Vries <tdevries@suse.de>
11085 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11086 with length 0, if not gdb-produced.
11087 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11089 2020-05-09 Tom de Vries <tdevries@suse.de>
11092 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11095 2020-05-09 Tom Tromey <tom@tromey.com>
11097 * top.c (server_command): Now bool.
11098 * top.h (server_command): Now bool.
11100 2020-05-08 Tom Tromey <tromey@adacore.com>
11102 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11103 already being processed.
11105 2020-05-08 Tom Tromey <tom@tromey.com>
11107 * printcmd.c (struct display) <next>: Remove.
11108 <display>: New constructor.
11109 <exp_string>: Now a std::string.
11110 <enabled_p>: Now a bool.
11111 (display_number): Move definition earlier.
11112 (displays): Rename from display_chain. Now a std::vector.
11113 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11114 (display_command): Update.
11115 (do_one_display, disable_display)
11116 (enable_disable_display_command, do_enable_disable_display):
11118 (free_display): Remove.
11119 (clear_displays): Rewrite.
11120 (delete_display): Update.
11121 (map_display_numbers): Use function_view. Remove "data"
11123 (do_delete_display): Remove.
11124 (undisplay_command): Update.
11125 (do_one_display, do_displays, disable_display)
11126 (info_display_command): Update.
11127 (do_enable_disable_display): Remove.
11128 (enable_disable_display_command)
11129 (clear_dangling_display_expressions): Update.
11131 2020-05-08 Tom Tromey <tom@tromey.com>
11133 * symtab.c (set_symbol_cache_size)
11134 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11135 (maintenance_print_symbol_cache_statistics): Update.
11136 * symmisc.c (print_symbol_bcache_statistics)
11137 (print_objfile_statistics, maintenance_print_objfiles)
11138 (maintenance_info_symtabs, maintenance_check_symtabs)
11139 (maintenance_expand_symtabs, maintenance_info_line_tables):
11141 * symfile-debug.c (set_debug_symfile): Update.
11142 * source.c (forget_cached_source_info): Update.
11143 * python/python.c (gdbpy_progspaces): Update.
11144 * psymtab.c (maintenance_info_psymtabs): Update.
11145 * probe.c (parse_probes): Update.
11146 * linespec.c (iterate_over_all_matching_symtabs)
11147 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11148 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11149 * exec.c (exec_target::close): Update.
11150 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11151 * breakpoint.c (print_one_breakpoint_location)
11152 (create_longjmp_master_breakpoint)
11153 (create_std_terminate_master_breakpoint): Update.
11154 * progspace.c (program_spaces): Now a std::vector.
11155 (maybe_new_address_space): Update.
11156 (add_program_space): Remove.
11157 (program_space::program_space): Update.
11158 (remove_program_space): Update.
11159 (number_of_program_spaces): Remove.
11160 (print_program_space, update_address_spaces): Update.
11161 * progspace.h (program_spaces): Change type.
11162 (ALL_PSPACES): Remove.
11163 (number_of_program_spaces): Don't declare.
11164 (struct program_space) <next>: Remove.
11166 2020-05-08 Tom Tromey <tom@tromey.com>
11168 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11169 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11170 (enable_break): Update.
11171 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11172 (frv_fdpic_find_canonical_descriptor): Update.
11173 (frv_fetch_objfile_link_map): Update.
11174 * progspace.c (program_space::free_all_objfiles): Update.
11175 (program_space::solibs): New method.
11176 * progspace.h (struct program_space) <solibs>: New method.
11177 * solist.h (master_so_list): Don't declare.
11178 (ALL_SO_LIBS): Remove.
11179 * solib.h (so_list_head): Remove.
11180 (update_solib_list): Update comment.
11181 * solib.c (master_so_list): Remove.
11182 (solib_used, update_solib_list, solib_add)
11183 (info_sharedlibrary_command, clear_solib)
11184 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11186 2020-05-08 Tom Tromey <tom@tromey.com>
11188 * extension.c (extension_languages): Now a std::array.
11189 (ALL_EXTENSION_LANGUAGES): Remove.
11190 (get_ext_lang_defn, get_ext_lang_of_file)
11191 (eval_ext_lang_from_control_command): Update.
11192 (finish_ext_lang_initialization)
11193 (auto_load_ext_lang_scripts_for_objfile)
11194 (ext_lang_type_printers::ext_lang_type_printers)
11195 (apply_ext_lang_type_printers)
11196 (ext_lang_type_printers::~ext_lang_type_printers)
11197 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11198 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11199 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11200 (get_matching_xmethod_workers, ext_lang_colorize)
11201 (ext_lang_before_prompt): Update.
11202 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11204 2020-05-08 Tom Tromey <tom@tromey.com>
11206 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11208 <swap_string, m_string>: Remove.
11209 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11211 * stabsread.c (define_symbol, read_type): Update.
11212 * linespec.c (find_linespec_symbols): Update.
11213 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11214 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11215 * dbxread.c (read_dbx_symtab): Update.
11216 * cp-support.h (cp_canonicalize_string_full)
11217 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11218 Return unique_xmalloc_ptr.
11219 * cp-support.c (inspect_type): Update.
11220 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11221 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11223 * c-typeprint.c (print_name_maybe_canonical): Update.
11224 * break-catch-throw.c (check_status_exception_catchpoint):
11227 2020-05-08 Tom de Vries <tdevries@suse.de>
11229 * infrun.c (follow_fork): Copy current_line and current_symtab to
11232 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11234 * async-event.c (struct async_signal_handler, struct
11235 async_event_handler): Reformat, remove typedef.
11237 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11239 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11240 access thistype->main_type->dyn_prop_list directly.
11242 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11244 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11245 (remove_dyn_prop): Remove. Update all users to use
11246 type::remove_dyn_prop.
11247 * gdbtypes.c (remove_dyn_prop): Rename to...
11248 (type::remove_dyn_prop): ... this.
11250 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11252 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11253 (add_dyn_prop): Remove. Update all users to use
11254 type::add_dyn_prop.
11255 * gdbtypes.c (add_dyn_prop): Rename to...
11256 (type::add_dyn_prop): ... this.
11258 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11260 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11261 (get_dyn_prop): Remove. Update all users to use
11263 * gdbtypes.c (get_dyn_prop): Rename to...
11264 (type::dyn_prop): ... this.
11266 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11268 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11270 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11272 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11273 instruction, skip it if it's there.
11275 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11277 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11279 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11281 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11282 * gdbtypes.c (recursive_dump_type): Remove use of
11285 2020-05-03 Tom Tromey <tom@tromey.com>
11287 * breakpoint.c (catch_command, tcatch_command): Remove.
11288 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11289 add_show_prefix_cmd.
11290 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11291 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11293 (add_internal_problem_command): Use add_basic_prefix_cmd,
11294 add_show_prefix_cmd.
11295 * mips-tdep.c (set_mipsfpu_command): Remove.
11296 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11297 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11298 (_initialize_index_cache): Use add_basic_prefix_cmd.
11299 * memattr.c (dummy_cmd): Remove.
11300 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11301 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11302 (_initialize_tui_win): Use add_basic_prefix_cmd,
11303 add_show_prefix_cmd.
11304 * cli/cli-logging.c (set_logging_command): Remove.
11305 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11306 add_show_prefix_cmd.
11307 (show_logging_command): Remove.
11308 * target.c (target_command): Remove.
11309 (add_target): Use add_basic_prefix_cmd.
11311 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11313 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11315 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11317 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11320 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11322 * nbsd-nat.c (nbsd_enable_proc_events)
11323 (nbsd_nat_target::post_startup_inferior): Add.
11324 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11325 (nbsd_nat_target::update_thread_list): Rewrite.
11326 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11327 "PTRACE_LWP_CREATE".
11328 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11330 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11332 * stack.c (_initialize_stack): Remove duplicated creation
11333 of "frame" command and "f" alias.
11335 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11338 * gdbtypes.c (check_typedef): Calculate size of array of
11341 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11344 * i386-tdep.c (i386_push_dummy_call): Call
11345 i386_thiscall_push_dummy_call.
11346 (i386_thiscall_push_dummy_call): New function.
11347 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11348 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11349 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11351 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11353 * gdbarch.sh (do_read): Add shellcheck disable directive for
11356 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11358 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11359 "referenced but not assigned" warning.
11361 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11363 * gdbarch.sh: Remove code that sets fallbackdefault.
11365 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11367 * gdbarch.sh: Use shell operators && and || instead of
11370 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11372 * gdbarch.sh: Use $(...) instead of `...`.
11374 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11376 * gdbarch.sh: Use double quotes around variables.
11378 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11380 * gdbarch.sh: Use %s with printf, instead of variables in the
11383 2020-04-29 Tom Tromey <tromey@adacore.com>
11386 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11388 (read_enumeration_type): Call
11389 update_enumeration_type_from_children later. Update comments.
11390 (process_enumeration_scope): Don't create type fields.
11392 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11394 * nbsd-tdep.c: Include "xml-syscall.h".
11395 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11397 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11399 * nbsd-nat.c: Include "sys/wait.h".
11400 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11401 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11402 (nbsd_nat_target::remove_exec_catchpoint)
11403 (nbsd_nat_target::set_syscall_catchpoint): Add.
11404 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11405 (nbsd_nat_target::insert_exec_catchpoint)
11406 (nbsd_nat_target::remove_exec_catchpoint)
11407 (nbsd_nat_target::set_syscall_catchpoint): Add.
11408 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11409 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11410 `nbsd_get_syscall_number'.
11412 2020-04-29 Tom Tromey <tom@tromey.com>
11414 * stack.c (print_block_frame_labels): Remove.
11416 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11419 * ada-valprint.c (val_print_packed_array_elements): Move array
11420 end bracket to new line.
11421 (ada_val_print_string): Remove extra spaces before first array
11423 * c-valprint.c (c_value_print_array): Likewise.
11424 * m2-valprint.c (m2_print_array_contents): Likewise.
11425 (m2_value_print_inner): Likewise.
11426 * p-valprint.c (pascal_value_print_inner): Likewise.
11427 * valprint.c (generic_val_print_array): Likewise.
11428 (value_print_array_elements): Move first array element and array
11429 end bracket to new line.
11431 2020-04-29 Tom de Vries <tdevries@suse.de>
11434 * linespec.c (find_method): Fix ix calculation.
11436 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11438 * syscalls/update-netbsd.sh: New file.
11439 * syscalls/netbsd.xml: Regenerate.
11440 * data-directory/Makefile.in: Register `netbsd.xml' in
11443 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11445 * syscalls/update-freebsd.sh: Add double quotes.
11447 2020-04-28 Tom Tromey <tom@tromey.com>
11450 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11451 (cmdpy_init): Allow class_tui.
11453 2020-04-28 Mark Williams <mark@myosotissp.com>
11456 * dwarf2read.c: Add missing assingments to list_in_scope when
11457 start_symtab was already called.
11459 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11462 * dwarf2/read.c (offset_map_type): Use
11463 gdb:hash_enum<sect_offset> as hash function.
11465 2020-04-28 Tom de Vries <tdevries@suse.de>
11467 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11468 with DW_AT_signature.
11470 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11472 * configure.ac: Remove check for fs_base/gs_base in
11474 * configure: Re-generate.
11475 * config.in: Re-generate.
11476 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11477 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11478 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11480 2020-04-27 Luis Machado <luis.machado@linaro.org>
11482 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11483 problematic inline frame unwinding situation.
11484 * frame.c (frame_id_computed_p): New function.
11485 * frame.h (frame_id_computed_p): New prototype.
11487 2020-04-26 Tom Tromey <tom@tromey.com>
11489 * command.h (enum command_class) <class_pseudo>: Remove.
11491 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11493 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11496 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11498 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11499 `PT_GET_PROCESS_STATE' block.
11501 2020-04-24 Tom Tromey <tom@tromey.com>
11503 * symtab.h (symbol_get_demangled_name): Don't declare.
11504 * symtab.c (symbol_get_demangled_name): Remove.
11505 (general_symbol_info::natural_name)
11506 (general_symbol_info::demangled_name): Update.
11508 2020-04-24 Tom Tromey <tom@tromey.com>
11511 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11513 2020-04-24 Tom Tromey <tom@tromey.com>
11516 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11518 (new_symbol): Likewise.
11519 * compile/compile-object-load.c (get_out_value_type): Use
11520 symbol_matches_search_name.
11522 2020-04-24 Tom Tromey <tom@tromey.com>
11524 * dwarf2/read.c (add_partial_symbol): Do not call
11525 compute_and_set_names.
11527 2020-04-24 Tom Tromey <tom@tromey.com>
11529 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11532 2020-04-24 Tom Tromey <tom@tromey.com>
11534 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11535 (add_psymbol_to_list): New overload. Make old overload call new
11537 * psympriv.h (add_psymbol_to_list): New overload.
11539 2020-04-24 Tom Tromey <tom@tromey.com>
11541 * dwarf2/read.c (partial_die_info::read) <case
11542 DW_AT_linkage_name>: Use value_as_string.
11543 (dwarf2_string_attr): Use value_as_string.
11544 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11546 * dwarf2/attribute.c (attribute::value_as_string): New method.
11548 2020-04-24 Tom Tromey <tom@tromey.com>
11550 * symtab.c (general_symbol_info::natural_name)
11551 (general_symbol_info::demangled_name): Check for language_rust.
11553 2020-04-24 Tom Tromey <tom@tromey.com>
11555 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11556 (dwarf2_physname): ... from here.
11557 (partial_die_info::read): Add Rust "{" hack.
11559 2020-04-24 Tom Tromey <tom@tromey.com>
11561 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11563 (symbol_set_demangled_name): Don't declare.
11564 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11565 symbol_set_demangled_name.
11566 (general_symbol_info::set_language)
11567 (general_symbol_info::compute_and_set_names): Update.
11568 * minsyms.c (minimal_symbol_reader::install): Update.
11569 * dwarf2/read.c (new_symbol): Update.
11571 2020-04-24 Tom Tromey <tromey@adacore.com>
11574 * python/py-type.c (convert_field): Handle
11575 FIELD_LOC_KIND_DWARF_BLOCK.
11576 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11577 (typy_get_dynamic): Nw function.
11578 (type_object_getset): Add "dynamic".
11581 2020-04-24 Tom Tromey <tromey@adacore.com>
11583 * ada-typeprint.c (print_choices, print_variant_part)
11584 (print_record_field_types_dynamic): New functions.
11585 (print_record_field_types): Use print_record_field_types_dynamic.
11587 2020-04-24 Tom Tromey <tromey@adacore.com>
11589 * dwarf2/read.c (handle_data_member_location): New overload.
11590 (dwarf2_add_field): Use it.
11591 (decode_locdesc): Add "computed" parameter. Update comment.
11592 * gdbtypes.c (is_dynamic_type_internal): Also look for
11593 FIELD_LOC_KIND_DWARF_BLOCK.
11594 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11595 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11596 virtual base classes.
11597 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11598 FIELD_LOC_KIND_DWARF_BLOCK.
11600 2020-04-24 Tom Tromey <tromey@adacore.com>
11602 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11603 * gdbtypes.c (is_dynamic_type_internal): Check
11604 TYPE_HAS_DYNAMIC_LENGTH.
11605 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11606 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11608 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11611 2020-04-24 Tom Tromey <tromey@adacore.com>
11613 * dwarf2/read.c (struct variant_field): Rewrite.
11614 (struct variant_part_builder): New.
11615 (struct nextfield): Remove "variant" field. Add "offset".
11616 (struct field_info): Add "current_variant_part" and
11618 (alloc_discriminant_info): Remove.
11619 (alloc_rust_variant): New function.
11620 (quirk_rust_enum): Update.
11621 (dwarf2_add_field): Set "offset" member. Don't handle
11622 DW_TAG_variant_part.
11623 (offset_map_type): New typedef.
11624 (convert_variant_range, create_one_variant)
11625 (create_one_variant_part, create_variant_parts)
11626 (add_variant_property): New functions.
11627 (dwarf2_attach_fields_to_type): Call add_variant_property.
11628 (read_structure_type): Don't handle DW_TAG_variant_part.
11629 (handle_variant_part, handle_variant): New functions.
11630 (handle_struct_member_die): Use them.
11631 (process_structure_scope): Don't handle variant parts.
11632 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11633 (struct discriminant_info): Remove.
11634 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11635 (struct main_type) <flag_discriminated_union>: Remove.
11636 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11637 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11638 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11640 * valops.c (value_union_variant): Remove.
11641 * value.h (value_union_variant): Don't declare.
11643 2020-04-24 Tom Tromey <tromey@adacore.com>
11645 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11646 (ada_value_primitive_packed_val): Update.
11647 * ada-valprint.c (ada_value_print_1): Update.
11648 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11649 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11650 just an address. Use evaluate_for_locexpr_baton.
11651 (dwarf2_evaluate_property): Update.
11652 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11654 * findvar.c (default_read_var_value): Update.
11655 * gdbtypes.c (compute_variant_fields_inner)
11656 (resolve_dynamic_type_internal): Update.
11657 (resolve_dynamic_type): Change type of valaddr parameter.
11658 * gdbtypes.h (resolve_dynamic_type): Update.
11659 * valarith.c (value_subscripted_rvalue): Update.
11660 * value.c (value_from_contents_and_address): Update.
11662 2020-04-24 Tom Tromey <tromey@adacore.com>
11664 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11665 "push_initial_value" parameter.
11666 (dwarf2_evaluate_property): Likewise.
11667 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11669 2020-04-24 Tom Tromey <tromey@adacore.com>
11671 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11672 (variant::matches, compute_variant_fields_recurse)
11673 (compute_variant_fields_inner, compute_variant_fields): New
11675 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11676 Use resolved_type after type is made.
11677 (operator==): Add new cases.
11678 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11679 (struct discriminant_range, struct variant, struct variant_part):
11681 (union dynamic_prop_data) <variant_parts, original_type>: New
11683 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11684 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11686 * value.c (unpack_bits_as_long): Now public.
11687 * value.h (unpack_bits_as_long): Declare.
11689 2020-04-24 Tom Tromey <tromey@adacore.com>
11691 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11692 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11694 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11696 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11698 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11700 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11701 (remove_fork_catchpoint, post_startup_inferior)
11702 (post_attach): Move...
11703 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11704 (remove_fork_catchpoint, post_startup_inferior)
11705 (post_attach): ...here.
11706 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11707 (remove_fork_catchpoint, post_startup_inferior)
11708 (post_attach): Move...
11709 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11710 (remove_fork_catchpoint, post_startup_inferior)
11711 (post_attach): ...here.
11713 2020-04-24 Tom Tromey <tromey@adacore.com>
11715 * nat/windows-nat.h (struct windows_thread_info)
11716 <pc_adjusted>: New member.
11717 * windows-nat.c (windows_fetch_one_register): Check
11719 (windows_nat_target::get_windows_debug_event)
11720 (windows_nat_target::wait): Set pc_adjusted.
11722 2020-04-24 Tom de Vries <tdevries@suse.de>
11724 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11725 Run gdb-add-index inside temp dir.
11727 2020-04-23 Tom Tromey <tromey@adacore.com>
11729 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11732 2020-04-23 Luis Machado <luis.machado@linaro.org>
11734 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11735 get_frame_register instead of gdbarch_unwind_pc.
11737 2020-04-23 Tom de Vries <tdevries@suse.de>
11739 * symtab.c (lookup_global_symbol): Prefer def over decl.
11741 2020-04-23 Tom de Vries <tdevries@suse.de>
11744 * block.c (best_symbol, better_symbol): Promote to external.
11745 * block.h (best_symbol, better_symbol): Declare.
11746 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11749 2020-04-23 Tom Tromey <tromey@adacore.com>
11752 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11753 "const char *", not a "const std::string &".
11754 <name_and_matcher::operator==>: Update.
11755 * unittests/lookup_name_info-selftests.c: Change type of
11758 2020-04-23 Tom Tromey <tom@tromey.com>
11760 * inferior.h (iterate_over_inferiors): Don't declare.
11761 * inferior.c (iterate_over_inferiors): Remove.
11762 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11764 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11765 use iterate_over_inferiors.
11766 (darwin_resume_inferior_it)
11767 (struct resume_inferior_threads_param)
11768 (darwin_resume_inferior_threads_it): Remove.
11769 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11771 2020-04-23 Tom de Vries <tdevries@suse.de>
11773 * blockframe.c (find_pc_partial_function): Use
11774 find_pc_sect_compunit_symtab rather than
11775 objfile->sf->qf->find_pc_sect_compunit_symtab.
11777 2020-04-22 Tom de Vries <tdevries@suse.de>
11780 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11783 2020-04-22 Tom de Vries <tdevries@suse.de>
11786 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11789 2020-04-22 Tom de Vries <tdevries@suse.de>
11792 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11793 CU if already created.
11795 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11797 * infrun.c (displaced_step_fixup): Switch to the event_thread
11798 before calling displaced_step_restore, not after.
11800 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11802 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11803 its inferior is not recorded by us.
11804 (record_btrace_target_open): Replace call to
11805 all_non_exited_threads () with call to current_inferior
11806 ()->non_exited_threads ().
11807 (record_btrace_target::stop_recording): Likewise.
11808 (record_btrace_target::close): Likewise.
11809 (record_btrace_target::wait): Likewise.
11810 (record_btrace_target::record_stop_replaying): Likewise.
11812 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11814 * btrace.c (btrace_enable): Throw an error on double enables and
11815 when enabling recording fails.
11816 (btrace_disable): Throw an error if the thread is not recorded.
11818 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11820 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11821 request if we do not have a thread_info.
11823 2020-04-21 Tom de Vries <tdevries@suse.de>
11827 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11828 exception in get_frame_id.
11830 2020-04-20 Tom Tromey <tromey@adacore.com>
11832 * python/python.c (struct gdbpy_event): Mark move constructor as
11834 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11835 constructor as noexcept.
11836 * completer.h (struct completion_result): Mark move constructor as
11838 * completer.c (completion_result::completion_result): Use
11839 initialization style. Don't call reset_match_list.
11841 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11843 * MAINTAINERS (Write After Approval): Add myself.
11845 2020-04-18 Tom Tromey <tom@tromey.com>
11847 * windows-tdep.c (init_w32_command_list)
11848 (w32_prefix_command_valid): Restore.
11849 (_initialize_windows_tdep): Call init_w32_command_list.
11851 2020-04-18 Tom Tromey <tom@tromey.com>
11853 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11854 * value.c (value_fn_field): Update.
11855 * valops.c (find_function_in_inferior)
11856 (value_allocate_space_in_inferior): Update.
11857 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11859 * tui/tui-source.c (tui_source_window::set_contents): Update.
11860 * symtab.c (lookup_global_or_static_symbol)
11861 (find_function_start_sal_1, skip_prologue_sal)
11862 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11863 * symmisc.c (dump_msymbols, dump_symtab_1)
11864 (maintenance_print_one_line_table): Update.
11865 * symfile.c (init_entry_point_info, section_is_mapped)
11866 (list_overlays_command, simple_read_overlay_table)
11867 (simple_overlay_update_1): Update.
11868 * stap-probe.c (handle_stap_probe): Update.
11869 * stabsread.c (dbx_init_float_type, define_symbol)
11870 (read_one_struct_field, read_enum_type, read_range_type): Update.
11871 * source.c (info_line_command): Update.
11872 * python/python.c (gdbpy_source_objfile_script)
11873 (gdbpy_execute_objfile_script): Update.
11874 * python/py-type.c (save_objfile_types): Update.
11875 * python/py-objfile.c (py_free_objfile): Update.
11876 * python/py-inferior.c (python_new_objfile): Update.
11877 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11878 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11879 (maintenance_check_psymtabs): Update.
11880 * printcmd.c (info_address_command): Update.
11881 * objfiles.h (struct objfile) <arch>: New method, from
11883 (get_objfile_arch): Don't declare.
11884 * objfiles.c (get_objfile_arch): Remove.
11885 (filter_overlapping_sections): Update.
11886 * minsyms.c (msymbol_is_function): Update.
11887 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11888 (output_nondebug_symbol): Update.
11889 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11890 (mdebug_expand_psymtab): Update.
11891 * machoread.c (macho_add_oso_symfile): Update.
11892 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11894 * linux-fork.c (checkpoint_command): Update.
11895 * linespec.c (convert_linespec_to_sals): Update.
11896 * jit.c (finalize_symtab): Update.
11897 * infrun.c (insert_exception_resume_from_probe): Update.
11898 * ia64-tdep.c (ia64_find_unwind_table): Update.
11899 * hppa-tdep.c (internalize_unwinds): Update.
11900 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11902 * gcore.c (call_target_sbrk): Update.
11903 * elfread.c (record_minimal_symbol, elf_symtab_read)
11904 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11905 (elf_gnu_ifunc_resolve_by_got): Update.
11906 * dwarf2/read.c (create_addrmap_from_index)
11907 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11908 (read_debug_names_from_section)
11909 (process_psymtab_comp_unit_reader, add_partial_symbol)
11910 (add_partial_subprogram, process_full_comp_unit)
11911 (read_file_scope, read_func_scope, read_lexical_block_scope)
11912 (read_call_site_scope, dwarf2_ranges_read)
11913 (dwarf2_record_block_ranges, dwarf2_add_field)
11914 (mark_common_block_symbol_computed, read_tag_pointer_type)
11915 (read_tag_string_type, dwarf2_init_float_type)
11916 (dwarf2_init_complex_target_type, read_base_type)
11917 (partial_die_info::read, partial_die_info::read)
11918 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11919 (dwarf2_fetch_die_loc_sect_off): Update.
11920 * dwarf2/loc.c (dwarf2_find_location_expression)
11921 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11922 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11923 (dwarf2_loc_desc_get_symbol_read_needs)
11924 (locexpr_describe_location_piece, locexpr_describe_location_1)
11925 (loclist_describe_location): Update.
11926 * dwarf2/index-write.c (write_debug_names): Update.
11927 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11928 * dtrace-probe.c (dtrace_process_dof): Update.
11929 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11930 (process_one_symbol): Update.
11931 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11932 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11933 (coff_read_enum_type): Update.
11934 * cli/cli-cmds.c (edit_command, list_command): Update.
11935 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11936 * breakpoint.c (create_overlay_event_breakpoint)
11937 (create_longjmp_master_breakpoint)
11938 (create_std_terminate_master_breakpoint)
11939 (create_exception_master_breakpoint, get_sal_arch): Update.
11940 * block.c (block_gdbarch): Update.
11941 * annotate.c (annotate_source_line): Update.
11943 2020-04-17 Tom Tromey <tromey@adacore.com>
11945 * auto-load.c (show_auto_load_cmd): Remove.
11946 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11947 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11948 (maintenance_print_arc_command): Remove.
11949 * tui/tui-win.c (tui_command): Remove.
11950 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11951 * tui/tui-layout.c (tui_layout_command): Remove.
11952 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11953 * python/python.c (user_set_python, user_show_python): Remove.
11954 (_initialize_python): Use add_basic_prefix_cmd,
11955 add_show_prefix_cmd.
11956 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11957 (install_gdb_commands): Use add_basic_prefix_cmd,
11958 add_show_prefix_cmd.
11959 (info_guile_command): Remove.
11960 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11961 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11962 add_show_prefix_cmd.
11963 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11964 Remove do_set and do_show parameters.
11965 * cli/cli-style.c (set_style, show_style): Remove.
11966 (_initialize_cli_style): Use add_basic_prefix_cmd,
11967 add_show_prefix_cmd.
11968 (cli_style_option::add_setshow_commands): Remove do_set and
11969 do_show parameters.
11970 (cli_style_option::add_setshow_commands): Use
11971 add_basic_prefix_cmd, add_show_prefix_cmd.
11972 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11973 (set_style_name): Remove.
11974 * cli/cli-dump.c (dump_command, append_command): Remove.
11975 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11976 (tekhex_dump_command, binary_dump_command)
11977 (binary_append_command): Remove.
11978 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11979 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11980 (init_w32_command_list): Remove; move into ...
11981 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11982 * valprint.c (set_print, show_print, set_print_raw)
11983 (show_print_raw): Remove.
11984 (_initialize_valprint): Use add_basic_prefix_cmd,
11985 add_show_prefix_cmd.
11986 * typeprint.c (set_print_type, show_print_type): Remove.
11987 (_initialize_typeprint): Use add_basic_prefix_cmd,
11988 add_show_prefix_cmd.
11989 * record.c (set_record_command, show_record_command): Remove.
11990 (_initialize_record): Use add_basic_prefix_cmd,
11991 add_show_prefix_cmd.
11992 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11993 add_show_prefix_cmd.
11994 (info_command, show_command, set_debug, show_debug): Remove.
11995 * top.h (set_history, show_history): Don't declare.
11996 * top.c (set_history, show_history): Remove.
11997 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11998 (unset_tdesc_cmd): Remove.
11999 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12000 add_show_prefix_cmd.
12001 * symtab.c (info_module_command): Remove.
12002 (_initialize_symtab): Use add_basic_prefix_cmd.
12003 * symfile.c (overlay_command): Remove.
12004 (_initialize_symfile): Use add_basic_prefix_cmd.
12005 * sparc64-tdep.c (info_adi_command): Remove.
12006 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12007 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12008 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12009 add_show_prefix_cmd.
12010 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12011 (_initialize_serial): Use add_basic_prefix_cmd,
12012 add_show_prefix_cmd.
12013 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12014 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12015 add_show_prefix_cmd.
12016 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12017 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12018 add_show_prefix_cmd.
12019 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12020 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12021 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12022 add_show_prefix_cmd.
12023 * remote.c (remote_command, set_remote_cmd): Remove.
12024 (_initialize_remote): Use add_basic_prefix_cmd.
12025 * record-full.c (set_record_full_command)
12026 (show_record_full_command): Remove.
12027 (_initialize_record_full): Use add_basic_prefix_cmd,
12028 add_show_prefix_cmd.
12029 * record-btrace.c (cmd_set_record_btrace)
12030 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12031 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12032 (cmd_show_record_btrace_pt): Remove.
12033 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12034 add_show_prefix_cmd.
12035 * ravenscar-thread.c (set_ravenscar_command)
12036 (show_ravenscar_command): Remove.
12037 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12038 add_show_prefix_cmd.
12039 * mips-tdep.c (show_mips_command, set_mips_command)
12040 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12041 add_show_prefix_cmd.
12042 * maint.c (maintenance_command, maintenance_info_command)
12043 (maintenance_check_command, maintenance_print_command)
12044 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12045 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12046 add_show_prefix_cmd.
12047 (show_per_command_cmd): Remove.
12048 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12050 (maintenance_show_test_settings_cmd): Remove.
12051 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12052 add_show_prefix_cmd.
12053 * maint-test-options.c (maintenance_test_options_command):
12055 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12056 * macrocmd.c (macro_command): Remove
12057 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12058 * language.c (set_check, show_check): Remove.
12059 (_initialize_language): Use add_basic_prefix_cmd,
12060 add_show_prefix_cmd.
12061 * infcmd.c (unset_command): Remove.
12062 (_initialize_infcmd): Use add_basic_prefix_cmd.
12063 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12064 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12065 add_show_prefix_cmd.
12066 * go32-nat.c (go32_info_dos_command): Remove.
12067 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12068 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12069 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12070 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12071 (_initialize_frame): Use add_basic_prefix_cmd,
12072 add_show_prefix_cmd.
12073 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12074 (_initialize_dcache): Use add_basic_prefix_cmd,
12075 add_show_prefix_cmd.
12076 * cp-support.c (maint_cplus_command): Remove.
12077 (_initialize_cp_support): Use add_basic_prefix_cmd.
12078 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12079 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12080 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12081 add_basic_prefix_cmd, add_show_prefix_cmd.
12082 * breakpoint.c (save_command): Remove.
12083 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12084 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12085 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12086 add_show_prefix_cmd.
12087 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12088 (set_ada_command, show_ada_command): Remove.
12089 (_initialize_ada_language): Use add_basic_prefix_cmd,
12090 add_show_prefix_cmd.
12091 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12093 2020-04-16 Kamil Rytarowski <n54@gmx.com>
12095 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12096 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12098 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12100 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12103 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12105 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12106 import table is not at beginning of .idata section.
12108 2020-04-16 Pedro Alves <palves@redhat.com>
12110 * inferior.c (delete_inferior): Use delete operator directly
12111 instead of delete_program_space.
12112 * progspace.c (add_program_space): New, factored out from
12113 program_space::program_space.
12114 (remove_program_space): New, factored out from
12115 delete_program_space.
12116 (program_space::program_space): Remove intro comment. Rewrite.
12117 (program_space::~program_space): Remove intro comment. Call
12118 remove_program_space.
12119 (delete_program_space): Delete.
12120 * progspace.h (program_space::program_space): Make explicit. Move
12121 intro comment here, adjusted.
12122 (program_space::~program_space): Move intro comment here,
12124 (delete_program_space): Remove.
12126 2020-04-16 Tom Tromey <tromey@adacore.com>
12128 * windows-nat.c (windows_nat::handle_access_violation): New
12130 * nat/windows-nat.h (handle_access_violation): Declare.
12131 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12132 windows-nat.c. Call handle_access_violation.
12134 2020-04-16 Tom de Vries <tdevries@suse.de>
12137 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12138 CUs without psymtab.
12140 2020-04-16 Kevin Buettner <kevinb@redhat.com>
12142 * python/python.c (do_start_initialization): Don't call
12143 PyEval_InitThreads for Python 3.9 and beyond.
12145 2020-04-15 Kamil Rytarowski <n54@gmx.com>
12147 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12149 (obsd_nat_target::wait): Likewise.
12151 2020-04-15 Tom Tromey <tromey@adacore.com>
12153 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12154 (DEBUG_EXCEPT): Use debug_printf.
12156 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12158 * completer.c (class completion_tracker::completion_hash_entry)
12159 <hash_name>: New member function.
12160 (completion_tracker::discard_completions): New callback to hash a
12161 completion_hash_entry, pass this to htab_create_alloc.
12163 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12165 * windows-nat.c (windows_make_so): Warn rather than stopping with
12166 an error if realpath() fails.
12168 2020-04-14 Kamil Rytarowski <n54@gmx.com>
12170 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12171 (nbsd_nat_target::info_proc): Add do_status.
12173 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12174 Tom de Vries <tdevries@suse.de>
12177 * psympriv.h (struct partial_symtab::read_symtab)
12178 (struct partial_symtab::expand_psymtab)
12179 (struct partial_symtab::read_dependencies): Update comments.
12180 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12181 read_symtab for includer.
12182 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12183 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12184 (struct dwarf2_include_psymtab::m_readin): Remove.
12185 (struct dwarf2_include_psymtab::includer): New member function.
12186 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12188 2020-04-14 Tom de Vries <tdevries@suse.de>
12191 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12192 with NULL symbol_matcher and lookup_name.
12193 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12195 * dwarf2/read.c (dw2_expand_symtabs_matching)
12196 (dw2_debug_names_expand_symtabs_matching): Same.
12197 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12198 Make lookup_name a pointer. Update comment.
12199 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12200 lookup_name being a pointer.
12201 * symfile.c (expand_symtabs_matching): Same.
12202 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12203 * linespec.c (iterate_over_all_matching_symtabs): Same.
12205 2020-04-13 Tom Tromey <tom@tromey.com>
12207 * run-on-main-thread.c: Update include.
12208 * unittests/main-thread-selftests.c: Update include.
12209 * tui/tui-win.c: Update include.
12210 * tui/tui-io.c: Update include.
12211 * tui/tui-interp.c: Update include.
12212 * tui/tui-hooks.c: Update include.
12213 * top.h: Update include.
12214 * top.c: Update include.
12215 * ser-base.c: Update include.
12216 * remote.c: Update include.
12217 * remote-notif.c: Update include.
12218 * remote-fileio.c: Update include.
12219 * record-full.c: Update include.
12220 * record-btrace.c: Update include.
12221 * python/python.c: Update include.
12222 * posix-hdep.c: Update include.
12223 * mingw-hdep.c: Update include.
12224 * mi/mi-main.c: Update include.
12225 * mi/mi-interp.c: Update include.
12226 * main.c: Update include.
12227 * linux-nat.c: Update include.
12228 * interps.c: Update include.
12229 * infrun.c: Update include.
12230 * inf-loop.c: Update include.
12231 * event-top.c: Update include.
12232 * event-loop.c: Move to ../gdbsupport/.
12233 * event-loop.h: Move to ../gdbsupport/.
12234 * async-event.h: Update include.
12235 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12237 2020-04-13 Tom Tromey <tom@tromey.com>
12239 * tui/tui-win.c: Include async-event.h.
12240 * remote.c: Include async-event.h.
12241 * remote-notif.c: Include async-event.h.
12242 * record-full.c: Include async-event.h.
12243 * record-btrace.c: Include async-event.h.
12244 * infrun.c: Include async-event.h.
12245 * event-top.c: Include async-event.h.
12246 * event-loop.h: Move some declarations to async-event.h.
12247 * event-loop.c: Don't include ser-event.h or top.h. Move some
12248 code to async-event.c.
12249 * async-event.h: New file.
12250 * async-event.c: New file.
12251 * Makefile.in (COMMON_SFILES): Add async-event.c.
12252 (HFILES_NO_SRCDIR): Add async-event.h.
12254 2020-04-13 Tom Tromey <tom@tromey.com>
12256 * utils.c (flush_streams): New function.
12257 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12259 2020-04-13 Tom Tromey <tom@tromey.com>
12261 * event-loop.c (handle_file_event): Use warning, not
12264 2020-04-13 Tom Tromey <tom@tromey.com>
12266 * event-loop.c: Include <chrono>.
12268 2020-04-13 Tom Tromey <tom@tromey.com>
12270 * gdb_select.h: Move to ../gdbsupport/.
12271 * event-loop.c: Update include path.
12272 * top.c: Update include path.
12273 * ser-base.c: Update include path.
12274 * ui-file.c: Update include path.
12275 * ser-tcp.c: Update include path.
12276 * guile/scm-ports.c: Update include path.
12277 * posix-hdep.c: Update include path.
12278 * ser-unix.c: Update include path.
12279 * gdb_usleep.c: Update include path.
12280 * mingw-hdep.c: Update include path.
12281 * inflow.c: Update include path.
12282 * infrun.c: Update include path.
12283 * event-top.c: Update include path.
12285 2020-04-13 Tom Tromey <tom@tromey.com>
12287 * configure: Rebuild.
12288 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12290 2020-04-13 Tom Tromey <tom@tromey.com>
12292 * event-loop.h (start_event_loop): Don't declare.
12293 * event-loop.c (start_event_loop): Move...
12294 * main.c (start_event_loop): ...here. Now static.
12296 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12298 * MAINTAINERS: Update my email address.
12300 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12302 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12305 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12307 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12308 (nbsd_nat_target::info_proc): Add do_cmdline.
12310 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12312 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12313 (nbsd_nat_target::info_proc): Add do_cwd.
12315 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12317 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12319 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12321 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12322 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12323 (nbsd_nat_target::info_proc): New functions.
12324 * nbsd-nat.c (kinfo_get_vmmap): New function.
12325 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12326 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12327 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12328 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12330 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12331 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12332 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12333 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12334 (KINFO_VME_FLAG_GROWS_DOWN): New.
12336 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12338 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12341 2020-04-10 Tom Tromey <tromey@adacore.com>
12343 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12345 2020-04-10 Tom Tromey <tromey@adacore.com>
12347 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12348 separate debug files.
12350 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12352 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12354 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12356 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12357 Check for STATUS_WX86_BREAKPOINT.
12358 (windows_nat_target::wait): Same.
12360 2020-04-10 Tom de Vries <tdevries@suse.de>
12363 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12365 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12367 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12368 (Write After Approval): Remove Tom de Vries.
12370 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12373 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12375 * buildsym.c (record_line): Fix undefined behavior and preserve
12378 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12380 * auxv.h (svr4_auxv_parse): New.
12381 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12382 and generic_auxv_parse.
12383 (svr4_auxv_parse): Add.
12384 * obsd-tdep.c: Include "auxv.h".
12385 (obsd_auxv_parse): Remove.
12386 (obsd_init_abi): Remove comment.
12387 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12388 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12389 * nbsd-tdep.c: Include "auxv.h".
12390 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12392 2020-04-08 Tom Tromey <tromey@adacore.com>
12394 * nat/windows-nat.h (last_wait_event): Don't declare.
12395 (wait_for_debug_event): Update comment.
12396 * nat/windows-nat.c (last_wait_event): Now static.
12398 2020-04-08 Tom Tromey <tromey@adacore.com>
12400 * windows-nat.c (wait_for_debug_event): Move to
12402 * nat/windows-nat.h (wait_for_debug_event): Declare.
12403 * nat/windows-nat.c (wait_for_debug_event): Move from
12404 windows-nat.c. No longer static.
12406 2020-04-08 Tom Tromey <tromey@adacore.com>
12408 * windows-nat.c (get_windows_debug_event): Use
12409 fetch_pending_stop.
12410 * nat/windows-nat.h (fetch_pending_stop): Declare.
12411 * nat/windows-nat.c (fetch_pending_stop): New function.
12413 2020-04-08 Tom Tromey <tromey@adacore.com>
12415 * windows-nat.c (windows_continue): Use matching_pending_stop and
12416 continue_last_debug_event.
12417 * nat/windows-nat.h (matching_pending_stop)
12418 (continue_last_debug_event): Declare.
12419 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12420 (matching_pending_stop, continue_last_debug_event): New
12423 2020-04-08 Tom Tromey <tromey@adacore.com>
12425 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12426 (handle_exception_result): Move to nat/windows-nat.h.
12427 (DEBUG_EXCEPTION_SIMPLE): Remove.
12428 (windows_nat::handle_ms_vc_exception): New function.
12429 (handle_exception): Move to nat/windows-nat.c.
12430 (get_windows_debug_event): Update.
12431 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12433 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12434 (handle_exception_result): Move from windows-nat.c.
12435 (handle_exception): Declare.
12436 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12437 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12440 2020-04-08 Tom Tromey <tromey@adacore.com>
12442 * windows-nat.c (exception_count, event_count): Remove.
12443 (handle_exception, get_windows_debug_event)
12444 (do_initial_windows_stuff): Update.
12446 2020-04-08 Tom Tromey <tromey@adacore.com>
12448 * windows-nat.c (windows_nat::handle_load_dll)
12449 (windows_nat::handle_unload_dll): Rename. No longer static.
12450 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12453 2020-04-08 Tom Tromey <tromey@adacore.com>
12455 * complaints.h (stop_whining): Declare at top-level.
12456 (complaint): Don't declare stop_whining.
12458 2020-04-08 Tom Tromey <tromey@adacore.com>
12460 * windows-nat.c (windows_nat::handle_output_debug_string):
12461 Rename. No longer static.
12462 * nat/windows-nat.h (handle_output_debug_string): Declare.
12464 2020-04-08 Tom Tromey <tromey@adacore.com>
12466 * windows-nat.c (current_process_handle, current_process_id)
12467 (main_thread_id, last_sig, current_event, last_wait_event)
12468 (current_windows_thread, desired_stop_thread_id, pending_stops)
12469 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12470 (display_selectors, fake_create_process)
12471 (get_windows_debug_event): Update.
12472 * nat/windows-nat.h (current_process_handle, current_process_id)
12473 (main_thread_id, last_sig, current_event, last_wait_event)
12474 (current_windows_thread, desired_stop_thread_id, pending_stops)
12475 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12476 * nat/windows-nat.c (current_process_handle, current_process_id)
12477 (main_thread_id, last_sig, current_event, last_wait_event)
12478 (current_windows_thread, desired_stop_thread_id, pending_stops)
12479 (siginfo_er): New globals. Move from windows-nat.c.
12481 2020-04-08 Tom Tromey <tromey@adacore.com>
12483 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12484 (handle_load_dll): Update.
12485 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12487 2020-04-08 Tom Tromey <tromey@adacore.com>
12489 * windows-nat.c (enum thread_disposition_type): Move to
12491 (windows_nat::thread_rec): Rename from thread_rec. No longer
12493 (windows_add_thread, windows_nat_target::fetch_registers)
12494 (windows_nat_target::store_registers, handle_exception)
12495 (windows_nat_target::resume, get_windows_debug_event)
12496 (windows_nat_target::get_tib_address)
12497 (windows_nat_target::thread_name)
12498 (windows_nat_target::thread_alive): Update.
12499 * nat/windows-nat.h (enum thread_disposition_type): Move from
12501 (thread_rec): Declare.
12503 2020-04-08 Tom Tromey <tromey@adacore.com>
12505 * windows-nat.c: Add "using namespace".
12506 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12507 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12509 2020-04-08 Tom Tromey <tromey@adacore.com>
12511 * nat/windows-nat.h (struct windows_thread_info): Declare
12513 * nat/windows-nat.c (~windows_thread_info): New.
12515 2020-04-08 Tom Tromey <tromey@adacore.com>
12518 * windows-nat.c (current_event): Update comment.
12519 (last_wait_event, desired_stop_thread_id): New globals.
12520 (struct pending_stop): New.
12521 (pending_stops): New global.
12522 (windows_nat_target) <stopped_by_sw_breakpoint>
12523 <supports_stopped_by_sw_breakpoint>: New methods.
12524 (windows_fetch_one_register): Add assertions. Adjust PC.
12525 (windows_continue): Handle pending stops. Suspend other threads
12526 when stepping. Use last_wait_event
12527 (wait_for_debug_event): New function.
12528 (get_windows_debug_event): Use wait_for_debug_event. Handle
12529 pending stops. Queue spurious stops.
12530 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12531 (windows_nat_target::kill): Use wait_for_debug_event.
12532 * nat/windows-nat.h (struct windows_thread_info)
12533 <stopped_at_software_breakpoint>: New field.
12534 * nat/windows-nat.c (windows_thread_info::resume): Clear
12535 stopped_at_software_breakpoint.
12537 2020-04-08 Tom Tromey <tromey@adacore.com>
12539 * windows-nat.c (enum thread_disposition_type): New.
12540 (thread_rec): Replace "get_context" parameter with "disposition";
12542 (windows_add_thread, windows_nat_target::fetch_registers)
12543 (windows_nat_target::store_registers, handle_exception)
12544 (windows_nat_target::resume, get_windows_debug_event)
12545 (windows_nat_target::get_tib_address)
12546 (windows_nat_target::thread_name)
12547 (windows_nat_target::thread_alive): Update.
12549 2020-04-08 Tom Tromey <tromey@adacore.com>
12551 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12552 (windows_continue): Use windows_continue::resume.
12553 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12554 resume>: Declare new methods.
12555 * nat/windows-nat.c: New file.
12556 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12558 2020-04-08 Tom Tromey <tromey@adacore.com>
12560 * windows-nat.c (windows_add_thread, windows_delete_thread)
12561 (windows_nat_target::fetch_registers)
12562 (windows_nat_target::store_registers, fake_create_process)
12563 (windows_nat_target::resume, windows_nat_target::resume)
12564 (get_windows_debug_event, windows_nat_target::wait)
12565 (windows_nat_target::pid_to_str)
12566 (windows_nat_target::get_tib_address)
12567 (windows_nat_target::get_ada_task_ptid)
12568 (windows_nat_target::thread_name)
12569 (windows_nat_target::thread_alive): Use lwp, not tid.
12571 2020-04-08 Tom Tromey <tromey@adacore.com>
12573 * windows-nat.c (handle_exception)
12574 (windows_nat_target::thread_name): Update.
12575 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12576 <name>: Now unique_xmalloc_ptr.
12578 2020-04-08 Tom Tromey <tromey@adacore.com>
12580 * windows-nat.c (thread_rec)
12581 (windows_nat_target::fetch_registers): Update.
12582 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12584 <debug_registers_changed, reload_context>: Now bool.
12586 2020-04-08 Tom Tromey <tromey@adacore.com>
12588 * windows-nat.c (windows_add_thread): Use new.
12589 (windows_init_thread_list, windows_delete_thread): Use delete.
12590 (get_windows_debug_event): Update.
12591 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12592 destructor, and initializers.
12594 2020-04-08 Tom Tromey <tromey@adacore.com>
12596 * windows-nat.c (struct windows_thread_info): Remove.
12597 * nat/windows-nat.h: New file.
12599 2020-04-08 Tom Tromey <tromey@adacore.com>
12601 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12602 (thread_rec, windows_add_thread, windows_delete_thread)
12603 (windows_continue): Update.
12605 2020-04-08 Tom Tromey <tromey@adacore.com>
12607 * windows-nat.c (struct windows_thread_info): Remove typedef.
12608 (thread_head): Remove.
12609 (thread_list): New global.
12610 (thread_rec, windows_add_thread, windows_init_thread_list)
12611 (windows_delete_thread, windows_continue): Update.
12613 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12615 * windows-tdep.h (windows_init_abi): Add comment.
12616 (cygwin_init_abi): New declaration.
12617 * windows-tdep.c: Split signal enumeration in two, one for
12618 Windows and one for Cygwin.
12619 (windows_gdb_signal_to_target): Only deal with signal of the
12621 (cygwin_gdb_signal_to_target): New function.
12622 (windows_init_abi): Rename to windows_init_abi_common, don't set
12623 gdb_signal_to_target gdbarch method. Add new new function with
12625 (cygwin_init_abi): New function.
12626 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12627 comment. Don't call windows_init_abi.
12628 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12629 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12630 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12631 i386_windows_init_abi_common, don't call windows_init_abi. Add
12632 a new function of this name.
12633 (i386_cygwin_init_abi): New function.
12634 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12637 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12639 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12641 (dwarf2_read_gdb_index): Update.
12643 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12645 * nbsd-tdep.c: Include "objfiles.h".
12646 (nbsd_skip_solib_resolver): New.
12647 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12649 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12651 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12652 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12653 with DW_LLE_base_addressx are being emitted in DWARFv5.
12654 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12655 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12658 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12660 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12661 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12662 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12663 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12664 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12665 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12666 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12669 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12671 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12672 (read_loclist_index): New function definition.
12673 (lookup_loclist_base): New function definition.
12674 (read_loclist_header): New function definition.
12675 (dwarf2_cu): Add loclist_base and loclist_header field.
12676 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12677 (read_full_die_1): Read the value of DW_AT_loclists_base.
12678 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12679 (read_attribute_value): Handle DW_FORM_loclistx.
12680 (skip_one_die): Handle DW_FORM_loclistx.
12681 (loclist_header): New structure declaration.
12682 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12684 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12686 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12687 constructor. Remove `addr` parameter from other constructor and
12688 add `per_cu` parameter.
12689 * dwarf2/read.c (create_partial_symtab): Update.
12691 2020-04-07 Tom de Vries <tdevries@suse.de>
12694 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12695 (partial_die_info::fixup): Inherit has_const_value.
12697 2020-04-07 Tom de Vries <tdevries@suse.de>
12699 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12700 symbols without address.
12702 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12704 * nbsd-nat.h (struct thread_info): Add forward declaration.
12705 (nbsd_nat_target::thread_alive): Add.
12706 (nbsd_nat_target::thread_name): Likewise.
12707 (nbsd_nat_target::update_thread_list): Likewise.
12708 (update_thread_list::post_attach): Likewise.
12709 (post_attach::pid_to_str): Likewise.
12710 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12711 (nbsd_thread_lister): Add.
12712 (nbsd_nat_target::thread_alive): Likewise.
12713 (nbsd_nat_target::thread_name): Likewise.
12714 (nbsd_add_threads): Likewise.
12715 (update_thread_list::post_attach): Likewise.
12716 (nbsd_nat_target::update_thread_list): Likewise.
12717 (post_attach::pid_to_str): Likewise.
12719 2020-04-06 Tom Tromey <tromey@adacore.com>
12721 * ada-valprint.c (print_variant_part): Extract the variant field.
12722 (print_field_values): Use the field as the outer value when
12725 2020-04-06 Tom Tromey <tromey@adacore.com>
12727 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12728 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12729 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12730 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12731 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12733 2020-04-06 Tom Tromey <tromey@adacore.com>
12735 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12738 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12740 * nbsd-tdep.c: Include "gdbarch.h".
12741 Define enum with NetBSD signal numbers.
12742 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12743 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12744 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12745 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12746 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12747 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12748 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12749 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12750 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12751 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12752 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12753 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12755 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12758 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12760 2020-04-03 Tom Tromey <tromey@adacore.com>
12762 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12763 Read constant block.
12765 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12767 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12768 (gdb_bfd_get_full_section_contents): New declaration.
12769 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12770 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12771 gdb_bfd_get_full_section_contents.
12773 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12775 * exec.c (build_section_table): Replace internal_error with
12777 (section_table_xfer_memory_partial): Likewise.
12778 * mdebugread.c (parse_partial_symbols): Likewise.
12779 * psymtab.c (lookup_partial_symbol): Likewise.
12780 * utils.c (wrap_here): Likewise.
12782 2020-04-02 Tom Tromey <tromey@adacore.com>
12784 * f-lang.c (build_fortran_types): Use arch_type to initialize
12785 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12787 2020-04-02 Tom Tromey <tromey@adacore.com>
12789 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12792 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12793 Bernd Edlinger <bernd.edlinger@hotmail.de>
12794 Tom Tromey <tromey@adacore.com>
12796 * buildsym.c (buildsym_compunit::record_line): Remove
12797 deduplication code.
12799 2020-04-02 Tom de Vries <tdevries@suse.de>
12802 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12804 2020-04-02 Tom de Vries <tdevries@suse.de>
12806 * dwarf2/read.c (dwarf2_gdb_index_functions,
12807 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12809 * psymtab.c (psym_lookup_global_symbol_language): New function.
12810 (psym_functions): Init psym_lookup_global_symbol_language with
12811 psym_lookup_global_symbol_language.
12812 * symfile-debug.c (debug_sym_quick_functions): Init
12813 lookup_global_symbol_language with NULL.
12814 * symfile.c (set_initial_language): Remove fixme comment.
12815 * symfile.h (struct quick_symbol_functions): Add
12816 lookup_global_symbol_language.
12817 * symtab.c (find_quick_global_symbol_language): New function.
12818 (find_main_name): Use find_quick_global_symbol_language.
12820 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12822 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12824 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12826 * buildsym.c (record_line): Fix undefined behavior and preserve
12829 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12831 * buildsym.c (record_line): Fix the resizing condition.
12833 2020-04-01 Tom Tromey <tom@tromey.com>
12835 * value.h (value_literal_complex): Add comment.
12836 * valops.c (value_literal_complex): Refer to value.h.
12838 2020-04-01 Tom Tromey <tom@tromey.com>
12840 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12841 (scalar_type): New rule, from typebase.
12842 (typebase): Use scalar_type. Recognize complex types.
12843 (field_name): Handle FLOAT_KEYWORD.
12844 (ident_tokens): Add _Complex and __complex__.
12846 2020-04-01 Tom Tromey <tom@tromey.com>
12849 * valarith.c (promotion_type, complex_binop): New functions.
12850 (scalar_binop): Handle complex numbers. Use promotion_type.
12851 (value_pos, value_neg, value_complement): Handle complex numbers.
12853 2020-04-01 Tom Tromey <tom@tromey.com>
12855 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12856 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12857 (parse_number): Handle complex numbers.
12859 2020-04-01 Tom Tromey <tom@tromey.com>
12861 * c-valprint.c (c_decorations): Change complex suffix to "i".
12863 2020-04-01 Tom Tromey <tom@tromey.com>
12865 * valprint.c (generic_value_print_complex): Use accessors.
12866 * value.h (value_real_part, value_imaginary_part): Declare.
12867 * valops.c (value_real_part, value_imaginary_part): New
12869 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12871 2020-04-01 Tom Tromey <tom@tromey.com>
12873 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12874 (read_range_type): Update.
12875 * mdebugread.c (basic_type): Update.
12876 * go-lang.c (build_go_types): Use init_complex_type.
12877 * gdbtypes.h (struct main_type) <complex_type>: New member.
12878 (init_complex_type): Update.
12879 (arch_complex_type): Don't declare.
12880 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12881 Make name if none given. Use alloc_type_copy. Look for cached
12883 (arch_complex_type): Remove.
12884 (gdbtypes_post_init): Use init_complex_type.
12885 * f-lang.c (build_fortran_types): Use init_complex_type.
12886 * dwarf2/read.c (read_base_type): Update.
12887 * d-lang.c (build_d_types): Use init_complex_type.
12888 * ctfread.c (read_base_type): Update.
12890 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12892 * infrun.c (stop_all_threads): Update assertion, plus when
12893 stopping threads, take into account that we might be trying
12894 to stop an all-stop target.
12895 (stop_waiting): Call 'stop_all_threads' if there exists a
12898 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12900 * target.h (exists_non_stop_target): New function declaration.
12901 * target.c (exists_non_stop_target): New function.
12903 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12906 * eval.c (is_integral_or_integral_reference): New function.
12907 (evaluate_subexp_standard): Allow integer references in
12908 pointer arithmetic.
12910 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12912 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12913 check for no ptid in the stop reply when the target is non-stop.
12915 2020-04-01 Tom Tromey <tromey@adacore.com>
12917 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12918 "name" parameter to rvalue reference. Initialize m_name_holder.
12919 <lookup_name_info>: New overloads.
12920 <name>: Return gdb::string_view.
12921 <c_str>: New method.
12922 <make_ignore_params>: Update.
12923 <search_name_hash>: Update.
12924 <language_lookup_name>: Return const char *.
12925 <m_name>: Change type.
12926 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12927 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12928 (lookup_name_info::match_any): Update.
12929 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12931 * minsyms.c (linkage_name_str): Update.
12932 * language.c (default_symbol_name_matcher): Update.
12933 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12935 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12936 (ada_lookup_name_info::ada_lookup_name_info): Update.
12937 (literal_symbol_name_matcher): Update.
12939 2020-04-01 Tom Tromey <tromey@adacore.com>
12941 * psymtab.c (psymtab_search_name): Remove function.
12942 (psym_lookup_symbol): Create search name and lookup name here.
12943 (lookup_partial_symbol): Remove "name" parameter; add
12945 (psym_expand_symtabs_for_function): Update.
12947 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12950 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12952 2020-03-31 Tom Tromey <tromey@adacore.com>
12954 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12957 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12959 * features/riscv/32bit-csr.xml: Regenerated.
12960 * features/riscv/64bit-csr.xml: Regenerated.
12962 2020-03-30 Tom Tromey <tromey@adacore.com>
12964 * ada-valprint.c (print_variant_part): Update.
12965 * ada-lang.h (ada_which_variant_applies): Update.
12966 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12967 outer_valaddr parameters; replace with "outer" value parameter.
12968 (to_fixed_variant_branch_type): Update.
12970 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12972 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12973 <list>. Remove inclusion of observable.h.
12974 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12975 (struct arch_lwp_info): New struct.
12976 (class ppc_linux_dreg_interface): New class.
12977 (struct ppc_linux_process_info): New struct.
12978 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12979 <low_new_clone, low_forget_process, low_prepare_to_resume>
12980 <copy_thread_dreg_state, mark_thread_stale>
12981 <mark_debug_registers_changed, register_hw_breakpoint>
12982 <clear_hw_breakpoint, register_wp, clear_wp>
12983 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12984 <num_memory_accesses, get_trigger_type>
12985 <create_watchpoint_request, hwdebug_point_cmp>
12986 <init_arch_lwp_info, get_arch_lwp_info>
12987 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12989 <struct ptid_hash>: New inner struct.
12990 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12992 (saved_dabr_value, hwdebug_info, max_slots_number)
12993 (struct hw_break_tuple, struct thread_points, ppc_threads)
12994 (have_ptrace_hwdebug_interface)
12995 (hwdebug_find_thread_points_by_tid)
12996 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12997 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12998 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12999 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13000 use m_dreg_interface.
13001 (hwdebug_point_cmp): Change to...
13002 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13003 reference arguments instead of pointers.
13004 (ppc_linux_nat_target::ranged_break_num_registers): Use
13006 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13007 m_dreg_interface. Call register_hw_breakpoint.
13008 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13009 m_dreg_interface. Call clear_hw_breakpoint.
13010 (get_trigger_type): Change to...
13011 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13013 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13014 use m_dreg_interface. Call register_hw_breakpoint.
13015 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13016 use m_dreg_interface. Call clear_hw_breakpoint.
13017 (can_use_watchpoint_cond_accel): Change to...
13018 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13019 method. Update comment, use m_dreg_interface and
13021 (calculate_dvc): Change to...
13022 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13024 (num_memory_accesses): Change to...
13025 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13026 (check_condition): Change to...
13027 (ppc_linux_nat_target::check_condition): ...this method.
13028 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13029 comment, use m_dreg_interface.
13030 (create_watchpoint_request): Change to...
13031 (ppc_linux_nat_target::create_watchpoint_request): ...this
13032 method. Use m_dreg_interface.
13033 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13034 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13035 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13036 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13037 (ppc_linux_nat_target::low_forget_process)
13038 (ppc_linux_nat_target::low_new_fork)
13039 (ppc_linux_nat_target::low_new_clone)
13040 (ppc_linux_nat_target::low_delete_thread)
13041 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13042 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13043 only call mark_thread_stale.
13044 (ppc_linux_thread_exit): Remove.
13045 (ppc_linux_nat_target::stopped_data_address): Change to...
13046 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13047 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13048 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13049 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13050 comment. Call low_stopped_data_address.
13051 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13053 (ppc_linux_nat_target::masked_watch_num_registers): Use
13055 (ppc_linux_nat_target::copy_thread_dreg_state)
13056 (ppc_linux_nat_target::mark_thread_stale)
13057 (ppc_linux_nat_target::mark_debug_registers_changed)
13058 (ppc_linux_nat_target::register_hw_breakpoint)
13059 (ppc_linux_nat_target::clear_hw_breakpoint)
13060 (ppc_linux_nat_target::register_wp)
13061 (ppc_linux_nat_target::clear_wp)
13062 (ppc_linux_nat_target::init_arch_lwp_info)
13063 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13064 (_initialize_ppc_linux_nat): Remove observer callback.
13066 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13068 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13069 (ppc_linux_nat_target::auxv_parse)
13070 (ppc_linux_nat_target::read_description)
13071 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13074 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13076 * linux-nat.h (low_new_clone): New method.
13077 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13079 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13081 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13082 (dbx_expand_psymtab): ... this.
13083 (start_psymtab): Update.
13084 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13085 (mdebug_expand_psymtab): ... this.
13086 (parse_partial_symbols): Update.
13087 (new_psymtab): Update.
13088 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13089 (xcoff_expand_psymtab): ... this.
13090 (xcoff_start_psymtab): Update.
13092 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13094 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13095 <expand_dependencies>: ... this.
13096 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13097 (partial_symtab::expand_dependencies): ... this.
13098 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13100 (dwarf2_psymtab::expand_psymtab): Update.
13101 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13102 * mdebugread.c (psymtab_to_symtab_1): Update.
13103 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13105 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13107 * psympriv.h (discard_psymtab): Remove.
13108 * dbxread.c (dbx_end_psymtab): Update.
13109 * xcoffread.c (xcoff_end_psymtab): Update.
13111 2020-03-28 Tom Tromey <tom@tromey.com>
13113 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13116 2020-03-28 Tom Tromey <tom@tromey.com>
13118 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13120 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
13122 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13124 2020-03-26 John Baldwin <jhb@FreeBSD.org>
13126 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13128 2020-03-26 Tom Tromey <tom@tromey.com>
13130 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13131 (mark_common_block_symbol_computed, read_tag_string_type)
13132 (attr_to_dynamic_prop, read_subrange_type): Update.
13133 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13134 to be methods on struct attribute.
13135 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13136 (read_call_site_scope, partial_die_info::read)
13137 (partial_die_info::read, lookup_die_type, follow_die_ref):
13139 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13140 from dwarf2_get_ref_die_offset.
13141 (attribute::constant_value): New method, from
13142 dwarf2_get_attr_constant_value.
13143 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13145 <constant_value>: New method.
13147 2020-03-26 Tom Tromey <tom@tromey.com>
13149 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13150 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13151 (dwarf_type_encoding_name): Move to stringify.c.
13152 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13153 * dwarf2/stringify.c: New file.
13154 * dwarf2/stringify.h: New file.
13156 2020-03-26 Tom Tromey <tom@tromey.com>
13158 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13161 2020-03-26 Tom Tromey <tom@tromey.com>
13163 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13165 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13166 (lookup_ranges_base): Likewise.
13167 (read_cutu_die_from_dwo, read_full_die_1): Update.
13169 2020-03-26 Tom Tromey <tom@tromey.com>
13171 * dwarf2/read.c (read_import_statement, read_file_scope)
13172 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13173 (read_lexical_block_scope, read_call_site_scope)
13174 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13175 (handle_struct_member_die, process_structure_scope)
13176 (update_enumeration_type_from_children)
13177 (process_enumeration_scope, read_array_type, read_common_block)
13178 (read_namespace, read_module, read_subroutine_type): Update.
13179 (sibling_die): Remove.
13181 2020-03-26 Tom Tromey <tom@tromey.com>
13183 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13184 (build_type_psymtabs_reader, read_structure_type)
13185 (read_enumeration_type, read_full_die_1): Update.
13186 (dwarf2_attr_no_follow): Move to die.h.
13187 * dwarf2/die.h (struct die_info) <attr>: New method.
13189 2020-03-26 Tom Tromey <tom@tromey.com>
13191 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13192 <base_address>: Now an optional.
13193 (dwarf2_find_base_address, dwarf2_rnglists_process)
13194 (dwarf2_ranges_process, fill_in_loclist_baton)
13195 (dwarf2_symbol_mark_computed): Update.
13197 2020-03-26 Tom Tromey <tom@tromey.com>
13199 * dwarf2/read.c (struct die_info): Move to die.h.
13200 * dwarf2/die.h: New file.
13202 2020-03-26 Tom Tromey <tom@tromey.com>
13204 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13206 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13207 Move to line-header.c.
13208 (read_checked_initial_length_and_offset, read_formatted_entries):
13210 (dwarf_decode_line_header): Split into two.
13211 * dwarf2/line-header.c
13212 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13214 (read_checked_initial_length_and_offset, read_formatted_entries):
13216 (dwarf_decode_line_header): New function, split from read.c.
13218 2020-03-26 Tom Tromey <tom@tromey.com>
13220 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13222 * dwarf2/read.c (read_attribute_value): Update.
13223 (dwarf2_per_objfile::read_line_string): Rename from
13224 read_indirect_line_string.
13225 (read_formatted_entries): Update.
13227 2020-03-26 Tom Tromey <tom@tromey.com>
13229 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13232 2020-03-26 Tom Tromey <tom@tromey.com>
13234 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13236 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13237 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13240 2020-03-26 Tom Tromey <tom@tromey.com>
13242 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13243 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13244 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13245 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13247 2020-03-26 Tom Tromey <tom@tromey.com>
13249 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13250 file_names_size, file_full_name, file_file_name>: Use const.
13251 <file_name_at, file_names>: Add const overload.
13252 * dwarf2/line-header.c (line_header::file_file_name)
13253 (line_header::file_full_name): Update.
13255 2020-03-26 Tom Tromey <tom@tromey.com>
13257 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13258 (macro_start_file, consume_improper_spaces)
13259 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13260 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13261 (dwarf_decode_macros): Move to macro.c.
13262 * dwarf2/macro.c: New file.
13263 * dwarf2/macro.h: New file.
13264 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13266 2020-03-26 Tom Tromey <tom@tromey.com>
13268 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13270 * dwarf2/section.c: New method. From
13271 read_indirect_string_at_offset_from.
13272 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13273 (read_indirect_string_at_offset_from): Move to section.c.
13274 (read_indirect_string_at_offset): Rewrite.
13275 (read_indirect_line_string_at_offset): Remove.
13276 (read_indirect_string, read_indirect_line_string)
13277 (dwarf_decode_macro_bytes): Update.
13279 2020-03-26 Tom Tromey <tom@tromey.com>
13281 * dwarf2/section.h (struct dwarf2_section_info)
13282 <overload_complaint>: Declare.
13283 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13284 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13285 Rename from dwarf2_section_buffer_overflow_complaint.
13286 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13287 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13289 2020-03-26 Tom Tromey <tom@tromey.com>
13291 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13293 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13295 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13298 2020-03-26 Tom Tromey <tom@tromey.com>
13300 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13302 2020-03-26 Tom Tromey <tom@tromey.com>
13304 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13306 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13308 (dwarf_decode_macros): Update.
13310 2020-03-26 Tom Tromey <tom@tromey.com>
13312 * dwarf2/read.c (read_attribute_value): Update.
13313 (read_indirect_string_from_dwz): Move to dwz.c; change into
13315 (dwarf_decode_macro_bytes): Update.
13316 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13317 * dwarf2/dwz.c: New file.
13318 * Makefile.in (COMMON_SFILES): Add dwz.c.
13320 2020-03-26 Tom Tromey <tom@tromey.com>
13322 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13323 * dwarf2/read.c: Add include.
13324 * dwarf2/index-write.c: Add include.
13325 * dwarf2/index-cache.c: Add include.
13326 * dwarf2/dwz.h: New file.
13328 2020-03-25 Tom Tromey <tom@tromey.com>
13330 * compile/compile-object-load.c (get_out_value_type): Mention
13331 correct symbol name in error message.
13333 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13335 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13337 2020-03-25 Tom de Vries <tdevries@suse.de>
13339 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13340 * symmisc.c (dump_symtab_1): Print user and includes fields.
13341 (maintenance_info_symtabs): Same.
13343 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13346 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13347 (riscv_regcache_cooked_write): New function.
13348 (riscv_push_dummy_call): Use new function.
13349 (riscv_return_value): Likewise.
13351 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13353 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13354 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13355 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13356 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13357 * infrun.c (follow_fork): Likewise.
13358 (follow_fork_inferior): Likewise.
13359 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13360 * linux-nat.h (class linux_nat_target): Likewise.
13361 * remote.c (class remote_target) <follow_fork>: Likewise.
13362 (remote_target::follow_fork): Likewise.
13363 * target-delegates.c: Re-generate.
13364 * target.c (default_follow_fork): Likewise.
13365 (target_follow_fork): Likewise.
13366 * target.h (struct target_ops) <follow_fork>: Likewise.
13367 (target_follow_fork): Likewise.
13369 2020-03-24 Tom de Vries <tdevries@suse.de>
13371 * psymtab.c (maintenance_info_psymtabs): Print user field.
13373 2020-03-20 Tom Tromey <tromey@adacore.com>
13375 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13377 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13380 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13382 * ptrace.m4: Don't check for ptrace declaration.
13383 * config.in: Re-generate.
13384 * configure: Re-generate.
13385 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13388 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13390 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13392 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13393 * sparc-nat.c (gdb_ptrace): Likewise.
13394 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13396 2020-03-20 Tom Tromey <tromey@adacore.com>
13398 * c-exp.y (lex_one_token): Fix assert.
13400 2020-03-20 Tom Tromey <tromey@adacore.com>
13402 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13403 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13406 2020-03-20 Tom Tromey <tromey@adacore.com>
13408 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13410 2020-03-20 Tom Tromey <tromey@adacore.com>
13412 * ada-valprint.c (print_variant_part): Remove parameters; switch
13413 to value-based API.
13414 (print_field_values): Likewise.
13415 (ada_val_print_struct_union): Likewise.
13416 (ada_value_print_1): Update.
13418 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13420 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13421 nbsd_nat_target instead of inf_ptrace_target.
13422 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13425 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13427 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13428 it to the ptrace call.
13429 * (store_registers): Likewise.
13431 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13433 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13434 it to the ptrace call.
13435 * (store_registers): Likewise.
13437 2020-03-19 Luis Machado <luis.machado@linaro.org>
13439 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13440 valid, fetch vg value from ptrace.
13442 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13443 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13444 * inf-ptrace.c: Likewise.
13445 * (gdb_ptrace): Add.
13446 * (inf_ptrace_target::resume): Update.
13447 * (inf_ptrace_target::xfer_partial): Likewise.
13448 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13449 * (inf_ptrace_peek_poke): Update.
13451 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13453 * x86-bsd-nat.c (gdb_ptrace): New.
13454 * (x86bsd_dr_set): Add new argument `ptid'.
13455 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13456 x86bsd_dr_set_addr): Update.
13458 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13460 * remote.c (remote_target::process_stop_reply): Handle events for
13461 all threads differently.
13463 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13465 * completer.c (completion_tracker::remove_completion): Define new
13467 * completer.h (completion_tracker::remove_completion): Declare new
13469 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13470 when adding a C++ function symbol.
13472 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13474 * completer.c (completion_tracker::completion_hash_entry): Define
13476 (advance_to_filename_complete_word_point): Call
13477 recompute_lowest_common_denominator.
13478 (completion_tracker::completion_tracker): Call discard_completions
13479 to setup the hash table.
13480 (completion_tracker::discard_completions): Allow for being called
13481 from the constructor, pass new equal function, and element deleter
13482 when constructing the hash table. Initialise new class member
13484 (completion_tracker::maybe_add_completion): Remove use of
13485 m_entries_vec, and store more information into m_entries_hash.
13486 (completion_tracker::recompute_lcd_visitor): New function, most
13487 content taken from...
13488 (completion_tracker::recompute_lowest_common_denominator):
13489 ...here, this now just visits each item in the hash calling the
13491 (completion_tracker::build_completion_result): Remove use of
13492 m_entries_vec, call recompute_lowest_common_denominator.
13493 * completer.h (completion_tracker::have_completions): Remove use
13495 (completion_tracker::completion_hash_entry): Declare new class.
13496 (completion_tracker::recompute_lowest_common_denominator): Change
13497 function signature.
13498 (completion_tracker::recompute_lcd_visitor): Declare new function.
13499 (completion_tracker::m_entries_vec): Delete.
13500 (completion_tracker::m_entries_hash): Initialize to NULL.
13501 (completion_tracker::m_lowest_common_denominator_valid): New
13503 (completion_tracker::m_lowest_common_denominator_max_length): New
13506 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13508 * regformats/regdef.h: Put reg in gdb namespace.
13510 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13512 * i386-bsd-nat.c (gdb_ptrace): New.
13513 * (i386bsd_fetch_inferior_registers,
13514 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13515 * (i386bsd_fetch_inferior_registers,
13516 i386bsd_store_inferior_registers) Use gdb_ptrace.
13518 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13520 * amd64-bsd-nat.c (gdb_ptrace): New.
13521 * (amd64bsd_fetch_inferior_registers,
13522 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13523 * (amd64bsd_fetch_inferior_registers,
13524 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13526 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13528 * user-regs.c (user_reg::read): Rename to...
13529 (user_reg::xread): ...this.
13530 * (append_user_reg): Rename argument `read' to `xread'.
13531 * (user_reg_add_builtin): Likewise.
13532 * (user_reg_add): Likewise.
13533 * (value_of_user_reg): Likewise.
13535 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13537 * sparc-nat.c (gdb_ptrace): New.
13538 * sparc-nat.c (sparc_fetch_inferior_registers)
13539 (sparc_store_inferior_registers) Remove obsolete comment.
13540 * sparc-nat.c (sparc_fetch_inferior_registers)
13541 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13542 * sparc-nat.c (sparc_fetch_inferior_registers)
13543 (sparc_store_inferior_registers) Use gdb_ptrace.
13545 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13547 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13548 it to the ptrace call.
13549 * sh-nbsd-nat.c (store_registers): Likewise.
13551 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13553 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13554 nbsd_nat_target instead of inf_ptrace_target.
13555 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13558 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13560 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13562 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13564 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13566 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13568 2020-03-17 Tom de Vries <tdevries@suse.de>
13571 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13573 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13575 (process_imported_unit_die): Skip import of c++ CUs.
13577 2020-03-16 Tom Tromey <tom@tromey.com>
13579 * p-valprint.c (pascal_object_print_value): Initialize
13582 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13583 Shahab Vahedi <shahab@synopsys.com>
13585 * Makefile.in: Add arch/arc.o
13586 * configure.tgt: Likewise.
13587 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13588 (_initialize_arc_tdep): Don't initialize old target descriptions.
13589 (arc_read_description): New function to cache target descriptions.
13590 * arc-tdep.h (arc_read_description): Add proto type.
13591 * arch/arc.c: New file.
13592 * arch/arc.h: Likewise.
13593 * features/Makefile: Replace old target descriptions with new.
13594 * features/arc-arcompact.c: Remove.
13595 * features/arc-arcompact.xml: Likewise.
13596 * features/arc-v2.c: Likewise
13597 * features/arc-v2.xml: Likewise
13598 * features/arc/aux-arcompact.xml: New file.
13599 * features/arc/aux-v2.xml: Likewise.
13600 * features/arc/core-arcompact.xml: Likewise.
13601 * features/arc/core-v2.xml: Likewise.
13602 * features/arc/aux-arcompact.c: Generate.
13603 * features/arc/aux-v2.c: Likewise.
13604 * features/arc/core-arcompact.c: Likewise.
13605 * features/arc/core-v2.c: Likewise.
13606 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13608 2020-03-16 Tom Tromey <tromey@adacore.com>
13611 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13612 putting value into bcache.
13614 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13617 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13619 (amd64_windows_init_abi_common): ... this. Don't set size of
13621 (amd64_windows_init_abi): New function.
13622 (amd64_cygwin_init_abi): New function.
13623 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13625 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13628 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13630 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13631 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13632 (pe_import_directory_entry): New struct type.
13633 (is_linked_with_cygwin_dll): New function.
13634 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13635 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13636 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13638 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13640 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13641 i386_cygwin_core_osabi_sniffer.
13643 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13645 * i386-cygwin-tdep.c: Rename to...
13646 * i386-windows-tdep.c: ... this.
13647 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13648 i386-windows-tdep.c.
13649 * configure.tgt: Likewise.
13651 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13653 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13654 * osabi.c (gdb_osabi_names): Add "Windows".
13655 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13656 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13657 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13658 i386_cygwin_osabi_sniffer.
13659 (_initialize_i386_cygwin_tdep): Register OS ABI
13660 GDB_OSABI_WINDOWS for i386.
13661 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13662 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13663 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13665 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13666 when the target matches '*-*-mingw*'.
13668 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13670 * defs.h (enum gdb_osabi): Move to...
13671 * osabi.h (enum gdb_osabi): ... here.
13672 * gdbarch.sh: Include osabi.h in gdbarch.h.
13673 * gdbarch.h: Re-generate.
13675 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13677 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13679 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13681 2020-03-14 Tom Tromey <tom@tromey.com>
13683 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13685 (c_type_print_modifier): Likewise. Add "language" parameter.
13686 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13687 (c_type_print_base_1): Update.
13688 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13690 * type-stack.c (type_stack::insert): Handle tp_atomic and
13692 (type_stack::follow_type_instance_flags): Likewise.
13693 (type_stack::follow_types): Likewise. Merge type-following code.
13694 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13695 (space_identifier, cv_with_space_id)
13696 (const_or_volatile_or_space_identifier_noopt)
13697 (const_or_volatile_or_space_identifier): Remove.
13698 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13700 (ptr_operator, typebase): Update.
13701 (enum token_flag) <FLAG_C>: New constant.
13702 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13704 (lex_one_token): Handle FLAG_C.
13706 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13708 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13709 it to the ptrace call.
13710 * m68k-bsd-nat.c (store_registers): Likewise.
13712 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13714 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13716 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13717 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13718 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13720 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13722 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13723 nbsd_nat_target instead of inf_ptrace_target.
13724 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13727 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13729 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13732 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13734 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13735 it to the ptrace call.
13736 * alpha-bsd-nat.c (store_registers): Likewise.
13738 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13740 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13742 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13743 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13744 fill_fpregset): Likewise.
13746 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13748 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13749 nbsd_nat_target instead of inf_ptrace_target.
13750 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13753 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13755 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13758 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13760 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13761 it to the ptrace call.
13762 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13763 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13764 * arm-nbsd-nat.c (store_register): Likewise.
13765 * arm-nbsd-nat.c (store_regs): Likewise.
13766 * arm-nbsd-nat.c (store_fp_register): Likewise.
13767 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13769 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13771 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13772 nbsd_nat_target instead of inf_ptrace_target.
13773 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13776 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13778 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13779 it to the ptrace call.
13780 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13782 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13784 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13785 it to the ptrace call.
13786 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13788 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13790 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13792 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13794 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13796 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13797 instead of inf_ptrace_target.
13798 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13801 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13803 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13806 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13808 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13811 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13813 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13816 2020-03-13 Tom Tromey <tom@tromey.com>
13818 * value.h (val_print): Don't declare.
13819 * valprint.h (val_print_array_elements)
13820 (val_print_scalar_formatted, generic_val_print): Don't declare.
13821 * valprint.c (generic_val_print_array): Take a struct value.
13822 (generic_val_print_ptr, generic_val_print_memberptr)
13823 (generic_val_print_bool, generic_val_print_int)
13824 (generic_val_print_char, generic_val_print_complex)
13825 (generic_val_print): Remove.
13826 (generic_value_print): Update.
13827 (do_val_print): Remove unused parameters. Don't call
13829 (val_print): Remove.
13830 (common_val_print): Update. Don't call value_check_printable.
13831 (val_print_scalar_formatted, val_print_array_elements): Remove.
13832 * rust-lang.c (rust_val_print): Remove.
13833 (rust_language_defn): Update.
13834 * p-valprint.c (pascal_val_print): Remove.
13835 (pascal_value_print_inner): Update.
13836 (pascal_object_print_val_fields, pascal_object_print_val):
13838 (pascal_object_print_static_field): Update.
13839 * p-lang.h (pascal_val_print): Don't declare.
13840 * p-lang.c (pascal_language_defn): Update.
13841 * opencl-lang.c (opencl_language_defn): Update.
13842 * objc-lang.c (objc_language_defn): Update.
13843 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13844 * m2-lang.h (m2_val_print): Don't declare.
13845 * m2-lang.c (m2_language_defn): Update.
13846 * language.h (struct language_defn) <la_val_print>: Remove.
13847 * language.c (unk_lang_value_print_inner): Rename. Change
13849 (unknown_language_defn, auto_language_defn): Update.
13850 * go-valprint.c (go_val_print): Remove.
13851 * go-lang.h (go_val_print): Don't declare.
13852 * go-lang.c (go_language_defn): Update.
13853 * f-valprint.c (f_val_print): Remove.
13854 * f-lang.h (f_value_print): Don't declare.
13855 * f-lang.c (f_language_defn): Update.
13856 * d-valprint.c (d_val_print): Remove.
13857 * d-lang.h (d_value_print): Don't declare.
13858 * d-lang.c (d_language_defn): Update.
13859 * cp-valprint.c (cp_print_value_fields)
13860 (cp_print_value_fields_rtti, cp_print_value): Remove.
13861 (cp_print_static_field): Update.
13862 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13863 (c_val_print_struct, c_val_print_union, c_val_print_int)
13864 (c_val_print_memberptr, c_val_print): Remove.
13865 * c-lang.h (c_val_print_array, cp_print_value_fields)
13866 (cp_print_value_fields_rtti): Don't declare.
13867 * c-lang.c (c_language_defn, cplus_language_defn)
13868 (asm_language_defn, minimal_language_defn): Update.
13869 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13870 (ada_val_print_enum): Take a struct value.
13871 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13872 (ada_val_print): Remove.
13873 (ada_value_print_1): Update.
13874 (printable_val_type): Remove.
13875 * ada-lang.h (ada_val_print): Don't declare.
13876 * ada-lang.c (ada_language_defn): Update.
13878 2020-03-13 Tom Tromey <tom@tromey.com>
13880 * valprint.c (do_val_print): Update.
13881 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13883 (value_to_value_object_no_release): Declare.
13884 * python/py-value.c (value_to_value_object_no_release): New
13886 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13888 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13890 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13892 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13894 (gdbscm_apply_val_pretty_printer): Take a struct value.
13895 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13897 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13899 * extension-priv.h (struct extension_language_ops)
13900 <apply_val_pretty_printer>: Take a struct value.
13901 * cp-valprint.c (cp_print_value): Create a struct value.
13902 (cp_print_value): Update.
13904 2020-03-13 Tom Tromey <tom@tromey.com>
13906 * ada-valprint.c (print_field_values): Call common_val_print.
13908 2020-03-13 Tom Tromey <tom@tromey.com>
13910 * ada-valprint.c (val_print_packed_array_elements): Remove
13911 bitoffset and val parameters. Call common_val_print.
13912 (ada_val_print_string): Remove offset, address, and original_value
13914 (ada_val_print_array): Update.
13915 (ada_value_print_array): New function.
13916 (ada_value_print_1): Call it.
13918 2020-03-13 Tom Tromey <tom@tromey.com>
13920 * ada-valprint.c (ada_value_print): Use common_val_print.
13922 2020-03-13 Tom Tromey <tom@tromey.com>
13924 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13926 2020-03-13 Tom Tromey <tom@tromey.com>
13928 * ada-valprint.c (ada_value_print_num): New function.
13929 (ada_value_print_1): Use it.
13931 2020-03-13 Tom Tromey <tom@tromey.com>
13933 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13935 2020-03-13 Tom Tromey <tom@tromey.com>
13937 * ada-valprint.c (ada_value_print_ptr): New function.
13938 (ada_value_print_1): Use it.
13940 2020-03-13 Tom Tromey <tom@tromey.com>
13942 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13943 call common_val_print.
13944 (ada_val_print_1): Update.
13945 (ada_value_print_1): New function.
13946 (ada_value_print_inner): Rewrite.
13948 2020-03-13 Tom Tromey <tom@tromey.com>
13950 * cp-valprint.c (cp_print_value_fields): Update.
13951 (cp_print_value): New function.
13953 2020-03-13 Tom Tromey <tom@tromey.com>
13955 * m2-valprint.c (m2_value_print_inner): Use
13956 cp_print_value_fields.
13957 * cp-valprint.c (cp_print_value_fields): New function.
13958 * c-valprint.c (c_value_print_struct): New function.
13959 (c_value_print_inner): Use c_value_print_struct.
13960 * c-lang.h (cp_print_value_fields): Declare.
13962 2020-03-13 Tom Tromey <tom@tromey.com>
13964 * c-valprint.c (c_value_print_array): New function.
13965 (c_value_print_inner): Use it.
13967 2020-03-13 Tom Tromey <tom@tromey.com>
13969 * c-valprint.c (c_value_print_memberptr): New function.
13970 (c_value_print_inner): Use it.
13972 2020-03-13 Tom Tromey <tom@tromey.com>
13974 * c-valprint.c (c_value_print_int): New function.
13975 (c_value_print_inner): Use it.
13977 2020-03-13 Tom Tromey <tom@tromey.com>
13979 * c-valprint.c (c_value_print_ptr): New function.
13980 (c_value_print_inner): Use it.
13982 2020-03-13 Tom Tromey <tom@tromey.com>
13984 * c-valprint.c (c_value_print_inner): Rewrite.
13986 2020-03-13 Tom Tromey <tom@tromey.com>
13988 * valprint.c (generic_value_print_complex): New function.
13989 (generic_value_print): Use it.
13991 2020-03-13 Tom Tromey <tom@tromey.com>
13993 * valprint.c (generic_val_print_float): Don't call
13994 val_print_scalar_formatted.
13995 (generic_val_print, generic_value_print): Update.
13997 2020-03-13 Tom Tromey <tom@tromey.com>
13999 * valprint.c (generic_value_print_char): New function
14000 (generic_value_print): Use it.
14002 2020-03-13 Tom Tromey <tom@tromey.com>
14004 * valprint.c (generic_value_print_int): New function.
14005 (generic_value_print): Use it.
14007 2020-03-13 Tom Tromey <tom@tromey.com>
14009 * valprint.c (generic_value_print_bool): New function.
14010 (generic_value_print): Use it.
14012 2020-03-13 Tom Tromey <tom@tromey.com>
14014 * valprint.c (generic_val_print_func): Simplify.
14015 (generic_val_print, generic_value_print): Update.
14017 2020-03-13 Tom Tromey <tom@tromey.com>
14019 * valprint.c (generic_val_print_flags): Remove.
14020 (generic_val_print, generic_value_print): Update.
14021 (val_print_type_code_flags): Add original_value parameter.
14023 2020-03-13 Tom Tromey <tom@tromey.com>
14025 * valprint.c (generic_val_print): Update.
14026 (generic_value_print): Update.
14027 * valprint.c (generic_val_print_enum): Don't call
14028 val_print_scalar_formatted.
14030 2020-03-13 Tom Tromey <tom@tromey.com>
14032 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14033 * valprint.c (generic_value_print_ptr): New function.
14035 2020-03-13 Tom Tromey <tom@tromey.com>
14037 * valprint.c (generic_value_print): Rewrite.
14039 2020-03-13 Tom Tromey <tom@tromey.com>
14041 * p-valprint.c (pascal_object_print_value_fields)
14042 (pascal_object_print_value): New functions.
14044 2020-03-13 Tom Tromey <tom@tromey.com>
14046 * p-valprint.c (pascal_value_print_inner): Rewrite.
14048 2020-03-13 Tom Tromey <tom@tromey.com>
14050 * f-valprint.c (f_value_print_innner): Rewrite.
14052 2020-03-13 Tom Tromey <tom@tromey.com>
14054 * m2-valprint.c (m2_print_unbounded_array): New overload.
14055 (m2_print_unbounded_array): Update.
14056 (m2_print_array_contents): Take a struct value.
14057 (m2_value_print_inner): Rewrite.
14059 2020-03-13 Tom Tromey <tom@tromey.com>
14061 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14062 (d_value_print_inner): New function.
14063 * d-lang.h (d_value_print_inner): Declare.
14064 * d-lang.c (d_language_defn): Use d_value_print_inner.
14066 2020-03-13 Tom Tromey <tom@tromey.com>
14068 * go-valprint.c (go_value_print_inner): New function.
14069 * go-lang.h (go_value_print_inner): Declare.
14070 * go-lang.c (go_language_defn): Use go_value_print_inner.
14072 2020-03-13 Tom Tromey <tom@tromey.com>
14074 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14076 (rust_val_print): Rewrite.
14077 (rust_value_print_inner): New function, from rust_val_print.
14078 (rust_language_defn): Use rust_value_print_inner.
14080 2020-03-13 Tom Tromey <tom@tromey.com>
14082 * ada-valprint.c (ada_value_print_inner): New function.
14083 * ada-lang.h (ada_value_print_inner): Declare.
14084 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14086 2020-03-13 Tom Tromey <tom@tromey.com>
14088 * f-valprint.c (f_value_print_innner): New function.
14089 * f-lang.h (f_value_print_innner): Declare.
14090 * f-lang.c (f_language_defn): Use f_value_print_innner.
14092 2020-03-13 Tom Tromey <tom@tromey.com>
14094 * p-valprint.c (pascal_value_print_inner): New function.
14095 * p-lang.h (pascal_value_print_inner): Declare.
14096 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14098 2020-03-13 Tom Tromey <tom@tromey.com>
14100 * m2-valprint.c (m2_value_print_inner): New function.
14101 * m2-lang.h (m2_value_print_inner): Declare.
14102 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14104 2020-03-13 Tom Tromey <tom@tromey.com>
14106 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14107 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14108 * c-valprint.c (c_value_print_inner): New function.
14109 * c-lang.h (c_value_print_inner): Declare.
14110 * c-lang.c (c_language_defn, cplus_language_defn)
14111 (asm_language_defn, minimal_language_defn): Use
14112 c_value_print_inner.
14114 2020-03-13 Tom Tromey <tom@tromey.com>
14116 * p-valprint.c (pascal_object_print_value_fields): Now static.
14117 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14119 2020-03-13 Tom Tromey <tom@tromey.com>
14121 * c-valprint.c (c_val_print_array): Simplify.
14123 2020-03-13 Tom Tromey <tom@tromey.com>
14125 * valprint.c (value_print_array_elements): New function.
14126 * valprint.h (value_print_array_elements): Declare.
14128 2020-03-13 Tom Tromey <tom@tromey.com>
14130 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14131 * mips-tdep.c (mips_print_register): Use
14132 value_print_scalar_formatted.
14134 2020-03-13 Tom Tromey <tom@tromey.com>
14136 * valprint.h (value_print_scalar_formatted): Declare.
14137 * valprint.c (value_print_scalar_formatted): New function.
14139 2020-03-13 Tom Tromey <tom@tromey.com>
14141 * valprint.h (generic_value_print): Declare.
14142 * valprint.c (generic_value_print): New function.
14144 2020-03-13 Tom Tromey <tom@tromey.com>
14146 * valprint.c (do_val_print): Call la_value_print_inner, if
14148 * rust-lang.c (rust_language_defn): Update.
14149 * p-lang.c (pascal_language_defn): Update.
14150 * opencl-lang.c (opencl_language_defn): Update.
14151 * objc-lang.c (objc_language_defn): Update.
14152 * m2-lang.c (m2_language_defn): Update.
14153 * language.h (struct language_defn) <la_value_print_inner>: New
14155 * language.c (unknown_language_defn, auto_language_defn): Update.
14156 * go-lang.c (go_language_defn): Update.
14157 * f-lang.c (f_language_defn): Update.
14158 * d-lang.c (d_language_defn): Update.
14159 * c-lang.c (c_language_defn, cplus_language_defn)
14160 (asm_language_defn, minimal_language_defn): Update.
14161 * ada-lang.c (ada_language_defn): Update.
14163 2020-03-13 Tom Tromey <tom@tromey.com>
14165 * c-valprint.c (c_value_print): Use common_val_print.
14167 2020-03-13 Tom Tromey <tom@tromey.com>
14169 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14171 2020-03-13 Tom Tromey <tom@tromey.com>
14173 * f-valprint.c (f77_print_array_1, f_val_print): Use
14176 2020-03-13 Tom Tromey <tom@tromey.com>
14178 * riscv-tdep.c (riscv_print_one_register_info): Use
14181 2020-03-13 Tom Tromey <tom@tromey.com>
14183 * mi/mi-main.c (output_register): Use common_val_print.
14185 2020-03-13 Tom Tromey <tom@tromey.com>
14187 * infcmd.c (default_print_one_register_info): Use
14190 2020-03-13 Tom Tromey <tom@tromey.com>
14192 * valprint.h (common_val_print_checked): Declare.
14193 * valprint.c (common_val_print_checked): New function.
14194 * stack.c (print_frame_arg): Use common_val_print_checked.
14196 2020-03-13 Tom Tromey <tom@tromey.com>
14198 * valprint.c (do_val_print): New function, from val_print.
14199 (val_print): Use do_val_print.
14200 (common_val_print): Use do_val_print.
14202 2020-03-13 Tom Tromey <tom@tromey.com>
14204 * valprint.c (value_print): Use scoped_value_mark.
14206 2020-03-13 Tom de Vries <tdevries@suse.de>
14209 * psymtab.c (partial_symtab::partial_symtab): Don't set
14210 globals_offset and statics_offset. Push element onto
14211 current_global_psymbols and current_static_psymbols stacks.
14212 (concat): New function.
14213 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14214 element from current_global_psymbols and current_static_psymbols
14215 stacks. Concat popped elements to global_psymbols and
14217 (add_psymbol_to_list): Use current_global_psymbols and
14218 current_static_psymbols stacks.
14219 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14220 current_static_psymbols fields.
14222 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14224 * corelow.c (sniff_core_bfd): Remove.
14225 (class core_target) <m_core_vec>: Remove.
14226 (core_target::core_target): Update.
14227 (core_file_fns): Remove.
14228 (deprecated_add_core_fns): Remove.
14229 (default_core_sniffer): Remove.
14230 (sniff_core_bfd): Remove.
14231 (default_check_format): Remove.
14232 (gdb_check_format): Remove.
14233 (core_target_open): Update.
14234 (core_target::get_core_register_section): Update.
14235 (get_core_registers_cb): Update.
14236 (core_target::fetch_registers): Update.
14237 * gdbcore.h (struct core_fns): Remove.
14238 (deprecated_add_core_fns): Remove.
14239 (default_core_sniffer): Remove.
14240 (default_check_format): Remove.
14242 2020-03-12 Tom Tromey <tom@tromey.com>
14244 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14246 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14248 2020-03-12 Tom Tromey <tom@tromey.com>
14250 * remote.c (remote_target::download_tracepoint)
14251 (remote_target::enable_tracepoint)
14252 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14253 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14256 2020-03-12 Tom Tromey <tom@tromey.com>
14258 * symfile-mem.c: Update CORE_ADDR size assert.
14260 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14262 * selftest.m4: Move to gdbsupport/.
14263 * acinclude.m4: Update path to selftest.m4.
14265 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14267 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14268 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14269 gdbarch-selfselftests.c and selftest-arch.c.
14270 (SUBDIR_UNITTESTS_OBS): Rename to...
14271 (SELFTESTS_OBS): ... this.
14272 (COMMON_SFILES): Remove disasm-selftests.c and
14273 gdbarch-selftests.c.
14274 * configure.ac: Don't add selftest-arch.{c,o} to
14276 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14277 preprocessor conditions.
14279 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14281 * configure.ac: Don't source bfd/development.sh.
14282 * selftest.m4: Modify comment.
14283 * configure: Re-generate.
14285 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14287 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14288 not "true" or "false".
14289 * configure: Re-generate.
14291 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14293 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14294 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14295 renamed to arm_nbsd_supply_gregset.
14296 (fetch_register): Update to call arm_nbsd_supply_gregset.
14297 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14298 (arm_netbsd_nat_target::fetch_registers): Update.
14299 (fetch_elfcore_registers): Removed.
14300 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14301 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14302 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14303 not require NetBSD system headers.
14304 (arm_nbsd_regset): New struct.
14305 (arm_nbsd_iterate_over_regset_sections): New function.
14306 (arm_netbsd_init_abi_common): Updated to call
14307 set_gdbarch_iterate_over_regset_sections.
14308 * arm-nbsd-tdep.h: New file.
14310 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14312 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14315 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14317 * configure: Re-generate.
14319 2020-03-11 Tom Tromey <tromey@adacore.com>
14321 * ada-typeprint.c (print_choices): Fix comment.
14323 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14325 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14326 previous item in the list, when the list has no items.
14328 2020-03-11 Tom de Vries <tdevries@suse.de>
14330 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14331 PROP_LOCLIST handling code.
14333 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14335 * buildsym-legacy.c (record_line): Pass extra parameter to
14337 * buildsym.c (buildsym_compunit::record_line): Take an extra
14338 parameter, reduce duplication in the line table, and record the
14339 is_stmt flag in the line table.
14340 * buildsym.h (buildsym_compunit::record_line): Add extra
14342 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14343 non-statement lines.
14344 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14345 this to the symtab builder.
14346 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14347 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14348 through to dwarf_record_line_1.
14349 * infrun.c (process_event_stop_test): When stepping, don't stop at
14350 a non-statement instruction, and only refresh the step info when
14351 we land in the middle of a line's range. Also add an extra
14353 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14355 * record-btrace.c (btrace_find_line_range): Only record lines
14356 marked as is-statement.
14357 * stack.c (frame_show_address): Show the frame address if we are
14358 in a non-statement sal.
14359 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14360 (maintenance_print_one_line_table): Print a header for the is_stmt
14361 column, and include is_stmt information in the output.
14362 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14363 preference to non-statements.
14364 (find_pcs_for_symtab_line): Prefer is-statement entries.
14365 (find_line_common): Likewise.
14366 * symtab.h (struct linetable_entry): Add is_stmt field.
14367 (struct symtab_and_line): Likewise.
14368 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14369 arranging the line table.
14371 2020-03-07 Tom de Vries <tdevries@suse.de>
14373 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14376 2020-03-07 Tom Tromey <tom@tromey.com>
14378 * valops.c (value_literal_complex): Remove obsolete comment.
14379 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14382 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14384 * infrun.h: Forward-declare thread_info.
14385 (set_step_info): Add thread_info parameter, add doc.
14386 * infrun.c (set_step_info): Add thread_info parameter, move doc
14388 * infrun.c (process_event_stop_test): Pass thread to
14389 set_step_info call.
14390 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14392 (prepare_one_step): Add thread_info parameter, pass it to
14393 set_step_frame and prepare_one_step (recursive) call.
14394 (step_1): Pass thread to prepare_one_step call.
14395 (step_command_fsm::should_stop): Pass thread to
14397 (until_next_fsm): Pass thread to set_step_frame call.
14398 (finish_command): Pass thread to set_step_info call.
14400 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14402 * windows-tdep.c (windows_solib_create_inferior_hook):
14403 Check if inferior is running.
14405 2020-03-06 Tom de Vries <tdevries@suse.de>
14407 * NEWS: Fix "the the".
14410 2020-03-06 Tom de Vries <tdevries@suse.de>
14412 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14414 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14416 * .dir-locals.el: Add a comment referencing the other copies of
14419 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14421 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14424 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14426 * .gitattributes: New file.
14428 2020-03-04 Tom Tromey <tom@tromey.com>
14430 * symmisc.c (print_symbol_bcache_statistics)
14431 (print_objfile_statistics): Update.
14432 * symfile.c (allocate_symtab): Use intern.
14433 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14434 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14435 macro_cache>: Remove.
14436 <string_cache>: New member.
14437 (struct objfile) <intern>: New methods.
14438 * elfread.c (elf_symtab_read): Use intern.
14439 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14440 (dwarf2_compute_name, dwarf2_physname)
14441 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14443 (guess_partial_die_structure_name): Update.
14444 (partial_die_info::fixup): Intern name.
14445 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14447 (dwarf2_name): Intern name. Update.
14448 * buildsym.c (buildsym_compunit::get_macro_table): Use
14451 2020-03-04 Tom Tromey <tom@tromey.com>
14453 * jit.c (bfd_open_from_target_memory): Make "target" const.
14454 * corefile.c (gnutarget): Now const.
14455 * gdbcore.h (gnutarget): Now const.
14457 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14459 * NEWS: Mention support for WOW64 processes.
14460 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14461 (amd64_windows_segment_register_p): Remove static.
14462 (_initialize_amd64_windows_nat): Update.
14463 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14464 * i386-windows-nat.c (context_offset): Update.
14465 (i386_mappings): Rename and remove static.
14466 (i386_windows_segment_register_p): Remove static.
14467 (_initialize_i386_windows_nat): Update.
14468 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14469 (STATUS_WX86_SINGLE_STEP): New macro.
14470 (EnumProcessModulesEx): New macro.
14471 (Wow64SuspendThread): New macro.
14472 (Wow64GetThreadContext): New macro.
14473 (Wow64SetThreadContext): New macro.
14474 (Wow64GetThreadSelectorEntry): New macro.
14475 (windows_set_context_register_offsets): Add static.
14476 (windows_set_segment_register_p): Likewise.
14477 (windows_add_thread): Adapt for WOW64 processes.
14478 (windows_fetch_one_register): Likewise.
14479 (windows_nat_target::fetch_registers): Likewise.
14480 (windows_store_one_register): Likewise.
14481 (display_selector): Likewise.
14482 (display_selectors): Likewise.
14483 (handle_exception): Likewise.
14484 (windows_continue): Likewise.
14485 (windows_nat_target::resume): Likewise.
14486 (windows_add_all_dlls): Likewise.
14487 (do_initial_windows_stuff): Likewise.
14488 (windows_nat_target::attach): Likewise.
14489 (windows_get_exec_module_filename): Likewise.
14490 (windows_nat_target::create_inferior): Likewise.
14491 (windows_xfer_siginfo): Likewise.
14492 (_initialize_loadable): Initialize Wow64SuspendThread,
14493 Wow64GetThreadContext, Wow64SetThreadContext,
14494 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14495 * windows-nat.h (windows_set_context_register_offsets):
14496 Remove declaration.
14497 (windows_set_segment_register_p): Likewise.
14498 (i386_windows_segment_register_p): Add declaration.
14499 (amd64_windows_segment_register_p): Likewise.
14501 2020-03-04 Luis Machado <luis.machado@linaro.org>
14503 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14504 in "info registers" for AArch64/ARM.
14506 The change caused "info registers" to not print GPR's.
14510 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14512 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14513 when reg->group is empty and reggroup is not.
14515 2020-03-03 Tom Tromey <tromey@adacore.com>
14517 * dwarf2/frame.c (struct dwarf2_frame_cache)
14518 <checked_tailcall_bottom, entry_cfa_sp_offset,
14519 entry_cfa_sp_offset_p>: Remove members.
14520 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14521 (dwarf2_frame_prev_register): Don't call
14522 dwarf2_tailcall_sniffer_first.
14523 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14524 * frame-unwind.c (add_unwinder): New fuction.
14525 (frame_unwind_init): Use it. Add tailcall unwinder.
14527 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14528 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14530 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14531 value should be printed as true.
14533 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14535 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14536 (windows_init_abi): Set and use windows_so_ops.
14538 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14540 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14541 when verifying if dealing with a convenience variable.
14543 2020-03-03 Luis Machado <luis.machado@linaro.org>
14545 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14547 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14549 * infrun.c (gdbarch_supports_displaced_stepping): New.
14550 (use_displaced_stepping): Break up conditions in smaller pieces.
14551 Use gdbarch_supports_displaced_stepping.
14552 (displaced_step_prepare_throw): Use
14553 gdbarch_supports_displaced_stepping.
14555 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14557 * NEWS: Mention new behaviour of the history filename.
14558 * top.c (write_history_p): Add comment.
14559 (show_write_history_p): Add header comment, give a different
14560 message when history writing is on, but the history filename is
14562 (history_filename): Add comment.
14563 (history_filename_empty): New function.
14564 (show_history_filename): Add header comment, give a different
14565 message when the filename is empty.
14566 (init_history): Compare history_filename against nullptr, and only
14567 read history if the filename is not empty.
14568 (set_history_filename): Add header comment, and only make
14569 non-empty filenames absolute.
14570 (init_main): Make the filename argument to 'set history filename'
14573 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14575 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14576 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14577 (fetch_fp_register): Update.
14578 (fetch_fp_regs): Update.
14579 (store_fp_register): Update.
14580 (store_fp_regs): Update.
14581 (arm_netbsd_nat_target::read_description): New function.
14582 (fetch_elfcore_registers): Update.
14584 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14586 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14587 general_thread if the stop reply is missing a thread-id.
14588 (remote_target::process_stop_reply): Use the first non-exited
14589 thread if the target didn't pass a thread-id.
14590 * infrun.c (do_target_wait): Move call to
14591 switch_to_inferior_no_thread to ....
14592 (do_target_wait_1): ... here.
14594 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14596 * debuginfod-support.c: Include defs.h first.
14598 2020-02-28 Tom de Vries <tdevries@suse.de>
14600 * symfile.c (set_initial_language): Use default language for lookup.
14602 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14604 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14605 reader variable, pass `this` to read_cutu_die_from_dwo.
14607 2020-02-27 Aaron Merey <amerey@redhat.com>
14609 * source.c (open_source_file): Check for nullptr when computing
14612 2020-02-27 Tom Tromey <tromey@adacore.com>
14614 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14616 (dwarf2_add_field): Don't update nfields.
14617 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14619 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14621 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14624 2020-02-26 Tom Tromey <tom@tromey.com>
14626 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14627 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14628 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14629 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14632 2020-02-26 Tom Tromey <tom@tromey.com>
14634 * dwarf2/index-write.c (psym_index_map): Change type.
14635 (add_address_entry_worker, write_one_signatured_type)
14636 (recursively_count_psymbols, recursively_write_psymbols)
14637 (class debug_names, psyms_seen_size, write_gdbindex)
14638 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14640 2020-02-26 Aaron Merey <amerey@redhat.com>
14642 * Makefile.in: Handle optional debuginfod support.
14644 * README: Add --with-debuginfod summary.
14645 * config.in: Regenerate.
14646 * configure: Regenerate.
14647 * configure.ac: Handle optional debuginfod support.
14648 * debuginfod-support.c: debuginfod helper functions.
14649 * debuginfod-support.h: Ditto.
14650 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14652 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14653 when a dwz file cannot be found.
14654 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14655 debuginfo file cannot be found.
14656 * source.c (open_source_file): Query debuginfod servers when a
14657 source file cannot be found.
14658 * top.c (print_gdb_configuration): Include
14659 --{with,without}-debuginfod in the output.
14661 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14663 * thread.c (thr_try_catch_cmd): Print thread name.
14665 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14667 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14668 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14669 dwarf2_fetch_die_type_sect_off): Move to...
14670 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14671 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14672 dwarf2_fetch_die_type_sect_off): ... here.
14673 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14674 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14675 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14677 2020-02-26 Tom de Vries <tdevries@suse.de>
14680 * symfile.c (set_initial_language): Exit-early if
14681 language_mode == language_mode_manual.
14683 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14685 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14686 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14687 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14689 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14691 * gdbtypes.c (create_array_type_with_stride): Handle negative
14693 * valarith.c (value_subscripted_rvalue): Likewise.
14695 2020-02-25 Luis Machado <luis.machado@linaro.org>
14697 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14699 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14701 * loc.h (dwarf2_get_die_type): Move to...
14702 * read.h (dwarf2_get_die_type): ... here.
14703 * read.c (dwarf2_get_die_type): Move doc to header.
14705 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14707 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14708 'gnulib/Makefile.in' to the list.
14710 2020-02-24 Tom Tromey <tom@tromey.com>
14712 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14714 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14717 2020-02-24 Tom Tromey <tom@tromey.com>
14719 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14721 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14722 (dw2_do_instantiate_symtab, dw2_get_file_names)
14723 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14725 2020-02-24 Tom Tromey <tom@tromey.com>
14727 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14728 make_scoped_restore.
14729 (dwarf2_psymtab::read_symtab): Don't clear
14730 reading_partial_symbols.
14732 2020-02-24 Tom de Vries <tdevries@suse.de>
14735 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14737 2020-02-24 Tom de Vries <tdevries@suse.de>
14739 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14740 commands layout next/prev/regs.
14742 2020-02-22 Tom Tromey <tom@tromey.com>
14744 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14745 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14747 2020-02-22 Tom Tromey <tom@tromey.com>
14749 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14751 2020-02-22 Tom Tromey <tom@tromey.com>
14753 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14754 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14755 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14756 * tui/tui.c (_initialize_tui): Add usage text.
14758 2020-02-22 Tom Tromey <tom@tromey.com>
14760 * tui/tui-win.c (tui_set_focus_command)
14761 (tui_set_win_height_command): Use error_no_arg.
14762 (_initialize_tui_win): Update help text.
14763 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14765 2020-02-22 Tom Tromey <tom@tromey.com>
14767 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14768 * tui/tui-disasm.h (struct tui_disasm_window)
14769 <display_start_addr>: Declare.
14770 * tui/tui-source.h (struct tui_source_window)
14771 <display_start_addr>: Declare.
14772 * tui/tui-winsource.h (struct tui_source_window_base)
14773 <show_source_line, display_start_addr>: New methods.
14774 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14775 Rename and move to protected section.
14776 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14777 (tui_source_window_base::do_erase_source_content): Update.
14778 (tui_source_window_base::show_source_line): Now a method.
14779 (tui_source_window_base::show_source_content)
14780 (tui_source_window_base::tui_source_window_base)
14781 (tui_source_window_base::rerender)
14782 (tui_source_window_base::refill)
14783 (tui_source_window_base::do_scroll_horizontal)
14784 (tui_source_window_base::set_is_exec_point_at)
14785 (tui_source_window_base::update_breakpoint_info)
14786 (tui_source_window_base::update_exec_info): Update.
14787 * tui/tui-source.c (tui_source_window::set_contents)
14788 (tui_source_window::showing_source_p)
14789 (tui_source_window::do_scroll_vertical)
14790 (tui_source_window::location_matches_p)
14791 (tui_source_window::line_is_displayed): Update.
14792 (tui_source_window::display_start_addr): New method.
14793 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14794 (tui_disasm_window::do_scroll_vertical)
14795 (tui_disasm_window::location_matches_p): Update.
14796 (tui_disasm_window::display_start_addr): New method.
14798 2020-02-22 Tom Tromey <tom@tromey.com>
14800 * NEWS: Add entry for gdb.register_window_type.
14801 * tui/tui-layout.h (window_factory): New typedef.
14802 (tui_register_window): Declare.
14803 * tui/tui-layout.c (saved_tui_windows): New global.
14804 (tui_apply_current_layout): Use it.
14805 (tui_register_window): New function.
14806 * python/python.c (do_start_initialization): Call
14807 gdbpy_initialize_tui.
14808 (python_GdbMethods): Add "register_window_type" function.
14809 * python/python-internal.h (gdbpy_register_tui_window)
14810 (gdbpy_initialize_tui): Declare.
14811 * python/py-tui.c: New file.
14812 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14814 2020-02-22 Tom Tromey <tom@tromey.com>
14816 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14818 2020-02-22 Tom Tromey <tom@tromey.com>
14820 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14821 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14822 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14823 (tui_set_win_focus_to): Move from tui-win.c.
14825 2020-02-22 Tom Tromey <tom@tromey.com>
14827 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14829 (known_window_types): New global.
14830 (tui_get_window_by_name): Reimplement.
14831 (initialize_known_windows): New function.
14832 (validate_window_name): Rewrite.
14833 (_initialize_tui_layout): Call initialize_known_windows.
14835 2020-02-22 Tom Tromey <tom@tromey.com>
14837 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14839 * tui/tui-winsource.h (struct tui_source_window_base)
14840 <tui_source_window_base>: Remove parameter.
14841 * tui/tui-winsource.c
14842 (tui_source_window_base::tui_source_window_base): Remove
14844 (tui_source_window_base::refill): Update.
14845 * tui/tui-stack.h (struct tui_locator_window)
14846 <tui_locator_window>: Update.
14847 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14848 Default the constructor.
14849 * tui/tui-regs.h (struct tui_data_item_window)
14850 <tui_data_item_window>: Default the constructor.
14851 (struct tui_data_window) <tui_data_window>: Likewise.
14852 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14853 Default the constructor.
14854 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14855 Default the constructor.
14857 (struct tui_win_info) <tui_win_info>: Default the constructor.
14858 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14859 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14860 Default the constructor.
14862 2020-02-22 Tom Tromey <tom@tromey.com>
14864 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14865 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14866 * tui/tui-win.c (tui_resize_all): Don't call
14867 tui_delete_invisible_windows.
14868 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14870 (tui_set_layout): Update.
14871 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14872 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14873 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14875 2020-02-22 Tom Tromey <tom@tromey.com>
14877 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14880 2020-02-22 Tom Tromey <tom@tromey.com>
14882 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14884 2020-02-22 Tom Tromey <tom@tromey.com>
14886 * tui/tui-winsource.h (struct tui_source_window_iterator)
14887 <inner_iterator>: New etytypedef.
14888 <tui_source_window_iterator>: Take "end" parameter.
14889 <tui_source_window_iterator>: Take iterator.
14890 <operator*, advance>: Update.
14891 <m_iter>: Change type.
14892 <m_end>: New field.
14893 (struct tui_source_windows) <begin, end>: Update.
14894 * tui/tui-layout.c (tui_windows): New global.
14895 (tui_apply_current_layout): Clear tui_windows.
14896 (tui_layout_window::apply): Update tui_windows.
14897 * tui/tui-data.h (tui_windows): Declare.
14898 (all_tui_windows): Now inline function.
14899 (class tui_window_iterator, struct all_tui_windows): Remove.
14901 2020-02-22 Tom Tromey <tom@tromey.com>
14904 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14905 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14907 (class tui_layout_window) <get_sizes>: Likewise.
14908 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14910 <get_sizes>: Add "height" argument.
14911 <m_vertical>: New field.
14912 * tui/tui-layout.c (tui_layout_split::clone): Update.
14913 (tui_layout_split::get_sizes): Add "height" argument.
14914 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14915 (tui_new_layout_command): Parse "-horizontal".
14916 (_initialize_tui_layout): Update help string.
14917 (tui_layout_split::specification): Add "-horizontal" when needed.
14918 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14920 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14923 2020-02-22 Tom Tromey <tom@tromey.com>
14925 * tui/tui-layout.h (enum tui_adjust_result): New.
14926 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14927 (class tui_layout_window) <adjust_size>: Return
14928 tui_adjust_result. Rewrite.
14929 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14930 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14932 2020-02-22 Tom Tromey <tom@tromey.com>
14934 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14935 parameter and return types.
14936 (class tui_layout_base) <specification>: Add "depth".
14937 (class tui_layout_window) <specification>: Add "depth".
14938 (class tui_layout_split) <specification>: Add "depth".
14939 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14941 (tui_new_layout_command): Parse sub-layouts.
14942 (_initialize_tui_layout): Update help string.
14943 (tui_layout_window::specification): Add "depth".
14944 (add_layout_command): Update.
14946 2020-02-22 Tom Tromey <tom@tromey.com>
14948 * NEWS: Add "tui new-layout" item.
14949 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14950 Add new-layout command to help text.
14951 (validate_window_name): New function.
14952 (tui_new_layout_command): New function.
14953 (_initialize_tui_layout): Register "new-layout".
14954 (tui_layout_window::specification): New method.
14955 (tui_layout_window::specification): New method.
14956 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14958 (class tui_layout_window) <specification>: New method.
14959 (class tui_layout_split) <specification>: New method.
14961 2020-02-22 Tom Tromey <tom@tromey.com>
14963 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14964 * tui/tui-win.c (window_name_completer): Update comment.
14965 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14967 (class tui_layout_window) <replace_window>: Likewise.
14968 (class tui_layout_split) <replace_window>: Likewise.
14969 (tui_set_layout): Don't declare.
14970 (tui_set_initial_layout): Declare function.
14971 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14972 (asm_regs_layout): New globals.
14973 (tui_current_layout, show_layout): Remove.
14974 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14975 (find_layout, tui_apply_layout): New function.
14976 (layout_completer): Remove.
14977 (tui_next_layout): Reimplement.
14978 (tui_next_layout_command): New function.
14979 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14980 (tui_regs_layout): Reimplement.
14981 (tui_regs_layout_command): New function.
14982 (extract_display_start_addr): Rewrite.
14983 (next_layout, prev_layout): Remove.
14984 (tui_layout_window::replace_window): New method.
14985 (tui_layout_split::replace_window): New method.
14986 (destroy_layout): New function.
14987 (layout_list): New global.
14988 (add_layout_command): New function.
14989 (initialize_layouts): Update.
14990 (tui_layout_command): New function.
14991 (_initialize_tui_layout): Install "layout" commands.
14992 * tui/tui-data.h (enum tui_layout_type): Remove.
14993 (tui_current_layout): Don't declare.
14995 2020-02-22 Tom Tromey <tom@tromey.com>
14997 * tui/tui-regs.c (tui_reg_layout): Remove.
14998 (tui_reg_command): Use tui_regs_layout.
14999 * tui/tui-layout.h (tui_reg_command): Declare.
15000 * tui/tui-layout.c (tui_reg_command): New function.
15002 2020-02-22 Tom Tromey <tom@tromey.com>
15004 * tui/tui.c (tui_rl_delete_other_windows): Call
15005 tui_remove_some_windows.
15006 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15008 (class tui_layout_window) <remove_windows>: New method.
15009 (class tui_layout_split) <remove_windows>: Declare.
15010 (tui_remove_some_windows): Declare.
15011 * tui/tui-layout.c (tui_remove_some_windows): New function.
15012 (tui_layout_split::remove_windows): New method.
15014 2020-02-22 Tom Tromey <tom@tromey.com>
15016 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15017 * tui/tui-layout.h (tui_next_layout): Declare.
15018 * tui/tui-layout.c (tui_next_layout): New function.
15020 2020-02-22 Tom Tromey <tom@tromey.com>
15022 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15023 correct coordinates.
15025 2020-02-22 Tom Tromey <tom@tromey.com>
15027 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15028 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15031 2020-02-22 Tom Tromey <tom@tromey.com>
15033 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15034 TUI_DISASM_WIN, not tui_win_list.
15036 2020-02-22 Tom Tromey <tom@tromey.com>
15038 * valprint.c (generic_val_print_enum_1)
15039 (val_print_type_code_flags): Style member names.
15040 * rust-lang.c (val_print_struct, rust_print_enum)
15041 (rust_print_struct_def, rust_internal_print_type): Style member
15043 * p-valprint.c (pascal_object_print_value_fields): Style member
15044 names. Only call fprintf_symbol_filtered for static members.
15045 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15046 * f-valprint.c (f_val_print): Style member names.
15047 * f-typeprint.c (f_type_print_base): Style member names.
15048 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15049 call fprintf_symbol_filtered for static members.
15050 (cp_print_class_member): Style member names.
15051 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15053 * ada-valprint.c (ada_print_scalar): Style enum names.
15054 (ada_val_print_enum): Likewise.
15055 * ada-typeprint.c (print_enum_type): Style enum names.
15057 2020-02-21 Tom Tromey <tom@tromey.com>
15059 * psympriv.h (struct partial_symtab): Update comment.
15061 2020-02-21 Tom Tromey <tromey@adacore.com>
15063 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15066 2020-02-21 Tom de Vries <tdevries@suse.de>
15069 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15070 if dependencies[i]->user != NULL.
15072 2020-02-21 Ali Tamur <tamur@google.com>
15074 * dwarf2/read.c (dwarf2_name): Add null check.
15076 2020-02-20 Tom Tromey <tom@tromey.com>
15078 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15079 ">=", in binary search.
15080 (dwarf2_find_containing_comp_unit): New overload.
15081 (run_test): New self-test.
15082 (_initialize_dwarf2_read): Register new test.
15084 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
15086 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15087 * riscv-tdep.h: Likewise.
15088 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15090 * features/riscv/64bit-csr.xml: Regenerated.
15092 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15093 Tom Tromey <tom@tromey.com>
15095 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15096 of 'fputc_unfiltered'.
15097 (putchar_unfiltered): Call 'fputc_unfiltered'.
15098 (fputc_unfiltered): Call 'fputs_unfiltered'.
15100 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15102 * config.in: Regenerate.
15103 * configure: Regenerate.
15104 * configure.ac: Add --with-python-libdir option.
15105 * main.c: Use WITH_PYTHON_LIBDIR.
15107 2020-02-19 Tom Tromey <tom@tromey.com>
15109 * symtab.c (general_symbol_info::compute_and_set_names): Use
15110 obstack_strndup. Simplify call to symbol_set_demangled_name.
15112 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
15114 * dwarf2/read.c (allocate_signatured_type_table,
15115 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15116 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15117 Remove objfile parameter, update all callers.
15119 2020-02-19 Doug Evans <dje@google.com>
15122 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15123 rust_enum_variant calculation.
15125 2020-02-19 Tom Tromey <tromey@adacore.com>
15127 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15129 2020-02-19 Tom Tromey <tromey@adacore.com>
15131 * ada-lang.c (cache_symbol): Use obstack_strdup.
15133 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15135 * configure: Regenerate.
15137 2020-02-19 Tom Tromey <tromey@adacore.com>
15139 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15142 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
15144 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15146 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15148 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15149 if GDBSERVER is not defined.
15150 (riscv_tdesc_cache): Likewise, also store const target_desc.
15151 (STATIC_IN_GDB): Define.
15152 (riscv_create_target_description): Update declaration with
15154 (riscv_lookup_target_description): New function, only define if
15155 GDBSERVER is not defined.
15156 * arch/riscv.h (riscv_create_target_description): Declare only
15157 when GDBSERVER is defined.
15158 (riscv_lookup_target_description): New declaration when GDBSERVER
15160 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15161 (riscv_linux_read_features): ...this, and return
15162 riscv_gdbarch_features instead of target_desc.
15163 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15164 (riscv_linux_read_description): Rename to...
15165 (riscv_linux_read_features): ...this.
15166 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15167 Update to use riscv_gdbarch_features and
15168 riscv_lookup_target_description.
15169 * riscv-tdep.c (riscv_find_default_target_description): Use
15170 riscv_lookup_target_description instead of
15171 riscv_create_target_description.
15173 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15175 * valprint.c (generic_val_print_enum_1): When printing a flag
15176 enum with value 0 and there is no enumerator with value 0, print
15177 just "0" instead of "(unknown: 0x0)".
15179 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15181 * valprint.c (generic_val_print_enum_1): Print unknown part of
15184 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15186 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15187 flag enums to contain duplicate enumerators.
15188 * valprint.c (generic_val_print_enum_1): Update comment.
15190 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15192 * dwarf2/read.c: Include "count-one-bits.h".
15193 (update_enumeration_type_from_children): If an enumerator has
15194 multiple bits set, don't treat the enumeration as a "flag enum".
15195 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15196 of flag enums have 0 or 1 bit set.
15198 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15200 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15202 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15203 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15204 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15205 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15206 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15208 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15210 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15212 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15214 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15215 displaced_step_closure_up.
15216 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15217 (struct displaced_step_closure_up):
15218 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15219 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15220 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15222 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15223 * gdbarch.c, gdbarch.h: Re-generate.
15224 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15225 displaced_step_closure_up.
15226 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15227 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15228 * infrun.h (displaced_step_closure_up): New type alias.
15229 (struct displaced_step_inferior_state) <step_closure>: Change
15230 type to displaced_step_closure_up.
15231 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15232 displaced_step_closure_up.
15233 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15235 2020-02-14 Tom Tromey <tom@tromey.com>
15237 * minidebug.c (gnu_debug_key): New global.
15238 (find_separate_debug_file_in_section): Use it.
15240 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15242 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15244 * gdbarch.c: Re-generate.
15245 * gdbarch.h: Re-generate.
15246 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15248 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15249 type to std::unique_ptr.
15250 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15251 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15252 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15253 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15254 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15255 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15256 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15257 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15258 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15260 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15262 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15264 (displaced_step_clear): Rename to...
15265 (displaced_step_reset): ... this. Just call displaced->reset ().
15266 (displaced_step_clear_cleanup): Rename to...
15267 (displaced_step_reset_cleanup): ... this.
15268 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15269 (displaced_step_fixup): Likewise.
15270 (resume_1): Likewise.
15271 (handle_inferior_event): Restore child's memory before calling
15272 displaced_step_fixup on the parent.
15273 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15274 to std::unique_ptr.
15275 <step_closure>: Change type to std::unique_ptr.
15277 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15279 * arm-tdep.c: Include count-one-bits.h.
15280 (cleanup_block_store_pc): Use count_one_bits.
15281 (cleanup_block_load_pc): Use count_one_bits.
15282 (arm_copy_block_xfer): Use count_one_bits.
15283 (thumb2_copy_block_xfer): Use count_one_bits.
15284 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15285 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15286 (thumb_get_next_pcs_raw): Use count_one_bits.
15287 (arm_get_next_pcs_raw): Use count_one_bits_l.
15288 * arch/arm.c (bitcount): Remove.
15289 * arch/arm.h (bitcount): Remove.
15291 2020-02-14 Tom Tromey <tromey@adacore.com>
15293 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15295 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15296 * dwarf2/loc.c (call_site_find_chain_1): Return
15297 unique_xmalloc_ptr.
15298 (call_site_find_chain): Likewise.
15300 2020-02-14 Richard Biener <rguenther@suse.de>
15302 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15303 on expression with division operators.
15305 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15307 * MAINTAINERS (Write After Approval): Adding myself.
15309 2020-02-12 Tom Tromey <tom@tromey.com>
15311 * event-loop.c (event_data, gdb_event, event_handler_func):
15314 2020-02-12 Tom Tromey <tom@tromey.com>
15316 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15317 (dwarf2_frame_objfile_data): Add comment.
15318 (find_comp_unit, set_comp_unit): New functions.
15319 (dwarf2_frame_find_fde): Use find_comp_unit.
15320 (dwarf2_build_frame_info): Use set_comp_unit.
15322 2020-02-12 Tom Tromey <tom@tromey.com>
15324 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15325 (comp_unit): Don't initialize objfile.
15326 (execute_cfa_program): Add text_offset parameter.
15327 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15328 (dwarf2_frame_cache): Update.
15329 (dwarf2_build_frame_info): Don't set "objfile" member.
15331 2020-02-12 Tom Tromey <tom@tromey.com>
15333 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15334 (decode_frame_entry): Likewise.
15335 (dwarf2_build_frame_info): Update.
15337 2020-02-12 Tom Tromey <tom@tromey.com>
15339 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15340 (decode_frame_entry_1): Use the comp_unit obstack.
15342 2020-02-12 Tom Tromey <tom@tromey.com>
15344 * dwarf2/frame.c (struct comp_unit): Add initializers and
15346 (dwarf2_frame_objfile_data): Store a comp_unit.
15347 (dwarf2_frame_find_fde): Update.
15348 (dwarf2_build_frame_info): Use "new".
15350 2020-02-12 Tom Tromey <tom@tromey.com>
15352 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15353 (dwarf2_fde_table): Typedef for std::vector.
15354 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15355 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15356 (decode_frame_entry): Update.
15357 (dwarf2_build_frame_info): Use "new".
15359 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15361 * arm-tdep.c (arm_gdbarch_init): Update.
15362 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15363 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15364 have_neon, is_m>: Change to bool.
15366 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15368 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15370 2020-02-12 Tom Tromey <tom@tromey.com>
15372 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15374 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15376 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15377 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15379 2020-02-11 Tom Tromey <tom@tromey.com>
15381 * psymtab.h: Update comment.
15383 2020-02-11 Tom Tromey <tom@tromey.com>
15385 * gdb_obstack.h (struct auto_obstack): Use
15386 DISABLE_COPY_AND_ASSIGN.
15388 2020-02-11 Tom Tromey <tom@tromey.com>
15390 * dwarf2/frame.h (struct objfile): Don't forward declare.
15392 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15394 * cris-tdep.c (cris_supply_gregset): Change signature to match
15395 what struct regset expects.
15396 (cris_regset): New struct.
15397 (fetch_core_registers): Remove.
15398 (cris_iterate_over_regset_sections): New function.
15399 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15400 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15402 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15404 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15407 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15409 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15411 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15413 * configure: Re-generate.
15415 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15417 * configure: Re-generate.
15419 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15421 * acinclude: Update warning.m4 path.
15422 * warning.m4: Move to gdbsupport.
15424 2020-02-11 Tom Tromey <tromey@adacore.com>
15426 * remote.c (remote_console_output): Update.
15427 * printcmd.c (printf_command): Update.
15428 * event-loop.c (gdb_wait_for_event): Update.
15429 * linux-nat.c (sigchld_handler): Update.
15430 * remote-sim.c (gdb_os_write_stdout): Update.
15431 (gdb_os_flush_stdout): Update.
15432 (gdb_os_flush_stderr): Update.
15433 (gdb_os_write_stderr): Update.
15434 * exceptions.c (print_exception): Update.
15435 * remote-fileio.c (remote_fileio_func_read): Update.
15436 (remote_fileio_func_write): Update.
15437 * tui/tui.c (tui_enable): Update.
15438 * tui/tui-interp.c (tui_interp::init): Update.
15439 * utils.c (init_page_info): Update.
15440 (putchar_unfiltered, fputc_unfiltered): Update.
15441 (gdb_flush): Update.
15442 (emit_style_escape): Update.
15443 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15444 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15445 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15446 (stderr_file::write): Update.
15447 (stderr_file::puts): Update.
15448 * ui-file.h (ui_file_isatty, ui_file_write)
15449 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15450 (ui_file_puts): Don't declare.
15452 2020-02-10 Tom de Vries <tdevries@suse.de>
15454 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15455 sentinel to char *.
15457 2020-02-09 Tom de Vries <tdevries@suse.de>
15459 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15460 filename if it matches "<artificial>".
15462 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15464 * windows-tdep.c (struct enum_value_name): New struct.
15465 (create_enum): New function.
15466 (windows_get_siginfo_type): Create and use enum types.
15468 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15470 * NEWS: Mention $_siginfo support for Windows.
15471 * windows-nat.c (handle_exception): Set siginfo_er.
15472 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15473 (windows_xfer_siginfo): New function.
15474 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15475 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15476 (init_windows_gdbarch_data): New function.
15477 (get_windows_gdbarch_data): New function.
15478 (windows_get_siginfo_type): New function.
15479 (windows_init_abi): Register windows_get_siginfo_type.
15480 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15482 2020-02-08 Tom Tromey <tom@tromey.com>
15484 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15485 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15486 <keep>: Declare method.
15487 <m_keep>: Remove member.
15488 <~cutu_reader>: Remove.
15489 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15490 (cutu_reader::cutu_reader): Update.
15491 (cutu_reader::keep): Rename from ~cutu_reader.
15492 (process_psymtab_comp_unit, build_type_psymtabs_1)
15493 (process_skeletonless_type_unit, load_partial_comp_unit)
15494 (load_full_comp_unit, dwarf2_read_addr_index)
15495 (read_signatured_type): Update.
15497 2020-02-08 Tom Tromey <tom@tromey.com>
15499 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15500 "want_partial_unit" parameter.
15501 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15502 Inline check for DW_TAG_partial_unit.
15503 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15505 2020-02-08 Tom Tromey <tom@tromey.com>
15507 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15509 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15512 2020-02-08 Tom Tromey <tom@tromey.com>
15514 * dwarf2/read.c (read_address): Move to comp-unit.c.
15515 (dwarf2_rnglists_process, dwarf2_ranges_process)
15516 (read_attribute_value, dwarf_decode_lines_1)
15517 (var_decode_location, decode_locdesc): Update.
15518 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15519 read.c. Remove "cu" parameter.
15520 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15523 2020-02-08 Tom Tromey <tom@tromey.com>
15525 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15526 (read_indirect_line_string): Update.
15527 * dwarf2/comp-unit.c (read_offset): Remove.
15528 (read_comp_unit_head): Update.
15529 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15531 (read_offset): Don't declare.
15533 2020-02-08 Tom Tromey <tom@tromey.com>
15535 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15536 * dwarf2/read.c (struct comp_unit_head): Move to
15537 dwarf2/comp-unit.h.
15538 (enum class rcuh_kind): Move to comp-unit.h.
15539 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15540 (read_comp_unit_head, error_check_comp_unit_head)
15541 (read_and_check_comp_unit_head): Move to comp-unit.c.
15542 (read_offset, dwarf_unit_type_name): Likewise.
15543 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15544 (cutu_reader::cutu_reader, read_call_site_scope)
15545 (find_partial_die, follow_die_offset): Update.
15546 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15548 2020-02-08 Tom Tromey <tom@tromey.com>
15550 * dwarf2/read.c (read_offset_1): Move to leb.c.
15551 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15552 (dwarf_decode_macro_bytes): Update.
15553 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15554 * dwarf2/leb.h (read_offset): Declare.
15556 2020-02-08 Tom Tromey <tom@tromey.com>
15558 * dwarf2/read.c (dwarf2_section_size): Remove.
15559 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15561 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15563 2020-02-08 Tom Tromey <tom@tromey.com>
15565 * dwarf2/read.c (read_initial_length): Move to leb.c.
15566 * dwarf2/leb.h (read_initial_length): Declare.
15567 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15568 handle_nonstd parameter.
15569 * dwarf2/frame.c (read_initial_length): Remove.
15570 (decode_frame_entry_1): Update.
15572 2020-02-08 Tom Tromey <tom@tromey.com>
15574 * dwarf2/loc.c (dwarf2_find_location_expression)
15575 (dwarf_evaluate_loc_desc::get_tls_address)
15576 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15577 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15578 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15579 (dwarf2_compile_property_to_c)
15580 (dwarf2_loc_desc_get_symbol_read_needs)
15581 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15582 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15583 (loclist_describe_location, loclist_tracepoint_var_ref)
15584 (loclist_generate_c_location): Update.
15585 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15586 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15587 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15588 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15589 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15590 (dwarf2_per_cu_data::addr_size)
15591 (dwarf2_per_cu_data::ref_addr_size)
15592 (dwarf2_per_cu_data::text_offset)
15593 (dwarf2_per_cu_data::addr_type): Now methods.
15594 (per_cu_header_read_in): Make per_cu "const".
15595 (dwarf2_version): Remove.
15596 (dwarf2_per_cu_data::int_type): Now a method.
15597 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15598 (set_die_type, read_array_type, read_subrange_index_type)
15599 (read_tag_string_type, read_subrange_type): Update.
15600 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15601 offset_size, ref_addr_size, text_offset, addr_type, version,
15602 objfile, int_type, addr_sized_int_type>: Declare methods.
15604 2020-02-08 Tom Tromey <tom@tromey.com>
15606 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15609 2020-02-08 Tom Tromey <tom@tromey.com>
15611 * dwarf2/read.h (dwarf_line_debug): Declare.
15612 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15613 * dwarf2/read.c: Move line_header code to new files.
15614 (dwarf_line_debug): No longer static.
15615 * dwarf2/line-header.c: New file.
15616 * dwarf2/line-header.h: New file.
15618 2020-02-08 Tom Tromey <tom@tromey.com>
15620 * dwarf2/read.c (struct line_header) <file_full_name,
15621 file_file_name>: Return unique_xmalloc_ptr.
15622 (line_header::file_file_name): Update.
15623 (line_header::file_full_name): Update.
15624 (dw2_get_file_names_reader): Update.
15625 (macro_start_file): Update.
15627 2020-02-08 Tom Tromey <tom@tromey.com>
15629 * dwarf2/read.c (struct line_header) <file_full_name,
15630 file_file_name>: Declare methods.
15631 (dw2_get_file_names_reader): Update.
15632 (file_file_name): Now a method.
15633 (file_full_name): Likewise.
15634 (macro_start_file): Update.
15636 2020-02-08 Tom Tromey <tom@tromey.com>
15638 * dwarf2/read.c (dwarf_always_disassemble)
15639 (show_dwarf_always_disassemble): Move to loc.c.
15640 (_initialize_dwarf2_read): Move "always-disassemble" registration
15642 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15643 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15645 (show_dwarf_always_disassemble): Move from read.c.
15646 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15648 2020-02-08 Tom Tromey <tom@tromey.com>
15650 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15651 (create_quick_file_names_table): Return htab_up.
15652 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15654 * dwarf2/read.h (struct dwarf2_per_objfile)
15655 <quick_file_names_table>: Now htab_up.
15657 2020-02-08 Tom Tromey <tom@tromey.com>
15659 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15661 2020-02-08 Tom Tromey <tom@tromey.com>
15663 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15665 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15666 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15667 (abbrev_table::abbrev_table): No longer inline.
15668 (ABBREV_HASH_SIZE): Remove.
15669 (abbrev_table::m_abbrevs): Now an htab_up.
15671 2020-02-08 Tom Tromey <tom@tromey.com>
15673 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15674 (cutu_reader): Update.
15675 (build_type_psymtabs_1): Update.
15676 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15677 (abbrev_table::alloc_abbrev): Update.
15678 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15679 (abbrev_table::read): New static method, renamed from
15680 abbrev_table_read_table.
15681 (abbrev_table::alloc_abbrev)
15682 (abbrev_table::add_abbrev): Now private.
15683 (abbrev_table::abbrev_table): Now private.
15684 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15686 2020-02-08 Tom Tromey <tom@tromey.com>
15688 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15689 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15692 2020-02-08 Tom Tromey <tom@tromey.com>
15694 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15696 (lookup_dwo_unit_in_dwp): Update.
15697 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15700 2020-02-08 Tom Tromey <tom@tromey.com>
15702 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15705 2020-02-08 Tom Tromey <tom@tromey.com>
15707 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15709 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15710 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15711 Change type to htab_up.
15713 2020-02-08 Tom Tromey <tom@tromey.com>
15715 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15716 htab_up. Don't allocate on obstack.
15717 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15718 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15719 Change type to htab_up.
15721 2020-02-08 Tom Tromey <tom@tromey.com>
15723 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15724 Change type to htab_up.
15725 * dwarf2/read.c (create_signatured_type_table_from_index)
15726 (create_signatured_type_table_from_debug_names)
15727 (create_all_type_units, add_type_unit)
15728 (lookup_dwo_signatured_type, lookup_signatured_type)
15729 (process_skeletonless_type_unit): Update.
15730 (create_debug_type_hash_table, create_debug_types_hash_table):
15731 Change type of types_htab.
15732 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15733 htab_up. Don't allocate on obstack.
15734 (create_cus_hash_table): Change type of cus_htab parameter.
15735 (struct dwo_file) <cus, tus>: Now htab_up.
15736 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15737 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15738 (queue_and_load_all_dwo_tus): Update.
15739 * dwarf2/index-write.c (write_gdbindex): Update.
15740 (write_debug_names): Update.
15742 2020-02-08 Tom Tromey <tom@tromey.com>
15744 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15745 dwarf2/read.c. Remove "next" member. Add constructor ntad
15747 (struct dwarf2_per_objfile) <queue>: New member.
15748 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15750 (dwarf2_queue, dwarf2_queue_tail): Remove.
15751 (class dwarf2_queue_guard): Add parameter to constructor. Use
15752 DISABLE_COPY_AND_ASSIGN.
15753 <m_per_objfile>: New member.
15754 <~dwarf2_queue_guard>: Rewrite.
15755 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15757 (~dwarf2_queue_item): New.
15759 2020-02-08 Tom Tromey <tom@tromey.com>
15761 * dwarf2/read.c (struct die_info) <has_children>: New member.
15762 (dw2_get_file_names_reader): Remove has_children.
15763 (dw2_get_file_names): Update.
15764 (read_cutu_die_from_dwo): Remove has_children.
15765 (cutu_reader::init_tu_and_read_dwo_dies)
15766 (cutu_reader::cutu_reader): Update.
15767 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15768 Remove has_children.
15769 (build_type_psymtabs_1, process_skeletonless_type_unit)
15770 (load_partial_comp_unit, load_full_comp_unit): Update.
15771 (create_dwo_cu_reader): Remove has_children.
15772 (create_cus_hash_table, read_die_and_children): Update.
15773 (read_full_die_1,read_full_die): Remove has_children.
15774 (read_signatured_type): Update.
15775 (class cutu_reader) <has_children>: Remove.
15777 2020-02-08 Tom Tromey <tom@tromey.com>
15779 * dwarf2/expr.c: Rename from dwarf2expr.c.
15780 * dwarf2/expr.h: Rename from dwarf2expr.h.
15781 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15782 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15783 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15784 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15785 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15786 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15787 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15788 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15789 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15790 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15791 * dwarf2/loc.c: Rename from dwarf2loc.c.
15792 * dwarf2/loc.h: Rename from dwarf2loc.h.
15793 * dwarf2/read.c: Rename from dwarf2read.c.
15794 * dwarf2/read.h: Rename from dwarf2read.h.
15795 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15796 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15797 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15798 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15799 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15800 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15801 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15802 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15803 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15804 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15805 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15806 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15807 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15809 * Makefile.in (COMMON_SFILES): Update.
15810 (HFILES_NO_SRCDIR): Update.
15812 2020-02-08 Tom Tromey <tom@tromey.com>
15814 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15815 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15817 2020-02-08 Tom Tromey <tom@tromey.com>
15819 * dwarf2read.h (struct die_info): Don't declare.
15821 2020-02-08 Tom Tromey <tom@tromey.com>
15823 * dwarf2read.h (die_info_ptr): Remove typedef.
15825 2020-02-08 Tom Tromey <tom@tromey.com>
15827 * dwarf2read.c (read_call_site_scope)
15828 (handle_data_member_location, dwarf2_add_member_fn)
15829 (mark_common_block_symbol_computed, read_common_block)
15830 (attr_to_dynamic_prop, partial_die_info::read)
15831 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15832 (dwarf2_symbol_mark_computed, set_die_type): Update.
15833 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15835 (attr_form_is_block): Don't declare.
15836 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15838 2020-02-08 Tom Tromey <tom@tromey.com>
15840 * dwarf2read.c (dwarf2_find_base_address, )
15841 (read_call_site_scope, rust_containing_type)
15842 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15843 (handle_data_member_location, dwarf2_add_member_fn)
15844 (get_alignment, read_structure_type, process_structure_scope)
15845 (mark_common_block_symbol_computed, read_common_block)
15846 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15847 (partial_die_info::read, read_attribute_value, new_symbol)
15848 (lookup_die_type, dwarf2_get_ref_die_offset)
15849 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15850 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15851 (dwarf2_symbol_mark_computed): Update.
15852 * dwarf2/attribute.h (struct attribute) <value_as_address,
15853 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15855 (value_as_address, attr_form_is_section_offset)
15856 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15857 * dwarf2/attribute.c (attribute::value_as_address)
15858 (attribute::form_is_section_offset, attribute::form_is_constant)
15859 (attribute::form_is_ref): Now methods.
15861 2020-02-08 Tom Tromey <tom@tromey.com>
15863 * dwarf2read.c (struct attribute, DW_STRING)
15864 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15865 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15866 (attr_form_is_block, attr_form_is_section_offset)
15867 (attr_form_is_constant, attr_form_is_ref): Move.
15868 * dwarf2/attribute.h: New file.
15869 * dwarf2/attribute.c: New file, from dwarf2read.c.
15870 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15872 2020-02-08 Tom Tromey <tom@tromey.com>
15874 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15875 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15877 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15878 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15879 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15881 * dwarf2/abbrev.h: New file.
15882 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15883 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15885 2020-02-08 Tom Tromey <tom@tromey.com>
15887 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15888 (dwarf2_section_size, dwarf2_get_section_info)
15889 (create_signatured_type_table_from_debug_names)
15890 (create_addrmap_from_aranges, read_debug_names_from_section)
15891 (get_gdb_index_contents_from_section, read_comp_unit_head)
15892 (error_check_comp_unit_head, read_abbrev_offset)
15893 (create_debug_type_hash_table, init_cu_die_reader)
15894 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15895 (read_comp_units_from_section, create_cus_hash_table)
15896 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15897 (create_dwp_v2_section, dwarf2_rnglists_process)
15898 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15899 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15900 (read_indirect_string_from_dwz, read_addr_index_1)
15901 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15902 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15903 (fill_in_loclist_baton): Update.
15904 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15905 get_containing_section, get_bfd_owner, get_bfd_section,
15906 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15907 (dwarf2_read_section, get_section_name, get_section_file_name)
15908 (get_containing_section, get_section_bfd_owner)
15909 (get_section_bfd_section, get_section_name, get_section_file_name)
15910 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15912 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15913 (dwarf2_section_info::get_bfd_owner)
15914 (dwarf2_section_info::get_bfd_section)
15915 (dwarf2_section_info::get_name)
15916 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15917 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15918 (dwarf2_section_info::read): Now methods.
15919 * dwarf-index-write.c (class debug_names): Update.
15921 2020-02-08 Tom Tromey <tom@tromey.com>
15923 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15924 Move to dwarf2/section.h.
15925 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15926 (get_section_bfd_section, get_section_name)
15927 (get_section_file_name, get_section_id, get_section_flags)
15928 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15930 * dwarf2/section.h: New file.
15931 * dwarf2/section.c: New file, from dwarf2read.c.
15932 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15934 2020-02-08 Tom Tromey <tom@tromey.com>
15936 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15937 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15938 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15939 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15940 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15941 * dwarf2/leb.h: New file, from dwarf2read.c.
15942 * dwarf2/leb.c: New file, from dwarf2read.c.
15943 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15945 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15946 (COMMON_SFILES): Add dwarf2/leb.c.
15948 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15952 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15955 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15956 * gdb/remote.c (remote_console_output): Update.
15957 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15958 (ui_file_puts): ...this.
15959 * gdb/ui-file.h (ui_file_puts): Add declaration.
15960 * gdb/utils.c (emit_style_escape): Update.
15961 (flush_wrap_buffer): Update.
15962 (fputs_maybe_filtered): Update.
15963 (fputs_unfiltered): Add function.
15965 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15967 * gdb/event-loop.c (gdb_wait_for_event): Update.
15968 * gdb/printcmd.c (printf_command): Update.
15969 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15970 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15971 (gdb_os_flush_stderr): Update.
15972 * gdb/remote.c (remote_console_output): Update.
15973 * gdb/ui-file.c (gdb_flush): Rename to...
15974 (ui_file_flush): ...this.
15975 (stderr_file::write): Update.
15976 (stderr_file::puts): Update.
15977 * gdb/ui-file.h (gdb_flush): Rename to...
15978 (ui_file_flush): ...this.
15979 * gdb/utils.c (gdb_flush): Add function.
15980 * gdb/utils.h (gdb_flush): Add declaration.
15982 2020-02-07 Tom Tromey <tromey@adacore.com>
15984 PR breakpoints/24915:
15985 * source.c (find_and_open_source): Do not check basenames_may_differ.
15987 2020-02-07 Tom Tromey <tom@tromey.com>
15989 * README: Update gdbserver documentation.
15990 * gdbserver: Move to top level.
15991 * configure.tgt (build_gdbserver): Remove.
15992 * configure.ac: Remove --enable-gdbserver.
15993 * configure: Rebuild.
15994 * Makefile.in (distclean): Don't mention gdbserver.
15996 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15998 * source-cache.c (source_cache::ensure): Surround
15999 get_plain_source_lines with a try/catch.
16000 (source_cache::get_line_charpos): Get rid of try/catch
16001 and only check for the return value of "ensure".
16002 * tui/tui-source.c (tui_source_window::set_contents):
16003 Simplify "nlines" calculation.
16005 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16007 * MAINTAINERS (Write After Approval): Add myself.
16009 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16011 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16014 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16016 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16018 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
16020 * nat/riscv-linux-tdesc.h: New file.
16021 * nat/riscv-linux-tdesc.c: New file, taking code from...
16022 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16024 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16027 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16029 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16030 we don't set the fake simulator ptid to the null_ptid.
16032 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
16034 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16035 * gdbthread.h (class thread_info) <resumed>: Likewise.
16036 * infrun.c (resume_1): Likewise.
16037 (proceed): Likewise.
16038 (infrun_thread_stop_requested): Likewise.
16039 (stop_all_threads): Likewise.
16040 (handle_inferior_event): Likewise.
16041 (restart_threads): Likewise.
16042 (finish_step_over): Likewise.
16043 (keep_going_stepped_thread): Likewise.
16044 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16045 (linux_handle_extended_wait): Likewise.
16046 * record-btrace.c (get_thread_current_frame_id): Likewise.
16047 * record-full.c (record_full_wait_1): Likewise.
16048 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16049 * target.c (target_resume): Likewise.
16050 * thread.c (set_running_thread): Likewise.
16052 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16054 * f-valprint.c (f77_print_array_1): Changed datatype of index
16055 variable to LONGEST from int to enable it to contain bound
16058 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
16060 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16061 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16062 offsets according to FLEN determined.
16063 (riscv_linux_nat_target::read_description): Determine FLEN
16065 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16066 according to FLEN determined.
16067 (riscv_linux_nat_target::store_registers): Likewise.
16069 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
16071 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16072 when reg->group is empty and reggroup is not.
16074 2020-01-31 Tom Tromey <tromey@adacore.com>
16076 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16077 Call beneath target's mourn_inferior after unpushing.
16079 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16082 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16083 have enough lines to fill the screen, still return the lowest
16086 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16088 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16089 '-', '<', and '>' commands.
16091 2020-01-29 Pedro Alves <palves@redhat.com>
16092 Sergio Durigan Junior <sergiodj@redhat.com>
16094 * infcmd.c (construct_inferior_arguments): Assert that
16095 'argc' is greater than 0.
16097 2020-01-29 Luis Machado <luis.machado@linaro.org>
16099 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16100 (BRK_INSN_MASK): Define to 0xd4200000.
16101 (aarch64_program_breakpoint_here_p): New function.
16102 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16103 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16105 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16107 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16108 call gdbarch_program_breakpoint_here_p.
16109 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16110 default_program_breakpoint_here_p, changed return type to bool and
16112 * breakpoint.h (program_breakpoint_here): Moved prototype to
16113 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16114 return type to bool.
16115 * gdbarch.c: Regenerate.
16116 * gdbarch.h: Regenerate.
16117 * gdbarch.sh (program_breakpoint_here_p): New method.
16118 * infrun.c (handle_signal_stop): Call
16119 gdbarch_program_breakpoint_here_p.
16121 2020-01-26 Tom Tromey <tom@tromey.com>
16123 * ctfread.c (struct ctf_fp_info): Reindent.
16124 (_initialize_ctfread): Remove.
16126 2020-01-26 Tom Tromey <tom@tromey.com>
16128 * psymtab.c (partial_map_expand_apply)
16129 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16130 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16131 (psym_print_stats, psym_expand_symtabs_for_function)
16132 (psym_map_symbol_filenames, psym_map_matching_symbols)
16133 (psym_expand_symtabs_matching)
16134 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16135 (maintenance_check_psymtabs): Use new methods.
16136 * psympriv.h (struct partial_symtab) <readin_p,
16137 get_compunit_symtab>: New methods.
16138 <readin, compunit_symtab>: Remove members.
16139 (struct standard_psymtab): New.
16140 (struct legacy_psymtab): Derive from standard_psymtab.
16141 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16143 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16145 2020-01-26 Tom Tromey <tom@tromey.com>
16147 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16148 read_dependencies. Add assert.
16149 * psymtab.c (partial_symtab::read_dependencies): New method.
16150 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16152 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16153 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16155 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16158 2020-01-26 Tom Tromey <tom@tromey.com>
16160 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16161 Call expand_psymtab.
16162 (xcoff_read_symtab): Call expand_psymtab.
16163 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16164 legacy_expand_psymtab.
16165 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16167 (struct legacy_psymtab) <expand_psymtab>: Implement.
16168 <legacy_expand_psymtab>: New member.
16169 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16170 (parse_partial_symbols): Set legacy_expand_psymtab.
16171 (psymtab_to_symtab_1): Change argument order. Call
16173 (new_psymtab): Set legacy_expand_psymtab.
16174 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16175 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16177 (dwarf2_psymtab::expand_psymtab): Rename from
16178 psymtab_to_symtab_1. Call expand_psymtab.
16179 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16180 (dbx_end_psymtab): Likewise.
16181 (dbx_psymtab_to_symtab_1): Change argument order. Call
16183 (dbx_read_symtab): Call expand_psymtab.
16184 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16185 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16186 (ctf_psymtab::read_symtab): Call expand_psymtab.
16188 2020-01-26 Tom Tromey <tom@tromey.com>
16190 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16191 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16193 * mdebugread.c (mdebug_read_symtab): Remove prints.
16194 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16196 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16198 2020-01-26 Tom Tromey <tom@tromey.com>
16200 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16201 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16202 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16204 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16205 * psymtab.c (psymtab_to_symtab): Call method.
16206 (dump_psymtab): Update.
16207 * psympriv.h (struct partial_symtab): Add virtual destructor.
16208 <read_symtab>: New method.
16209 (struct legacy_symtab): New.
16210 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16211 (struct pst_map) <pst>: Now a legacy_psymtab.
16212 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16213 (new_psymtab): Use legacy_psymtab.
16214 * dwarf2read.h (struct dwarf2_psymtab): New.
16215 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16216 * dwarf2read.c (dwarf2_create_include_psymtab)
16217 (dwarf2_build_include_psymtabs, create_type_unit_group)
16218 (create_partial_symtab, process_psymtab_comp_unit_reader)
16219 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16220 (set_partial_user): Use dwarf2_psymtab.
16221 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16222 (psymtab_to_symtab_1, process_full_comp_unit)
16223 (process_full_type_unit, dwarf2_ranges_read)
16224 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16225 (dwarf_decode_lines): Use dwarf2_psymtab.
16226 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16227 (add_address_entry_worker, write_one_signatured_type)
16228 (recursively_count_psymbols, recursively_write_psymbols)
16229 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16230 (write_debug_names): Likewise.
16231 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16232 <pst>: Now a legacy_psymtab.
16233 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16234 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16235 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16236 * ctfread.c (struct ctf_psymtab): New.
16237 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16239 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16240 (create_partial_symtab): Return a ctf_psymtab.
16241 (scan_partial_symbols): Update.
16243 2020-01-26 Tom Tromey <tom@tromey.com>
16245 * xcoffread.c (xcoff_start_psymtab): Use new.
16246 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16247 renamed from start_psymtab_common.
16248 * psympriv.h (struct partial_symtab): Add new constructor.
16249 (start_psymtab_common): Don't declare.
16250 * mdebugread.c (parse_partial_symbols): Use new.
16251 * dwarf2read.c (create_partial_symtab): Use new.
16252 * dbxread.c (start_psymtab): Use new.
16253 * ctfread.c (create_partial_symtab): Use new.
16255 2020-01-26 Tom Tromey <tom@tromey.com>
16257 * xcoffread.c (xcoff_end_psymtab): Use new.
16258 * psymtab.c (start_psymtab_common): Use new.
16259 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16261 * psympriv.h (struct partial_symtab): Add parameters to
16262 constructor. Don't inline.
16263 (allocate_psymtab): Don't declare.
16264 * mdebugread.c (new_psymtab): Use new.
16265 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16266 * dbxread.c (dbx_end_psymtab): Use new.
16268 2020-01-26 Tom Tromey <tom@tromey.com>
16270 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16271 allocate_psymtab. Update documentation.
16272 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16273 allocate_psymtab. Do not use new.
16274 (allocate_psymtab): Use new. Update.
16276 2020-01-26 Tom Tromey <tom@tromey.com>
16278 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16279 * psymtab.c (psym_print_stats): Update.
16280 * psympriv.h (struct partial_symtab) <readin,
16281 psymtabs_addrmap_supported, anonymous>: Now bool.
16282 * mdebugread.c (psymtab_to_symtab_1): Update.
16283 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16284 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16285 (process_full_comp_unit, process_full_type_unit): Update.
16286 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16287 * ctfread.c (psymtab_to_symtab): Update.
16289 2020-01-26 Tom Tromey <tom@tromey.com>
16291 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16292 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16293 * psymtab.c (psymtab_storage): Delete psymtabs.
16294 (psymtab_storage::allocate_psymtab): Use new.
16295 (psymtab_storage::discard_psymtab): Use delete.
16296 * psympriv.h (struct partial_symtab): Add constructor and
16299 2020-01-26 Tom Tromey <tom@tromey.com>
16301 * machoread.c: Do not include psympriv.h.
16303 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16305 * NEWS: Mention the new option and the set/show commands.
16307 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16309 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16310 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16311 (validate_exec_file): New variables, enums, functions.
16312 (exec_file_locate_attach, print_section_info): Style the filenames.
16313 (_initialize_exec): Install show_exec_file_mismatch_command and
16314 set_exec_file_mismatch_command.
16315 * gdbcore.h (validate_exec_file): Declare.
16316 * infcmd.c (attach_command): Call validate_exec_file.
16317 * remote.c ( remote_target::remote_add_inferior): Likewise.
16319 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16321 * frame.c (find_frame_sal): Move call to get_next_frame into more
16323 * inline-frame.c (inilne_state) <inline_state>: Update argument
16325 (inilne_state) <skipped_symbol>: Rename to...
16326 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16327 (skip_inline_frames): Build vector of skipped symbols and use this
16328 to reate the inline_state.
16329 (inline_skipped_symbol): Add a comment and some assertions, fetch
16330 skipped symbol from the list.
16332 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16334 * buildsym.c (lte_is_less_than): Delete.
16335 (buildsym_compunit::end_symtab_with_blockvector): Create local
16336 lambda function to sort line table entries, and use
16337 std::stable_sort instead of std::sort.
16338 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16339 markers when looking for a previous line.
16341 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16343 * dwarf2read.c (lnp_state_machine::record_line): Include
16344 end_sequence parameter in debug print out. Record the line if we
16345 are at an end_sequence marker even if it's not the start of a
16347 * symmisc.c (maintenance_print_one_line_table): Print end of
16348 sequence markers with 'END' not '0'.
16350 2020-01-24 Pedro Alves <palves@redhat.com>
16353 * thread.c (scoped_restore_current_thread::restore): Use
16354 switch_to_inferior_no_thread.
16355 * exec.c: Include "progspace-and-thread.h".
16356 (add_target_sections, remove_target_sections):
16357 scoped_restore_current_pspace_and_thread instead of
16358 scoped_restore_current_thread.
16359 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16360 and aspace to the inferior before calling clone_program_space.
16361 Remove stale comment.
16363 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16365 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16366 (arm_netbsd_nat_target::fetch_registers): ...this.
16367 (arm_nbsd_nat_target::store_registers): Rename to...
16368 (arm_netbsd_nat_target::store_registers): ...this.
16370 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16372 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16375 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16377 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16379 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16381 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16382 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16383 the correct replacement (iterate_over_regset_sections).
16384 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16387 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16390 * gdb/python/python.c (execute_gdb_command): Call
16391 async_enable_stdin in catch block.
16393 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16395 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16396 SWITCH_THRU_ALL_UIS.
16398 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16401 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16402 comment, add extra parameter, and update to store previous symbol
16404 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16405 add extra parameter.
16406 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16407 remove unneeded parameter, add try/catch around gdb_print_insn,
16408 rewrite to add items to asm_lines vector.
16409 (tui_find_backward_disassembly_start_address): New function.
16410 (tui_find_disassembly_address): Updated throughout.
16411 (tui_disasm_window::set_contents): Update for changes to
16413 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16414 number of lines to scroll.
16416 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16418 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16419 (SECT_OFF_DATA): Likewise.
16420 (SECT_OFF_RODATA): Likewise.
16421 (SECT_OFF_TEXT): Likewise.
16422 (SECT_OFF_BSS): Likewise.
16423 (struct objfile) <text_section_offset, data_section_offset>: New
16425 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16426 objfile::text_section_offset.
16427 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16428 * coffread.c (coff_symtab_read): Likewise.
16429 (enter_linenos): Likewise.
16430 (process_coff_symbol): Likewise.
16431 * ctfread.c (get_objfile_text_range): Likewise.
16432 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16433 Use objfile::data_section_offset.
16434 * dwarf2-frame.c (execute_cfa_program): Use
16435 objfile::text_section_offset.
16436 (dwarf2_frame_find_fde): Likewise.
16437 * dwarf2read.c (create_addrmap_from_index): Likewise.
16438 (create_addrmap_from_aranges): Likewise.
16439 (dw2_find_pc_sect_compunit_symtab): Likewise.
16440 (process_psymtab_comp_unit_reader): Likewise.
16441 (add_partial_symbol): Likewise.
16442 (add_partial_subprogram): Likewise.
16443 (process_full_comp_unit): Likewise.
16444 (read_file_scope): Likewise.
16445 (read_func_scope): Likewise.
16446 (read_lexical_block_scope): Likewise.
16447 (read_call_site_scope): Likewise.
16448 (dwarf2_rnglists_process): Likewise.
16449 (dwarf2_ranges_process): Likewise.
16450 (dwarf2_ranges_read): Likewise.
16451 (dwarf_decode_lines_1): Likewise.
16452 (new_symbol): Likewise.
16453 (dwarf2_fetch_die_loc_sect_off): Likewise.
16454 (dwarf2_per_cu_text_offset): Likewise.
16455 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16456 * hppa-tdep.c (read_unwind_info): Likewise.
16457 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16458 * psympriv.h (struct partial_symtab): Likewise.
16459 * psymtab.c (find_pc_sect_psymtab): Likewise.
16460 * solib-svr4.c (enable_break): Likewise.
16461 * stap-probe.c (relocate_address): Use
16462 objfile::data_section_offset.
16463 * xcoffread.c (enter_line_range): Use
16464 objfile::text_section_offset.
16465 (read_xcoff_symtab): Likewise.
16467 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16469 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16470 declaration to narrower scopes.
16472 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16474 * darwin-nat.h (struct darwin_exception_msg, enum
16475 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16477 (class darwin_nat_target) <wait_1, check_new_threads,
16478 decode_exception_message, decode_message, stop_inferior,
16479 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16480 * darwin-nat.c (darwin_check_new_threads): Rename to...
16481 (darwin_nat_target::check_new_threads): ... this.
16482 (darwin_suspend_inferior_it): Remove.
16483 (darwin_decode_exception_message): Rename to...
16484 (darwin_nat_target::decode_exception_message): ... this.
16485 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16486 (darwin_decode_message): Rename to...
16487 (darwin_nat_target::decode_message): ... this.
16488 (cancel_breakpoint): Rename to...
16489 (darwin_nat_target::cancel_breakpoint): ... this.
16490 (darwin_wait): Rename to...
16491 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16492 instead of iterate_over_inferiors.
16493 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16494 (darwin_stop_inferior): Rename to...
16495 (darwin_nat_target::stop_inferior): ... this.
16496 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16497 (darwin_init_thread_list): Rename to...
16498 (darwin_nat_target::init_thread_list): ... this.
16499 (darwin_ptrace_him): Rename to...
16500 (darwin_nat_target::ptrace_him): ... this.
16501 (darwin_nat_target::create_inferior): Pass lambda function to
16503 (darwin_nat_target::detach): Call stop_inferior instead of
16504 darwin_stop_inferior.
16505 * fork-inferior.h (fork_inferior): Change init_trace_fun
16506 parameter to gdb::function_view.
16507 * fork-inferior.c (fork_inferior): Likewise.
16509 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16511 * i386-cygwin-tdep.c (core_process_module_section): Update.
16512 * windows-nat.c (struct lm_info_windows): Add text_offset.
16513 (windows_xfer_shared_libraries): Update.
16514 * windows-tdep.c (windows_xfer_shared_library):
16515 Add text_offset_cached argument.
16516 * windows-tdep.h (windows_xfer_shared_library): Update.
16518 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16520 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16522 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16524 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16525 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16526 replace with range-based for.
16527 (gdbsim_interrupt_inferior): Remove.
16528 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16529 with a range-based for. Inline code from
16530 gdbsim_interrupt_inferior.
16532 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16534 * infrun.c (proceed): Fix indentation.
16536 2020-01-21 Tom Tromey <tromey@adacore.com>
16538 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16539 * python/python.c (python_extension_ops): Update.
16540 (gdbpy_colorize): New function.
16541 * python/lib/gdb/__init__.py (colorize): New function.
16542 * extension.h (ext_lang_colorize): Declare.
16543 * extension.c (ext_lang_colorize): New function.
16544 * extension-priv.h (struct extension_language_ops) <colorize>: New
16546 * cli/cli-style.c (_initialize_cli_style): Update help text.
16548 2020-01-21 Luis Machado <luis.machado@linaro.org>
16550 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16551 <cond>: Change type to bool.
16552 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16553 (aarch64_displaced_step_cb): Likewise.
16554 (aarch64_displaced_step_tb): Likewise.
16556 2020-01-21 Luis Machado <luis.machado@linaro.org>
16558 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16561 2020-01-21 Luis Machado <luis.machado@linaro.org>
16563 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16564 <pc_adjust>: Adjust the documentation.
16565 (aarch64_displaced_step_fixup): Check if PC really moved before
16568 2020-01-19 Tom Tromey <tom@tromey.com>
16570 * disasm.c (~gdb_disassembler): New destructor.
16571 (gdb_buffered_insn_length): Call disassemble_free_target.
16572 * disasm.h (class gdb_disassembler): Declare destructor. Use
16573 DISABLE_COPY_AND_ASSIGN.
16575 2020-01-19 Tom Tromey <tom@tromey.com>
16577 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16578 (die_reader_func_ftype): Remove.
16579 (cutu_reader): New class.
16580 (dw2_get_file_names_reader): Remove "data" parameter.
16581 (dw2_get_file_names): Use cutu_reader.
16582 (create_debug_type_hash_table): Update.
16583 (read_cutu_die_from_dwo): Update comment.
16584 (lookup_dwo_unit): Add dwo_name parameter.
16585 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16586 die_reader_func_ftype and data parameters.
16587 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16588 Remove die_reader_func_ftype and data parameters.
16589 (~cutu_reader): New; from init_cutu_and_read_dies.
16590 (cutu_reader::cutu_reader): Rename from
16591 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16592 and data parameters.
16593 (init_cutu_and_read_dies_simple): Remove.
16594 (struct process_psymtab_comp_unit_data): Remove.
16595 (process_psymtab_comp_unit_reader): Remove data parameter; add
16596 want_partial_unit and pretend_language parameters.
16597 (process_psymtab_comp_unit): Use cutu_reader.
16598 (build_type_psymtabs_reader): Remove data parameter.
16599 (build_type_psymtabs_1): Use cutu_reader.
16600 (process_skeletonless_type_unit): Likewise.
16601 (load_partial_comp_unit_reader): Remove.
16602 (load_partial_comp_unit): Use cutu_reader.
16603 (load_full_comp_unit_reader): Remove.
16604 (load_full_comp_unit): Use cutu_reader.
16605 (struct create_dwo_cu_data): Remove.
16606 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16607 dwo_unit parameters.
16608 (create_cus_hash_table): Use cutu_reader.
16609 (struct dwarf2_read_addr_index_data): Remove.
16610 (dwarf2_read_addr_index_reader): Remove.
16611 (dwarf2_read_addr_index): Use cutu_reader.
16612 (read_signatured_type_reader): Remove.
16613 (read_signatured_type): Use cutu_reader.
16615 2020-01-19 Tom Tromey <tom@tromey.com>
16617 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16618 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16619 (tui_wrefresh): Declare.
16620 * tui/tui-wingeneral.c (suppress_output): New global.
16621 (tui_suppress_output, ~tui_suppress_output): New constructor and
16623 (tui_wrefresh): New function.
16624 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16625 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16626 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16628 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16630 (tui_data_window::no_refresh): New method.
16631 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16632 (tui_reg_command): Use tui_suppress_output
16633 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16634 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16636 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16638 2020-01-19 Tom Tromey <tom@tromey.com>
16640 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16641 Handle case where symtab is null.
16643 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16645 * linux-fork.c (one_fork_p): Simplify.
16647 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16649 * top.c (struct qt_args): Remove.
16650 (kill_or_detach): Change return type to void, replace `void *`
16651 parameter with a proper one.
16652 (print_inferior_quit_action): Likewise.
16653 (quit_confirm): Use range-based for loop to iterate over inferiors.
16654 (quit_force): Likewise.
16656 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16658 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16659 `void *` parameter with proper parameters.
16660 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16661 (print_one_inferior): Change return type to void, replace `void *`
16662 parameter with proper parameters.
16663 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16665 (get_other_inferior): Remove.
16666 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16669 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16671 * mi/mi-interp.c (report_initial_inferior): Remove.
16672 (mi_interp::init): Use range-based for to iterate over inferiors.
16674 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16676 * python/py-inferior.c (build_inferior_list): Remove.
16677 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16679 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16681 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16682 (btrace_stitch_trace): Likewise.
16683 * charset.c (intermediate_encoding): Likewise (vaild).
16684 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16685 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16686 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16688 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16690 * windows-tdep.c (windows_get_tlb_type):
16691 Add rtl_user_process_parameters type.
16693 2020-01-16 Pedro Alves <palves@redhat.com>
16694 Norbert Lange <nolange79@gmail.com>
16697 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16698 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16699 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16700 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16701 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16702 (ps_plog): Redeclare exported functions with default visibility.
16704 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16706 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16707 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16709 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16711 * infcmd.c (post_create_inferior): Use get_thread_regcache
16712 instead of get_current_regcache.
16714 2020-01-14 Tom Tromey <tom@tromey.com>
16717 * python/python.c (gdbpy_decode_line): Treat empty string the same
16720 2020-01-14 Tom Tromey <tom@tromey.com>
16722 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16724 2020-01-14 Tom Tromey <tom@tromey.com>
16726 * nat/linux-btrace.c: Don't include <config.h>.
16727 * nat/linux-ptrace.c: Don't include <config.h>.
16728 * nat/x86-linux-dregs.c: Don't include <config.h>.
16730 2020-01-14 Tom Tromey <tom@tromey.com>
16732 * configure: Rebuild.
16733 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16735 2020-01-14 Tom Tromey <tom@tromey.com>
16737 * nat/x86-linux-dregs.c: Include configh.h.
16738 * nat/linux-ptrace.c: Include configh.h.
16739 * nat/linux-btrace.c: Include configh.h.
16740 * defs.h: Include config.h, bfd.h.
16741 * configure.ac: Don't source common.host.
16742 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16743 * configure: Rebuild.
16744 * acinclude.m4: Update path.
16745 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16746 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16747 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16748 (CLIBS): Add LIBSUPPORT.
16750 (COMMON_SFILES): Remove gdbsupport files.
16751 (HFILES_NO_SRCDIR): Likewise.
16752 (stamp-version): Update path to create-version.sh.
16753 (ALLDEPFILES): Remove gdbsupport files.
16755 2020-01-14 Tom Tromey <tom@tromey.com>
16757 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16758 USE_WIN32API when needed.
16759 * configure.ac (USE_WIN32API): Don't define.
16760 (WIN32LIBS): Use WIN32APILIBS.
16761 * configure: Rebuild.
16763 2020-01-14 Tom Tromey <tom@tromey.com>
16765 * configure: Rebuild.
16766 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16768 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16770 * skip.c (skip_function_command): Make skip w/o arguments use the
16771 name of the inlined function if pc is inside any inlined function.
16773 2020-01-14 Luis Machado <luis.machado@linaro.org>
16775 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16776 * infrun.c (resume_1): Likewise.
16777 (handle_inferior_event): Remove stale comment.
16778 * linux-nat.c (linux_nat_target::resume): Update comments.
16779 (save_stop_reason): Likewise.
16780 (linux_nat_filter_event): Likewise.
16781 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16783 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16785 * elfread.c (record_minimal_symbol): Set section index to 0 for
16786 non-allocatable sections.
16789 2020-01-13 Ali Tamur <tamur@google.com>
16791 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16792 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16793 to gdb::optional. Update comments.
16794 (dwo_file): Update comments.
16795 (read_attribute): Update API to take an additional out parameter,
16796 need_reprocess. This is used to mark attributes that need other
16797 attributes (e.g. str_offsets_base) for correct computation which may not
16798 have been read yet.
16799 (read_attribute_reprocess): New function declaration.
16800 (read_addr_index): Likewise.
16801 (read_dwo_str_index): Likewise.
16802 (read_stub_str_index): Likewise.
16803 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16804 (lookup_addr_base): New function definition.
16805 (lookup_ranges_base): Likewise.
16806 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16807 lookup_ranges_base.
16808 (init_cutu_and_read_dies): Update comments.
16809 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16810 unit. This is used to inherit parent's str_offsets_base and addr_base.
16812 (init_cutu_and_read_dies_simple): Reflect API changes.
16813 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16814 (create_cus_hash_table): Change API to take parent compile unit.
16815 Reflect API changes.
16816 (open_and_init_dwo_file): Reflect API changes.
16817 (dwarf2_get_pc_bounds): Update comments.
16818 (dwarf2_record_block_ranges): Likewise.
16819 (read_full_die_1): Change implementation to reprocess attributes that
16820 need str_offsets_base and addr_base.
16821 (partial_die_info::read): Likewise.
16822 (read_attribute_reprocess): New function definition.
16823 (read_attribute_value): Change API to take an additional out parameter,
16824 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16825 when a non-dwo compile unit has index based attributes.
16826 (read_attribute): Reflect API changes.
16827 (read_addr_index_1): Reflect API changes. Update comments.
16828 (dwarf2_read_addr_index_data): Reflect API changes.
16829 (dwarf2_read_addr_index): Likewise.
16830 (read_str_index): Change API and implementation. This becomes a helper
16831 to be used by the new string index related methods. Update error
16832 message and comments.
16833 (read_dwo_str_index): New function definition.
16834 (read_stub_str_index): Likewise.
16835 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16836 * symfile.h (dwarf2_debug_sections): Likewise.
16837 * xcoffread.c (dwarf2_debug_sections): Likewise.
16839 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16841 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16842 core_reg_sect type to gdb_byte *.
16843 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16844 * cris-tdep.c (fetch_core_registers): Likewise.
16845 * corelow.c (core_target::get_core_register_section): Change
16846 type of `contents` to gdb::byte_vector.
16848 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16850 * tui/tui-wingeneral.c (box_win): Position the title in the center
16853 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16855 * corelow.c (core_target::get_core_register_section): Use
16856 std::vector instead of alloca.
16858 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16860 * warning.m4: Add -Wmissing-declarations to build_warnings.
16861 * configure: Re-generate.
16863 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16865 * python/python.c (init__gdb_module): Add declaration.
16867 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16869 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16870 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16871 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16872 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16873 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16874 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16875 * ada-exp.y (_initialize_ada_exp): Add declaration.
16876 * ada-lang.c (_initialize_ada_language): Add declaration.
16877 * ada-tasks.c (_initialize_tasks): Add declaration.
16878 * agent.c (_initialize_agent): Add declaration.
16879 * aix-thread.c (_initialize_aix_thread): Add declaration.
16880 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16881 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16882 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16883 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16884 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16885 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16886 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16887 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16888 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16889 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16890 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16891 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16892 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16893 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16894 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16895 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16896 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16897 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16898 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16899 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16900 * annotate.c (_initialize_annotate): Add declaration.
16901 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16902 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16903 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16904 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16905 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16906 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16907 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16908 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16909 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16910 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16911 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16912 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16913 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16914 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16915 * auto-load.c (_initialize_auto_load): Add declaration.
16916 * auxv.c (_initialize_auxv): Add declaration.
16917 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16918 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16919 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16920 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16921 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16922 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16923 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16924 * breakpoint.c (_initialize_breakpoint): Add declaration.
16925 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16926 * btrace.c (_initialize_btrace): Add declaration.
16927 * charset.c (_initialize_charset): Add declaration.
16928 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16929 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16930 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16931 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16932 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16933 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16934 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16935 * coffread.c (_initialize_coffread): Add declaration.
16936 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16937 * compile/compile.c (_initialize_compile): Add declaration.
16938 * complaints.c (_initialize_complaints): Add declaration.
16939 * completer.c (_initialize_completer): Add declaration.
16940 * copying.c (_initialize_copying): Add declaration.
16941 * corefile.c (_initialize_core): Add declaration.
16942 * corelow.c (_initialize_corelow): Add declaration.
16943 * cp-abi.c (_initialize_cp_abi): Add declaration.
16944 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16945 * cp-support.c (_initialize_cp_support): Add declaration.
16946 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16947 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16948 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16949 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16950 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16951 * ctfread.c (_initialize_ctfread): Add declaration.
16952 * d-lang.c (_initialize_d_language): Add declaration.
16953 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16954 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16955 * dbxread.c (_initialize_dbxread): Add declaration.
16956 * dcache.c (_initialize_dcache): Add declaration.
16957 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16958 * disasm.c (_initialize_disasm): Add declaration.
16959 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16960 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16961 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16962 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16963 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16964 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16965 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16966 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16967 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16968 * elfread.c (_initialize_elfread): Add declaration.
16969 * exec.c (_initialize_exec): Add declaration.
16970 * extension.c (_initialize_extension): Add declaration.
16971 * f-lang.c (_initialize_f_language): Add declaration.
16972 * f-valprint.c (_initialize_f_valprint): Add declaration.
16973 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16974 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16975 * filesystem.c (_initialize_filesystem): Add declaration.
16976 * findcmd.c (_initialize_mem_search): Add declaration.
16977 * findvar.c (_initialize_findvar): Add declaration.
16978 * fork-child.c (_initialize_fork_child): Add declaration.
16979 * frame-base.c (_initialize_frame_base): Add declaration.
16980 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16981 * frame.c (_initialize_frame): Add declaration.
16982 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16983 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16984 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16985 * gcore.c (_initialize_gcore): Add declaration.
16986 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16987 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16988 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16989 * gdbarch.c (_initialize_gdbarch): Add declaration.
16990 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16991 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16992 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16993 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16994 * go-lang.c (_initialize_go_language): Add declaration.
16995 * go32-nat.c (_initialize_go32_nat): Add declaration.
16996 * guile/guile.c (_initialize_guile): Add declaration.
16997 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16998 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16999 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17000 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17001 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17002 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17003 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17004 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17005 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17006 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17007 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17008 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17009 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17010 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17011 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17012 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17013 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17014 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17015 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17016 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17017 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17018 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17019 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17020 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17021 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17022 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17023 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17024 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17025 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17026 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17027 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17028 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17029 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17030 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17031 * infcall.c (_initialize_infcall): Add declaration.
17032 * infcmd.c (_initialize_infcmd): Add declaration.
17033 * inflow.c (_initialize_inflow): Add declaration.
17034 * infrun.c (_initialize_infrun): Add declaration.
17035 * interps.c (_initialize_interpreter): Add declaration.
17036 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17037 * jit.c (_initialize_jit): Add declaration.
17038 * language.c (_initialize_language): Add declaration.
17039 * linux-fork.c (_initialize_linux_fork): Add declaration.
17040 * linux-nat.c (_initialize_linux_nat): Add declaration.
17041 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17042 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17043 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17044 * m2-lang.c (_initialize_m2_language): Add declaration.
17045 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17046 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17047 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17048 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17049 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17050 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17051 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17052 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17053 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17054 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17055 * machoread.c (_initialize_machoread): Add declaration.
17056 * macrocmd.c (_initialize_macrocmd): Add declaration.
17057 * macroscope.c (_initialize_macroscope): Add declaration.
17058 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17059 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17060 * maint.c (_initialize_maint_cmds): Add declaration.
17061 * mdebugread.c (_initialize_mdebugread): Add declaration.
17062 * memattr.c (_initialize_mem): Add declaration.
17063 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17064 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17065 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17066 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17067 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17068 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17069 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17070 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17071 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17072 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17073 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17074 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17075 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17076 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17077 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17078 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17079 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17080 * mipsread.c (_initialize_mipsread): Add declaration.
17081 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17082 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17083 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17084 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17085 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17086 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17087 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17088 * nto-procfs.c (_initialize_procfs): Add declaration.
17089 * objc-lang.c (_initialize_objc_language): Add declaration.
17090 * observable.c (_initialize_observer): Add declaration.
17091 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17092 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17093 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17094 * osabi.c (_initialize_gdb_osabi): Add declaration.
17095 * osdata.c (_initialize_osdata): Add declaration.
17096 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17097 * parse.c (_initialize_parse): Add declaration.
17098 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17099 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17100 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17101 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17102 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17103 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17104 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17105 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17106 * printcmd.c (_initialize_printcmd): Add declaration.
17107 * probe.c (_initialize_probe): Add declaration.
17108 * proc-api.c (_initialize_proc_api): Add declaration.
17109 * proc-events.c (_initialize_proc_events): Add declaration.
17110 * proc-service.c (_initialize_proc_service): Add declaration.
17111 * procfs.c (_initialize_procfs): Add declaration.
17112 * producer.c (_initialize_producer): Add declaration.
17113 * psymtab.c (_initialize_psymtab): Add declaration.
17114 * python/python.c (_initialize_python): Add declaration.
17115 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17116 * record-btrace.c (_initialize_record_btrace): Add declaration.
17117 * record-full.c (_initialize_record_full): Add declaration.
17118 * record.c (_initialize_record): Add declaration.
17119 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17120 * regcache.c (_initialize_regcache): Add declaration.
17121 * reggroups.c (_initialize_reggroup): Add declaration.
17122 * remote-notif.c (_initialize_notif): Add declaration.
17123 * remote-sim.c (_initialize_remote_sim): Add declaration.
17124 * remote.c (_initialize_remote): Add declaration.
17125 * reverse.c (_initialize_reverse): Add declaration.
17126 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17127 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17128 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17129 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17130 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17131 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17132 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17133 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17135 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17136 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17137 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17138 * rust-exp.y (_initialize_rust_exp): Add declaration.
17139 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17140 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17141 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17142 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17143 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17144 * score-tdep.c (_initialize_score_tdep): Add declaration.
17145 * ser-go32.c (_initialize_ser_dos): Add declaration.
17146 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17147 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17148 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17149 * ser-uds.c (_initialize_ser_socket): Add declaration.
17150 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17151 * serial.c (_initialize_serial): Add declaration.
17152 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17153 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17154 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17155 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17156 * skip.c (_initialize_step_skip): Add declaration.
17157 * sol-thread.c (_initialize_sol_thread): Add declaration.
17158 * solib-aix.c (_initialize_solib_aix): Add declaration.
17159 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17160 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17161 * solib-frv.c (_initialize_frv_solib): Add declaration.
17162 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17163 * solib-target.c (_initialize_solib_target): Add declaration.
17164 * solib.c (_initialize_solib): Add declaration.
17165 * source-cache.c (_initialize_source_cache): Add declaration.
17166 * source.c (_initialize_source): Add declaration.
17167 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17168 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17169 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17170 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17171 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17172 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17173 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17174 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17175 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17176 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17177 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17178 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17179 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17180 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17181 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17182 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17183 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17184 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17185 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17186 * stabsread.c (_initialize_stabsread): Add declaration.
17187 * stack.c (_initialize_stack): Add declaration.
17188 * stap-probe.c (_initialize_stap_probe): Add declaration.
17189 * std-regs.c (_initialize_frame_reg): Add declaration.
17190 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17191 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17192 * symfile.c (_initialize_symfile): Add declaration.
17193 * symmisc.c (_initialize_symmisc): Add declaration.
17194 * symtab.c (_initialize_symtab): Add declaration.
17195 * target.c (_initialize_target): Add declaration.
17196 * target-connection.c (_initialize_target_connection): Add
17198 * target-dcache.c (_initialize_target_dcache): Add declaration.
17199 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17200 * thread.c (_initialize_thread): Add declaration.
17201 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17202 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17203 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17204 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17205 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17206 * tracectf.c (_initialize_ctf): Add declaration.
17207 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17208 * tracefile.c (_initialize_tracefile): Add declaration.
17209 * tracepoint.c (_initialize_tracepoint): Add declaration.
17210 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17211 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17212 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17213 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17214 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17215 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17216 * tui/tui.c (_initialize_tui): Add declaration.
17217 * typeprint.c (_initialize_typeprint): Add declaration.
17218 * ui-style.c (_initialize_ui_style): Add declaration.
17219 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17220 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17221 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17222 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17223 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17224 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17225 * unittests/filtered_iterator-selftests.c
17226 (_initialize_filtered_iterator_selftests): Add declaration.
17227 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17228 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17229 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17230 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17231 * unittests/main-thread-selftests.c
17232 (_initialize_main_thread_selftests): Add declaration.
17233 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17234 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17235 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17236 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17237 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17238 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17239 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17240 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17241 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17242 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17243 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17244 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17245 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17246 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17247 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17249 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17250 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17251 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17252 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17253 * user-regs.c (_initialize_user_regs): Add declaration.
17254 * utils.c (_initialize_utils): Add declaration.
17255 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17256 * valops.c (_initialize_valops): Add declaration.
17257 * valprint.c (_initialize_valprint): Add declaration.
17258 * value.c (_initialize_values): Add declaration.
17259 * varobj.c (_initialize_varobj): Add declaration.
17260 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17261 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17262 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17263 * windows-nat.c (_initialize_windows_nat): Add declaration.
17264 (_initialize_check_for_gdb_ini): Add declaration.
17265 (_initialize_loadable): Add declaration.
17266 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17267 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17268 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17269 * xcoffread.c (_initialize_xcoffread): Add declaration.
17270 * xml-support.c (_initialize_xml_support): Add declaration.
17271 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17272 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17273 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17274 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17276 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17278 * regformats/regdat.sh: Generate declaration for init function.
17280 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17282 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17284 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17285 close_one_inferior>: New methods.
17286 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17287 pass down target to find_inferior_pid.
17288 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17289 Pass down target to find_inferior_ptid.
17290 (gdbsim_target::create_inferior): Pass down target to
17292 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17293 target down to find_inferior_ptid and switch_to_thread.
17294 (gdbsim_target::close): Update to call close_one_inferior.
17295 (struct resume_data): Remove.
17296 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17297 directly, rather than through a void pointer.
17298 (gdbsim_target::resume): Update to call resume_one_inferior.
17300 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17302 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17304 2020-01-12 Pedro Alves <palves@redhat.com>
17306 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17307 directly for the current inferior instead of
17308 discard_all_inferiors.
17309 (discard_all_inferiors): Delete.
17311 2020-01-11 Tom Tromey <tom@tromey.com>
17313 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17314 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17315 deprecated_safe_get_selected_frame.
17317 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17319 * inferior.c (print_inferior): Switch inferior before printing it.
17321 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17322 Pedro Alves <palves@redhat.com>
17324 * progspace-and-thread.c (switch_to_program_space_and_thread):
17325 Assert there's an inferior for PSPACE. Use
17326 switch_to_inferior_no_thread to switch the inferior too.
17327 * progspace.c (program_space::~program_space): Call
17328 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17329 (program_space::free_all_objfiles): Don't call clear_symtab_users
17331 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17333 2020-01-10 Pedro Alves <palves@redhat.com>
17335 * NEWS: Mention multi-target debugging, "info connections", and
17336 "add-inferior -no-connection".
17338 2020-01-10 Pedro Alves <palves@redhat.com>
17340 * infrun.c: Include "target-connection.h".
17341 (check_multi_target_resumption): New.
17342 (proceed): Call it.
17343 * target-connection.c (make_target_connection_string): Make
17345 * target-connection.h (make_target_connection_string): Declare.
17347 2020-01-10 Pedro Alves <palves@redhat.com>
17349 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17350 * inferior.c (uiout_field_connection): New function.
17351 (print_inferior): Add new "connection-id" column.
17352 (add_inferior_command): Show connection number/string of added
17354 * process-stratum-target.h
17355 (process_stratum_target::connection_string): New virtual method.
17356 (process_stratum_target::connection_number): New field.
17357 * remote.c (remote_target::connection_string): New override.
17358 * target-connection.c: New file.
17359 * target-connection.h: New file.
17360 * target.c (decref_target): Remove process_stratum targets from
17361 the connection list.
17362 (target_stack::push): Add process_stratum targets to the
17365 2020-01-10 Pedro Alves <palves@redhat.com>
17368 2016-04-12 Pedro Alves <palves@redhat.com>
17369 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17370 Remove references to name.
17371 * serial.h (struct serial) <name>: Delete.
17373 2020-01-10 Pedro Alves <palves@redhat.com>
17375 * gdbarch-selftests.c (register_to_value_test): Remove "target
17376 already pushed" check.
17378 2020-01-10 Pedro Alves <palves@redhat.com>
17379 John Baldwin <jhb@FreeBSD.org>
17381 * aarch64-linux-nat.c
17382 (aarch64_linux_nat_target::thread_architecture): Adjust.
17383 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17384 (task_command_1): Likewise.
17385 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17386 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17387 (aix_thread_target::store_registers)
17388 (aix_thread_target::thread_alive): Adjust.
17389 * amd64-fbsd-tdep.c: Include "inferior.h".
17390 (amd64fbsd_get_thread_local_address): Pass down target.
17391 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17392 thread's gdbarch instead of target_gdbarch.
17393 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17394 get_last_target_status.
17395 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17396 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17398 (update_inserted_breakpoint_locations): Skip if inferiors with no
17400 (update_global_location_list): When handling moribund locations,
17401 find representative inferior for location's pspace, and use thread
17402 count of its process_stratum target.
17403 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17404 * bsd-uthread.c (bsd_uthread_target::wait): Use
17405 as_process_stratum_target and adjust thread_change_ptid and
17407 (bsd_uthread_target::update_thread_list): Use
17408 as_process_stratum_target and adjust find_thread_ptid,
17409 thread_change_ptid and add_thread calls.
17410 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17411 find_thread_ptid call.
17412 * corelow.c (add_to_thread_list): Adjust add_thread call.
17413 (core_target_open): Adjust add_thread_silent and thread_count
17415 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17416 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17417 * event-top.c (async_disconnect): Pop targets from all inferiors.
17418 * exec.c (add_target_sections): Push exec target on all inferiors
17419 sharing the program space.
17420 (remove_target_sections): Remove the exec target from all
17421 inferiors sharing the program space.
17422 (exec_on_vfork): New.
17423 * exec.h (exec_on_vfork): Declare.
17424 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17426 (fbsd_nat_target::update_thread_list): Adjust.
17427 (fbsd_nat_target::resume): Adjust.
17428 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17430 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17431 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17432 get_thread_arch_regcache call.
17433 * fork-child.c (gdb_startup_inferior): Pass target down to
17434 startup_inferior and set_executing.
17435 * gdbthread.h (struct process_stratum_target): Forward declare.
17436 (add_thread, add_thread_silent, add_thread_with_info)
17437 (in_thread_list): Add process_stratum_target parameter.
17438 (find_thread_ptid(inferior*, ptid_t)): New overload.
17439 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17441 (all_threads()): Delete overload.
17442 (all_threads, all_non_exited_threads): Add process_stratum_target
17444 (all_threads_safe): Use brace initialization.
17445 (thread_count): Add process_stratum_target parameter.
17446 (set_resumed, set_running, set_stop_requested, set_executing)
17447 (threads_are_executing, finish_thread_state): Add
17448 process_stratum_target parameter.
17449 (switch_to_thread): Use is_current_thread.
17450 * i386-fbsd-tdep.c: Include "inferior.h".
17451 (i386fbsd_get_thread_local_address): Pass down target.
17452 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17453 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17454 have_inferiors check.
17455 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17456 (inf_ptrace_target::attach): Adjust.
17457 * infcall.c (run_inferior_call): Adjust.
17458 * infcmd.c (run_command_1): Pass target to
17459 scoped_finish_thread_state.
17460 (proceed_thread_callback): Skip inferiors with no execution.
17461 (continue_command): Rename 'all_threads' local to avoid hiding
17462 'all_threads' function. Adjust get_last_target_status call.
17463 (prepare_one_step): Adjust set_running call.
17464 (signal_command): Use user_visible_resume_target. Compare thread
17465 pointers instead of inferior_ptid.
17466 (info_program_command): Adjust to pass down target.
17467 (attach_command): Mark target's 'thread_executing' flag.
17468 (stop_current_target_threads_ns): New, factored out from ...
17469 (interrupt_target_1): ... this. Switch inferior before making
17472 (struct all_inferiors_iterator, struct all_inferiors_range)
17473 (struct all_inferiors_safe_range)
17474 (struct all_non_exited_inferiors_range): Filter on
17475 process_stratum_target too. Remove explicit.
17476 * inferior.c (inferior::inferior): Push dummy target on target
17478 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17479 Add process_stratum_target parameter, and pass it down.
17480 (have_live_inferiors): Adjust.
17481 (switch_to_inferior_and_push_target): New.
17482 (add_inferior_command, clone_inferior_command): Handle
17483 "-no-connection" parameter. Use
17484 switch_to_inferior_and_push_target.
17485 (_initialize_inferior): Mention "-no-connection" option in
17486 the help of "add-inferior" and "clone-inferior" commands.
17487 * inferior.h: Include "process-stratum-target.h".
17488 (interrupt_target_1): Use bool.
17489 (struct inferior) <push_target, unpush_target, target_is_pushed,
17490 find_target_beneath, top_target, process_target, target_at,
17492 (discard_all_inferiors): Delete.
17493 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17494 (all_inferiors, all_non_exited_inferiors): Add
17495 process_stratum_target parameter.
17496 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17497 (target_last_proc_target): New global.
17498 (follow_fork_inferior): Push target on new inferior. Pass target
17499 to add_thread_silent. Call exec_on_vfork. Handle target's
17501 (follow_fork): Adjust get_last_target_status call. Also consider
17503 (follow_exec): Push target on new inferior.
17504 (struct execution_control_state) <target>: New field.
17505 (user_visible_resume_target): New.
17506 (do_target_resume): Call target_async.
17507 (resume_1): Set target's threads_executing flag. Consider resume
17509 (commit_resume_all_targets): New.
17510 (proceed): Also consider resume target. Skip threads of inferiors
17511 with no execution. Commit resumtion in all targets.
17512 (start_remote): Pass current inferior to wait_for_inferior.
17513 (infrun_thread_stop_requested): Consider target as well. Pass
17514 thread_info pointer to clear_inline_frame_state instead of ptid.
17515 (infrun_thread_thread_exit): Consider target as well.
17516 (random_pending_event_thread): New inferior parameter. Use it.
17517 (do_target_wait): Rename to ...
17518 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17520 (threads_are_resumed_pending_p, do_target_wait): New.
17521 (prepare_for_detach): Adjust calls.
17522 (wait_for_inferior): New inferior parameter. Handle it. Use
17523 do_target_wait_1 instead of do_target_wait.
17524 (fetch_inferior_event): Adjust. Switch to representative
17525 inferior. Pass target down.
17526 (set_last_target_status): Add process_stratum_target parameter.
17527 Save target in global.
17528 (get_last_target_status): Add process_stratum_target parameter and
17530 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17531 (context_switch): Check inferior_ptid == null_ptid before calling
17533 (get_inferior_stop_soon): Pass down target.
17534 (wait_one): Rename to ...
17535 (poll_one_curr_target): ... this.
17536 (struct wait_one_event): New.
17538 (stop_all_threads): Adjust.
17539 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17541 (switch_back_to_stepped_thread): Also consider target.
17542 (print_stop_event): Update.
17543 (normal_stop): Update. Also consider the resume target.
17544 * infrun.h (wait_for_inferior): Remove declaration.
17545 (user_visible_resume_target): New declaration.
17546 (get_last_target_status, set_last_target_status): New
17547 process_stratum_target parameter.
17548 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17549 process_stratum_target parameter, and use it.
17550 (clear_inline_frame_state (thread_info*)): New.
17551 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17552 process_stratum_target parameter.
17553 (clear_inline_frame_state (thread_info*)): Declare.
17554 * linux-fork.c (delete_checkpoint_command): Pass target down to
17556 (checkpoint_command): Adjust.
17557 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17558 instead of just tweaking inferior_ptid.
17559 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17560 (exit_lwp): Pass target down to find_thread_ptid.
17561 (attach_proc_task_lwp_callback): Pass target down to
17562 add_thread/set_running/set_executing.
17563 (linux_nat_target::attach): Pass target down to
17564 thread_change_ptid.
17565 (get_detach_signal): Pass target down to find_thread_ptid.
17566 Consider last target status's target.
17567 (linux_resume_one_lwp_throw, resume_lwp)
17568 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17569 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17570 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17571 (linux_nat_target::async_wait_fd): New.
17572 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17574 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17575 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17576 * linux-thread-db.c (struct thread_db_info::process_target): New
17578 (add_thread_db_info): Save target.
17579 (get_thread_db_info): New process_stratum_target parameter. Also
17581 (delete_thread_db_info): New process_stratum_target parameter.
17583 (thread_from_lwp): Adjust to pass down target.
17584 (thread_db_notice_clone): Pass down target.
17585 (check_thread_db_callback): Pass down target.
17586 (try_thread_db_load_1): Always push the thread_db target.
17587 (try_thread_db_load, record_thread): Pass target down.
17588 (thread_db_target::detach): Pass target down. Always unpush the
17590 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17591 target down. Always unpush the thread_db target.
17592 (find_new_threads_callback, thread_db_find_new_threads_2)
17593 (thread_db_target::update_thread_list): Pass target down.
17594 (thread_db_target::pid_to_str): Pass current inferior down.
17595 (thread_db_target::get_thread_local_address): Pass target down.
17596 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17598 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17599 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17600 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17601 (procfs_init_inferior): Rename to ...
17602 (procfs_target::procfs_init_inferior): ... this and adjust.
17603 (procfs_target::create_inferior, procfs_notice_thread)
17604 (procfs_do_thread_registers): Adjust.
17605 * ppc-fbsd-tdep.c: Include "inferior.h".
17606 (ppcfbsd_get_thread_local_address): Pass down target.
17607 * proc-service.c (ps_xfer_memory): Switch current inferior and
17608 program space as well.
17609 (get_ps_regcache): Pass target down.
17610 * process-stratum-target.c
17611 (process_stratum_target::thread_address_space)
17612 (process_stratum_target::thread_architecture): Pass target down.
17613 * process-stratum-target.h
17614 (process_stratum_target::threads_executing): New field.
17615 (as_process_stratum_target): New.
17616 * ravenscar-thread.c
17617 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17618 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17620 * record-btrace.c (record_btrace_target::info_record): Adjust.
17621 (record_btrace_target::record_method)
17622 (record_btrace_target::record_is_replaying)
17623 (record_btrace_target::fetch_registers)
17624 (get_thread_current_frame_id, record_btrace_target::resume)
17625 (record_btrace_target::wait, record_btrace_target::stop): Pass
17627 * record-full.c (record_full_wait_1): Switch to event thread.
17629 * regcache.c (regcache::regcache)
17630 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17631 process_stratum_target parameter and handle it.
17632 (current_thread_target): New global.
17633 (get_thread_regcache): Add process_stratum_target parameter and
17634 handle it. Switch inferior before calling target method.
17635 (get_thread_regcache): Pass target down.
17636 (get_thread_regcache_for_ptid): Pass target down.
17637 (registers_changed_ptid): Add process_stratum_target parameter and
17639 (registers_changed_thread, registers_changed): Pass target down.
17640 (test_get_thread_arch_aspace_regcache): New.
17641 (current_regcache_test): Define a couple local test_target_ops
17642 instances and use them for testing.
17643 (readwrite_regcache): Pass process_stratum_target parameter.
17644 (cooked_read_test, cooked_write_test): Pass mock_target down.
17645 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17646 (get_thread_arch_aspace_regcache): Add process_stratum_target
17648 (regcache::target): New method.
17649 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17650 (regcache::registers_changed_ptid): Add process_stratum_target
17652 (regcache::m_target): New field.
17653 (registers_changed_ptid): Add process_stratum_target parameter.
17654 * remote.c (remote_state::supports_vCont_probed): New field.
17655 (remote_target::async_wait_fd): New method.
17656 (remote_unpush_and_throw): Add remote_target parameter.
17657 (get_current_remote_target): Adjust.
17658 (remote_target::remote_add_inferior): Push target.
17659 (remote_target::remote_add_thread)
17660 (remote_target::remote_notice_new_inferior)
17661 (get_remote_thread_info): Pass target down.
17662 (remote_target::update_thread_list): Skip threads of inferiors
17663 bound to other targets. (remote_target::close): Don't discard
17664 inferiors. (remote_target::add_current_inferior_and_thread)
17665 (remote_target::process_initial_stop_replies)
17666 (remote_target::start_remote)
17667 (remote_target::remote_serial_quit_handler): Pass down target.
17668 (remote_target::remote_unpush_target): New remote_target
17669 parameter. Unpush the target from all inferiors.
17670 (remote_target::remote_unpush_and_throw): New remote_target
17671 parameter. Pass it down.
17672 (remote_target::open_1): Check whether the current inferior has
17673 execution instead of checking whether any inferior is live. Pass
17675 (remote_target::remote_detach_1): Pass down target. Use
17676 remote_unpush_target.
17677 (extended_remote_target::attach): Pass down target.
17678 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17679 (remote_target::append_resumption): Pass down target.
17680 (remote_target::append_pending_thread_resumptions)
17681 (remote_target::remote_resume_with_hc, remote_target::resume)
17682 (remote_target::commit_resume): Pass down target.
17683 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17684 (remote_target::interrupt_query)
17685 (remote_target::remove_new_fork_children)
17686 (remote_target::check_pending_events_prevent_wildcard_vcont)
17687 (remote_target::remote_parse_stop_reply)
17688 (remote_target::process_stop_reply): Pass down target.
17689 (first_remote_resumed_thread): New remote_target parameter. Pass
17691 (remote_target::wait_as): Pass down target.
17692 (unpush_and_perror): New remote_target parameter. Pass it down.
17693 (remote_target::readchar, remote_target::remote_serial_write)
17694 (remote_target::getpkt_or_notif_sane_1)
17695 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17697 (remote_target::mourn_inferior): Pass down target. Use
17698 remote_unpush_target.
17699 (remote_target::core_of_thread)
17700 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17701 (remote_target::pid_to_exec_file)
17702 (remote_target::thread_handle_to_thread_info): Pass down target.
17703 (remote_target::async_wait_fd): New.
17704 * riscv-fbsd-tdep.c: Include "inferior.h".
17705 (riscv_fbsd_get_thread_local_address): Pass down target.
17706 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17707 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17708 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17710 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17711 * solib-svr4.c (enable_break): Pass down target.
17712 * spu-multiarch.c (parse_spufs_run): Pass down target.
17713 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17714 * target-delegates.c: Regenerate.
17715 * target.c (g_target_stack): Delete.
17716 (current_top_target): Return the current inferior's top target.
17717 (target_has_execution_1): Refer to the passed-in inferior's top
17719 (target_supports_terminal_ours): Check whether the initial
17720 inferior was already created.
17721 (decref_target): New.
17722 (target_stack::push): Incref/decref the target.
17723 (push_target, push_target, unpush_target): Adjust.
17724 (target_stack::unpush): Defref target.
17725 (target_is_pushed): Return bool. Adjust to refer to the current
17726 inferior's target stack.
17727 (dispose_inferior): Delete, and inline parts ...
17728 (target_preopen): ... here. Only dispose of the current inferior.
17729 (target_detach): Hold strong target reference while detaching.
17731 (target_thread_name): Add assertion.
17732 (target_resume): Pass down target.
17733 (target_ops::beneath, find_target_at): Adjust to refer to the
17734 current inferior's target stack.
17735 (get_dummy_target): New.
17736 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17737 has a thread running.
17738 (initialize_targets): Rename to ...
17739 (_initialize_target): ... this.
17740 * target.h: Include "gdbsupport/refcounted-object.h".
17741 (struct target_ops): Inherit refcounted_object.
17742 (target_ops::shortname, target_ops::longname): Make const.
17743 (target_ops::async_wait_fd): New method.
17744 (decref_target): Declare.
17745 (struct target_ops_ref_policy): New.
17746 (target_ops_ref): New typedef.
17747 (get_dummy_target): Declare function.
17748 (target_is_pushed): Return bool.
17749 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17750 (all_matching_threads_iterator::all_matching_threads_iterator):
17751 Handle filter target.
17752 * thread-iter.h (struct all_matching_threads_iterator, struct
17753 all_matching_threads_range, class all_non_exited_threads_range):
17754 Filter by target too. Remove explicit.
17755 * thread.c (threads_executing): Delete.
17756 (inferior_thread): Pass down current inferior.
17757 (clear_thread_inferior_resources): Pass down thread pointer
17759 (add_thread_silent, add_thread_with_info, add_thread): Add
17760 process_stratum_target parameter. Use it for thread and inferior
17762 (is_current_thread): New.
17763 (thread_info::deletable): Use it.
17764 (find_thread_ptid, thread_count, in_thread_list)
17765 (thread_change_ptid, set_resumed, set_running): New
17766 process_stratum_target parameter. Pass it down.
17767 (set_executing): New process_stratum_target parameter. Pass it
17768 down. Adjust reference to 'threads_executing'.
17769 (threads_are_executing): New process_stratum_target parameter.
17770 Adjust reference to 'threads_executing'.
17771 (set_stop_requested, finish_thread_state): New
17772 process_stratum_target parameter. Pass it down.
17773 (switch_to_thread): Also match inferior.
17774 (switch_to_thread): New process_stratum_target parameter. Pass it
17776 (update_threads_executing): Reimplement.
17777 * top.c (quit_force): Pop targets from all inferior.
17778 (gdb_init): Don't call initialize_targets.
17779 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17781 (windows_add_thread, windows_delete_thread): Adjust.
17782 (get_windows_debug_event): Rename to ...
17783 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17784 * tracefile-tfile.c (tfile_target_open): Pass down target.
17785 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17787 (switch_to_thread): Add process_stratum_target parameter.
17788 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17790 (mi_on_resume): Pass target down.
17791 * nat/fork-inferior.c (startup_inferior): Add
17792 process_stratum_target parameter. Pass it down.
17793 * nat/fork-inferior.h (startup_inferior): Add
17794 process_stratum_target parameter.
17795 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17797 2020-01-10 Pedro Alves <palves@redhat.com>
17799 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17800 directly. Instead find the first thread in the thread list and
17801 use switch_to_thread.
17803 2020-01-10 Pedro Alves <palves@redhat.com>
17805 * remote.c (remote_target::remote_add_inferior): Don't bind a
17806 process to the current inferior if the current inferior is already
17807 bound to a process.
17809 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17810 Pedro Alves <palves@redhat.com>
17812 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17813 If no process is specified, return null_ptid instead of
17815 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17816 TARGET_WAITKIND_SIGNALLED with no pid.
17818 2020-01-10 Pedro Alves <palves@redhat.com>
17820 * remote.c (first_remote_resumed_thread): New.
17821 (remote_target::wait_as): Use it as default event_ptid instead of
17824 2020-01-10 Pedro Alves <palves@redhat.com>
17826 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17828 2020-01-10 Pedro Alves <palves@redhat.com>
17830 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17833 2020-01-10 Pedro Alves <palves@redhat.com>
17835 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17836 ptid to get_last_target_status.
17837 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17838 ptid to get_last_target_status.
17839 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17840 get_last_target_status.
17841 (info_program_command): Don't pass a target_waitstatus to
17842 get_last_target_status.
17843 * infrun.c (init_wait_for_inferior): Use
17844 nullify_last_target_wait_ptid.
17845 (get_last_target_status): Handle nullptr arguments.
17846 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17847 (print_stop_event): Don't pass a ptid to get_last_target_status.
17848 (normal_stop): Don't pass a ptid to get_last_target_status.
17849 * infrun.h (get_last_target_status, set_last_target_status): Move
17850 comments here and update.
17851 (nullify_last_target_wait_ptid): Declare.
17852 * linux-fork.c (fork_load_infrun_state): Remove local extern
17853 declaration of nullify_last_target_wait_ptid.
17854 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17855 to get_last_target_status.
17857 2020-01-10 Pedro Alves <palves@redhat.com>
17859 * gdbthread.h (scoped_restore_current_thread)
17860 <dont_restore, restore, m_dont_restore>: Declare.
17861 * thread.c (thread_alive): Add assertion. Return bool.
17862 (switch_to_thread_if_alive): New.
17863 (prune_threads): Switch inferior/thread.
17864 (print_thread_info_1): Switch thread before calling target methods.
17865 (scoped_restore_current_thread::restore): New, factored out from
17867 (scoped_restore_current_thread::~scoped_restore_current_thread):
17869 (scoped_restore_current_thread::scoped_restore_current_thread):
17871 (thread_apply_all_command, thread_select): Use
17872 switch_to_thread_if_alive.
17873 * infrun.c (proceed, restart_threads, handle_signal_stop)
17874 (switch_back_to_stepped_thread): Switch current thread before
17875 calling target methods.
17877 2020-01-10 Pedro Alves <palves@redhat.com>
17879 * inferior.c (switch_to_inferior_no_thread): New function,
17880 factored out from ...
17881 (inferior_command): ... here.
17882 * inferior.h (switch_to_inferior_no_thread): Declare.
17883 * mi/mi-main.c (run_one_inferior): Use
17884 switch_to_inferior_no_thread.
17886 2020-01-10 Pedro Alves <palves@redhat.com>
17888 * infcmd.c (kill_command): Remove dead code.
17890 2020-01-10 Pedro Alves <palves@redhat.com>
17892 * remote.c (remote_target::mourn_inferior): No longer check
17893 whether the target is running.
17895 2020-01-10 Pedro Alves <palves@redhat.com>
17897 * corelow.c (core_target::has_execution): Change parameter type to
17899 * inferior.c (number_of_live_inferiors): Use
17900 inferior::has_execution instead of target_has_execution_1.
17901 * inferior.h (inferior::has_execution): New.
17902 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17903 inferior::has_execution instead of target_has_execution_1.
17904 * process-stratum-target.c
17905 (process_stratum_target::has_execution): Change parameter type to
17906 inferior pointer. Check the inferior's PID instead of
17908 * process-stratum-target.h
17909 (process_stratum_target::has_execution): Change parameter type to
17911 * record-full.c (record_full_core_target::has_execution): Change
17912 parameter type to inferior pointer.
17913 * target.c (target_has_execution_1): Change parameter type to
17915 (target_has_execution_current): Adjust.
17916 * target.h (target_ops::has_execution): Change parameter type to
17918 (target_has_execution_1): Change parameter type to inferior
17919 pointer. Change return type to bool.
17920 * tracefile.h (tracefile_target::has_execution): Change parameter
17921 type to inferior pointer.
17923 2020-01-10 Pedro Alves <palves@redhat.com>
17925 * exceptions.c (print_flush): Remove current_top_target() check.
17927 2020-01-10 Pedro Alves <palves@redhat.com>
17929 * remote.c (show_remote_exec_file): Show the current inferior's
17930 exec-file instead of the command variable's value.
17932 2020-01-10 Pedro Alves <palves@redhat.com>
17934 * record-full.c (record_full_resume_ptid): New global.
17935 (record_full_target::resume): Set it.
17936 (record_full_wait_1): Use record_full_resume_ptid instead of
17939 2020-01-10 Pedro Alves <palves@redhat.com>
17941 * gdbthread.h (scoped_restore_current_thread)
17942 <dont_restore, restore, m_dont_restore>: Declare.
17943 * thread.c (thread_alive): Add assertion. Return bool.
17944 (switch_to_thread_if_alive): New.
17945 (prune_threads): Switch inferior/thread.
17946 (print_thread_info_1): Switch thread before calling target methods.
17947 (scoped_restore_current_thread::restore): New, factored out from
17949 (scoped_restore_current_thread::~scoped_restore_current_thread):
17951 (scoped_restore_current_thread::scoped_restore_current_thread):
17953 (thread_apply_all_command, thread_select): Use
17954 switch_to_thread_if_alive.
17956 2020-01-10 George Barrett <bob@bob131.so>
17958 * stap-probe.c (stap_modify_semaphore): Don't check for null
17960 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17961 for null semaphores.
17963 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17965 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17966 all source windows, and maintain horizontal scroll status while
17969 2020-01-09 Tom Tromey <tom@tromey.com>
17972 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17973 update_source_window, not print_source_lines.
17975 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17977 * tui/tui.c (tui_enable): Register tui hooks after calling
17980 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17982 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17984 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17986 * thread.c (print_thread_info_1): Fix indentation.
17988 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17990 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17991 unique_xmalloc_ptr outside the if to always free the demangled name.
17993 2020-01-08 Tom Tromey <tromey@adacore.com>
17995 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17996 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17997 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17998 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18000 (section_offsets): New typedef.
18001 * symtab.c (fixup_section, get_msymbol_address): Update.
18002 * symmisc.c (dump_msymbols): Update.
18003 * symfile.h (relative_addr_info_to_section_offsets)
18004 (symfile_map_offsets_to_segments): Update.
18005 * symfile.c (build_section_addr_info_from_objfile)
18006 (init_objfile_sect_indices): Update.
18007 (struct place_section_arg): Change type of "offsets".
18008 (place_section): Update.
18009 (relative_addr_info_to_section_offsets): Change type of
18010 "section_offsets". Remove "num_sections" parameter.
18011 (default_symfile_offsets, syms_from_objfile_1)
18012 (set_objfile_default_section_offset): Update.
18013 (reread_symbols): No need to preserve section offsets by hand.
18014 (symfile_map_offsets_to_segments): Change type of "offsets".
18015 * stap-probe.c (relocate_address): Update.
18016 * stabsread.h (process_one_symbol): Update.
18017 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18018 (solib_target_relocate_section_addresses): Update.
18019 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18021 * solib-frv.c (frv_relocate_main_executable): Update.
18022 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18023 * solib-aix.c (solib_aix_get_section_offsets): Change return
18025 (solib_aix_solib_create_inferior_hook): Update.
18026 * remote.c (remote_target::get_offsets): Update.
18027 * psymtab.c (find_pc_sect_psymtab): Update.
18028 * psympriv.h (struct partial_symbol) <address, text_low,
18029 text_high>: Update.
18030 * objfiles.h (obj_section_offset): Update.
18031 (struct objfile) <section_offsets>: Change type.
18032 <num_sections>: Remove.
18033 (objfile_relocate): Update.
18034 * objfiles.c (entry_point_address_query): Update
18035 (relocate_one_symbol): Change type of "section_offsets".
18036 (objfile_relocate1, objfile_relocate1): Change type of
18038 (objfile_rebase1): Update.
18039 * mipsread.c (mipscoff_symfile_read): Update.
18040 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18042 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18043 (parse_external, psymtab_to_symtab_1): Update.
18044 * machoread.c (macho_symfile_offsets): Update.
18045 * ia64-tdep.c (ia64_find_unwind_table): Update.
18046 * hppa-tdep.c (read_unwind_info): Update.
18047 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18048 * dwarf2read.c (create_addrmap_from_index)
18049 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18050 (process_psymtab_comp_unit_reader, add_partial_symbol)
18051 (add_partial_subprogram, process_full_comp_unit)
18052 (read_file_scope, read_func_scope, read_lexical_block_scope)
18053 (read_call_site_scope, dwarf2_rnglists_process)
18054 (dwarf2_ranges_process, dwarf2_ranges_read)
18055 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18056 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18058 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18060 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18061 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18062 (process_one_symbol): Change type of "section_offsets".
18063 * ctfread.c (get_objfile_text_range): Update.
18064 * coffread.c (coff_symtab_read, enter_linenos)
18065 (process_coff_symbol): Update.
18066 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18067 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18069 2020-01-08 Tom Tromey <tromey@adacore.com>
18071 * dwarf2read.c (parse_macro_definition): Use std::string.
18072 (parse_macro_definition): Likewise.
18074 2020-01-08 Tom Tromey <tromey@adacore.com>
18076 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18077 (ATTR_ALLOC_CHUNK): Remove.
18079 2020-01-08 Tom Tromey <tromey@adacore.com>
18081 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18083 2020-01-08 Tom Tromey <tromey@adacore.com>
18085 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18086 (dwarf2_compute_name, open_dwo_file): Likewise.
18087 (process_enumeration_scope): Use std::vector.
18088 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18089 (partial_die_info::fixup, dwarf2_start_subfile)
18090 (guess_full_die_structure_name, dwarf2_name): Likewise.
18091 (determine_prefix): Update.
18092 (guess_full_die_structure_name): Make return type const.
18093 (partial_die_full_name): Return unique_xmalloc_ptr.
18094 (DW_FIELD_ALLOC_CHUNK): Remove.
18096 2020-01-07 Tom Tromey <tromey@adacore.com>
18099 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18101 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18103 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18105 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18107 * stack.c (print_frame_info): Move disassemble_next_line code
18108 inside source_print block.
18110 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18112 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18113 gdb/signals.h, as we are now using native signal symbols.
18115 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18117 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18118 overflow by an early check of content vs threshold.
18119 * tui/tui-source.c (tui_source_window::line_is_displayed):
18122 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18124 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18126 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18128 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18129 export table if no section contains it's RVA.
18131 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18133 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18135 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
18137 * source.c (print_source_lines_base): Set last_line_listed.
18139 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18141 * tui/tui-disasm.c: Remove trailing spaces.
18143 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18144 Pedro Alves <palves@redhat.com>
18146 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18147 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18148 (windows_gdb_signal_to_target): New function, uses the above
18149 enumeration to convert GDB internal signal codes to equivalent
18151 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18152 * windows-nat.c: Include "gdb_wait.h".
18153 (get_windows_debug_event): Extract the fatal exception from the
18154 exit status and convert to the equivalent Posix signal number.
18155 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18156 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18157 * gdbsupport/gdb_wait.c: New file, implements
18158 windows_status_to_termsig.
18159 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18160 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18162 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18164 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18167 2020-01-05 Luis Machado <luis.machado@linaro.org>
18169 * aarch64-linux-nat.c
18170 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18171 and bfd_mach_aarch64.
18173 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18175 * ui-file.c (stdio_file::can_emit_style_escape)
18176 (tee_file::can_emit_style_escape): Ensure style is used also on
18177 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18179 * main.c (set_gdb_data_directory): Use file style to output the
18180 warning that the given pathname is not a directory.
18181 * top.c (show_history_filename, gdb_safe_append_history)
18182 (show_gdb_datadir): Use file style.
18184 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18186 * solib-target.c (struct lm_info_target):
18187 Change offsets to be a unique_xmalloc_ptr.
18188 (solib_target_relocate_section_addresses): Update.
18190 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18192 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18194 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18196 * MAINTAINERS (Write After Approval): Add myself.
18198 2020-01-02 Luis Machado <luis.machado@linaro.org>
18200 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18201 Cell BE architecture.
18202 * target.h (struct target_ops) <thread_architecture>: Likewise.
18204 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18206 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18208 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18210 * MAINTAINERS (Write After Approval): Add myself.
18212 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18214 * gdbarch.sh: Update copyright year range of generated files.
18216 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18218 Update copyright year range in all GDB files.
18220 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18222 * copyright.py: Convert to Python 3.
18224 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18226 * copyright.py: Adapt after move of gnulib directory from gdb
18227 directory to toplevel directory.
18229 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18231 * copyright.py (main): Exit if run from the wrong directory.
18233 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18235 * top.c (print_gdb_version): Change copyright year to 2020.
18237 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18239 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18241 For older changes see ChangeLog-2019.
18247 version-control: never