1 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
3 * NEWS: Mention new commands, and that the old commands are now
5 * cli/cli-cmds.c (maintenanceflushlist): Define.
6 * cli/cli-cmds.h (maintenanceflushlist): Declare.
7 * maint.c (_initialize_maint_cmds): Initialise
9 * regcache.c: Add 'cli/cli-cmds.h' include.
10 (reg_flush_command): Add header comment.
11 (_initialize_regcache): Create new 'maint flush register-cache'
12 command, make 'flushregs' an alias.
13 * symtab.c: Add 'cli/cli-cmds.h' include.
14 (_initialize_symtab): Create new 'maint flush symbol-cache'
15 command, make old command an alias.
17 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
19 * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix
20 result from lookup_cmd_composition_1, use the prefixes from both
21 the command and the alias instead.
22 (lookup_cmd_composition_1): Initial prefix command is the based on
23 the search list being passed in. Simplify the logic for tracking
24 the prefix command. Replace a use of alloca with a local
27 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
29 * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
30 of NULL. Don't print message piece by piece, but sentence at a
31 time to allow internationalisation. Some whitespace cleanup.
33 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
36 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
37 deprecated_cmd_warning.
38 (deprecated_cmd_warning): Take extra parameter, call
39 lookup_cmd_composition_1 and pass new parameter through.
40 (lookup_cmd_composition_1): New function, takes implementation of
41 lookup_cmd_composition but with extra parameter.
42 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
44 * command.h (deprecated_cmd_warning): Add extra parameter to
46 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
48 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
50 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
51 command.h, add extra parameter, and use this to guard giving a
53 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
54 include argument names in declaration, add new argument.
55 * completer.c (complete_line_internal_1): Remove unneeded
56 brackets, pass extra argument to lookup_cmd_1.
58 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
60 * infrun.h (debug_infrun): Make a bool.
61 * infrun.c (debug_infrun): Make a bool.
62 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
65 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
67 * displaced-stepping.h (displaced_debug_printf): Use
68 debug_prefixed_printf_cond.
69 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
70 (dwarf_read_debug_printf_v): Likewise.
71 * infrun.h (infrun_debug_printf): Likewise.
72 * linux-nat.c (linux_nat_debug_printf): Likewise.
74 2020-12-11 Tom Tromey <tom@tromey.com>
76 * p-exp.y (intvar): Remove global.
77 (DOLLAR_VARIABLE): Change type.
79 (exp): Call write_dollar_variable here...
80 (yylex): ... not here.
81 * m2-exp.y (DOLLAR_VARIABLE): Change type.
82 (variable): Call write_dollar_variable here...
83 (yylex): ... not here.
84 * f-exp.y (DOLLAR_VARIABLE): Change type.
85 (exp): Call write_dollar_variable here...
86 (yylex): ... not here.
88 2020-12-11 Tom Tromey <tom@tromey.com>
90 * varobj.c (varobj_create): Update.
91 (install_variable): Return void.
93 2020-12-11 Tom Tromey <tom@tromey.com>
95 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
97 2020-12-11 Tom Tromey <tom@tromey.com>
99 * varobj.c (varobj_clear_saved_item): Remove.
100 (update_dynamic_varobj_children): Update.
101 (varobj::~varobj): Don't call varobj_clear_saved_item.
103 2020-12-11 Tom Tromey <tom@tromey.com>
105 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
106 (update_dynamic_varobj_children, create_child)
107 (create_child_with_value): Update.
108 * varobj-iter.h (struct varobj_item) <value>: Now a
110 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
112 2020-12-11 Tom Tromey <tom@tromey.com>
114 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
115 (varobj_get_iterator): Return unique_ptr.
116 (update_dynamic_varobj_children, install_visualizer)
117 (varobj::~varobj): Update.
118 * python/python-internal.h (py_varobj_get_iterator): Return
120 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
122 2020-12-11 Tom Tromey <tom@tromey.com>
124 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
125 (varobj_clear_saved_item, update_dynamic_varobj_children):
128 2020-12-11 Tom Tromey <tom@tromey.com>
130 * varobj.c (update_dynamic_varobj_children): Update.
131 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
132 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
134 (py_varobj_iter::next): Likewise.
136 2020-12-11 Tom Tromey <tom@tromey.com>
138 * varobj.c (update_dynamic_varobj_children, install_visualizer)
139 (varobj::~varobj): Update.
140 * varobj-iter.h (struct varobj_iter): Change to interface class.
141 (struct varobj_iter_ops): Remove.
142 (varobj_iter_next, varobj_iter_delete): Remove.
143 * python/py-varobj.c (struct py_varobj_iter): Derive from
144 varobj_iter. Add constructor, destructor. Rename members.
145 (py_varobj_iter::~py_varobj_iter): Rename from
147 (py_varobj_iter::next): Rename from py_varobj_iter_next.
148 (py_varobj_iter_ops): Remove.
149 (py_varobj_iter): Rename from py_varobj_iter_ctor.
150 (py_varobj_iter_new): Remove.
151 (py_varobj_get_iterator): Update.
153 2020-12-11 Tom Tromey <tom@tromey.com>
155 * varobj.h (all_root_varobjs): Take a function_view.
156 * varobj.c (all_root_varobjs): Take a function_view.
157 (varobj_invalidate_iter): Remove unused parameter.
158 (varobj_invalidate): Update.
159 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
160 (mi_cmd_var_update_iter): Change parameters.
162 2020-12-11 Tom Tromey <tom@tromey.com>
164 * varobj.c (struct varobj_root) <next>: Remove.
165 (struct vlist): Remove.
166 (rootlist): Now a std::list.
167 (install_variable, uninstall_variable, all_root_varobjs): Update.
169 2020-12-11 Tom Tromey <tom@tromey.com>
171 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
172 (varobj_table): Now htab_t.
173 (varobj_get_handle, install_variable, uninstall_variable):
175 (hash_varobj, eq_varobj_and_string): New functions.
176 (hash_varobj): Update.
178 2020-12-11 Tom Tromey <tom@tromey.com>
180 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
181 * ada-lang.c (check_status_exception): Update.
182 * breakpoint.c (free_bp_location): Remove.
183 (decref_bp_location): Use bp_location_ref_policy.
184 (bpstats::bpstats): Don't call incref_bp_location.
185 (bpstats::~bpstats): Remove.
186 (bpstats::bpstats): Update.
187 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
188 (bp_location::bp_location): Update.
189 (incref_bp_location): Remove.
190 (bkpt_print_it): Update.
191 * breakpoint.h (class bp_location): Derive from
193 (struct bpstats): Remove destructor.
194 <bp_location_at>: Now a bp_location_ref_ptr.
196 (bp_location_ref_ptr): New typedef.
197 (struct bp_location_ref_policy): New.
199 2020-12-11 Tom Tromey <tom@tromey.com>
201 * thread.c (class scoped_inc_dec_ref): Remove.
202 (tp_array_compar_ascending, tp_array_compar_descending): Change
204 (thread_apply_all_command): Use thread_info_ref.
206 2020-12-11 Tom Tromey <tom@tromey.com>
208 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
209 (stop_context::stop_context): Update.
210 (stop_context::~stop_context): Remove.
212 2020-12-11 Tom Tromey <tom@tromey.com>
214 * inferior.c (current_inferior_): Change type.
215 (current_inferior, set_current_inferior, initialize_inferiors):
218 2020-12-11 Tom Tromey <tom@tromey.com>
220 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
223 2020-12-11 Tom Tromey <tromey@adacore.com>
225 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
227 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
228 (read_atcb): Use cpu_id_offset.
230 2020-12-10 Kevin Buettner <kevinb@redhat.com>
232 * ada-lang.c (ada_fold_name): Fix off-by-one error.
234 2020-12-10 Luis Machado <luis.machado@linaro.org>
236 * breakpoint.c (should_be_inserted): Don't output newline.
238 2020-12-10 Luis Machado <luis.machado@linaro.org>
240 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
241 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
242 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
243 * arch/aarch64.h: ... here.
244 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
245 (aarch64_maybe_swab128): New function.
246 (aarch64_sve_regs_copy_to_reg_buf)
247 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
248 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
250 (TF_REG_VALUE_BYTES): New enum value.
251 (trad_frame_value_bytes_p): New function.
252 (trad_frame_set_value_bytes): New function.
253 (trad_frame_set_reg_value_bytes): New function.
254 (trad_frame_get_prev_register): Handle register values saved as bytes.
255 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
256 (struct trad_frame_saved_reg) <data>: New field.
257 (trad_frame_set_value_bytes): New prototype.
258 (trad_frame_value_bytes_p): New prototype.
260 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
262 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
263 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
264 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
266 2020-12-09 Tom Tromey <tromey@adacore.com>
268 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
270 2020-12-09 Tom Tromey <tromey@adacore.com>
272 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
273 and "denominator" to gdb_mpz. Handle block forms.
274 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
275 "denominator" to gdb_mpz.
276 (finish_fixed_point_type): Update.
277 (has_zero_over_zero_small_attribute): Update.
279 2020-12-09 Tom Tromey <tromey@adacore.com>
281 * expprint.c (op_name): Update.
282 * expression.h (enum exp_opcode): Update.
283 * std-operator.def: Add more opcodes.
284 * ada-operator.def, fortran-operator.def: Remove, moving contents
285 into std-operator.def.
287 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
289 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
290 Return {} instead of false.
291 (get_discrete_bounds): Compute high bound only if low bound is
294 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
297 * gdbtypes.c (get_discrete_low_bound): Make non-static.
298 (get_discrete_high_bound): Make non-static.
299 * gdbtypes.h (get_discrete_low_bound): New declaration.
300 (get_discrete_high_bound): New declaration.
301 * valarith.c (value_subscript): Only fetch high bound if
304 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
306 * gdbtypes.c (get_discrete_bounds): Implement with
307 get_discrete_low_bound and get_discrete_high_bound.
308 (get_discrete_low_bound): New.
309 (get_discrete_high_bound): New.
311 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
313 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
315 * gdbtypes.c (get_discrete_bounds): Return bool.
317 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
319 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
320 (ada_value_slice): Adjust.
322 * gdbtypes.c (get_discrete_bounds): Adjust.
323 (discrete_position): Return optional.
324 * gdbtypes.h (discrete_position): Return optional.
326 2020-12-07 Tom Tromey <tromey@adacore.com>
328 * maint.c (_initialize_maint_cmds): Use expression command
329 completer for "maint print type".
331 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
333 * completer.c (complete_explicit_location): Also add keywords
334 that start with '-' to the completion list.
336 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
338 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
339 keyword may be followed by any keyword.
340 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
341 'toklen' in the case for "-force-condition".
343 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
345 * main.c (catch_command_errors): Add a flag parameter; invoke
346 `bpstat_do_actions` if the flag is set.
347 (execute_cmdargs): Update a call to `catch_command_errors`.
349 2020-12-07 Tom de Vries <tdevries@suse.de>
351 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
353 2020-12-06 Tom Tromey <tom@tromey.com>
356 * ada-lang.c (replace_operator_with_call): Rewrite.
358 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
361 * s390-tdep.h (op_bc): Correct BC opcode value.
363 2020-12-06 Joel Brobecker <brobecker@adacore.com>
365 * gmp-utils.h (gdb_mpz::safe_export): New private method.
366 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
367 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
368 (gdb_mpz::safe_export): New method.
369 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
370 Update function description.
371 (check_as_integer_raises_out_of_range_error): New function.
372 (gdb_mpz_as_integer_out_of_range): New function.
373 (_initialize_gmp_utils_selftests): Register
374 gdb_mpz_as_integer_out_of_range as a selftest.
376 2020-12-05 Joel Brobecker <brobecker@adacore.com>
378 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
380 (gdb_mpz::write): Likewise.
382 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
384 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
385 number of displaced step buffers.
387 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
389 * displaced-stepping.h (struct displaced_step_buffer): Rename
391 (struct displaced_step_buffers): ... this.
392 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
393 <struct displaced_step_buffer>: New inner class.
395 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
397 (displaced_step_buffers::prepare): ... this, adjust for multiple
399 (displaced_step_buffer::finish): Rename to...
400 (displaced_step_buffers::finish): ... this, adjust for multiple
402 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
403 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
404 adjust for multiple buffers.
405 (displaced_step_buffer::restore_in_ptid): Rename to...
406 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
408 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
409 for num_disp_step_buffers.
410 * linux-tdep.c (struct linux_gdbarch_data)
411 <num_disp_step_buffers>: New field.
412 (struct linux_info) <disp_step_buf>: Rename to...
413 <disp_step_bufs>: ... this, change type to
414 displaced_step_buffers.
415 (linux_displaced_step_prepare): Use
416 linux_gdbarch_data::num_disp_step_buffers to create that number
418 (linux_displaced_step_finish): Adjust.
419 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
420 (linux_displaced_step_restore_all_in_ptid): Adjust.
421 (linux_init_abi): Change supports_displaced_step parameter for
422 num_disp_step_buffers, save it in linux_gdbarch_data.
423 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
424 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
425 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
426 supports_displaced_step parameter for num_disp_step_buffers.
427 (amd64_linux_init_abi): Adjust.
428 (amd64_x32_linux_init_abi): Adjust.
429 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
430 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
431 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
432 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
433 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
434 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
435 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
436 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
437 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
438 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
439 * m68k-linux-tdep.c (m68k_linux_init_abi):
440 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
441 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
442 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
443 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
444 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
445 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
446 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
447 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
448 Change type to displaced_step_buffers.
449 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
450 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
451 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
452 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
453 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
454 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
455 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
457 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
459 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
461 (_initialize_linux_tdep): Register pre-init gdb data instead of
464 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
466 * displaced-stepping.h (struct
467 displaced_step_copy_insn_closure): Adjust comments.
468 (struct displaced_step_inferior_state) <step_thread,
469 step_gdbarch, step_closure, step_original, step_copy,
470 step_saved_copy>: Remove fields.
471 (struct displaced_step_thread_state): New.
472 (struct displaced_step_buffer): New.
473 * displaced-stepping.c (displaced_step_buffer::prepare): New.
474 (write_memory_ptid): Move from infrun.c.
475 (displaced_step_instruction_executed_successfully): New,
476 factored out of displaced_step_finish.
477 (displaced_step_buffer::finish): New.
478 (displaced_step_buffer::copy_insn_closure_by_addr): New.
479 (displaced_step_buffer::restore_in_ptid): New.
480 * gdbarch.sh (displaced_step_location): Remove.
481 (displaced_step_prepare, displaced_step_finish,
482 displaced_step_copy_insn_closure_by_addr,
483 displaced_step_restore_all_in_ptid): New.
484 * gdbarch.c: Re-generate.
485 * gdbarch.h: Re-generate.
486 * gdbthread.h (class thread_info) <displaced_step_state>: New
488 (thread_step_over_chain_remove): New declaration.
489 (thread_step_over_chain_next): New declaration.
490 (thread_step_over_chain_length): New declaration.
491 * thread.c (thread_step_over_chain_remove): Make non-static.
492 (thread_step_over_chain_next): New.
493 (global_thread_step_over_chain_next): Use
494 thread_step_over_chain_next.
495 (thread_step_over_chain_length): New.
496 (global_thread_step_over_chain_enqueue): Add debug print.
497 (global_thread_step_over_chain_remove): Add debug print.
498 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
500 * infrun.c (get_displaced_stepping_state): New.
501 (displaced_step_in_progress_any_inferior): Remove.
502 (displaced_step_in_progress_thread): Adjust.
503 (displaced_step_in_progress): Adjust.
504 (displaced_step_in_progress_any_thread): New.
505 (get_displaced_step_copy_insn_closure_by_addr): Remove.
506 (gdbarch_supports_displaced_stepping): Use
507 gdbarch_displaced_step_prepare_p.
508 (displaced_step_reset): Change parameter from inferior to
510 (displaced_step_prepare_throw): Implement using
511 gdbarch_displaced_step_prepare.
512 (write_memory_ptid): Move to displaced-step.c.
513 (displaced_step_restore): Remove.
514 (displaced_step_finish): Implement using
515 gdbarch_displaced_step_finish.
516 (start_step_over): Allow starting more than one displaced step.
517 (prepare_for_detach): Handle possibly multiple threads doing
519 (handle_inferior_event): Handle possibility that fork event
520 happens while another thread displaced steps.
521 * linux-tdep.h (linux_displaced_step_prepare): New.
522 (linux_displaced_step_finish): New.
523 (linux_displaced_step_copy_insn_closure_by_addr): New.
524 (linux_displaced_step_restore_all_in_ptid): New.
525 (linux_init_abi): Add supports_displaced_step parameter.
526 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
527 (linux_displaced_step_prepare): New.
528 (linux_displaced_step_finish): New.
529 (linux_displaced_step_copy_insn_closure_by_addr): New.
530 (linux_displaced_step_restore_all_in_ptid): New.
531 (linux_init_abi): Add supports_displaced_step parameter,
532 register displaced step methods if true.
533 (_initialize_linux_tdep): Register inferior_execd observer.
534 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
535 supports_displaced_step parameter, adjust call to
536 linux_init_abi. Remove call to
537 set_gdbarch_displaced_step_location.
538 (amd64_linux_init_abi): Adjust call to
539 amd64_linux_init_abi_common.
540 (amd64_x32_linux_init_abi): Likewise.
541 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
542 linux_init_abi. Remove call to
543 set_gdbarch_displaced_step_location.
544 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
545 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
546 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
548 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
549 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
550 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
551 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
552 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
553 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
554 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
555 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
556 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
557 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
558 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
559 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
560 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
561 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
562 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
563 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
564 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
565 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
566 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
567 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
568 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
569 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
570 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
571 linux_init_abi. Remove call to
572 set_gdbarch_displaced_step_location.
573 * arm-tdep.c (arm_pc_is_thumb): Call
574 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
575 get_displaced_step_copy_insn_closure_by_addr.
576 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
577 clear gdbarch methods.
578 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
579 (get_ppc_per_inferior): New function.
580 (ppc_displaced_step_prepare): New function.
581 (ppc_displaced_step_finish): New function.
582 (ppc_displaced_step_restore_all_in_ptid): New function.
583 (rs6000_gdbarch_init): Register new gdbarch methods.
584 * s390-tdep.c (s390_gdbarch_init): Don't call
585 set_gdbarch_displaced_step_location, set new gdbarch methods.
587 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
589 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
590 * aarch64-tdep.h: Include displaced-stepping.h.
591 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
593 (displaced_step_copy_insn_closure_up): Move here.
594 (struct buf_displaced_step_copy_insn_closure): Move here.
595 (struct displaced_step_inferior_state): Move here.
596 (debug_displaced): Move here.
597 (displaced_debug_printf_1): Move here.
598 (displaced_debug_printf): Move here.
599 * displaced-stepping.c: New file.
600 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
601 * gdbarch.h: Re-generate.
602 * inferior.h: Include displaced-stepping.h.
603 * infrun.h (debug_displaced): Move to displaced-stepping.h.
604 (displaced_debug_printf_1): Likewise.
605 (displaced_debug_printf): Likewise.
606 (struct displaced_step_copy_insn_closure): Likewise.
607 (displaced_step_copy_insn_closure_up): Likewise.
608 (struct buf_displaced_step_copy_insn_closure): Likewise.
609 (struct displaced_step_inferior_state): Likewise.
610 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
611 (displaced_debug_printf_1): Likewise.
612 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
614 (_initialize_infrun): Don't register "set/show debug displaced".
616 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
618 * linux-tdep.c (get_linux_inferior_data): Add inferior
620 (linux_vsyscall_range): Pass current inferior.
622 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
624 * infrun.c (displaced_step_prepare_throw): Change return type to
625 displaced_step_prepare_status.
626 (displaced_step_prepare): Likewise.
627 (displaced_step_finish): Change return type to
628 displaced_step_finish_status.
630 (stop_all_threads): Adjust.
631 * displaced-stepping.h: New file.
633 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
635 * infrun.c (displaced_step_fixup): Rename to...
636 (displaced_step_finish): ... this, update all callers.
638 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
640 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
641 (get_displaced_step_copy_insn_closure_by_addr): ... this.
643 (displaced_step_closure): Rename to...
644 (displaced_step_copy_insn_closure): ... this. Update all users.
645 (displaced_step_closure_up): Rename to...
646 (displaced_step_copy_insn_closure_up). ... this. Update all
648 (buf_displaced_step_closure): Rename to...
649 (buf_displaced_step_copy_insn_closure): ... this. Update all
651 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
652 (get_displaced_step_copy_insn_closure_by_addr): ... this.
654 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
655 (aarch64_displaced_step_copy_insn_closure): ... this. Update
657 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
658 (amd64_displaced_step_copy_insn_closure): ... this. Update all
660 * arm-tdep.h (arm_displaced_step_closure): Rename to...
661 (arm_displaced_step_copy_insn_closure): ... this. Update all
663 * i386-tdep.h (i386_displaced_step_closure): Rename to...
664 (i386_displaced_step_copy_insn_closure): ... this. Update all
666 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
667 (ppc_displaced_step_copy_insn_closure): ... this. Update all
669 * s390-tdep.c (s390_displaced_step_closure): Rename to...
670 (s390_displaced_step_copy_insn_closure): ... this. Update all
672 * gdbarch.h: Re-generate.
673 * gdbarch.c: Re-generate.
675 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
677 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
678 (global_thread_step_over_chain_enqueue): ... this. Update all
680 (thread_step_over_chain_remove): Rename to...
681 (global_thread_step_over_chain_remove): ... this. Update all
683 (thread_step_over_chain_next): Rename to...
684 (global_thread_step_over_chain_next): ... this. Update all
686 * infrun.h (step_over_queue_head): Rename to...
687 (global_thread_step_over_chain_head): ... this. Update all
689 * infrun.c (step_over_queue_head): Rename to...
690 (global_thread_step_over_chain_head): ... this. Update all
692 * thread.c (step_over_chain_remove): Rename to...
693 (thread_step_over_chain_remove): ... this. Update all users.
694 (thread_step_over_chain_next): Rename to...
695 (global_thread_step_over_chain_next): ... this. Update all
697 (thread_step_over_chain_enqueue): Rename to...
698 (global_thread_step_over_chain_enqueue): ... this. Update all
700 (thread_step_over_chain_remove): Rename to...
701 (global_thread_step_over_chain_remove): ... this. Update all
704 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
706 * infrun.c (get_displaced_stepping_state): Remove, change
707 callers to access the field directly.
709 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
711 * infrun.c (handle_inferior_event): Restore displaced step
712 buffer bytes in child process when handling fork, even if fork
713 happened in another thread than the displaced-stepping one.
715 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
717 * infrun.c (infrun_inferior_execd): New function.
718 (_initialize_infrun): Attach inferior_execd observer.
720 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
722 * observable.h (inferior_execd): Declare new observable.
723 * observable.c (inferior_execd): Declare new observable.
724 * infrun.c (follow_exec): Notify inferior_execd observer.
725 * jit.c (jit_inferior_created_hook): Make static.
726 (_initialize_jit): Register inferior_execd observer.
727 * jit.h (jit_inferior_created_hook): Remove declaration.
728 * solib.c (_initialize_solib): Register inferior_execd observer.
730 2020-12-04 Tom de Vries <tdevries@suse.de>
733 * completer.c (completion_tracker::build_completion_result): Don't
734 access match_list[0][-1].
736 2020-12-04 Tom Tromey <tromey@adacore.com>
738 * linespec.c (struct linespec_token): Rename; remove typedef.
739 * guile/scm-block.c (struct block_smob): Remove typedef.
740 (struct block_syms_progress_smob): Likewise.
741 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
742 * guile/scm-symtab.c (symtab_smob): Remove typedef.
743 (struct sal_smob): Remove typedef.
744 * guile/scm-param.c (struct param_smob): Remove typedef.
745 * guile/scm-progspace.c (struct pspace_smob): Rename.
746 * guile/scm-objfile.c (struct objfile_smob): Rename.
747 * guile/scm-iterator.c (struct iterator_smob): Rename.
748 * guile/scm-frame.c (struct frame_smob): Rename.
749 * guile/scm-arch.c (struct arch_smob): Rename.
750 * guile/scm-type.c (struct field_smob): Remove typedef.
751 (struct type_smob): Rename.
752 * guile/scm-cmd.c (struct command_smob): Remove typedef.
753 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
754 * guile/scm-value.c (struct value_smob): Remove typedef.
755 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
756 * guile/guile-internal.h (struct scheme_variable)
757 (struct scheme_function, struct scheme_integer_constant)
758 (struct gdb_smob, struct chained_gdb_smob)
759 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
760 (objfile_smob, pspace_smob, type_smob): Remove typedef.
761 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
762 (struct pretty_printer_worker_smob): Remove typedef.
763 * guile/scm-exception.c (struct exception_smob): Remove typedef.
764 * python/py-block.c (struct block_object): Remove typedef.
765 (block_syms_iterator_object): Update.
767 (block_syms_iterator_object): Remove typedef.
768 * python/py-inferior.c (struct membuf_object): Remove typedef.
769 * python/py-symtab.c (struct symtab_object): Remove typedef.
770 (set_symtab): Update.
771 (sal_object): Remove typedef.
773 * python/py-frame.c (frame_object): Remove typedef.
774 * python/py-record-btrace.c (struct btpy_list_object): Remove
776 * python/py-arch.c (struct arch_object): Remove typedef.
777 * python/py-linetable.c (struct linetable_entry_object)
778 (linetable_object, struct ltpy_iterator_object): Remove typedef.
779 * python/py-events.h (eventregistry_object): Remove typedef.
780 (struct events_object): Remove typedef.
781 * python/python-internal.h (gdbpy_breakpoint_object): Remove
783 (thread_object): Remove typedef.
784 * python/py-progspace.c (pspace_object): Remove typedef.
785 * python/py-value.c (struct value_object): Remove typedef.
786 * python/py-record.h (recpy_record_object): Remove typedef.
787 (struct recpy_element_object): Remove typedef.
788 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
789 * python/py-objfile.c (objfile_object): Remove typedef.
790 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
791 * python/py-type.c (type_object): Remove typedef.
792 (typy_iterator_object): Update.
794 (field_object): Remove typedef.
795 (typy_iterator_object): Remove typedef.
796 * python/py-registers.c (register_descriptor_iterator_object):
798 (struct register_descriptor_object)
799 (struct reggroup_iterator_object, struct reggroup_object): Remove
801 * python/py-record.c (recpy_gap_object): Remove typedef.
802 * python/py-symbol.c (symbol_object): Remove typedef.
803 (set_symbol): Update.
804 * python/py-event.h (event_object): Remove typedef.
805 * python/py-param.c (parmpy_object): Remove typedef.
806 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
807 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
808 (unwind_info_object, struct cached_frame_info): Likewise.
810 2020-12-04 Tom Tromey <tromey@adacore.com>
812 * value.c (value_internal_function_name): Make return type const.
813 * value.h (value_internal_function_name): Make return type const.
815 2020-12-04 Luis Machado <luis.machado@linaro.org>
817 * aarch64-tdep.c (submask, bit, bits): Remove.
818 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
819 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
820 (aarch64_decode_cb, aarch64_decode_tb)
821 (aarch64_decode_ldr_literal): Use sbits to extract a signed
823 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
825 2020-12-04 Tom de Vries <tdevries@suse.de>
828 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
830 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
833 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
834 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
836 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
838 * arch/riscv.c: Include 'rv32e-xregs.c'.
839 (riscv_create_target_description): Update to handle rv32e.
840 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
842 <operator==>: Update to account for new field.
844 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
845 * features/riscv/rv32e-xregs.c: Generated.
846 * features/riscv/rv32e-xregs.xml: New file.
847 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
849 (riscv_debug_infcall): Likewise.
850 (riscv_debug_unwinder): Likewise.
851 (riscv_debug_gdbarch): Likewise.
852 (enum riscv_register_required_status): Delete.
853 (struct riscv_register_feature): Add constructor, delete default
854 constructor, copy, and assign constructors.
855 (struct riscv_register_feature::register_info) <required>: Delete.
856 <check>: Update comment and arguments.
857 (struct riscv_register_feature) <name>: Change to member function.
858 <prefer_first_name>: Delete.
859 <tdesc_feature>: New member function.
860 <registers>: Rename to...
861 <m_registers>: ...this.
862 <m_feature_name>: New member variable.
863 (riscv_register_feature::register_info::check): Update arguments.
864 (riscv_xreg_feature): Rewrite as class, create a single static
865 instance of the class.
866 (riscv_freg_feature): Likewise.
867 (riscv_virtual_feature): Likewise.
868 (riscv_csr_feature): Likewise.
869 (riscv_create_csr_aliases): Has become a member function inside
870 riscv_csr_feature class.
871 (riscv_abi_embedded): New function definition.
872 (riscv_register_name): Adjust to use new feature objects.
873 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
874 and adjust available argument registers.
875 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
876 (riscv_check_tdesc_feature): Delete.
877 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
878 (riscv_gdbarch_init): Delete target description checking code, and
879 instead call to the new feature objects to perform the checks.
880 Reorder handling of no abi information case, allows small code
882 (_initialize_riscv_tdep): Remove call, this is now done in the
883 riscv_csr_feature constructor.
884 * riscv-tdep.h (riscv_abi_embedded): Declare.
886 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
888 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
891 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
893 * riscv-tdep.c (riscv_is_unknown_csr): New function,
894 implementation moved from riscv_register_reggroup_p.
895 (riscv_register_reggroup_p): Update group handling for unknown
898 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
900 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
901 (dwarf2_get_dwz_file): Convert 'filename' to a
902 std::string. Use dwz_search_other_debugdirs to search for DWZ
903 files in the debug-file-directories provided by the user as well.
905 2020-12-01 Tom Tromey <tom@tromey.com>
907 * parse.c (expr_builder::expr_builder): Initialize expout.
908 (expr_builder::release): Use expression::resize.
909 (expression::expression, expression::~expression)
910 (expression::resize): New methods.
911 (write_exp_elt): Use expression::resize.
912 (prefixify_expression): Update.
913 (increase_expout_size): Use expression::resize.
914 * expression.h (struct expression): Add constructor, destructor.
915 <resize>: New method.
916 (expression_up): Change type.
918 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
919 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
920 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
923 2020-11-30 Tom de Vries <tdevries@suse.de>
926 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
927 is_reference parameter.
928 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
930 2020-11-30 Tom Tromey <tom@tromey.com>
932 * rust-lang.c (rust_op_name): Remove.
933 (exp_descriptor_rust): Update.
934 * parser-defs.h (op_name_standard): Don't declare.
935 (struct exp_descriptor) <op_name>: Remove.
936 * parse.c (exp_descriptor_standard): Update.
937 * opencl-lang.c (exp_descriptor_opencl): Update.
938 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
939 * f-lang.c (op_name_f): Remove.
940 (f_language::exp_descriptor_tab): Update.
941 * expression.h (op_name): Update.
942 * expprint.c (op_name): Rewrite.
943 (op_name_standard): Remove.
944 (dump_raw_expression, dump_subexp): Update.
945 * c-lang.c (exp_descriptor_c): Update.
946 * ax-gdb.c (gen_expr): Update.
947 * ada-lang.c (ada_op_name): Remove.
948 (ada_exp_descriptor): Update.
950 2020-11-30 Tom Tromey <tom@tromey.com>
952 * eval.c (init_array_element): Remove.
953 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
955 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
958 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
959 static locator win info.
961 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
963 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
966 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
968 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
969 is always initialized.
971 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
972 * MAINTAINERS (Write After Approval): Add myself.
974 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
976 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
977 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
979 2020-11-25 Tom Tromey <tom@tromey.com>
981 * eval.c (evaluate_subexp_standard): Remove unnecessary
984 2020-11-25 Tom Tromey <tom@tromey.com>
986 * d-lang.c: Include parser-defs.h.
987 * rust-lang.c: Include parser-defs.h.
988 * c-lang.h: Do not include parser-defs.h.
990 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
992 * regcache.h (struct cached_reg): Remove typedef.
994 2020-11-24 Joel Brobecker <brobecker@adacore.com>
996 * README: Fix the URL of the MPFR library.
998 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1000 * README: Document the --with-libgmp-prefix configure option.
1002 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1004 * NEWS: Add entry documenting support for DWARF-based fixed
1007 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1009 * NEWS: Document that building GDB now requires GMP.
1011 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1013 * typeprint.c (print_type_scalar): Add handling of
1014 TYPE_CODE_FIXED_POINT.
1016 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1018 * valarith.c (fixed_point_binop): Replace the
1019 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
1022 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1024 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
1025 replacing fixed_point_scaling_factor. All callers updated
1026 throughout this project.
1027 (fixed_point_scaling_factor): Delete declaration.
1028 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
1029 fixed_point_scaling_factor. Adjust implementation accordingly.
1031 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1033 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1034 replacing the fixed_point_type_base_type function. All callers
1035 updated throughout this project.
1036 (fixed_point_type_base_type): Remove declaration.
1037 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1038 fixed_point_type_base_type. Adjust implementation accordingly.
1040 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1042 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1044 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1045 (TYPE_FIXED_POINT_INFO): Delete macro.
1046 (allocate_fixed_point_type_info): Change return type to void.
1047 * gdbtypes.c (copy_type_recursive): Replace the use of
1048 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1049 (fixed_point_scaling_factor): Likewise.
1050 (allocate_fixed_point_type_info): Change return type to void.
1051 Adjust implementation accordingly.
1052 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1053 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1055 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1057 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1058 into one single gdb::array_view parameter.
1059 (gdb_mpz::write): Likewise.
1060 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1061 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1062 into one single gdb::array_view parameter.
1063 Adjust implementation accordingly.
1064 (gdb_mpz::write): Likewise.
1065 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1066 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1067 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1069 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1071 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1072 Change return type to std::string. Update all callers.
1073 * gmp-utils.c (gmp_string_printf): Likewise.
1075 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1077 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1078 instead of mpq_set_ui to initialize our GMP rational.
1080 2020-11-23 Tom de Vries <tdevries@suse.de>
1082 * debuginfod-support.c (debuginfod_source_query)
1083 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1085 2020-11-21 Tom Tromey <tom@tromey.com>
1087 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1089 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1091 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1093 (gdb_mpz_write_all_from_small): Likewise.
1095 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1097 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1100 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1102 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1103 ctf_arc_open_by_name.
1105 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1107 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1108 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1110 2020-11-20 Pedro Alves <pedro@palves.net>
1112 * language.c (language_arch_info::lookup_primitive_type): Use
1113 gdb::function_view instead of gdb::function.
1114 (template language_lookup_primitive_type): Rename to ...
1115 (language_lookup_primitive_type_1): ... this, and make static.
1116 (language_lookup_primitive_type(const struct language_defn *,
1117 struct gdbarch *, const char *): Make non-template.
1118 (language_lookup_primitive_type(const struct language_defn *,
1119 struct gdbarch *, std::function<bool (struct type *)>): Make
1120 non-template and use gdb::function_view.
1121 * language.h (language_arch_info::lookup_primitive_type): Use
1122 gdb::function_view instead of std::function.
1123 (language_lookup_primitive_type): No longer template.
1124 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1125 lambda instead of a std::function.
1127 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1130 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1133 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1135 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1137 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1139 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1140 in `loop_cb` parameter.
1141 * gdbarch.c: Re-generate.
1142 * gdbarch.h: Re-generate.
1143 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1145 * arch-utils.h (default_read_core_file_mappings): Likewise.
1146 * corelow.c (core_target::build_file_mappings): Likewise.
1147 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1148 (linux_core_info_proc_mappings): Likewise.
1150 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1152 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1153 * NEWS: Mention new options.
1154 * f-array-walker.h: New file.
1155 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1156 (repack_array_slices): New static global.
1157 (show_repack_array_slices): New function.
1158 (fortran_array_slicing_debug): New static global.
1159 (show_fortran_array_slicing_debug): New function.
1160 (value_f90_subarray): Delete.
1161 (skip_undetermined_arglist): Delete.
1162 (class fortran_array_repacker_base_impl): New class.
1163 (class fortran_lazy_array_repacker_impl): New class.
1164 (class fortran_array_repacker_impl): New class.
1165 (fortran_value_subarray): Complete rewrite.
1166 (set_fortran_list): New static global.
1167 (show_fortran_list): Likewise.
1168 (_initialize_f_language): Register new commands.
1169 (fortran_adjust_dynamic_array_base_address_hack): New function.
1170 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1172 * f-valprint.c: Include 'f-array-walker.h'.
1173 (class fortran_array_printer_impl): New class.
1174 (f77_print_array_1): Delete.
1175 (f77_print_array): Delete.
1176 (fortran_print_array): New.
1177 (f_value_print_inner): Update to call fortran_print_array.
1178 * gdbtypes.c: Include 'f-lang.h'.
1179 (resolve_dynamic_type_internal): Call
1180 fortran_adjust_dynamic_array_base_address_hack.
1182 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1184 * breakpoint.c (struct watch_options): New struct.
1185 (watch_option_defs): New static global.
1186 (make_watch_options_def_group): New function.
1187 (watch_maybe_just_location): Convert option parsing.
1188 (watch_command_completer): New function.
1189 (_initialize_breakpoint): Build help text using options mechanism.
1191 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1193 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1194 (watch_command_1): Update parameter types. Convert locals to
1196 (watch_command_wrapper): Change parameter type.
1197 (watch_maybe_just_location): Change locals to bool.
1198 (rwatch_command_wrapper): Update parameter type.
1199 (awatch_command_wrapper): Update parameter type.
1200 * breakpoint.h (watch_command_wrapper): Change parameter type.
1201 (rwatch_command_wrapper): Update parameter type.
1202 (awatch_command_wrapper): Update parameter type.
1203 * eval.c (fetch_subexp_value): Change parameter type.
1204 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1206 * value.h (fetch_subexp_value): Change parameter type in
1209 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1211 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1214 2020-11-18 Keith Seitz <keiths@redhat.com>
1216 * linux-tdep.c (dump_note_entry_p): Return true instead of
1217 checking `filename'.
1219 2020-11-18 Tom de Vries <tdevries@suse.de>
1221 * debuginfod-support.c (debuginfod_source_query)
1222 (debuginfod_debuginfo_query): Also do early exit if
1223 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1225 2020-11-18 Tom de Vries <tdevries@suse.de>
1227 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1230 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1232 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1233 callers. Move doc here.
1234 * gdbtypes.c (get_array_bounds): Return bool
1236 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1238 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1240 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1241 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1242 case to the default.
1244 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1246 * printcmd.c: Include 'safe-ctype.c'.
1247 (skip_over_slash_fmt): New function.
1248 (print_command_completer): Call skip_over_slash_fmt.
1249 (display_and_x_command_completer): New function.
1250 (_initialize_printcmd): Add command completion for 'x' and
1253 2020-11-16 Pedro Alves <pedro@palves.net>
1255 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1256 (get_prev_frame_always_1): ... to here.
1257 * inline-frame.c (inline_frame_this_id): Mention
1258 get_prev_frame_always_1 in comment.
1260 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1262 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1264 (value_less): Add fixed-point handling.
1266 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1268 * eval.c (binop_promote): Add fixed-point type handling.
1269 * valarith.c (fixed_point_binop): New function.
1270 (scalar_binop): Add fixed-point type handling.
1271 (value_neg): Add fixed-point type handling.
1272 * valops.c (value_cast_to_fixed_point): New function.
1273 (value_cast): Add fixed-point type handling.
1275 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1277 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1279 * c-typeprint.c (c_type_print_varspec_prefix)
1280 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1281 TYPE_CODE_FIXED_POINT handling.
1282 * p-typeprint.c (pascal_type_print_varspec_prefix)
1283 (pascal_type_print_varspec_suffix): Likewise.
1284 * typeprint.c (print_type_fixed_point): New function.
1285 * typeprint.h (print_type_fixed_point): Add declaration.
1287 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1289 * printcmd.c (print_scalar_formatted): Add fixed-point type
1290 handling when options->format is set.
1292 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1294 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1295 * dwarf2/read.c (get_dwarf2_rational_constant)
1296 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1297 (has_zero_over_zero_small_attribute): New functions.
1298 read_base_type, set_die_type): Add fixed-point type handling.
1299 * gdb-gdb.py.in: Add fixed-point type handling.
1300 * gdbtypes.c: #include "gmp-utils.h".
1301 (create_range_type, set_type_code): Add fixed-point type handling.
1302 (init_fixed_point_type): New function.
1303 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1304 (print_fixed_point_type_info): New function.
1305 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1307 (fixed_point_type_storage): New typedef.
1308 (fixed_point_objfile_key): New static global.
1309 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1310 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1312 * gdbtypes.h: #include "gmp-utils.h".
1313 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1314 (union type_specific) <fixed_point_info>: New field.
1315 (struct fixed_point_type_info): New struct.
1316 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1317 (init_fixed_point_type, is_fixed_point_type)
1318 (fixed_point_type_base_type, fixed_point_scaling_factor)
1319 (allocate_fixed_point_type_info): Add declarations.
1320 * valprint.c (generic_val_print_fixed_point): New function.
1321 (generic_value_print): Add fixed-point type handling.
1322 * value.c (value_as_address, unpack_long): Add fixed-point type
1325 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1327 * utils.h (uinteger_pow): Add declaration.
1328 * utils.c (uinteger_pow): Moved here (without changes)...
1329 * valarith.c (uinteger_pow): ... from here.
1331 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1333 * gmp-utils.h, gmp-utils.c: New file.
1334 * unittests/gmp-utils-selftests.c: New file.
1335 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1336 unittests/gmp-utils-selftests.c.
1337 (COMMON_SFILES) Add gmp-utils.c.
1338 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1340 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1342 * configure.ac: Generate an error if a usable GMP library
1344 * configure: Regenerate.
1346 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1348 * configure.ac: Add support for --with-libgmp-prefix.
1349 * Makefile.in (LIBGMP): New variable.
1350 (CLIBS): Include $(LIBGMP).
1351 * configure, config.in: Regenerate
1353 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1356 * f-exp.y (COMPLETE): New token.
1357 (exp): Two new rules for tab-completion.
1358 (saw_name_at_eof): New static global.
1359 (last_was_structop): Likewise.
1360 (yylex): Set new variables, and return COMPLETE token at the end
1361 of the input stream in some cases.
1363 2020-11-14 Tom Tromey <tom@tromey.com>
1365 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1367 2020-11-14 Tom Tromey <tom@tromey.com>
1369 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1371 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1373 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1375 2020-11-13 Tom Tromey <tom@tromey.com>
1377 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1378 (convert_escape, parse_one_string): Constify.
1380 2020-11-13 Keith Seitz <keiths@redhat.com>
1382 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1383 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1384 outside of ELF segments" warning for debugin
1386 2020-11-13 Keith Seitz <keiths@redhat.com>
1389 * elfread.c (elf_symfile_segments): Output a BFD file name
1390 for the "Loadable section ... outside of ELF segments" warning.
1392 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1395 * arm-tdep.c (class arm_instruction_reader): New.
1396 (target_arm_instruction_reader): New.
1397 (arm_analyze_prologue): Add instruction reader parameter and use
1398 it. Use arm_expand_immediate.
1399 (class target_arm_instruction_reader): Adjust.
1400 (arm_skip_prologue): Adjust.
1401 (arm_expand_immediate): New.
1402 (arm_scan_prologue): Adjust.
1403 (arm_analyze_prologue_test): New.
1404 (class test_arm_instruction_reader): New.
1406 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1408 * f-lang.c (fortran_argument_convert): Add declaration. Add
1409 header comment, taken from f-lang.h. Make static.
1410 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1411 (fortran_argument_convert): Delete declaration.
1413 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1415 * ada-exp.y (find_primitive_type): Make parameter const.
1416 * ada-lang.c (enum ada_primitive_types): Delete.
1417 (ada_language::language_arch_info): Update.
1418 * c-lang.c (enum c_primitive_types): Delete.
1419 (c_language_arch_info): Update.
1420 (enum cplus_primitive_types): Delete.
1421 (cplus_language::language_arch_info): Update.
1422 * d-lang.c (enum d_primitive_types): Delete.
1423 (d_language::language_arch_info): Update.
1424 * f-lang.c (enum f_primitive_types): Delete.
1425 (f_language::language_arch_info): Update.
1426 * go-lang.c (enum go_primitive_types): Delete.
1427 (go_language::language_arch_info): Update.
1428 * language.c (auto_or_unknown_language::language_arch_info):
1430 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1431 (language_string_char_type): Add header comment, call function in
1433 (language_bool_type): Likewise
1434 (language_arch_info::bool_type): Define.
1435 (language_lookup_primitive_type_1): Delete.
1436 (language_lookup_primitive_type): Rewrite as a templated function
1437 to call function in language_arch_info, then instantiate twice.
1438 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1439 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1440 (language_arch_info::lookup_primitive_type): Define twice with
1441 different signatures.
1442 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1443 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1444 member function in language_arch_info.
1445 * language.h (language_arch_info): Complete rewrite.
1446 (language_lookup_primitive_type): Make templated.
1447 * m2-lang.c (enum m2_primitive_types): Delete.
1448 (m2_language::language_arch_info): Update.
1449 * opencl-lang.c (OCL_P_TYPE): Delete.
1450 (enum opencl_primitive_types): Delete.
1451 (opencl_type_data): Delete.
1452 (builtin_opencl_type): Delete.
1453 (lookup_opencl_vector_type): Update.
1454 (opencl_language::language_arch_info): Update, lots of content
1456 (build_opencl_types): ...here. This function is now deleted.
1457 (_initialize_opencl_language): Delete.
1458 * p-lang.c (enum pascal_primitive_types): Delete.
1459 (pascal_language::language_arch_info): Update.
1460 * rust-lang.c (enum rust_primitive_types): Delete.
1461 (rust_language::language_arch_info): Update.
1463 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1465 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1468 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1470 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1473 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1475 * dwarf2/read.c (dwarf_read_debug_printf,
1476 dwarf_read_debug_printf_v): New macros, use throughout the file.
1478 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1481 * arc-linux-tdep.c (collect_register): Populate "eret" by
1482 "pc" value from the regcache when asked for "pc" value.
1484 2020-11-12 Tom Tromey <tom@tromey.com>
1487 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1490 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1492 * features/Makefile (XMLTOC): Add rx.xml.
1493 (FEATURE_XMLFILES): Remove rx.xml.
1494 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1495 * features/rx.c: Regenerate.
1496 * features/rx.xml: Wrap in `target` tags, and reindent.
1497 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1499 (maint_print_c_tdesc_opt_def): New typedef.
1500 (maint_print_c_tdesc_opt_defs): New static global.
1501 (make_maint_print_c_tdesc_options_def_group): New function.
1502 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1503 print single feature C file for target descriptions containing a
1505 (maint_print_c_tdesc_cmd_completer): New function.
1506 (_initialize_target_descriptions): Update call to register command
1507 completer, and include command line flag in help text.
1509 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1511 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1513 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1516 2020-11-10 Tom Tromey <tom@tromey.com>
1518 * value.h (internalvar_name): Update.
1519 * value.c (internalvar_name): Make return type const.
1521 2020-11-10 Tom Tromey <tom@tromey.com>
1523 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1524 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1527 2020-11-10 Tom Tromey <tom@tromey.com>
1529 * objc-lang.h (value_nsstring): Update.
1530 * objc-lang.c (value_nsstring): Make "ptr" const.
1532 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1534 * expprint.c (print_subexp_funcall): Increment expression position
1535 after reading argument count.
1536 * f-lang.c (print_subexp_f): Skip over opcode before calling
1538 (dump_subexp_body_f): Likewise.
1540 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1543 * configure: Regenerate.
1544 * configure.ac: Check for python modules ctypes instead of
1547 2020-11-06 Pedro Alves <pedro@palves.net>
1549 * macroexp.c (struct macro_buffer): Split in two classes. Add
1551 (struct shared_macro_buffer): New, factored out from struct
1553 (struct growable_macro_buffer): New, factored out from struct
1555 (set_token, get_comment, get_identifier, get_pp_number)
1556 (get_character_constant, get_string_literal, get_punctuator)
1557 (get_next_token_for_substitution): Constify parameters.
1558 (substitute_args): Constify locals.
1560 2020-11-05 Tom Tromey <tom@tromey.com>
1562 * dwarf2/read.c (read_cutu_die_from_dwo)
1563 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1564 (build_type_psymtabs_1): Update.
1565 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1567 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1568 Don't read section. Add assert.
1570 2020-11-04 Tom Tromey <tromey@adacore.com>
1572 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1574 2020-11-04 Tom Tromey <tromey@adacore.com>
1576 * ada-typeprint.c (ada_print_type): Handle __T types.
1578 2020-11-04 Tom Tromey <tromey@adacore.com>
1580 * dwarf2/read.c (add_partial_symbol, process_die):
1581 Handle DW_TAG_array_type.
1582 (is_type_tag_for_partial): Add "lang" parameter.
1583 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1585 2020-11-04 Tom Tromey <tromey@adacore.com>
1587 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1589 2020-11-04 Tom Tromey <tromey@adacore.com>
1591 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1594 2020-11-04 Tom Tromey <tromey@adacore.com>
1596 * gdbtypes.c (update_static_array_size): Handle bit stride.
1598 2020-11-04 Tom Tromey <tromey@adacore.com>
1600 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1602 2020-11-04 Tom Tromey <tromey@adacore.com>
1604 * ada-lang.c (ada_is_any_packed_array_type): New function.
1605 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1607 2020-11-04 Tom Tromey <tromey@adacore.com>
1609 * dwarf2/read.c (recognize_bound_expression)
1610 (quirk_ada_thick_pointer): New functions.
1611 (read_array_type): Call quirk_ada_thick_pointer.
1612 (set_die_type): Add "skip_data_location" parameter.
1613 (quirk_ada_thick_pointer): New function.
1614 (process_structure_scope): Call quirk_ada_thick_pointer.
1615 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1616 (decode_packed_array_bitsize): Handle thick pointers without
1618 (ada_is_gnat_encoded_packed_array_type): Rename from
1619 ada_is_packed_array_type.
1620 (ada_is_constrained_packed_array_type): Update.
1621 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1622 (ada_value_print_1): Use ada_get_decoded_value.
1624 2020-11-04 Tom Tromey <tromey@adacore.com>
1626 * ada-lang.c (recursively_update_array_bitsize): New function.
1627 (decode_constrained_packed_array_type): Call it.
1629 2020-11-04 Tom Tromey <tromey@adacore.com>
1631 * ada-lang.c (to_fixed_array_type): Error if
1632 decode_constrained_packed_array_type returns NULL.
1634 2020-11-04 Tom Tromey <tromey@adacore.com>
1636 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1638 2020-11-02 Tom Tromey <tromey@adacore.com>
1640 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1641 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1642 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1643 * amd64-ravenscar-thread.c: New file.
1644 * amd64-ravenscar-thread.h: New file.
1645 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1646 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1648 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1650 * main.c (execute_cmdargs): New function.
1651 (captured_main_1): Make use of execute_cmdargs.
1653 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1655 * NEWS: Mention changes to config file search path.
1658 2020-11-02 Tom Tromey <tromey@adacore.com>
1660 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1661 (python_GdbModuleDef): Move earlier. Now static.
1662 (do_start_initialization): Consolidate some IS_PY3K blocks.
1664 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1666 * aarch64-linux-tdep.c: Fix indentation.
1667 * aarch64-ravenscar-thread.c: Fix indentation.
1668 * aarch64-tdep.c: Fix indentation.
1669 * aarch64-tdep.h: Fix indentation.
1670 * ada-lang.c: Fix indentation.
1671 * ada-lang.h: Fix indentation.
1672 * ada-tasks.c: Fix indentation.
1673 * ada-typeprint.c: Fix indentation.
1674 * ada-valprint.c: Fix indentation.
1675 * ada-varobj.c: Fix indentation.
1676 * addrmap.c: Fix indentation.
1677 * addrmap.h: Fix indentation.
1678 * agent.c: Fix indentation.
1679 * aix-thread.c: Fix indentation.
1680 * alpha-bsd-nat.c: Fix indentation.
1681 * alpha-linux-tdep.c: Fix indentation.
1682 * alpha-mdebug-tdep.c: Fix indentation.
1683 * alpha-nbsd-tdep.c: Fix indentation.
1684 * alpha-obsd-tdep.c: Fix indentation.
1685 * alpha-tdep.c: Fix indentation.
1686 * amd64-bsd-nat.c: Fix indentation.
1687 * amd64-darwin-tdep.c: Fix indentation.
1688 * amd64-linux-nat.c: Fix indentation.
1689 * amd64-linux-tdep.c: Fix indentation.
1690 * amd64-nat.c: Fix indentation.
1691 * amd64-obsd-tdep.c: Fix indentation.
1692 * amd64-tdep.c: Fix indentation.
1693 * amd64-windows-tdep.c: Fix indentation.
1694 * annotate.c: Fix indentation.
1695 * arc-tdep.c: Fix indentation.
1696 * arch-utils.c: Fix indentation.
1697 * arch/arm-get-next-pcs.c: Fix indentation.
1698 * arch/arm.c: Fix indentation.
1699 * arm-linux-nat.c: Fix indentation.
1700 * arm-linux-tdep.c: Fix indentation.
1701 * arm-nbsd-tdep.c: Fix indentation.
1702 * arm-pikeos-tdep.c: Fix indentation.
1703 * arm-tdep.c: Fix indentation.
1704 * arm-tdep.h: Fix indentation.
1705 * arm-wince-tdep.c: Fix indentation.
1706 * auto-load.c: Fix indentation.
1707 * auxv.c: Fix indentation.
1708 * avr-tdep.c: Fix indentation.
1709 * ax-gdb.c: Fix indentation.
1710 * ax-general.c: Fix indentation.
1711 * bfin-linux-tdep.c: Fix indentation.
1712 * block.c: Fix indentation.
1713 * block.h: Fix indentation.
1714 * blockframe.c: Fix indentation.
1715 * bpf-tdep.c: Fix indentation.
1716 * break-catch-sig.c: Fix indentation.
1717 * break-catch-syscall.c: Fix indentation.
1718 * break-catch-throw.c: Fix indentation.
1719 * breakpoint.c: Fix indentation.
1720 * breakpoint.h: Fix indentation.
1721 * bsd-uthread.c: Fix indentation.
1722 * btrace.c: Fix indentation.
1723 * build-id.c: Fix indentation.
1724 * buildsym-legacy.h: Fix indentation.
1725 * buildsym.c: Fix indentation.
1726 * c-typeprint.c: Fix indentation.
1727 * c-valprint.c: Fix indentation.
1728 * c-varobj.c: Fix indentation.
1729 * charset.c: Fix indentation.
1730 * cli/cli-cmds.c: Fix indentation.
1731 * cli/cli-decode.c: Fix indentation.
1732 * cli/cli-decode.h: Fix indentation.
1733 * cli/cli-script.c: Fix indentation.
1734 * cli/cli-setshow.c: Fix indentation.
1735 * coff-pe-read.c: Fix indentation.
1736 * coffread.c: Fix indentation.
1737 * compile/compile-cplus-types.c: Fix indentation.
1738 * compile/compile-object-load.c: Fix indentation.
1739 * compile/compile-object-run.c: Fix indentation.
1740 * completer.c: Fix indentation.
1741 * corefile.c: Fix indentation.
1742 * corelow.c: Fix indentation.
1743 * cp-abi.h: Fix indentation.
1744 * cp-namespace.c: Fix indentation.
1745 * cp-support.c: Fix indentation.
1746 * cp-valprint.c: Fix indentation.
1747 * cris-linux-tdep.c: Fix indentation.
1748 * cris-tdep.c: Fix indentation.
1749 * darwin-nat-info.c: Fix indentation.
1750 * darwin-nat.c: Fix indentation.
1751 * darwin-nat.h: Fix indentation.
1752 * dbxread.c: Fix indentation.
1753 * dcache.c: Fix indentation.
1754 * disasm.c: Fix indentation.
1755 * dtrace-probe.c: Fix indentation.
1756 * dwarf2/abbrev.c: Fix indentation.
1757 * dwarf2/attribute.c: Fix indentation.
1758 * dwarf2/expr.c: Fix indentation.
1759 * dwarf2/frame.c: Fix indentation.
1760 * dwarf2/index-cache.c: Fix indentation.
1761 * dwarf2/index-write.c: Fix indentation.
1762 * dwarf2/line-header.c: Fix indentation.
1763 * dwarf2/loc.c: Fix indentation.
1764 * dwarf2/macro.c: Fix indentation.
1765 * dwarf2/read.c: Fix indentation.
1766 * dwarf2/read.h: Fix indentation.
1767 * elfread.c: Fix indentation.
1768 * eval.c: Fix indentation.
1769 * event-top.c: Fix indentation.
1770 * exec.c: Fix indentation.
1771 * exec.h: Fix indentation.
1772 * expprint.c: Fix indentation.
1773 * f-lang.c: Fix indentation.
1774 * f-typeprint.c: Fix indentation.
1775 * f-valprint.c: Fix indentation.
1776 * fbsd-nat.c: Fix indentation.
1777 * fbsd-tdep.c: Fix indentation.
1778 * findvar.c: Fix indentation.
1779 * fork-child.c: Fix indentation.
1780 * frame-unwind.c: Fix indentation.
1781 * frame-unwind.h: Fix indentation.
1782 * frame.c: Fix indentation.
1783 * frv-linux-tdep.c: Fix indentation.
1784 * frv-tdep.c: Fix indentation.
1785 * frv-tdep.h: Fix indentation.
1786 * ft32-tdep.c: Fix indentation.
1787 * gcore.c: Fix indentation.
1788 * gdb_bfd.c: Fix indentation.
1789 * gdbarch.sh: Fix indentation.
1790 * gdbarch.c: Re-generate
1791 * gdbarch.h: Re-generate.
1792 * gdbcore.h: Fix indentation.
1793 * gdbthread.h: Fix indentation.
1794 * gdbtypes.c: Fix indentation.
1795 * gdbtypes.h: Fix indentation.
1796 * glibc-tdep.c: Fix indentation.
1797 * gnu-nat.c: Fix indentation.
1798 * gnu-nat.h: Fix indentation.
1799 * gnu-v2-abi.c: Fix indentation.
1800 * gnu-v3-abi.c: Fix indentation.
1801 * go32-nat.c: Fix indentation.
1802 * guile/guile-internal.h: Fix indentation.
1803 * guile/scm-cmd.c: Fix indentation.
1804 * guile/scm-frame.c: Fix indentation.
1805 * guile/scm-iterator.c: Fix indentation.
1806 * guile/scm-math.c: Fix indentation.
1807 * guile/scm-ports.c: Fix indentation.
1808 * guile/scm-pretty-print.c: Fix indentation.
1809 * guile/scm-value.c: Fix indentation.
1810 * h8300-tdep.c: Fix indentation.
1811 * hppa-linux-nat.c: Fix indentation.
1812 * hppa-linux-tdep.c: Fix indentation.
1813 * hppa-nbsd-nat.c: Fix indentation.
1814 * hppa-nbsd-tdep.c: Fix indentation.
1815 * hppa-obsd-nat.c: Fix indentation.
1816 * hppa-tdep.c: Fix indentation.
1817 * hppa-tdep.h: Fix indentation.
1818 * i386-bsd-nat.c: Fix indentation.
1819 * i386-darwin-nat.c: Fix indentation.
1820 * i386-darwin-tdep.c: Fix indentation.
1821 * i386-dicos-tdep.c: Fix indentation.
1822 * i386-gnu-nat.c: Fix indentation.
1823 * i386-linux-nat.c: Fix indentation.
1824 * i386-linux-tdep.c: Fix indentation.
1825 * i386-nto-tdep.c: Fix indentation.
1826 * i386-obsd-tdep.c: Fix indentation.
1827 * i386-sol2-nat.c: Fix indentation.
1828 * i386-tdep.c: Fix indentation.
1829 * i386-tdep.h: Fix indentation.
1830 * i386-windows-tdep.c: Fix indentation.
1831 * i387-tdep.c: Fix indentation.
1832 * i387-tdep.h: Fix indentation.
1833 * ia64-libunwind-tdep.c: Fix indentation.
1834 * ia64-libunwind-tdep.h: Fix indentation.
1835 * ia64-linux-nat.c: Fix indentation.
1836 * ia64-linux-tdep.c: Fix indentation.
1837 * ia64-tdep.c: Fix indentation.
1838 * ia64-tdep.h: Fix indentation.
1839 * ia64-vms-tdep.c: Fix indentation.
1840 * infcall.c: Fix indentation.
1841 * infcmd.c: Fix indentation.
1842 * inferior.c: Fix indentation.
1843 * infrun.c: Fix indentation.
1844 * iq2000-tdep.c: Fix indentation.
1845 * language.c: Fix indentation.
1846 * linespec.c: Fix indentation.
1847 * linux-fork.c: Fix indentation.
1848 * linux-nat.c: Fix indentation.
1849 * linux-tdep.c: Fix indentation.
1850 * linux-thread-db.c: Fix indentation.
1851 * lm32-tdep.c: Fix indentation.
1852 * m2-lang.c: Fix indentation.
1853 * m2-typeprint.c: Fix indentation.
1854 * m2-valprint.c: Fix indentation.
1855 * m32c-tdep.c: Fix indentation.
1856 * m32r-linux-tdep.c: Fix indentation.
1857 * m32r-tdep.c: Fix indentation.
1858 * m68hc11-tdep.c: Fix indentation.
1859 * m68k-bsd-nat.c: Fix indentation.
1860 * m68k-linux-nat.c: Fix indentation.
1861 * m68k-linux-tdep.c: Fix indentation.
1862 * m68k-tdep.c: Fix indentation.
1863 * machoread.c: Fix indentation.
1864 * macrocmd.c: Fix indentation.
1865 * macroexp.c: Fix indentation.
1866 * macroscope.c: Fix indentation.
1867 * macrotab.c: Fix indentation.
1868 * macrotab.h: Fix indentation.
1869 * main.c: Fix indentation.
1870 * mdebugread.c: Fix indentation.
1871 * mep-tdep.c: Fix indentation.
1872 * mi/mi-cmd-catch.c: Fix indentation.
1873 * mi/mi-cmd-disas.c: Fix indentation.
1874 * mi/mi-cmd-env.c: Fix indentation.
1875 * mi/mi-cmd-stack.c: Fix indentation.
1876 * mi/mi-cmd-var.c: Fix indentation.
1877 * mi/mi-cmds.c: Fix indentation.
1878 * mi/mi-main.c: Fix indentation.
1879 * mi/mi-parse.c: Fix indentation.
1880 * microblaze-tdep.c: Fix indentation.
1881 * minidebug.c: Fix indentation.
1882 * minsyms.c: Fix indentation.
1883 * mips-linux-nat.c: Fix indentation.
1884 * mips-linux-tdep.c: Fix indentation.
1885 * mips-nbsd-tdep.c: Fix indentation.
1886 * mips-tdep.c: Fix indentation.
1887 * mn10300-linux-tdep.c: Fix indentation.
1888 * mn10300-tdep.c: Fix indentation.
1889 * moxie-tdep.c: Fix indentation.
1890 * msp430-tdep.c: Fix indentation.
1891 * namespace.h: Fix indentation.
1892 * nat/fork-inferior.c: Fix indentation.
1893 * nat/gdb_ptrace.h: Fix indentation.
1894 * nat/linux-namespaces.c: Fix indentation.
1895 * nat/linux-osdata.c: Fix indentation.
1896 * nat/netbsd-nat.c: Fix indentation.
1897 * nat/x86-dregs.c: Fix indentation.
1898 * nbsd-nat.c: Fix indentation.
1899 * nbsd-tdep.c: Fix indentation.
1900 * nios2-linux-tdep.c: Fix indentation.
1901 * nios2-tdep.c: Fix indentation.
1902 * nto-procfs.c: Fix indentation.
1903 * nto-tdep.c: Fix indentation.
1904 * objfiles.c: Fix indentation.
1905 * objfiles.h: Fix indentation.
1906 * opencl-lang.c: Fix indentation.
1907 * or1k-tdep.c: Fix indentation.
1908 * osabi.c: Fix indentation.
1909 * osabi.h: Fix indentation.
1910 * osdata.c: Fix indentation.
1911 * p-lang.c: Fix indentation.
1912 * p-typeprint.c: Fix indentation.
1913 * p-valprint.c: Fix indentation.
1914 * parse.c: Fix indentation.
1915 * ppc-linux-nat.c: Fix indentation.
1916 * ppc-linux-tdep.c: Fix indentation.
1917 * ppc-nbsd-nat.c: Fix indentation.
1918 * ppc-nbsd-tdep.c: Fix indentation.
1919 * ppc-obsd-nat.c: Fix indentation.
1920 * ppc-ravenscar-thread.c: Fix indentation.
1921 * ppc-sysv-tdep.c: Fix indentation.
1922 * ppc64-tdep.c: Fix indentation.
1923 * printcmd.c: Fix indentation.
1924 * proc-api.c: Fix indentation.
1925 * producer.c: Fix indentation.
1926 * producer.h: Fix indentation.
1927 * prologue-value.c: Fix indentation.
1928 * prologue-value.h: Fix indentation.
1929 * psymtab.c: Fix indentation.
1930 * python/py-arch.c: Fix indentation.
1931 * python/py-bpevent.c: Fix indentation.
1932 * python/py-event.c: Fix indentation.
1933 * python/py-event.h: Fix indentation.
1934 * python/py-finishbreakpoint.c: Fix indentation.
1935 * python/py-frame.c: Fix indentation.
1936 * python/py-framefilter.c: Fix indentation.
1937 * python/py-inferior.c: Fix indentation.
1938 * python/py-infthread.c: Fix indentation.
1939 * python/py-objfile.c: Fix indentation.
1940 * python/py-prettyprint.c: Fix indentation.
1941 * python/py-registers.c: Fix indentation.
1942 * python/py-signalevent.c: Fix indentation.
1943 * python/py-stopevent.c: Fix indentation.
1944 * python/py-stopevent.h: Fix indentation.
1945 * python/py-threadevent.c: Fix indentation.
1946 * python/py-tui.c: Fix indentation.
1947 * python/py-unwind.c: Fix indentation.
1948 * python/py-value.c: Fix indentation.
1949 * python/py-xmethods.c: Fix indentation.
1950 * python/python-internal.h: Fix indentation.
1951 * python/python.c: Fix indentation.
1952 * ravenscar-thread.c: Fix indentation.
1953 * record-btrace.c: Fix indentation.
1954 * record-full.c: Fix indentation.
1955 * record.c: Fix indentation.
1956 * reggroups.c: Fix indentation.
1957 * regset.h: Fix indentation.
1958 * remote-fileio.c: Fix indentation.
1959 * remote.c: Fix indentation.
1960 * reverse.c: Fix indentation.
1961 * riscv-linux-tdep.c: Fix indentation.
1962 * riscv-ravenscar-thread.c: Fix indentation.
1963 * riscv-tdep.c: Fix indentation.
1964 * rl78-tdep.c: Fix indentation.
1965 * rs6000-aix-tdep.c: Fix indentation.
1966 * rs6000-lynx178-tdep.c: Fix indentation.
1967 * rs6000-nat.c: Fix indentation.
1968 * rs6000-tdep.c: Fix indentation.
1969 * rust-lang.c: Fix indentation.
1970 * rx-tdep.c: Fix indentation.
1971 * s12z-tdep.c: Fix indentation.
1972 * s390-linux-tdep.c: Fix indentation.
1973 * score-tdep.c: Fix indentation.
1974 * ser-base.c: Fix indentation.
1975 * ser-mingw.c: Fix indentation.
1976 * ser-uds.c: Fix indentation.
1977 * ser-unix.c: Fix indentation.
1978 * serial.c: Fix indentation.
1979 * sh-linux-tdep.c: Fix indentation.
1980 * sh-nbsd-tdep.c: Fix indentation.
1981 * sh-tdep.c: Fix indentation.
1982 * skip.c: Fix indentation.
1983 * sol-thread.c: Fix indentation.
1984 * solib-aix.c: Fix indentation.
1985 * solib-darwin.c: Fix indentation.
1986 * solib-frv.c: Fix indentation.
1987 * solib-svr4.c: Fix indentation.
1988 * solib.c: Fix indentation.
1989 * source.c: Fix indentation.
1990 * sparc-linux-tdep.c: Fix indentation.
1991 * sparc-nbsd-tdep.c: Fix indentation.
1992 * sparc-obsd-tdep.c: Fix indentation.
1993 * sparc-ravenscar-thread.c: Fix indentation.
1994 * sparc-tdep.c: Fix indentation.
1995 * sparc64-linux-tdep.c: Fix indentation.
1996 * sparc64-nbsd-tdep.c: Fix indentation.
1997 * sparc64-obsd-tdep.c: Fix indentation.
1998 * sparc64-tdep.c: Fix indentation.
1999 * stabsread.c: Fix indentation.
2000 * stack.c: Fix indentation.
2001 * stap-probe.c: Fix indentation.
2002 * stubs/ia64vms-stub.c: Fix indentation.
2003 * stubs/m32r-stub.c: Fix indentation.
2004 * stubs/m68k-stub.c: Fix indentation.
2005 * stubs/sh-stub.c: Fix indentation.
2006 * stubs/sparc-stub.c: Fix indentation.
2007 * symfile-mem.c: Fix indentation.
2008 * symfile.c: Fix indentation.
2009 * symfile.h: Fix indentation.
2010 * symmisc.c: Fix indentation.
2011 * symtab.c: Fix indentation.
2012 * symtab.h: Fix indentation.
2013 * target-float.c: Fix indentation.
2014 * target.c: Fix indentation.
2015 * target.h: Fix indentation.
2016 * tic6x-tdep.c: Fix indentation.
2017 * tilegx-linux-tdep.c: Fix indentation.
2018 * tilegx-tdep.c: Fix indentation.
2019 * top.c: Fix indentation.
2020 * tracefile-tfile.c: Fix indentation.
2021 * tracepoint.c: Fix indentation.
2022 * tui/tui-disasm.c: Fix indentation.
2023 * tui/tui-io.c: Fix indentation.
2024 * tui/tui-regs.c: Fix indentation.
2025 * tui/tui-stack.c: Fix indentation.
2026 * tui/tui-win.c: Fix indentation.
2027 * tui/tui-winsource.c: Fix indentation.
2028 * tui/tui.c: Fix indentation.
2029 * typeprint.c: Fix indentation.
2030 * ui-out.h: Fix indentation.
2031 * unittests/copy_bitwise-selftests.c: Fix indentation.
2032 * unittests/memory-map-selftests.c: Fix indentation.
2033 * utils.c: Fix indentation.
2034 * v850-tdep.c: Fix indentation.
2035 * valarith.c: Fix indentation.
2036 * valops.c: Fix indentation.
2037 * valprint.c: Fix indentation.
2038 * valprint.h: Fix indentation.
2039 * value.c: Fix indentation.
2040 * value.h: Fix indentation.
2041 * varobj.c: Fix indentation.
2042 * vax-tdep.c: Fix indentation.
2043 * windows-nat.c: Fix indentation.
2044 * windows-tdep.c: Fix indentation.
2045 * xcoffread.c: Fix indentation.
2046 * xml-syscall.c: Fix indentation.
2047 * xml-tdesc.c: Fix indentation.
2048 * xstormy16-tdep.c: Fix indentation.
2049 * xtensa-config.c: Fix indentation.
2050 * xtensa-linux-nat.c: Fix indentation.
2051 * xtensa-linux-tdep.c: Fix indentation.
2052 * xtensa-tdep.c: Fix indentation.
2054 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2055 Craig Blackmore <craig.blackmore@embecosm.com>
2057 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2058 as an unsigned value.
2060 2020-11-01 Tom Tromey <tom@tromey.com>
2062 * dbxread.c (dbx_end_psymtab): Update.
2063 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2064 (build_type_psymtabs_reader): Update.
2065 * xcoffread.c (xcoff_end_psymtab): Update.
2066 * ctfread.c (scan_partial_symbols): Update.
2067 * psymtab.c (sort_pst_symbols): Remove.
2068 (partial_symtab::end): Rename from end_psymtab_common. Inline
2070 * psympriv.h (struct partial_symtab) <end>: New method.
2071 (end_psymtab_common): Don't declare.
2073 2020-11-01 Tom Tromey <tom@tromey.com>
2075 * symmisc.c (count_psyms): New function.
2076 (print_objfile_statistics): Use it.
2077 * psymtab.c (append_psymbol_to_list): Remove.
2078 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2079 * objfiles.h (struct objstats) <n_psyms>: Remove.
2081 2020-11-01 Tom Tromey <tom@tromey.com>
2083 * dbxread.c (dbx_end_psymtab): Update.
2084 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2085 (build_type_psymtabs_reader): Update.
2086 * xcoffread.c (xcoff_end_psymtab): Update.
2087 * ctfread.c (scan_partial_symbols): Update.
2088 * psympriv.h (end_psymtab_common): Update.
2089 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2090 (sort_pst_symbols): Likewise.
2092 2020-11-01 Tom Tromey <tom@tromey.com>
2094 * dbxread.c (dbx_symfile_read): Update.
2095 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2096 * xcoffread.c (xcoff_initial_scan): Update.
2097 * psympriv.h (init_psymbol_list): Don't declare.
2098 * psymtab.c (init_psymbol_list): Remove.
2100 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2102 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2103 gnat_encoded_fixed_type_info. Update all callers.
2105 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2107 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2110 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2112 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2113 cast_from_fixed. Update all callers.
2114 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2116 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2118 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2120 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2121 to print_gnat_encoded_fixed_point_type.
2122 * ada-valprint.c: Likewise.
2124 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2126 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2127 (debug_prefixed_printf): Add check of debug_displaced flag.
2128 * linux-nat.c (linux_nat_debug_printf): Add check of
2129 debug_linux_nat flag.
2131 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2133 * infrun.c (infrun_debug_printf_1): Remove.
2134 (displaced_debug_printf_1): Remove.
2135 (stop_all_threads): Use debug_prefixed_printf.
2136 * infrun.h (infrun_debug_printf_1): Remove.
2137 (infrun_debug_printf): Use debug_prefixed_printf.
2138 (displaced_debug_printf_1): Remove.
2139 (displaced_debug_printf): Use debug_prefixed_printf.
2140 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2141 (linux_nat_debug_printf): Use debug_prefixed_printf.
2143 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2145 * configure: Re-generate.
2146 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2149 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2151 * configure: Re-generate.
2153 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2155 * configure: Re-generate.
2157 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2159 * configure: Re-generate.
2161 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2163 * configure: Re-generate.
2165 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2167 * acinclude.m4: Modernize.
2168 * configure: Re-generate.
2170 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2172 * configure.ac: Modernize.
2173 * configure: Re-generate.
2175 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2177 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2178 * configure: Re-generate.
2179 * configure.ac: Remove AM_PROG_CC_STDC.
2181 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2183 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2184 AC_CANONICAL_SYSTEM.
2185 * configure: Re-generate.
2187 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
2189 * infrun.h (displaced_debug_printf): New macro. Replace
2190 displaced debug prints throughout to use it.
2191 (displaced_debug_printf_1): New declaration.
2192 (displaced_step_dump_bytes): Return string, remove ui_file
2193 parameter, update all callers.
2194 * infrun.c (displaced_debug_printf_1): New function.
2195 (displaced_step_dump_bytes): Return string, remove ui_file
2198 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2200 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2202 2020-10-30 Tom Tromey <tromey@adacore.com>
2204 * Makefile.in (stamp-init): Depend on config.status.
2206 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2208 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2210 2020-10-30 Pedro Alves <pedro@palves.net>
2212 * thread.c (lookup_selected_frame): Move ...
2213 * frame.c (lookup_selected_frame): ... here.
2215 2020-10-30 Pedro Alves <pedro@palves.net>
2217 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2219 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2220 Use save_selected_frame. Save language as well.
2221 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2222 Use restore_selected_frame, and restore language as well.
2223 (selected_frame_id, selected_frame_level): New.
2224 (selected_frame): Update comments.
2225 (save_selected_frame, restore_selected_frame): New.
2226 (get_selected_frame): Use lookup_selected_frame.
2227 (get_selected_frame_if_set): Delete.
2228 (select_frame): Record selected_frame_level and selected_frame_id.
2229 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2231 (get_selected_frame): Make 'message' parameter optional.
2232 (get_selected_frame_if_set): Delete declaration.
2233 (select_frame): Update comments.
2234 (save_selected_frame, restore_selected_frame)
2235 (lookup_selected_frame): Declare.
2236 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2237 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2239 (save_infcall_control_state): Use save_selected_frame.
2240 (restore_selected_frame): Delete.
2241 (restore_infcall_control_state): Use restore_selected_frame.
2242 * stack.c (select_frame_command_core, frame_command_core): Use
2244 * thread.c (restore_selected_frame): Rename to ...
2245 (lookup_selected_frame): ... this and make extern. Select the
2246 current frame if the frame level is -1.
2247 (scoped_restore_current_thread::restore): Also restore the
2249 (scoped_restore_current_thread::~scoped_restore_current_thread):
2251 (scoped_restore_current_thread::scoped_restore_current_thread):
2252 Save the language as well. Use save_selected_frame.
2254 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2256 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2258 * gdbarch.h: Re-generate.
2260 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2262 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2264 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2266 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2268 * arch-utils.c (default_displaced_step_hw_singlestep):
2270 * arch-utils.h (default_displaced_step_hw_singlestep):
2272 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2274 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2276 * gdbarch.c: Re-generate.
2277 * gdbarch.h: Re-generate.
2278 * infrun.c (resume_1): Adjust.
2280 2020-10-29 Tom Tromey <tom@tromey.com>
2282 * progspace.c (program_space::~program_space): Don't call
2285 2020-10-29 Tom Tromey <tom@tromey.com>
2287 * exec.c (exec_target::close): Don't change current program
2290 2020-10-29 Tom Tromey <tom@tromey.com>
2292 * symfile.c (add_symbol_file_command): Update.
2293 * exec.c (program_space::add_target_sections): Rename.
2294 * symfile-mem.c (symbol_file_add_from_memory): Update.
2295 * progspace.h (struct program_space) <add_target_sections>:
2296 Declare new overload.
2297 * exec.h (add_target_sections_of_objfile): Don't declare.
2299 2020-10-29 Tom Tromey <tom@tromey.com>
2301 * solib.c (solib_map_sections): Update.
2302 * exec.c (program_space::add_target_sections): Now a method.
2303 (exec_file_attach): Update.
2304 * exec.h (add_target_sections): Don't declare.
2305 * progspace.h (struct program_space) <add_target_sections>:
2308 2020-10-29 Tom Tromey <tom@tromey.com>
2310 * progspace.h (struct program_space) <remove_target_sections>:
2312 * exec.c (program_space::remove_target_sections): Now a method.
2313 * exec.h (remove_target_sections): Don't declare.
2315 2020-10-29 Tom Tromey <tom@tromey.com>
2317 * inferior.c (delete_inferior): Update.
2318 * progspace.c (program_space::empty): Rename from
2319 program_space_empty_p. Return bool.
2320 * progspace.h (struct program_space) <empty>: New method.
2321 (program_space_empty_p): Don't declare.
2323 2020-10-29 Tom Tromey <tom@tromey.com>
2325 * progspace.c (program_space::~program_space): Don't call
2326 clear_program_space_solib_cache.
2327 (program_space::clear_solib_cache): Rename from
2329 * solib.c (handle_solib_event): Update.
2330 * progspace.h (struct program_space) <clear_solib_cache>: New
2332 (clear_program_space_solib_cache): Don't declare.
2334 2020-10-29 Tom Tromey <tom@tromey.com>
2336 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2337 * target.c (info_target_command): Update.
2338 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2339 (symbol_file_clear, reread_symbols): Update.
2340 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2341 * stabsread.c (scan_file_globals): Update.
2342 * solib.c (update_solib_list): Update.
2343 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2344 (svr4_fetch_objfile_link_map, enable_break)
2345 (svr4_relocate_main_executable)
2346 (svr4_iterate_over_objfiles_in_search_order): Update.
2347 * solib-frv.c (lm_base, enable_break)
2348 (frv_relocate_main_executable): Update.
2349 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2350 (frv_fetch_objfile_link_map): Update.
2351 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2352 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2353 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2354 * remote.c (remote_target::get_offsets): Update.
2355 (remote_target::start_remote)
2356 (extended_remote_target::post_attach): Update.
2357 * objfiles.c (entry_point_address_query): Update.
2358 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2359 * minsyms.c (get_symbol_leading_char): Update.
2360 * frame.c (inside_main_func): Update.
2361 * progspace.h (symfile_objfile): Remove macro.
2363 2020-10-29 Tom Tromey <tom@tromey.com>
2365 * exec.c (exec_file_attach): Update.
2366 * progspace.c (program_space::exec_close): Update.
2367 * progspace.h (struct program_space) <ebfd>: Now a
2369 <set_exec_bfd>: Change argument type.
2372 2020-10-29 Tom Tromey <tom@tromey.com>
2374 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2375 * symfile.c (reread_symbols): Update.
2376 * symfile-mem.c (add_symbol_file_from_memory_command)
2377 (add_vsyscall_page): Update.
2378 * source-cache.c (source_cache::get_plain_source_lines): Update.
2379 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2380 (svr4_current_sos_direct, svr4_exec_displacement)
2381 (svr4_relocate_main_executable): Update.
2382 (svr4_iterate_over_objfiles_in_search_order): Update.
2383 * solib-frv.c (enable_break2, enable_break): Update.
2384 * solib-dsbt.c (lm_base, enable_break): Update.
2385 * solib-darwin.c (find_program_interpreter)
2386 (darwin_solib_create_inferior_hook): Update.
2387 * sol-thread.c (rw_common, ps_pdmodel): Update.
2388 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2389 * remote.c (compare_sections_command)
2390 (remote_target::trace_set_readonly_regions): Update.
2391 * remote-sim.c (get_sim_inferior_data)
2392 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2393 (gdbsim_target_open, gdbsim_target::files_info): Update.
2394 * exec.h (exec_bfd): Remove macro.
2395 * progspace.c (initialize_progspace): Update.
2396 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2398 * nto-procfs.c (nto_procfs_target::post_attach)
2399 (nto_procfs_target::create_inferior): Update.
2400 * maint.c (maintenance_info_sections): Update.
2401 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2403 * infcmd.c (post_create_inferior): Update.
2404 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2405 (objfile_find_memory_regions): Update.
2406 * exec.c (validate_exec_file, exec_file_attach)
2407 (exec_read_partial_read_only, print_section_info): Update.
2408 * corelow.c (core_target_open): Update.
2409 * corefile.c (reopen_exec_file, validate_files): Update.
2410 * arm-tdep.c (gdb_print_insn_arm): Update.
2411 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2412 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2415 2020-10-29 Tom Tromey <tom@tromey.com>
2417 * progspace.h (current_target_sections): Remove macro.
2418 * solib-svr4.c (scan_dyntag): Update.
2419 * solib-dsbt.c (scan_dyntag): Update.
2420 * exec.c (exec_target::close): Update.
2421 (add_target_sections, add_target_sections_of_objfile)
2422 (remove_target_sections, exec_target::get_section_table)
2423 (exec_target::files_info, set_section_command)
2424 (exec_set_section_address, exec_target::has_memory)
2425 (exec_target::has_memory): Update.
2427 2020-10-29 Tom Tromey <tom@tromey.com>
2429 * source-cache.c (source_cache::get_plain_source_lines): Use
2430 current_program_space.
2431 * corefile.c (reopen_exec_file): Use current_program_space.
2432 * exec.c (exec_file_attach): Use current_program_space.
2433 * exec.h (exec_bfd_mtime): Remove.
2435 2020-10-29 Tom Tromey <tom@tromey.com>
2437 * gcore.c (default_gcore_mach): Remove.
2438 (create_gcore_bfd): Update.
2440 2020-10-29 Tom Tromey <tom@tromey.com>
2442 * progspace.c (program_space::exec_close): New method, from
2443 exec_close in exec.c.
2444 * exec.c (exec_close): Move to progspace.c.
2445 (exec_target::close, exec_file_attach): Update.
2446 * progspace.h (struct program_space) <exec_close>: Declare
2449 2020-10-29 Tom Tromey <tom@tromey.com>
2451 * progspace.h (struct program_space) <exec_filename>: Rename from
2452 pspace_exec_filename. Now a unique_xmalloc_ptr.
2453 * inferior.c (print_selected_inferior): Update.
2454 (print_inferior): Update.
2455 * mi/mi-main.c (print_one_inferior): Update.
2456 * exec.h (exec_filename): Remove macro.
2457 * corefile.c (get_exec_file): Update.
2458 * exec.c (exec_close): Update.
2459 (exec_file_attach): Update.
2460 * progspace.c (clone_program_space): Update.
2461 (print_program_space): Update.
2463 2020-10-29 Tom Tromey <tom@tromey.com>
2465 * target-section.h (struct target_section): Add constructor.
2466 * exec.c (build_section_table, add_target_sections_of_objfile):
2468 * corelow.c (core_target::build_file_mappings): Update.
2470 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2473 * inferior.c (detach_inferior_command): Restore the current thread.
2474 (kill_inferior_command): Ditto.
2476 2020-10-28 Tom de Vries <tdevries@suse.de>
2479 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2480 map, check it in the "best match" loop.
2482 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2484 * m32c-tdep.c: Remove unused includes.
2486 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2488 * xtensa-tdep.c: Remove includes.
2490 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2492 * breakpoint.c (struct condition_command_opts): New struct.
2493 (condition_command_option_defs): New static global.
2494 (make_condition_command_options_def_group): New function.
2495 (condition_completer): Update to consider the '-force' flag.
2496 (condition_command): Use gdb::option for the '-force' flag.
2498 2020-10-27 Tom de Vries <tdevries@suse.de>
2500 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2501 symbols in section check.
2503 2020-10-27 Tom de Vries <tdevries@suse.de>
2505 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2507 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2509 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2510 * breakpoint.c: Update the help text of the 'condition' and 'break'
2512 (set_breakpoint_condition): Take a new bool parameter
2513 to control whether condition definition should be forced even when
2514 the condition expression is invalid in all of the current locations.
2515 (condition_command): Update the call to 'set_breakpoint_condition'.
2516 (find_condition_and_thread): Take the "-force-condition" flag into
2518 * linespec.c (linespec_keywords): Add "-force-condition" as an
2520 (FORCE_KEYWORD_INDEX): New #define.
2521 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2523 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2524 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2525 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2526 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2528 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2530 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2531 * breakpoint.c (set_breakpoint_location_condition): New function.
2532 (set_breakpoint_condition): Disable a breakpoint location if parsing
2533 the condition string gives an error.
2534 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2535 (build_target_condition_list): Ditto.
2536 (build_target_command_list): Ditto.
2537 (build_bpstat_chain): Ditto.
2538 (print_one_breakpoint_location): Ditto.
2539 (print_one_breakpoint): Ditto.
2540 (breakpoint_1): Ditto.
2541 (bp_location::bp_location): Ditto.
2542 (locations_are_equal): Ditto.
2543 (update_breakpoint_locations): Ditto.
2544 (enable_disable_bp_num_loc): Ditto.
2545 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2546 (find_condition_and_thread_for_sals): New static function.
2547 (create_breakpoint): Call find_condition_and_thread_for_sals.
2548 (location_to_sals): Call find_condition_and_thread_for_sals instead
2549 of find_condition_and_thread.
2551 2020-10-26 Tom de Vries <tdevries@suse.de>
2553 * dwarf2/read.c (process_full_comp_unit): Call
2554 dwarf2_find_base_address.
2556 2020-10-26 Tom Tromey <tromey@adacore.com>
2558 * gdbtypes.c (create_range_type): Revert previous patch. Add
2561 2020-10-26 Pedro Alves <pedro@palves.net>
2563 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2564 (my_waitpid): Use gdb::handle_eintr.
2566 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2568 * acinclude.m4: Update ptrace.m4 path.
2569 * ptrace.m4: Moved to gdbsupport.
2571 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2573 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2574 instead of target_gdbarch.
2576 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2578 * jit.c (jit_reader_load_command): Pass current inferior.
2579 (jit_inferior_init): Change parameter type to inferior, use it.
2580 (jit_inferior_created): Remove.
2581 (jit_inferior_created_hook): Pass inferior parameter down.
2582 (_initialize_jit): Use jit_inferior_created_hook instead of
2583 jit_inferior_created.
2584 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2585 * infrun.c (follow_exec): Pass inferior to
2586 jit_inferior_created_hook.
2588 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2590 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2591 parameter and use it.
2592 (thread_db_inferior_created): Pass inferior argument.
2594 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2596 * aix-thread.c (aix_thread_inferior_created): Add inferior
2598 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2599 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2600 * jit.c (jit_inferior_created): Likewise.
2601 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2602 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2603 * observable.h (inferior_created): Likewise.
2604 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2605 * symfile-mem.c (add_vsyscall_page): Likewise.
2606 * infcmd.c (post_create_inferior): Pass inferior argument.
2608 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2612 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2614 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2615 to ada_check_typedef.
2617 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2619 * f-exp.y (f_parse): Rename to...
2620 (f_language::parser): ...this.
2621 * f-lang.c (f_get_encoding): Rename to...
2622 (f_language::get_encoding): ...this.
2623 (f_op_print_tab): Rename to...
2624 (f_language::op_print_tab): ...this.
2625 (exp_descriptor_f): Rename to...
2626 (f_language::exp_descriptor_tab): ...this.
2627 (class f_language): Moved to f-lang.h.
2628 (f_language::language_arch_info): New function, moved out of class
2630 (f_language::search_name_hash): Likewise.
2631 (f_language::lookup_symbol_nonlocal): Likewise.
2632 (f_language::get_symbol_name_matcher_inner): Likewise.
2633 * f-lang.h: Add 'valprint.h' include.
2634 (class f_language): Moved here from f-lang.c.
2635 * f-typeprint.c (f_type_print_args): Delete commented out
2637 (f_print_typedef): Rename to...
2638 (f_language::print_typedef): ...this.
2639 (f_print_type): Rename to...
2640 (f_language::print_type): ...this.
2641 (f_type_print_varspec_prefix): Delete declaration and rename to...
2642 (f_language::f_type_print_varspec_prefix): ...this.
2643 (f_type_print_varspec_suffix): Delete declaration and rename to...
2644 (f_language::f_type_print_varspec_suffix): ...this.
2645 (f_type_print_base): Delete declaration and rename to...
2646 (f_language::f_type_print_base): ...this.
2647 * f-valprint.c (f_value_print_inner): Rename to...
2648 (f_language::value_print_inner): ...this.
2649 * parse.c: Delete 'f-lang.h' include.
2651 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2653 * language.h (language_defn::print_type): Add variable names in
2654 declaration, and update header comment.
2656 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2658 * ada-lang.c (ada_language::demangle): Rename to...
2659 (ada_language::demangle_symbol): ...this.
2660 * c-lang.c (cplus_language::demangle): Rename to...
2661 (cplus_language::demangle_symbol): ...this.
2662 * d-lang.c (d_language::demangle): Rename to...
2663 (d_language::demangle_symbol): ...this.
2664 * f-lang.c (f_language::demangle): Rename to...
2665 (f_language::demangle_symbol): ...this.
2666 * go-lang.c (go_language::demangle): Rename to...
2667 (go_language::demangle_symbol): ...this.
2668 * language.c (language_demangle): Update call to demangle_symbol.
2669 (auto_or_unknown_language::demangle): Rename to...
2670 (auto_or_unknown_language::demangle_symbol): ...this.
2671 * language.h (language_defn::demangle): Rename to...
2672 (language_defn::demangle_symbol): ...this.
2673 * objc-lang.c (objc_language::demangle): Rename to...
2674 (objc_language::demangle_symbol): ...this.
2675 * rust-lang.c (rust_language::demangle): Rename to...
2676 (rust_language::demangle_symbol): ...this.
2678 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2680 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2681 (iterate_over_file_blocks): Replace use of macro with the macros
2684 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2686 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2687 * valprint.c (maybe_print_array_index): Replace use of macro with
2688 the macros definition.
2690 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2692 * ada-lang.c (ada_language::print_array_index): Call value_print
2694 * language.c (language_defn::print_array_index): Likewise.
2695 * language.h (LA_VALUE_PRINT): Delete.
2696 * valprint.c (value_print): Call value_print on the
2697 current_language directly.
2699 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2701 * language.h (LA_PRINT_TYPEDEF): Delete.
2702 * typeprint.c (typedef_print): Call print_typedef directly on the
2703 current_language object.
2705 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2707 * m2-exp.y (m2_parse): Rename to...
2708 (m2_language::parser): ...this. Update function signature.
2709 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2710 (m2_op_print): Rename to...
2711 (m2_language::op_print_tab): ...this, and make const.
2712 (exp_descriptor_modula2): Rename to...
2713 (m2_language::exp_descriptor_modula2): ...this.
2714 (class m2_language): Move to m2-lang.h.
2715 (m2_language::language_arch_info): New function, moved out of
2717 (m2_language::printchar): New function, body from m2_printchar.
2718 (m2_language::printstr): New function, moved out of class
2720 (m2_language::emitchar): Likewise.
2721 * m2-lang.h (m2_parse): Delete declaration.
2722 (m2_print_typedef): Delete declaration.
2723 (m2_value_print_inner): Delete declaration.
2724 (class m2_language): Class declaration moved from m2-lang.c,
2725 larger functions are left in m2-lang.c.
2726 * m2-typeprint.c (m2_print_typedef): Rename to...
2727 (m2_language::print_typedef): ...this, and update function
2729 * m2-valprint.c (m2_value_print_inner): Rename to...
2730 (m2_language::value_print_inner): ...this, replace use of
2731 LA_PRINT_STRING with a direct call to printstr member function,
2732 and update recursive call.
2734 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2736 * language.c (default_is_string_type_p): Delete, implementation
2737 moved into auto_or_unknown_language::is_string_type_p.
2738 (unk_op_print_tab): Moved into
2739 auto_or_unknown_language::opcode_print_table.
2740 (unknown_language_arch_info): Delete, implementation moved into
2741 auto_or_unknown_language::language_arch_info.
2742 (class auto_or_unknown_language): New class, member functions
2743 copied from unknown_language class, with some updates.
2744 (class unknown_language): Most member functions moved into
2745 auto_or_unknown_language class. Inherit from
2746 auto_or_unknown_language class.
2747 (class auto_language): Inherit from auto_or_unknown_language.
2748 Delete most member functions.
2750 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2752 * stabsread.c (read_member_functions): Remove gdb_assert.
2754 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2756 * gdbtypes.c (init_complex_type): Check target type name.
2758 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2760 * target-debug.h (target_debug_print_struct_target_ops_p):
2762 (target_debug_print_async_callback_ftype_p): Remove.
2763 (target_debug_print_struct_trace_state_variable_p): Remove.
2764 (target_debug_print_struct_traceframe_info_p): Remove.
2765 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2766 (target_debug_print_enum_btrace_format): Remove.
2767 (target_debug_print_enum_info_proc_what): Remove.
2768 (target_debug_print_thread_info_pp): Remove.
2770 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2772 * target.h (struct target_ops) <make_corefile_notes>:
2773 Change return type to unique pointer.
2774 * target.c (dummy_make_corefile_notes): Likewise.
2775 * exec.c (struct exec_target) <make_corefile_notes>:
2777 (exec_target::make_corefile_notes): Likewise.
2778 * procfs.c (class procfs_target) <make_corefile_notes>:
2780 (procfs_do_thread_registers): Adjust to unique pointer.
2781 (struct procfs_corefile_thread_data): Add constructor.
2782 <note_data>: Change type to unique pointer.
2783 (procfs_corefile_thread_callback): Adjust to unique pointer.
2784 (procfs_target::make_corefile_notes): Change return type to
2786 * target-delegates.c: Re-generate.
2787 * gcore.c (write_gcore_file_1): Adjust.
2788 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2791 2020-10-22 Tom de Vries <tdevries@suse.de>
2793 * block.c (find_block_in_blockvector): Make sure the returned block
2796 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2799 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2801 (load_cu): Pass existing CU.
2802 (process_imported_unit_die): Likewise.
2803 (follow_die_offset): Likewise.
2805 2020-10-22 Luis Machado <luis.machado@linaro.org>
2807 * corelow.c (core_target::xfer_partial): Also check for an empty
2808 m_core_unavailable_mappings vector.
2810 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2812 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2813 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2814 * f-exp.y (arglist): Allow for a series of subranges.
2815 (subrange): Add cases for subranges with strides.
2816 * f-lang.c (value_f90_subarray): Catch use of array strides and
2818 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2820 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2822 * expprint.c (print_subexp_standard): Change enum range_type to
2823 range_flag and rename variables to match.
2824 (dump_subexp_body_standard): Likewise.
2825 * expression.h (enum range_type): Rename to...
2826 (enum range_flag): ...this.
2827 (range_types): Rename to...
2828 (range_flags): ...this.
2829 * f-lang.c (value_f90_subarray): Change enum range_type to
2830 range_flag and rename variables to match.
2831 * parse.c (operator_length_standard): Likewise.
2832 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2833 range_type to range_flag.
2834 * rust-lang.c (rust_evaluate_funcall): Likewise.
2835 (rust_range): Likewise.
2836 (rust_compute_range): Likewise.
2837 (rust_subscript): Likewise.
2839 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2841 * expprint.c (print_subexp_standard): Update to reflect changes to
2843 (dump_subexp_body_standard): Likewise.
2844 * expression.h (enum range_type): Convert to a bit field enum, and
2845 make the enum unsigned.
2846 * f-exp.y (subrange): Update to reflect changes to enum
2848 * f-lang.c (value_f90_subarray): Likewise.
2849 * parse.c (operator_length_standard): Likewise.
2850 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2851 * rust-lang.c (rust_range): Likewise.
2852 (rust_compute_range): Likewise.
2853 (rust_subscript): Likewise.
2855 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2857 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2858 (displaced_step_in_progress): Fix comment.
2860 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2862 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2863 * gdbarch.c: Re-generate.
2864 * gdbarch.h: Re-generate.
2865 * gcore.c (write_gcore_file_1): Adjust.
2866 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2868 <note_data>: Change type to unique pointer.
2869 <abort_iteration>: Change type to bool.
2870 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2871 (fbsd_collect_thread_registers): Return void, adjust.
2872 (struct fbsd_corefile_thread_data): Add construtor.
2873 <note_data>: Change type to unique pointer.
2874 (fbsd_corefile_thread): Adjust.
2875 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2876 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2877 to unique pointer, adjust.
2878 (struct linux_collect_regset_section_cb_data): Add constructor.
2879 <note_data>: Change type to unique pointer.
2880 <abort_iteration>: Change type to bool.
2881 (linux_collect_thread_registers): Return void, adjust.
2882 (struct linux_corefile_thread_data): Add constructor.
2883 <note_data>: Change type to unique pointer.
2884 (linux_corefile_thread): Adjust.
2885 (linux_make_corefile_notes): Return unique pointer, adjust.
2887 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2889 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2890 * gdbarch.c: Re-generate.
2891 * gdbarch.h: Re-generate.
2892 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2894 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2896 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2897 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2898 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2899 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2901 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2903 * gdbarch.sh: Make generated predicates return bool.
2904 * gdbarch.c: Re-generate.
2905 * gdbarch.h: Re-generate.
2907 2020-10-20 Tom Tromey <tom@tromey.com>
2909 * varobj-iter.h (struct varobj_item): Remove typedef.
2911 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2913 * infrun.c (currently_stepping): Change int to bool
2914 (maybe_software_singlestep): Likewise.
2915 (show_stop_on_solib_events): Likewise.
2916 (stepping_past_nonsteppable_watchpoint): Likewise.
2917 (displaced_step_in_progress_any_inferior): Likewise.
2918 (displaced_step_in_progress_thread): Likewise.
2919 (keep_going_stepped_thread): Likewise.
2920 (thread_still_needs_step_over): Likewise.
2921 (start_step_over): Likewise.
2922 (do_target_resume): Likewise.
2923 (resume_1): Likewise.
2924 (clear_proceed_status): Likewise.
2925 (thread_still_needs_step_over_bp): Likewise.
2926 (proceed): Likewise.
2927 (switch_back_to_stepped_thread): Likewise.
2928 (adjust_pc_after_break): Likewise.
2929 (stepped_in_from): Likewise.
2930 (handle_stop_requested): Likewise.
2931 (handle_syscall_event): Likewise.
2932 (handle_no_resumed): Likewise.
2933 (handle_inferior_event): Likewise.
2934 (finish_step_over): Likewise.
2935 (handle_signal_stop): Likewise.
2936 (process_event_stop_test): Likewise.
2938 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2940 * infrun.c (get_displaced_stepping_state): Fix comment.
2942 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2944 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2946 2020-10-19 Tom Tromey <tromey@adacore.com>
2949 * tui/tui-winsource.h (struct tui_source_window_base)
2950 <refresh_window>: Rename from refresh_pad.
2951 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2952 Rename from refresh_pad.
2953 (tui_source_window_base::show_source_content)
2954 (tui_source_window_base::do_scroll_horizontal): Update.
2956 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2958 * thread.c (_initialize_thread): Fine-tune the help text of
2961 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2963 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2965 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2967 * breakpoint.c (handle_jit_event): Add an argument, change how
2968 `jit_event_handler` is called.
2970 2020-10-17 Tom Tromey <tom@tromey.com>
2972 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2973 (scan_xcoff_symtab): Update.
2974 * psymtab.h (class psymtab_storage) <global_psymbols,
2975 static_psymbols, current_global_psymbols,
2976 current_static_psymbols>: Remove.
2977 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2978 (match_partial_symbol, lookup_partial_symbol): Update.
2979 (print_partial_symbols): Change parameters.
2980 (dump_psymtab, recursively_search_psymtabs)
2981 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2982 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2984 (end_psymtab_common): Simplify.
2985 (append_psymbol_to_list): Change parameters.
2986 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2987 (init_psymbol_list): Simplify.
2988 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2989 * psympriv.h (struct partial_symtab) <empty>: New method.
2990 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2992 <global_psymbols, static_psymbols>: New members.
2993 <add_psymbol>: New methods.
2994 (add_psymbol_to_list): Don't declare.
2995 (psymbol_placement): Move earlier.
2996 * mdebugread.c (parse_partial_symbols): Update.
2997 (handle_psymbol_enumerators): Change parameters.
2998 (mdebug_expand_psymtab): Update.
2999 * dwarf2/read.c (process_psymtab_comp_unit_reader)
3000 (add_partial_symbol): Update.
3001 * dwarf2/index-write.c (write_psymbols): Change parameters.
3002 (write_one_signatured_type): Update.
3003 (recursively_count_psymbols): Update.
3004 (recursively_write_psymbols): Update.
3005 (class debug_names) <recursively_write_psymbols>: Update.
3006 <write_psymbols>: Change parameters.
3007 <write_one_signatured_type>: Update.
3008 * dbxread.c (read_dbx_symtab): Update.
3009 (dbx_end_psymtab): Use partial_symtab::empty.
3010 * ctfread.c (struct ctf_context) <pst>: New member.
3011 (create_partial_symtab): Set it.
3012 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
3013 (scan_partial_symbols): Use the psymtab's context. Update.
3015 2020-10-17 Tom Tromey <tom@tromey.com>
3017 * valprint.c (generic_value_print): Remove comment.
3018 * m2-valprint.c (m2_value_print_inner): Remove comment.
3019 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
3022 2020-10-17 Tom de Vries <tdevries@suse.de>
3025 * source.c (select_source_symtab): Handling sal.symtab == NULL for
3028 2020-10-14 Tom de Vries <tdevries@suse.de>
3031 * solib.c (solib_contains_address_p): Handle
3032 'solib->sections == nullptr'.
3034 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3037 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3038 target can't do async.
3039 * target.c (target_wait): Assert that we don't pass
3040 TARGET_WNOHANG to a target that can't async.
3042 2020-10-13 Kamil Rytarowski <n54@gmx.com>
3044 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3045 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3046 * alpha-bsd-nat.c: Adjust include.
3047 * alpha-bsd-tdep.h: Adjust comment.
3048 * alpha-nbsd-tdep.c: Rename to ...
3049 * alpha-netbsd-tdep.c: ... this, adjust include.
3050 * amd64-nbsd-nat.c: Rename to ...
3051 * amd64-netbsd-nat.c: ... this, adjust include.
3052 * amd64-nbsd-tdep.c: Rename to ...
3053 * amd64-netbsd-tdep.c: ... this, adjust include.
3054 * amd64-tdep.h: Adjust include.
3055 * arm-nbsd-nat.c: Rename to ...
3056 * arm-netbsd-nat.c: ... this, adjust include.
3057 * arm-nbsd-tdep.c: Rename to ...
3058 * arm-netbsd-tdep.c: ... this, adjust include.
3059 * arm-nbsd-tdep.h: Rename to ...
3060 * arm-netbsd-tdep.h: ... this, adjust include.
3061 * configure.nat: Adjust file lists.
3062 * configure.tgt: Likewise.
3063 * hppa-nbsd-nat.c: Rename to ...
3064 * hppa-netbsd-nat.c: ... this, adjust include.
3065 * hppa-nbsd-tdep.c: Rename to ...
3066 * hppa-netbsd-tdep.c: ... this, adjust include.
3067 * i386-nbsd-nat.c: Rename to ...
3068 * i386-netbsd-nat.c: ... this, adjust include.
3069 * i386-nbsd-tdep.c: Rename to ...
3070 * i386-netbsd-tdep.c: ... this, adjust include.
3071 * m68k-bsd-nat.c: Adjust include.
3072 * mips-nbsd-nat.c: Rename to ...
3073 * mips-netbsd-nat.c: ... this, adjust include.
3074 * mips-nbsd-tdep.c: Rename to ...
3075 * mips-netbsd-tdep.c: ... this, adjust include.
3076 * mips-nbsd-tdep.h: Rename to ...
3077 * mips-netbsd-tdep.h: ... this.
3078 * nbsd-nat.c: Rename to ...
3079 * netbsd-nat.c: ... this, adjust include.
3080 * nbsd-nat.h: Rename to ...
3081 * netbsd-nat.h: ... this, adjust include.
3082 * nbsd-tdep.c: Rename to ...
3083 * netbsd-tdep.c: ... this, adjust include.
3084 * nbsd-tdep.h: Rename to ...
3085 * netbsd-tdep.h: ... this.
3086 * ppc-nbsd-nat.c: Rename to ...
3087 * ppc-netbsd-nat.c: ... this, adjust include.
3088 * ppc-nbsd-tdep.c: Rename to ...
3089 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3090 * ppc-nbsd-tdep.h: Rename to ...
3091 * ppc-netbsd-tdep.h: ... this.
3092 * sh-nbsd-nat.c: Rename to ...
3093 * sh-netbsd-nat.c: ... this, adjust include.
3094 * sh-nbsd-tdep.c: Rename to ...
3095 * sh-netbsd-tdep.c: ... this, adjust include.
3096 * sparc-nbsd-nat.c: Rename to ...
3097 * sparc-netbsd-nat.c: ... this.
3098 * sparc-nbsd-tdep.c: Rename to ...
3099 * sparc-netbsd-tdep.c: ... this, adjust include.
3100 * sparc64-nbsd-nat.c: Rename to ...
3101 * sparc64-netbsd-nat.c: ... this.
3102 * sparc64-nbsd-tdep.c: Rename to ...
3103 * sparc64-netbsd-tdep.c: ... this, adjust include.
3104 * sparc64-tdep.h: Adjust comment.
3105 * vax-bsd-nat.c: Adjust include.
3106 * vax-nbsd-tdep.c: Rename to ...
3107 * vax-netbsd-tdep.c: ... this, adjust include.
3109 2020-10-12 Tom Tromey <tom@tromey.com>
3111 * target.h (struct target_ops) <get_section_table>: Update.
3112 (target_get_section_table): Update.
3113 * target.c (target_get_section_table, target_section_by_addr)
3114 (memory_xfer_partial_1): Update.
3115 * target-section.h (target_section_table): Now an alias.
3116 * target-delegates.c: Rebuild.
3117 * target-debug.h (target_debug_print_target_section_table_p):
3118 Rename from target_debug_print_struct_target_section_table_p.
3119 * symfile.c (build_section_addr_info_from_section_table): Update.
3120 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3121 * solib-svr4.c (scan_dyntag): Update.
3122 * solib-dsbt.c (scan_dyntag): Update.
3123 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3125 * record-full.c (record_full_core_target::xfer_partial): Update.
3126 * progspace.h (struct program_space) <target_sections>: Update.
3127 * exec.h (print_section_info): Update.
3128 * exec.c (exec_target::close, build_section_table)
3129 (add_target_sections, add_target_sections_of_objfile)
3130 (remove_target_sections, exec_on_vfork)
3131 (section_table_available_memory)
3132 (section_table_xfer_memory_partial)
3133 (exec_target::get_section_table, exec_target::xfer_partial)
3134 (print_section_info, set_section_command)
3135 (exec_set_section_address, exec_target::has_memory): Update.
3136 * corelow.c (core_target::build_file_mappings)
3137 (core_target::xfer_partial, core_target::info_proc_mappings)
3138 (core_target::info_proc_mappings): Update.
3139 * bfd-target.c (class target_bfd): Update
3141 2020-10-12 Tom Tromey <tom@tromey.com>
3143 * progspace.c (program_space::~program_space): Don't call
3144 clear_section_table.
3145 * exec.h (clear_section_table): Don't declare.
3146 * exec.c (exec_target::close): Update.
3147 (clear_section_table): Remove.
3149 2020-10-12 Tom Tromey <tom@tromey.com>
3151 * exec.c (add_target_sections_of_objfile): Simplify.
3153 2020-10-12 Tom Tromey <tom@tromey.com>
3155 * solib.c (solib_map_sections): Update.
3156 * record-full.c (record_full_core_open_1): Update.
3157 * exec.h (build_section_table): Return a target_section_table.
3158 * exec.c (exec_file_attach): Update.
3159 (build_section_table): Return a target_section_table.
3160 * corelow.c (core_target::core_target): Update.
3161 * bfd-target.c (target_bfd::target_bfd): Update.
3163 2020-10-12 Tom Tromey <tom@tromey.com>
3165 * target.c (target_section_by_addr, memory_xfer_partial_1):
3167 * target-section.h (struct target_section_table): Use
3169 * symfile.h (build_section_addr_info_from_section_table): Take a
3170 target_section_table.
3171 * symfile.c (build_section_addr_info_from_section_table): Take a
3172 target_section_table.
3173 * solist.h (struct so_list) <sections>: Change type.
3174 <sections_end>: Remove.
3175 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3176 (solib_contains_address_p): Update.
3177 * solib-svr4.c (scan_dyntag): Update.
3178 * solib-dsbt.c (scan_dyntag): Update.
3179 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3181 * record-full.c (record_full_core_start, record_full_core_end):
3183 (record_full_core_sections): New global.
3184 (record_full_core_open_1, record_full_core_target::xfer_partial):
3186 * exec.h (build_section_table, section_table_xfer_memory_partial)
3187 (add_target_sections): Take a target_section_table.
3188 * exec.c (exec_file_attach, clear_section_table): Update.
3189 (resize_section_table): Remove.
3190 (build_section_table, add_target_sections): Take a
3191 target_section_table.
3192 (add_target_sections_of_objfile, remove_target_sections)
3193 (exec_on_vfork): Update.
3194 (section_table_available_memory): Take a target_section_table.
3195 (section_table_read_available_memory): Update.
3196 (section_table_xfer_memory_partial): Take a target_section_table.
3197 (print_section_info, set_section_command)
3198 (exec_set_section_address, exec_target::has_memory): Update.
3199 * corelow.c (class core_target) <m_core_section_table,
3200 m_core_file_mappings>: Remove braces.
3201 <~core_target>: Remove.
3202 (core_target::core_target): Update.
3203 (core_target::~core_target): Remove.
3204 (core_target::build_file_mappings)
3205 (core_target::xfer_memory_via_mappings)
3206 (core_target::xfer_partial, core_target::info_proc_mappings):
3208 * bfd-target.c (target_bfd::xfer_partial): Update.
3209 (target_bfd::target_bfd): Update.
3210 (target_bfd::~target_bfd): Remove.
3212 2020-10-12 Tom Tromey <tom@tromey.com>
3214 * target.h (struct target_section, struct target_section_table):
3215 Move to target-section.h.
3216 * target-section.h: New file.
3218 2020-10-12 Pedro Alves <pedro@palves.net>
3221 * valops.c (struct struct_field_searcher): New.
3222 (update_search_result): Rename to ...
3223 (struct_field_searcher::update_result): ... this. Simplify
3224 prototype. Record all found fields.
3225 (do_search_struct_field): Rename to ...
3226 (struct_field_searcher::search): ... this. Simplify prototype.
3227 Maintain stack of visited baseclass path. Call update_result for
3228 fields too. Keep searching fields in baseclasses instead of
3229 stopping at the first found field.
3230 (search_struct_field): Use struct_field_searcher. When looking
3231 for fields, report ambiguous access attempts.
3233 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3235 * frame.c (inside_main_func): Check full symbols as well as
3238 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3240 * ada-lang.c (advance_wild_match): Rewrite the function's
3241 description. Change the type of target0, t0 and t1 to char.
3243 2020-10-09 Tom Tromey <tromey@adacore.com>
3245 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3247 2020-10-09 Tom Tromey <tromey@adacore.com>
3249 * ada-lang.h (ada_encode): Return std::string.
3250 * ada-lang.c (ada_encode_1): Return std::string.
3251 (ada_encode): Likewise.
3252 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3254 * ada-exp.y (block_lookup, write_var_or_type): Update.
3256 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3259 * printcmd.c (print_formatted): Handle void results as
3262 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3264 * arch/aarch32.c (aarch32_create_target_description): Release the
3265 target_desc_up as late as possible.
3266 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3267 * arch/amd64.c (amd64_create_target_description): Likewise.
3268 * arch/arc.c (arc_create_target_description): Return a
3269 target_desc_up, don't release it.
3270 * arch/arc.h (arc_create_target_description): Update declaration.
3271 (arc_lookup_target_description): Move target_desc_up into the
3272 cache, and return a borrowed pointer.
3273 * arch/arm.c (arm_create_target_description): Release the
3274 target_desc_up as late as possible.
3275 * arch/i386.c (i386_create_target_description): Likewise.
3276 * arch/riscv.h (riscv_create_target_description): Update
3277 declaration to match definition.
3278 * arch/tic6x.c (tic6x_create_target_description): Release the
3279 target_desc_up as late as possible.
3281 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3283 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3284 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3286 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3288 * source.c (directory_command): Notify observers that "directories"
3289 parameter has changed.
3291 2020-10-08 Tom Tromey <tom@tromey.com>
3293 * cli/cli-cmds.c (print_disassembly): Style function name and
3294 addresses. Add _() wrappers.
3296 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3298 * NEWS: Mention ARC support in GDBserver.
3300 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3302 * arch/aarch32.c (aarch32_create_target_description): Release
3303 unique_ptr returned from allocate_target_description.
3304 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3305 * arch/amd64.c (amd64_create_target_description): Likewise.
3306 * arch/arc.c (arc_create_target_description): Likewise.
3307 * arch/arm.c (arm_create_target_description): Likewise.
3308 * arch/i386.c (i386_create_target_description): Likewise.
3309 * arch/riscv.c (riscv_create_target_description): Update return
3310 type. Handle allocate_target_description returning a unique_ptr.
3311 (riscv_lookup_target_description): Update to handle unique_ptr.
3312 * arch/tic6x.c (tic6x_create_target_description): Release
3313 unique_ptr returned from allocate_target_description.
3314 * features/microblaze-with-stack-protect.c: Regenerate.
3315 * features/microblaze.c: Regenerate.
3316 * features/mips-dsp-linux.c: Regenerate.
3317 * features/mips-linux.c: Regenerate.
3318 * features/mips64-dsp-linux.c: Regenerate.
3319 * features/mips64-linux.c: Regenerate.
3320 * features/nds32.c: Regenerate.
3321 * features/nios2.c: Regenerate.
3322 * features/or1k.c: Regenerate.
3323 * features/rs6000/powerpc-32.c: Regenerate.
3324 * features/rs6000/powerpc-32l.c: Regenerate.
3325 * features/rs6000/powerpc-403.c: Regenerate.
3326 * features/rs6000/powerpc-403gc.c: Regenerate.
3327 * features/rs6000/powerpc-405.c: Regenerate.
3328 * features/rs6000/powerpc-505.c: Regenerate.
3329 * features/rs6000/powerpc-601.c: Regenerate.
3330 * features/rs6000/powerpc-602.c: Regenerate.
3331 * features/rs6000/powerpc-603.c: Regenerate.
3332 * features/rs6000/powerpc-604.c: Regenerate.
3333 * features/rs6000/powerpc-64.c: Regenerate.
3334 * features/rs6000/powerpc-64l.c: Regenerate.
3335 * features/rs6000/powerpc-7400.c: Regenerate.
3336 * features/rs6000/powerpc-750.c: Regenerate.
3337 * features/rs6000/powerpc-860.c: Regenerate.
3338 * features/rs6000/powerpc-altivec32.c: Regenerate.
3339 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3340 * features/rs6000/powerpc-altivec64.c: Regenerate.
3341 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3342 * features/rs6000/powerpc-e500.c: Regenerate.
3343 * features/rs6000/powerpc-e500l.c: Regenerate.
3344 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3345 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3346 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3347 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3348 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3349 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3350 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3351 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3352 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3353 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3354 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3355 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3356 * features/rs6000/powerpc-vsx32.c: Regenerate.
3357 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3358 * features/rs6000/powerpc-vsx64.c: Regenerate.
3359 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3360 * features/rs6000/rs6000.c: Regenerate.
3361 * features/rx.c: Regenerate.
3362 * features/s390-gs-linux64.c: Regenerate.
3363 * features/s390-linux32.c: Regenerate.
3364 * features/s390-linux32v1.c: Regenerate.
3365 * features/s390-linux32v2.c: Regenerate.
3366 * features/s390-linux64.c: Regenerate.
3367 * features/s390-linux64v1.c: Regenerate.
3368 * features/s390-linux64v2.c: Regenerate.
3369 * features/s390-te-linux64.c: Regenerate.
3370 * features/s390-tevx-linux64.c: Regenerate.
3371 * features/s390-vx-linux64.c: Regenerate.
3372 * features/s390x-gs-linux64.c: Regenerate.
3373 * features/s390x-linux64.c: Regenerate.
3374 * features/s390x-linux64v1.c: Regenerate.
3375 * features/s390x-linux64v2.c: Regenerate.
3376 * features/s390x-te-linux64.c: Regenerate.
3377 * features/s390x-tevx-linux64.c: Regenerate.
3378 * features/s390x-vx-linux64.c: Regenerate.
3379 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3380 from allocate_target_description.
3381 * target-descriptions.c (allocate_target_description): Update
3383 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3384 allocate_target_description.
3386 2020-10-07 Tom Tromey <tromey@adacore.com>
3388 * unittests/search-memory-selftests.c: New file.
3389 * Makefile.in (SELFTESTS_SRCS): Add
3390 unittests/search-memory-selftests.c.
3392 2020-10-07 Tom Tromey <tromey@adacore.com>
3395 * findcmd.c (_initialize_mem_search): Mention that the range is
3398 2020-10-07 Tom Tromey <tromey@adacore.com>
3400 * target.h (simple_search_memory): Don't declare.
3401 * target.c (simple_search_memory): Move to gdbsupport.
3402 (default_search_memory): Update.
3403 * remote.c (remote_target::search_memory): Update.
3405 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3407 * Makefile.in (COMPILE): Add CXXFLAGS.
3408 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3409 (check-headers): Add CXXFLAGS.
3411 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3413 * arc-linux-tdep.h: New file.
3414 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3415 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3416 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3417 arc_linux_gregset, arc_linux_v2_regset,
3418 arc_linux_iterate_over_regset_sections,
3419 arc_linux_core_read_description): Implement.
3420 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3421 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3422 (arc_gdbarch_features_create): Add.
3423 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3425 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3427 * arch/arc.h: Rename "arc_gdbarch_features" to
3428 "arc_arch_features".
3429 * arc-tdep.h: Likewise.
3430 * arc-tdep.c: Likewise.
3432 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3434 * infcmd.c (attach_command): Remove the redundant call to
3435 `clear_proceed_status`.
3437 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3439 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3441 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3443 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3444 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3445 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3447 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3449 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3450 (_initialize_break_catch_sig): Don't allocate array.
3452 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3454 * symtab.c (find_pc_line): Return unmapped addresses when the
3455 requested address is also unmapped.
3457 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3459 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3462 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3464 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3465 type::is_vector instead of TYPE_VECTOR.
3467 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3469 * auto-load.c (auto_load_objfile_script_1): Don't use
3470 debugfile_holder as temporary variable when stripping drive
3473 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3475 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3476 Add TYPE_CODE_COMPLEX.
3477 (amd64_windows_return_value): Fix types returned via XMM0.
3479 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3481 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3482 AArch64/ARM maintainers.
3484 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3486 * NEWS: Mention set/show debug event-loop.
3488 2020-10-02 Tom Tromey <tromey@adacore.com>
3490 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3493 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3495 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3496 * procfs.c (procfs_inferior_created): Remove.
3497 (_initialize_procfs): Don't register procfs_inferior_created.
3499 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3501 * async-event.c (invoke_async_signal_handlers): Add debug
3503 (check_async_event_handlers): Likewise.
3504 * event-top.c (show_debug_event_loop): New function.
3505 (_initialize_event_top): Register "set debug event-loop"
3508 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3510 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3512 * infrun.c: Include gdbsupport/common-debug.h.
3513 * linux-nat.c: Likewise.
3515 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3517 * async-event.h (create_async_signal_handler): Add name
3519 (create_async_event_handler): Likewise.
3520 * async-event.c (struct async_signal_handler) <name>: New field.
3521 (struct async_event_handler) <name>: New field.
3522 (create_async_signal_handler): Assign name.
3523 (create_async_event_handler): Assign name.
3524 * event-top.c (async_init_signals): Pass name when creating
3526 * infrun.c (_initialize_infrun): Likewise.
3527 * record-btrace.c (record_btrace_push_target): Likewise.
3528 * record-full.c (record_full_open): Likewise.
3529 * remote-notif.c (remote_notif_state_allocate): Likewise.
3530 * remote.c (remote_target::open_1): Likewise.
3531 * tui/tui-win.c (tui_initialize_win): Likewise.
3533 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3535 * async-event.c (initialize_async_signal_handlers): Pass name to
3537 * event-top.c (ui_register_input_event_handler): Likewise.
3538 * linux-nat.c (linux_nat_target::async): Likewise.
3539 * run-on-main-thread.c (_initialize_run_on_main_thread):
3541 * ser-base.c (reschedule): Likewise.
3542 (ser_base_async): Likewise.
3543 * tui/tui-io.c: Likewise.
3544 * top.h (struct ui) <num>: New field.
3545 * top.c (highest_ui_num): New variable.
3546 (ui::ui): Initialize num.
3548 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3550 * observable.h <inferior_created>: Remove parameters. Update all
3552 * inferior.h (post_create_inferior): Remove target parameter.
3555 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3557 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3558 and DW_MACRO_undef_strx.
3559 (dwarf_decode_macros): Likewise
3560 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3561 which is the value of DW_AT_str_offsets_base.
3562 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3565 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3567 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3569 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3571 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3572 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3574 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3576 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3578 2020-09-30 Tom de Vries <tdevries@suse.de>
3581 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3583 2020-09-30 Tom Tromey <tromey@adacore.com>
3585 * dwarf2/read.c (handle_variant): Use constant_value.
3587 2020-09-29 Tom Tromey <tom@tromey.com>
3589 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3590 (read_file_scope, dwarf2_get_pc_bounds)
3591 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3592 (read_structure_type, handle_struct_member_die)
3593 (read_enumeration_type, read_array_type, read_set_type)
3594 (read_tag_pointer_type, read_tag_reference_type)
3595 (read_subroutine_type, read_base_type, read_subrange_type)
3596 (read_full_die_1, partial_die_info::read)
3597 (partial_die_info::read, by, new_symbol)
3598 (dwarf2_const_value_data, dwarf2_const_value_attr)
3599 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3600 (prepare_one_comp_unit): Update.
3601 * dwarf2/attribute.h (DW_UNSND): Remove.
3603 2020-09-29 Tom Tromey <tom@tromey.com>
3605 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3606 (read_subroutine_type, partial_die_info::read)
3607 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3608 (dwarf2_add_member_fn): Update.
3609 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3610 * dwarf2/attribute.c (attribute::as_boolean): New method.
3612 2020-09-29 Tom Tromey <tom@tromey.com>
3614 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3615 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3617 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3619 2020-09-29 Tom Tromey <tom@tromey.com>
3621 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3622 the attribute's form.
3624 2020-09-29 Tom Tromey <tom@tromey.com>
3626 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3627 (dwarf2_add_member_fn): Update.
3628 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3629 * dwarf2/attribute.c (attribute::defaulted): New method, from
3630 is_valid_DW_AT_defaulted.
3632 2020-09-29 Tom Tromey <tom@tromey.com>
3634 * dwarf2/read.c (dw2_get_file_names_reader)
3635 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3636 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3637 (dwarf2_symbol_mark_computed): Use as_unsigned.
3638 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3640 <form_is_section_offset>: Update comment.
3642 2020-09-29 Tom Tromey <tom@tromey.com>
3644 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3645 dwarf2_default_access_attribute. Look up attribute.
3646 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3649 2020-09-29 Tom Tromey <tom@tromey.com>
3651 * dwarf2/read.c (skip_one_die): Update.
3652 (read_full_die_1): Change how reprocessing is done.
3653 (partial_die_info::read): Update.
3654 (read_attribute_value): Remove need_reprocess parameter.
3655 (read_attribute): Likewise.
3656 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3659 2020-09-29 Tom Tromey <tom@tromey.com>
3661 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3662 (dwarf2_const_value_attr, dump_die_shallow)
3663 (dwarf2_fetch_constant_bytes): Update.
3664 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3666 <set_address>: New method.
3668 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3669 (attribute::as_string, attribute::as_address): Add assert.
3671 2020-09-29 Tom Tromey <tom@tromey.com>
3673 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3674 (read_attribute_reprocess, read_attribute_value): Update.
3675 (read_attribute): Clear requires_reprocessing.
3676 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3677 form_requires_reprocessing>: New methods.
3678 <string_init>: Clear requires_reprocessing.
3679 <set_unsigned_reprocess>: New method.
3680 <name>: Shrink by one bit.
3681 <requires_reprocessing>: New member.
3682 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3685 2020-09-29 Tom Tromey <tom@tromey.com>
3687 * dwarf2/read.c (read_attribute_value): Update.
3688 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3689 set_unsigned>: New methods.
3690 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3692 2020-09-29 Tom Tromey <tom@tromey.com>
3694 * dwarf2/read.c (get_alignment, read_array_order)
3695 (read_attribute_value, dwarf2_const_value_attr)
3696 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3697 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3701 2020-09-29 Tom Tromey <tom@tromey.com>
3703 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3704 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3706 * dwarf2/attribute.h (struct attribute) <as_signature,
3707 set_signature>: New methods.
3708 (DW_SIGNATURE): Remove.
3710 2020-09-29 Tom Tromey <tom@tromey.com>
3712 * dwarf2/read.c (read_call_site_scope)
3713 (handle_data_member_location, dwarf2_add_member_fn)
3714 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3715 (partial_die_info::read, read_attribute_value)
3716 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3717 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3718 (dwarf2_symbol_mark_computed): Update.
3719 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3722 * dwarf2/attribute.c (attribute::form_is_block): Add
3725 2020-09-29 Tom Tromey <tom@tromey.com>
3727 * dwarf2/read.c (read_cutu_die_from_dwo)
3728 (read_attribute_reprocess, read_attribute_value, read_attribute)
3729 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3730 (dwarf2_fetch_constant_bytes): Update.
3731 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3732 <set_string_noncanonical, set_string_canonical>: New methods.
3733 <string_is_canonical>: Update comment.
3734 <canonical_string_p>: Add assert.
3735 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3736 * dwarf2/attribute.c (attribute::form_is_string): New method.
3737 (attribute::string): Use it.
3739 2020-09-29 Tom Tromey <tom@tromey.com>
3741 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3742 (dump_die_shallow): Use canonical_string_p.
3743 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3746 2020-09-29 Tom Tromey <tom@tromey.com>
3748 * dwarf2/read.c (partial_die_info::read)
3749 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3750 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3751 attribute::as_string.
3753 2020-09-29 Tom Tromey <tom@tromey.com>
3755 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3757 (attribute::string): Don't use DW_STRING.
3758 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3759 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3761 2020-09-29 Tom Tromey <tom@tromey.com>
3763 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3764 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3765 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3766 * dwarf2/attribute.h (struct attribute): Rename methods.
3767 * dwarf2/attribute.c (attribute::as_address): Rename from
3769 (attribute::as_string): Rename from value_as_string.
3771 2020-09-29 Tom Tromey <tom@tromey.com>
3773 * dwarf2/read.c (partial_die_info::read) <case
3774 DW_AT_linkage_name>: Use value_as_string.
3775 (dwarf2_string_attr): Use value_as_string.
3776 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3778 * dwarf2/attribute.c (attribute::value_as_string): New method.
3780 2020-09-29 Pedro Alves <pedro@palves.net>
3782 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3783 defined before using '#pragma GCC diagnostic' instead of checking
3786 2020-09-28 Tom Tromey <tom@tromey.com>
3788 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3789 (handle_signal_stop): Update.
3790 * procfs.c (procfs_target::insert_watchpoint): Update.
3791 * target.h (target_have_steppable_watchpoint): Now a function.
3793 2020-09-28 Tom Tromey <tom@tromey.com>
3795 * infrun.c (set_schedlock_func): Update.
3796 * target.h (target_can_lock_scheduler): Now a function.
3798 2020-09-28 Tom Tromey <tom@tromey.com>
3800 * inferior.h (class inferior) <has_execution>: Update.
3801 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3802 * valops.c (find_function_in_inferior)
3803 (value_allocate_space_in_inferior): Update.
3804 * top.c (kill_or_detach): Update.
3805 * target.c (target_preopen, set_target_permissions): Update.
3806 (target_has_execution_current): Remove.
3807 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3809 * solib.c (update_solib_list, reload_shared_libraries): Update.
3810 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3811 * solib-dsbt.c (enable_break): Update.
3812 * score-tdep.c (score7_fetch_inst): Update.
3813 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3815 * remote.c (remote_target::start_remote)
3816 (remote_target::remote_check_symbols, remote_target::open_1)
3817 (remote_target::remote_detach_1, remote_target::verify_memory)
3818 (remote_target::xfer_partial, remote_target::read_description)
3819 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3820 * record-full.c (record_full_open_1): Update.
3821 * record-btrace.c (record_btrace_target_open): Update.
3822 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3823 (value_nsstring): Update.
3824 * linux-thread-db.c (add_thread_db_info)
3825 (thread_db_find_new_threads_silently, check_thread_db_callback)
3826 (try_thread_db_load_1, record_thread): Update.
3827 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3829 * linux-fork.c (checkpoint_command): Update.
3830 * infrun.c (set_non_stop, set_observer_mode)
3831 (check_multi_target_resumption, for_each_just_stopped_thread)
3832 (maybe_remove_breakpoints, normal_stop)
3833 (class infcall_suspend_state): Update.
3834 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3835 (info_program_command, attach_command): Update.
3836 * infcall.c (call_function_by_hand_dummy): Update.
3837 * inf-loop.c (inferior_event_handler): Update.
3838 * gcore.c (gcore_command, derive_heap_segment): Update.
3839 * exec.c (exec_file_command): Update.
3840 * eval.c (evaluate_subexp): Update.
3841 * compile/compile.c (compile_to_object): Update.
3842 * cli/cli-dump.c (restore_command): Update.
3843 * breakpoint.c (update_watchpoint)
3844 (update_inserted_breakpoint_locations)
3845 (insert_breakpoint_locations, get_bpstat_thread): Update.
3846 * target.h (target_has_execution): Remove macro.
3847 (target_has_execution_current): Don't declare.
3848 (target_has_execution): Rename from target_has_execution_1. Add
3851 2020-09-28 Tom Tromey <tom@tromey.com>
3853 * mi/mi-main.c (exec_reverse_continue)
3854 (mi_cmd_list_target_features): Update.
3855 * infrun.c (set_exec_direction_func): Update.
3856 * target.c (default_execution_direction): Update.
3857 * reverse.c (exec_reverse_once): Update.
3858 * target.h (target_can_execute_reverse): Now a function.
3860 2020-09-28 Tom Tromey <tom@tromey.com>
3862 * tui/tui-regs.c (tui_get_register)
3863 (tui_data_window::show_registers): Update.
3864 * thread.c (scoped_restore_current_thread::restore)
3865 (scoped_restore_current_thread::scoped_restore_current_thread):
3867 * regcache-dump.c (regcache_print): Update.
3868 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3870 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3871 * mep-tdep.c (current_me_module, current_options): Update.
3872 * linux-thread-db.c (thread_db_load): Update.
3873 * infcmd.c (registers_info, info_vector_command)
3874 (info_float_command): Update.
3875 * ia64-tdep.c (ia64_frame_prev_register)
3876 (ia64_sigtramp_frame_prev_register): Update.
3877 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3878 * gcore.c (derive_stack_segment): Update.
3879 * frame.c (get_current_frame, has_stack_frames): Update.
3880 * findvar.c (language_defn::read_var_value): Update.
3881 * arm-tdep.c (arm_pc_is_thumb): Update.
3882 * target.c (target_has_registers): Rename from
3883 target_has_registers_1.
3884 * target.h (target_has_registers): Remove macro.
3885 (target_has_registers): Rename from target_has_registers_1.
3887 2020-09-28 Tom Tromey <tom@tromey.com>
3889 * windows-tdep.c (tlb_make_value): Update.
3890 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3891 * thread.c (scoped_restore_current_thread::restore)
3892 (scoped_restore_current_thread::scoped_restore_current_thread)
3893 (thread_command): Update.
3894 * stack.c (backtrace_command_1, frame_apply_level_command)
3895 (frame_apply_all_command, frame_apply_command): Update.
3896 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3898 * gcore.c (derive_stack_segment): Update.
3899 * frame.c (get_current_frame, has_stack_frames): Update.
3900 * auxv.c (info_auxv_command): Update.
3901 * ada-tasks.c (ada_build_task_list): Update.
3902 * target.c (target_has_stack): Rename from target_has_stack_1.
3903 * target.h (target_has_stack): Remove macro.
3904 (target_has_stack): Rename from target_has_stack_1.
3906 2020-09-28 Tom Tromey <tom@tromey.com>
3908 * target.c (target_has_memory): Rename from target_has_memory_1.
3909 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3910 * thread.c (scoped_restore_current_thread::restore)
3911 (scoped_restore_current_thread::scoped_restore_current_thread):
3913 * frame.c (get_current_frame, has_stack_frames): Update.
3914 * target.h (target_has_memory): Remove macro.
3915 (target_has_memory): Rename from target_has_memory_1.
3917 2020-09-28 Tom Tromey <tom@tromey.com>
3919 * target.c (target_has_all_memory_1): Remove.
3920 * target.h (target_has_all_memory): Remove define.
3921 (target_has_all_memory_1): Don't declare.
3923 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3925 * ser-base.c: Adjust comments formatting.
3927 2020-09-27 Tom Tromey <tom@tromey.com>
3930 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3932 2020-09-27 Tom Tromey <tom@tromey.com>
3935 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3937 2020-09-27 Tom Tromey <tom@tromey.com>
3939 * unittests/tui-selftests.c: Update.
3940 * tui/tui-winsource.h (struct tui_source_window_base)
3941 <extra_margin, show_line_number, refresh_pad>: New methods.
3942 <m_max_length, m_pad>: New members.
3943 (tui_copy_source_line): Update.
3944 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3945 first_col, line_width, ndigits parameters. Add length.
3946 (tui_source_window_base::show_source_line): Write to pad. Line
3948 (tui_source_window_base::refresh_pad): New method.
3949 (tui_source_window_base::show_source_content): Write to pad. Call
3951 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3953 (tui_source_window_base::update_exec_info): Call
3955 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3957 <m_digits>: New member.
3958 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3960 (tui_source_window::show_line_number): New method.
3961 * tui/tui-io.h (tui_puts): Fix comment.
3962 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3965 2020-09-27 Tom Tromey <tom@tromey.com>
3967 * tui/tui-winsource.c
3968 (tui_source_window_base::set_is_exec_point_at): Don't call
3971 2020-09-27 Tom Tromey <tom@tromey.com>
3973 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3976 <cursor_x, cursor_y>: Remove.
3977 <m_inner_window>: New member.
3978 (tui_py_window::rerender): Create inner window.
3979 (tui_py_window::output): Write to inner window.
3981 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3984 * cli/cli-script.c (execute_control_commands): don't set
3985 instream to nullptr here as this breaks the from_tty argument
3986 to gdb.execute in Python.
3987 (execute_user_command): set instream to nullptr here instead.
3989 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3991 * infrun.h (infrun_debug_printf): Fix formatting.
3992 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3994 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3996 * compile/compile-object-load.h (struct munmap_list): Add
3997 explicitly-defined move constructor.
3999 2020-09-24 Tom Tromey <tromey@adacore.com>
4002 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
4004 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
4005 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
4006 (tui_prev_win): Rewrite.
4008 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
4010 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
4011 in WOW64 processes as SIGINT.
4012 * nat/windows-nat.h: Make wow64_process a shared variable.
4013 * windows-nat.c: Remove static wow64_process variable.
4015 2020-09-23 Tom Tromey <tom@tromey.com>
4018 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
4019 offset and bit size.
4020 * printcmd.c (print_scalar_formatted): Handle zero-length
4022 (print_scalar_formatted): Use bit_size_differs_p.
4023 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
4025 (union type_specific): <int_stuff>: New member.
4026 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
4028 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
4029 TYPE_SPECIFIC_FIELD.
4030 (recursive_dump_type, copy_type_recursive): Update.
4031 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4032 DW_AT_data_bit_offset.
4034 2020-09-23 Tom Tromey <tom@tromey.com>
4036 * utils.h (class gdb_argv): Add move operators.
4037 <append>: New methods.
4038 * compile/compile.c (build_argc_argv): Remove.
4039 (compile_args_argc): Remove.
4040 (compile_args_argv): Change type.
4041 (set_compile_args): Simplify.
4042 (append_args): Remove.
4043 (filter_args): Remove argcp parameter.
4044 (get_args): Return gdb_argv. Simplify.
4045 (compile_to_object): Update.
4047 2020-09-23 Tom Tromey <tom@tromey.com>
4049 * compile/compile-object-run.c (do_module_cleanup)
4050 <~do_module_cleanup> :Remove.
4051 (do_module_cleanup): Update.
4052 * compile/compile-object-load.h (struct munmap_list): Add move
4053 assignment operator.
4054 <source_file>: Now a std::string.
4055 <munmap_list>: Rename. No longer a pointer.
4056 * compile/compile-object-load.c (struct setup_sections_data): Add
4058 <setup_one_section>: Declare.
4059 <munmap_list>: Move earlier.
4060 <m_bfd>: New member.
4061 <m_last_size, m_last_section_first, m_last_prot,
4062 m_last_max_alignment>: Rename, add initializers where needed.
4063 (setup_sections_data::setup_one_section): Rename from
4064 setup_sections. Update.
4065 (compile_object_load): Update. Don't use bfd_map_over_sections.
4067 2020-09-23 Tom Tromey <tom@tromey.com>
4069 * compile/compile-object-run.c (struct do_module_cleanup): Add
4070 parameters to constructor. Update destructor.
4071 <source_file, scope, scope_data, out_value_type, out_value_addr,
4072 munmap_list_head, objfile_name_string>: Remove.
4073 <module>: New member.
4074 (do_module_cleanup): Update.
4075 (compile_object_run): Update.
4077 2020-09-23 Tom Tromey <tom@tromey.com>
4079 * compile/compile.c (eval_compile_command): Update.
4080 * compile/compile-object-run.h (compile_object_run): Take a
4082 * compile/compile-object-run.c (compile_object_run): Take a
4084 * compile/compile-object-load.h (struct compile_module): Add
4085 constructor, destructor.
4086 (compile_module_up): New typedef.
4087 (compile_object_load): Return compile_object_up.
4088 * compile/compile-object-load.c (compile_object_load): Return
4091 2020-09-23 Tom Tromey <tom@tromey.com>
4093 * compile/compile-object-run.c (struct do_module_cleanup): Add
4094 constructor, destructor.
4095 <objfile_name_string>: Don't use struct hack.
4096 (do_module_cleanup): Use delete.
4097 (compile_object_run): Use new.
4099 2020-09-23 Tom Tromey <tom@tromey.com>
4101 * compile/compile-cplus-types.c
4102 (compile_cplus_convert_struct_or_union): Use std::vector.
4103 (compile_cplus_convert_func): Likewise.
4104 * compile/compile-c-types.c (convert_func): Use std::vector.
4106 2020-09-21 Tom Tromey <tromey@adacore.com>
4108 * sparc-tdep.c (sparc32_skip_prologue): Use
4109 skip_prologue_using_sal.
4111 2020-09-19 Tom Tromey <tom@tromey.com>
4113 * symfile.c (add_section_size_callback): Remove.
4114 (load_one_section): Rename from load_section_callback. Change
4116 (generic_load): Use foreach.
4118 2020-09-19 Tom Tromey <tom@tromey.com>
4120 * exec.c (add_to_section_table): Remove.
4121 (build_section_table): Use foreach.
4123 2020-09-19 Tom Tromey <tom@tromey.com>
4125 * elfread.c (elf_locate_sections): Change parameters.
4126 (elf_symfile_read): Use foreach.
4128 2020-09-19 Tom Tromey <tom@tromey.com>
4130 * cli/cli-dump.c (struct callback_data): Remove.
4131 (restore_one_section): Rename from restore_section_callback.
4133 (restore_binary_file): Change parameters.
4134 (restore_command): Use foreach.
4136 2020-09-19 Tom Tromey <tom@tromey.com>
4138 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4139 (gcore_copy_callback): Likewise.
4140 (gcore_memory_sections): Use foreach.
4142 2020-09-19 Tom Tromey <tom@tromey.com>
4144 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4145 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4147 (generic_elf_osabi_sniffer): Use foreach.
4148 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4149 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4151 2020-09-19 Tom Tromey <tom@tromey.com>
4153 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4154 (dwarf2_get_dwz_file): Use foreach.
4155 (dwarf2_locate_dwo_sections): Change parameters.
4156 (open_and_init_dwo_file): Use foreach.
4157 (dwarf2_locate_common_dwp_sections): Change parameters.
4158 (open_and_init_dwp_file): Use foreach.
4160 2020-09-19 Tom Tromey <tom@tromey.com>
4162 * symfile.h: (find_lowest_section): Don't declare.
4163 * symfile.c (find_lowest_section): Now static. Change
4165 (struct place_section_arg): Remove.
4166 (place_section): Change parameters.
4167 (addr_info_make_relative): Use foreach.
4168 (symfile_dummy_outputs): Remove.
4169 (default_symfile_relocate): Use foreach.
4171 2020-09-19 Tom Tromey <tom@tromey.com>
4173 * objfiles.c (add_to_objfile_sections): Rename from
4174 add_to_objfile_sections_full.
4175 (add_to_objfile_sections): Remove.
4176 (build_objfile_section_table): Use foreach.
4178 2020-09-19 Tom Tromey <tom@tromey.com>
4180 * stap-probe.c (get_stap_base_address_1): Remove.
4181 (get_stap_base_address): Use foreach.
4183 2020-09-19 Tom Tromey <tom@tromey.com>
4185 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4187 (gdb_bfd_close_or_warn): Use foreach.
4189 2020-09-19 Tom Tromey <tom@tromey.com>
4191 * corelow.c (add_to_thread_list): Change parameters.
4192 (core_target_open): Use foreach.
4194 2020-09-19 Tom Tromey <tom@tromey.com>
4196 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4199 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4201 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4204 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4206 * eval.c: Remove 'f-lang.h' include.
4207 (value_f90_subarray): Moved to f-lang.c.
4208 (eval_call): Renamed to...
4209 (evaluate_subexp_do_call): ...this, is no longer static, header
4210 comment moved into header file.
4211 (evaluate_funcall): Update call to eval_call.
4212 (skip_undetermined_arglist): Moved to f-lang.c.
4213 (fortran_value_subarray): Likewise.
4214 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4215 moved to evaluate_subexp_f.
4216 (calc_f77_array_dims): Moved to f-lang.c
4217 * expprint.c (print_subexp_funcall): New function.
4218 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4219 moved to print_subexp_f, OP_FUNCALL uses new function.
4220 (dump_subexp_body_funcall): New function.
4221 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4222 moved to dump_subexp_f, OP_FUNCALL uses new function.
4223 * expression.h (evaluate_subexp_do_call): Declare.
4224 * f-lang.c (value_f90_subarray): Moved from eval.c.
4225 (skip_undetermined_arglist): Likewise.
4226 (calc_f77_array_dims): Likewise.
4227 (fortran_value_subarray): Likewise.
4228 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4229 (operator_length_f): Likewise.
4230 (print_subexp_f): Likewise.
4231 (dump_subexp_body_f): Likewise.
4232 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4233 declaration of this operation to here.
4234 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4235 support moved to operator_length_f.
4236 * parser-defs.h (dump_subexp_body_funcall): Declare.
4237 (print_subexp_funcall): Declare.
4238 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4239 fortran-operator.def.
4241 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4243 * eval.c (fortran_value_subarray): New function, content is taken
4245 (evaluate_subexp_standard): ...here, in two places. Now arrays
4246 and strings both call the new function.
4247 (calc_f77_array_dims): Add header comment, handle strings.
4249 2020-09-18 Victor Collod <vcollod@nvidia.com>
4252 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4253 (i386_analyze_prologue): Call i386_skip_endbr.
4255 2020-09-18 Tom Tromey <tromey@adacore.com>
4257 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4258 (windows_nat_target::wait): Update.
4259 * target/wait.h (enum target_wait_flag): New. Use
4260 DEF_ENUM_FLAGS_TYPE.
4261 * target/target.h (target_wait): Change type of options.
4262 * target.h (target_options_to_string, default_target_wait):
4264 (struct target_ops) <wait>: Change type of options.
4265 * target.c (target_wait, default_target_wait, do_option): Change
4267 (target_options_to_string): Likewise.
4268 * target-delegates.c: Rebuild.
4269 * target-debug.h (target_debug_print_target_wait_flags): Rename
4270 from target_debug_print_options.
4271 * sol-thread.c (class sol_thread_target) <wait>: Update.
4272 (sol_thread_target::wait): Update.
4273 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4274 (rs6000_nat_target::wait): Update.
4275 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4277 (remote_target::wait_ns, remote_target::wait_as): Change type of
4279 (remote_target::wait): Update.
4280 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4281 (gdbsim_target::wait): Update.
4282 * record-full.c (class record_full_base_target) <wait>: Update.
4283 (record_full_wait_1): Change type of "options".
4284 (record_full_base_target::wait): Update.
4285 * record-btrace.c (class record_btrace_target) <wait>: Update.
4286 (record_btrace_target::wait): Update.
4287 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4289 (ravenscar_thread_target::wait): Update.
4290 * procfs.c (class procfs_target) <wait>: Update.
4291 (procfs_target::wait): Update.
4292 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4293 * obsd-nat.c (obsd_nat_target::wait): Update.
4294 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4295 (nto_procfs_target::wait): Update.
4296 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4297 * nbsd-nat.c (nbsd_wait): Change type of "options".
4298 (nbsd_nat_target::wait): Update.
4299 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4300 (thread_db_target::wait): Update.
4301 * linux-nat.h (class linux_nat_target) <wait>: Update.
4302 * linux-nat.c (linux_nat_target::wait): Update.
4303 (linux_nat_wait_1): Update.
4304 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4306 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4307 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4308 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4309 (go32_nat_target::wait): Update.
4310 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4311 * gnu-nat.c (gnu_nat_target::wait): Update.
4312 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4313 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4314 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4315 * darwin-nat.c (darwin_nat_target::wait): Update.
4316 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4317 (bsd_uthread_target::wait): Update.
4318 * aix-thread.c (class aix_thread_target) <wait>: Update.
4319 (aix_thread_target::wait): Update.
4321 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4323 * compile/compile-object-run.c (create_copied_type_recursive): New
4325 (compile_object_run): Use new function.
4327 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4329 * NEWS: Mention x86_64 Cygwin core file support.
4331 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4333 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4334 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4336 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4338 * windows-tdep.h: Add prototypes.
4339 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4340 (i386_windows_core_pid_to_str): Move and rename ...
4341 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4342 (windows_core_pid_to_str): ... and here.
4343 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4345 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4346 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4347 (amd64_windows_init_abi_common): ... and register.
4349 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4351 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4352 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4354 2020-09-18 Pedro Alves <pedro@palves.net>
4357 * thread.c (thread_find_command): Switch inferior before calling
4360 2020-09-17 Tom Tromey <tromey@adacore.com>
4362 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4363 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4364 (tdesc_arch_data_up): New typedef.
4365 (tdesc_use_registers, tdesc_data_alloc): Update.
4366 (tdesc_data_cleanup): Don't declare.
4367 * target-descriptions.c (tdesc_data_alloc): Return a
4369 (tdesc_arch_data_deleter::operator()): Rename from
4370 tdesc_data_cleanup. Change argument type.
4371 (tdesc_use_registers): Change early_data to an rvalue reference.
4372 (tdesc_use_registers): Don't use delete.
4373 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4374 * s390-tdep.c (s390_gdbarch_init): Update.
4375 * rx-tdep.c (rx_gdbarch_init): Update.
4376 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4377 * riscv-tdep.c (riscv_gdbarch_init): Update.
4378 * or1k-tdep.c (or1k_gdbarch_init): Update.
4379 * nios2-tdep.c (nios2_gdbarch_init): Update.
4380 * nds32-tdep.c (nds32_gdbarch_init): Update.
4381 * mips-tdep.c (mips_gdbarch_init): Update.
4382 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4383 * m68k-tdep.c (m68k_gdbarch_init): Update.
4384 * i386-tdep.c (i386_gdbarch_init): Update.
4385 * arm-tdep.c (arm_gdbarch_init): Update.
4386 * arc-tdep.c (arc_tdesc_init): Update.
4387 (arc_gdbarch_init): Update.
4388 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4390 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4392 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4393 for WOW64 processes.
4395 2020-09-17 Tom Tromey <tom@tromey.com>
4397 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4399 2020-09-17 Tom Tromey <tom@tromey.com>
4401 * value.c (preserve_values): Update.
4402 * python/py-type.c (save_objfile_types): Update.
4403 * guile/scm-type.c (save_objfile_types): Update.
4404 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4405 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4406 * compile/compile-object-run.c (compile_object_run): Update.
4408 2020-09-17 Tom Tromey <tom@tromey.com>
4410 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4412 <m_table>: Now htab_up.
4413 * typeprint.c (typedef_hash_table::recursively_update)
4414 (typedef_hash_table::add_template_parameters)
4415 (typedef_hash_table::typedef_hash_table): Update.
4416 (typedef_hash_table::~typedef_hash_table): Remove.
4417 (typedef_hash_table::typedef_hash_table)
4418 (typedef_hash_table::find_global_typedef)
4419 (typedef_hash_table::find_typedef): Update.
4421 2020-09-17 Tom Tromey <tom@tromey.com>
4423 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4425 2020-09-17 Tom Tromey <tom@tromey.com>
4427 * linespec.c (class decode_compound_collector)
4428 <~decode_compound_collector>: Remove.
4429 <m_unique_syms>: Now htab_up.
4430 (decode_compound_collector::operator ()): Update.
4431 (class symtab_collector) <~symtab_collector>: Remove.
4432 <m_symtab_table>: Now htab_up.
4433 (symtab_collector::operator ()): Update.
4435 2020-09-17 Tom Tromey <tom@tromey.com>
4437 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4438 (filename_seen_cache::clear): Update.
4439 (~filename_seen_cache): Remove.
4440 (filename_seen_cache::seen): Update.
4441 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4443 <~filename_seen_cache>: Remove.
4446 2020-09-17 Tom Tromey <tom@tromey.com>
4448 * completer.c (completion_tracker::discard_completions)
4449 (completion_tracker::~completion_tracker)
4450 (completion_tracker::maybe_add_completion)
4451 (completion_tracker::remove_completion)
4452 (completion_tracker::recompute_lowest_common_denominator)
4453 (completion_tracker::build_completion_result): Update.
4454 * completer.h (class completion_tracker) <have_completions>:
4456 <m_entries_hash>: Now htab_up.
4458 2020-09-17 Tom Tromey <tom@tromey.com>
4460 * breakpoint.c (ambiguous_names_p): Use htab_up.
4462 2020-09-17 Tom Tromey <tom@tromey.com>
4464 * auto-load.c (struct auto_load_pspace_info)
4465 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4466 <loaded_script_files, loaded_script_texts>: Change type to
4468 (~auto_load_pspace_info) Remove.
4469 (init_loaded_scripts_info, maybe_add_script_file)
4470 (maybe_add_script_text, auto_load_info_scripts): Update.
4472 2020-09-17 Tom Tromey <tromey@adacore.com>
4474 * c-exp.y (name_obstack): Now static.
4476 2020-09-17 Chungyi Chi <demonic@csie.io>
4478 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4480 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4482 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4483 (add_solib_catchpoint): Likewise.
4484 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4486 (add_solib_catchpoint): Change int parameter/variable to bool.
4487 (catch_load_or_unload): Likewise.
4488 (init_catchpoint): Likewise.
4489 (create_fork_vfork_event_catchpoint): Likewise.
4490 (catch_fork_command_1): Likewise.
4491 (catch_exec_command_1): Likewise.
4493 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4495 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4496 Change instance_flags to m_instance_flags.
4498 2020-09-16 Tom Tromey <tromey@adacore.com>
4501 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4503 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4505 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4507 (fbsd_nat_target::insert_exec_catchpoint)
4508 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4509 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4510 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4512 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4514 * configure.ac: Remove check for kinfo_getvmmap().
4515 * configure, config.in: Regenerate.
4516 * fbsd-nat.c (fbsd_read_mapping): Remove
4517 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4518 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4519 kinfo_get_vmmap() are always present.
4521 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4523 * fbsd-nat.c: Always include support for
4524 TARGET_OBJECT_SIGNAL_INFO.
4526 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4528 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4529 sysctl and remove procfs fallback.
4531 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4533 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4534 * fbsd-nat.h: Likewise.
4536 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4538 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4541 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4543 * ada-lang.c (ada_language_data): Delete.
4544 (ada_language): Remove references to ada_language_data.
4545 * c-lang.c (c_language_data): Delete.
4546 (c_language): Remove references to c_language_data.
4547 (cplus_language_data): Delete.
4548 (cplus_language): Remove references to cplus_language_data.
4549 (asm_language_data): Delete.
4550 (asm_language): Remove references to asm_language_data.
4551 (minimal_language_data): Delete.
4552 (minimal_language): Remove references to minimal_language_data.
4553 * d-lang.c (d_language_data): Delete.
4554 (d_language): Remove references to d_language_data.
4555 * f-lang.c (f_language_data): Delete.
4556 (f_language): Remove references to f_language_data.
4557 * go-lang.c (go_language_data): Delete.
4558 (go_language): Remove references to go_language_data.
4559 * language.c (unknown_language_data): Delete.
4560 (unknown_language): Remove references to unknown_language_data.
4561 (auto_language_data): Delete.
4562 (auto_language): Remove references to auto_language_data.
4563 * language.h (language_data): Delete struct.
4564 (language_defn): No longer inherit from language_data.
4565 * m2-lang.c (m2_language_data): Delete.
4566 (m2_language): Remove references to m2_language_data.
4567 * objc-lang.c (objc_language_data): Delete.
4568 (objc_language): Remove references to objc_language_data.
4569 * opencl-lang.c (opencl_language_data): Delete.
4570 (opencl_language): Remove references to opencl_language_data.
4571 * p-lang.c (pascal_language_data): Delete.
4572 (pascal_language): Remove references to pascal_language_data.
4573 * rust-lang.c (rust_language_data): Delete.
4574 (rust_language): Remove references to rust_language_data.
4576 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4578 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4580 (ada_language::opcode_print_table): New member function.
4581 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4582 (c_language::opcode_print_table): New member function.
4583 (cplus_language_data): Remove la_op_print_tab initializer.
4584 (cplus_language::opcode_print_table): New member function.
4585 (asm_language_data): Remove la_op_print_tab initializer.
4586 (asm_language::opcode_print_table): New member function.
4587 (minimal_language_data): Remove la_op_print_tab initializer.
4588 (minimal_language::opcode_print_table): New member function.
4589 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4590 (d_language::opcode_print_table): New member function.
4591 * expprint.c (print_subexp_standard): Update call to
4593 (op_string): Likewise.
4594 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4595 (f_language::opcode_print_table): New member function.
4596 * go-lang.c (go_language_data): Remove la_op_print_tab
4598 (go_language::opcode_print_table): New member function.
4599 * language.c (unknown_language_data): Remove la_op_print_tab
4601 (unknown_language::opcode_print_table): New member function.
4602 (auto_language_data): Remove la_op_print_tab initializer.
4603 (auto_language::opcode_print_table): New member function.
4604 * language.h (language_data): Remove la_op_print_tab field.
4605 (language_defn::opcode_print_table): Declare new member function.
4606 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4608 (m2_language::opcode_print_table): New member function.
4609 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4611 (objc_language::opcode_print_table): New member function.
4612 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4614 (opencl_language::opcode_print_table): New member function.
4615 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4617 (pascal_language::opcode_print_table): New member function.
4618 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4620 (rust_language::opcode_print_table): New member function.
4622 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4624 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4625 (ada_language::expression_ops): New member function.
4626 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4627 (c_language::expression_ops): New member function.
4628 (cplus_language_data): Remove la_exp_desc initializer.
4629 (cplus_language::expression_ops): New member function.
4630 (asm_language_data): Remove la_exp_desc initializer.
4631 (asm_language::expression_ops): New member function.
4632 (minimal_language_data): Remove la_exp_desc initializer.
4633 (minimal_language::expression_ops): New member function.
4634 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4635 (d_language::expression_ops): New member function.
4636 * eval.c (evaluate_subexp): Update call to expression_ops.
4637 * expprint.c (print_subexp): Likewise.
4638 (op_name): Likewise.
4639 (dump_subexp_body): Likewise.
4640 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4641 (f_language::expression_ops): New member function.
4642 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4643 (go_language::expression_ops): New member function.
4644 * language.c (language_defn::expression_ops): New function.
4645 (unknown_language_data): Remove la_exp_desc initializer.
4646 (auto_language_data): Likewise.
4647 * language.h (language_data): Remove la_exp_desc field.
4648 (language_defn::expression_ops): Declare new member function.
4649 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4650 (m2_language::expression_ops): New member function.
4651 * objc-lang.c (objc_language_data): Remove la_exp_desc
4653 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4655 (opencl_language::expression_ops): New member function.
4656 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4657 * parse.c (operator_length): Update call to expression_ops.
4658 (exp_iterate): Likewise.
4659 * rust-lang.c (rust_language_data): Remove la_exp_desc
4661 (ruse_language::expression_ops): New member function.
4663 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4665 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4667 (ada_language::varobj_ops): New member function.
4668 * c-lang.c (c_language_data): Remove la_varobj_ops
4670 (cplus_language_data): Likewise.
4671 (cplus_language::varobj_ops): New member function.
4672 (asm_language_data): Remove la_varobj_ops initializer.
4673 (minimal_language_data): Likewise.
4674 * d-lang.c (d_language_data): Likewise.
4675 * f-lang.c (f_language_data): Likewise.
4676 * go-lang.c (go_language_data): Likewise.
4677 * language.c (language_defn::varobj_ops): New function.
4678 (unknown_language_data): Remove la_varobj_ops
4680 (auto_language_data): Likewise.
4681 * language.h (language_data): Remove la_varobj_ops field.
4682 (language_defn::varobj_ops): Declare new member function.
4683 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4684 * objc-lang.c (objc_language_data): Likewise.
4685 * opencl-lang.c (opencl_language_data): Likewise.
4686 * p-lang.c (pascal_language_data): Likewise.
4687 * rust-lang.c (rust_language_data): Likewise.
4688 * varobj.c (varobj_create): Update call to varobj_ops.
4689 * varobj.h (default_varobj_ops): Delete define.
4691 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4693 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4695 * c-lang.c (c_language_data): Likewise.
4696 (c_language::macro_expansion): New member function.
4697 (cplus_language_data): Likewise.
4698 (cplus_language::macro_expansion): New member function.
4699 (asm_language_data): Likewise.
4700 (asm_language::macro_expansion): New member function.
4701 (minimal_language_data): Likewise.
4702 (minimal_language::macro_expansion): New member function.
4703 * d-lang.c (d_language_data): Remove la_macro_expansion
4705 * f-lang.c (f_language_data): Likewise.
4706 * go-lang.c (go_language_data): Likewise.
4707 * language.c (unknown_language_data): Likewise.
4708 (auto_language_data): Likewise.
4709 * language.h (language_data): Remove la_macro_expansion field.
4710 (language_defn::macro_expansion): New member function.
4711 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4713 * objc-lang.c (objc_language_data): Likewise.
4714 (objc_language::macro_expansion): New member function.
4715 * opencl-lang.c (opencl_language_data): Likewise.
4716 (opencl_language::macro_expansion): New member function.
4717 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4719 * rust-lang.c (rust_language_data): Likewise.
4720 * symtab.c (default_collect_symbol_completion_matches_break_on):
4721 Update call to macro_expansion.
4723 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4725 * ada-lang.c (ada_language_data): Remove la_array_ordering
4727 * c-lang.c (c_language_data): Likewise.
4728 (cplus_language_data): Likewise.
4729 (asm_language_data): Likewise.
4730 (minimal_language_data): Likewise.
4731 * d-lang.c (d_language_data): Likewise.
4732 * dwarf2/read.c (read_array_order): Update for call to
4734 * f-lang.c (f_language_data): Remove la_array_ordering
4736 (f_language::array_ordering): New member function.
4737 * go-lang.c (go_language_data): Remove la_array_ordering
4739 * language.c (unknown_language_data): Likewise.
4740 (auto_language_data): Likewise.
4741 * language.h (language_data): Delete la_array_ordering field.
4742 (language_defn::array_ordering): New member function.
4743 * m2-lang.c (m2_language_data): Remove la_array_ordering
4745 * objc-lang.c (objc_language_data): Likewise.
4746 * opencl-lang.c (opencl_language_data): Likewise.
4747 * p-lang.c (pascal_language_data): Likewise.
4748 * rust-lang.c (rust_language_data): Likewise.
4750 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4752 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4754 * c-lang.c (c_language_data): Likewise.
4755 (cplus_language_data): Likewise.
4756 (asm_language_data): Likewise.
4757 (minimal_language_data): Likewise.
4758 * d-lang.c (d_language_data): Likewise.
4759 * f-lang.c (f_language_data): Likewise.
4760 (f_language::case_sensitivity): New member function.
4761 * go-lang.c (go_language_data): Remove la_case_sensitivity
4763 * language.c (enum case_mode): Moved here from language.h.
4764 (case_mode): Make static.
4765 (show_case_command): Update for case_sensitivity being a method.
4766 (set_case_command): Likewise.
4767 (set_range_case): Likewise.
4768 (unknown_language_data): Remove la_case_sensitivity initializer.
4769 (auto_language_data): Likewise.
4770 * language.h (case_mode): Delete, move enum declaration to
4772 (language_data): Delete la_case_sensitivity field.
4773 (language_defn::case_sensitivity): New member function.
4774 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4776 * objc-lang.c (objc_language_data): Likewise.
4777 * opencl-lang.c (opencl_language_data): Likewise.
4778 * p-lang.c (pascal_language_data): Likewise.
4779 * rust-lang.c (rust_language_data): Likewise.
4781 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4783 * ada-lang.c (ada_language_data): Remove la_range_check
4785 * c-lang.c (c_language_data): Likewise.
4786 (cplus_language_data): Likewise.
4787 (asm_language_data): Likewise.
4788 (minimal_language_data): Likewise.
4789 * d-lang.c (d_language_data): Likewise.
4790 * f-lang.c (f_language_data): Likewise.
4791 (f_language::range_checking_on_by_default): New member function.
4792 * go-lang.c (go_language_data): Remove la_range_check initializer.
4793 * language.c (enum range_mode): Moved here from language.h.
4794 (range_mode): Made static.
4795 (show_range_command): Update to use
4796 range_checking_on_by_default.
4797 (set_range_command): Likewise.
4798 (set_range_case): Likewise.
4799 (unknown_language_data): Remove la_range_check initializer.
4800 (auto_language_data): Likewise.
4801 * language.h (range_mode): Delete. Enum definition moved to
4803 (language_data): Remove la_range_check field.
4804 (language_defn::range_checking_on_by_default): New member
4806 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4807 (m2_language::range_checking_on_by_default): New member function.
4808 * objc-lang.c (objc_language_data): Remove la_range_check
4810 * opencl-lang.c (opencl_language_data): Likewise.
4811 * p-lang.c (pascal_language_data): Likewise.
4812 (pascal_language::range_checking_on_by_default): New member
4814 * rust-lang.c (rust_language_data): Remove la_range_check
4816 (rust_language::range_checking_on_by_default): New member
4819 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4821 * dwarf2/read.c (dwarf2_physname): Remove special case for
4823 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4826 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4828 * ada-lang.c (ada_language_data): Remove
4829 la_store_sym_names_in_linkage_form_p initializer.
4830 (ada_language::store_sym_names_in_linkage_form_p): New member
4832 * c-lang.c (c_language_data): Remove
4833 la_store_sym_names_in_linkage_form_p initializer.
4834 (c_language::store_sym_names_in_linkage_form_p): New member
4836 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4838 (asm_language_data): Likewise.
4839 (asm_language::store_sym_names_in_linkage_form_p): New member
4841 (minimal_language_data): Remove
4842 la_store_sym_names_in_linkage_form_p initializer.
4843 (minimal_language::store_sym_names_in_linkage_form_p): New member
4845 * d-lang.c (d_language_data): Remove
4846 la_store_sym_names_in_linkage_form_p initializer.
4847 * dwarf2/read.c (dwarf2_physname): Update call to
4848 store_sym_names_in_linkage_form_p.
4849 * f-lang.c (f_language_data): Remove
4850 la_store_sym_names_in_linkage_form_p initializer.
4851 * go-lang.c (go_language_data): Remove
4852 la_store_sym_names_in_linkage_form_p initializer.
4853 * language.c (unknown_language_data): Remove
4854 la_store_sym_names_in_linkage_form_p initializer.
4855 (unknown_language::store_sym_names_in_linkage_form_p): New member
4857 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4859 (auto_language::store_sym_names_in_linkage_form_p): New member
4861 * language.h (language_data): Remove
4862 la_store_sym_names_in_linkage_form_p member variable.
4863 (language_defn::store_sym_names_in_linkage_form_p): New member
4865 * m2-lang.c (m2_language_data): Remove
4866 la_store_sym_names_in_linkage_form_p initializer.
4867 * objc-lang.c (objc_language_data): Likewise.
4868 * opencl-lang.c (opencl_language_data): Likewise.
4869 * p-lang.c (pascal_language_data): Likewise.
4870 * rust-lang.c (rust_language_data): Likewise.
4872 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4874 * ada-lang.c (ada_language_data): Remove string_lower_bound
4876 * c-lang.c (c_language_data): Likewise.
4877 (cplus_language_data): Likewise.
4878 (asm_language_data): Likewise.
4879 (minimal_language_data): Likewise.
4880 * d-lang.c (d_language_data): Likewise.
4881 * f-lang.c (f_language_data): Likewise.
4882 * go-lang.c (go_language_data): Likewise.
4883 * language.c (unknown_language_data): Likewise.
4884 (auto_language_data): Likewise.
4885 * language.h (language_data): Remove string_lower_bound field.
4886 (language_defn::string_lower_bound): New member function.
4887 * m2-lang.c (m2_language_data): Remove string_lower_bound
4889 (m2_language::string_lower_bound): New member function.
4890 * objc-lang.c (objc_language_data): Remove string_lower_bound
4892 * opencl-lang.c (opencl_language_data): Likewise.
4893 * p-lang.c (pascal_language_data): Likewise.
4894 * rust-lang.c (rust_language_data): Likewise.
4895 * valops.c (value_cstring): Update call to string_lower_bound.
4896 (value_string): Likewise.
4897 * value.c (allocate_repeated_value): Likewise.
4899 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4901 * valops.c (value_repeat): Fix incorrect argument name in comment.
4903 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4905 * ada-lang.c (ada_language_data): Remove c_style_arrays
4907 (ada_language::c_style_arrays_p): New member fuction.
4908 * c-lang.c (c_language_data): Remove c_style_arrays
4910 (cplus_language_data): Likewise.
4911 (asm_language_data): Likewise.
4912 (minimal_language_data): Likewise.
4913 * d-lang.c (d_language_data): Likewise.
4914 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4915 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4916 (f_language::c_style_arrays_p): New member function.
4917 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4918 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4919 * language.c (unknown_language_data): Remove c_style_arrays
4921 (auto_language_data): Likewise.
4922 * language.h (language_data): Remove c_style_arrays field.
4923 (language_defn::c_style_arrays_p): New member function.
4924 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4925 (m2_language::c_style_arrays_p): New member function.
4926 * objc-lang.c (objc_language_data): Remove c_style_arrays
4928 * opencl-lang.c (opencl_language_data): Likewise.
4929 * p-lang.c (pascal_language_data): Likewise.
4930 * rust-lang.c (rust_language_data): Likewise.
4931 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4932 and update local variable to a bool.
4933 * valops.c (value_cast): Update call to c_style_arrays_p.
4934 (value_array): Likewise.
4935 * value.c (coerce_array): Likewise.
4937 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4939 * ada-lang.c (ada_language_data): Remove la_language initializer.
4940 * c-lang.c (c_language_data): Likewise.
4941 (cplus_language_data): Likewise.
4942 (asm_language_data): Likewise.
4943 (minimal_language_data): Likewise.
4944 * d-lang.c (d_language_data): Likewise.
4945 * f-lang.c (f_language_data): Likewise.
4946 * go-lang.c (go_language_data): Likewise.
4947 * language.c (unknown_language_data): Likewise.
4948 (auto_language_data): Likewise.
4949 * language.h (language_data): Remove la_language field.
4950 (language_defn::language_defn): Initialise la_language field.
4951 (language_defn::la_language): New member variable.
4952 * m2-lang.c (m2_language_data): Remove la_language field.
4953 * objc-lang.c (objc_language_data): Likewise.
4954 * opencl-lang.c (opencl_language_data): Likewise.
4955 * p-lang.c (pascal_language_data): Likewise.
4956 * rust-lang.c (rust_language_data): Likewise.
4958 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4960 * ada-lang.c (ada_extensions): Delete, moved into
4961 ada_language::filename_extensions.
4962 (ada_language_data): Remove la_filename_extensions initializer.
4963 (ada_language::filename_extensions): New member function.
4964 * c-lang.c (c_extensions): Delete, moved into
4965 c_language::filename_extensions.
4966 (c_language_data): Remove la_filename_extensions initializer.
4967 (c_language::filename_extensions): New member function.
4968 (cplus_extensions): Delete, moved into
4969 cplus_language::filename_extensions.
4970 (cplus_language_data): Remove la_filename_extensions initializer.
4971 (cplus_language::filename_extensions): New member function.
4972 (asm_extensions): Delete, moved into
4973 asm_language::filename_extensions.
4974 (asm_language_data): Remove la_filename_extensions initializer.
4975 (asm_language::filename_extensions): New member function.
4976 (minimal_language_data): Remove la_filename_extensions
4978 * d-lang.c (d_extensions): Delete, moved into
4979 d_language::filename_extensions.
4980 (d_language_data): Remove la_filename_extensions initializer.
4981 (d_language::filename_extensions): New member function.
4982 * f-lang.c (f_extensions): Delete, moved into
4983 f_language::filename_extensions.
4984 (f_language_data): Remove la_filename_extensions initializer.
4985 (f_language::filename_extensions): New member function.
4986 * go-lang.c (go_language_data): Remove la_filename_extensions
4988 * language.c (add_set_language_command): Update now that
4989 filename_extensions returns a vector.
4990 (unknown_language_data): Remove la_filename_extensions
4992 (auto_language_data): Likewise.
4993 * language.h (language_data): Remove la_filename_extensions field.
4994 (language_defn::filename_extensions): New member function.
4995 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4997 * objc-lang.c (objc_extensions): Delete, moved into
4998 objc_language::filename_extensions.
4999 (objc_language_data): Remove la_filename_extensions initializer.
5000 (objc_language::filename_extensions): New member function.
5001 * opencl-lang.c (opencl_language_data): Remove
5002 la_filename_extensions initializer.
5003 * p-lang.c (pascal_extensions): Delete, moved into
5004 pascal_language::filename_extensions.
5005 (pascal_language_data): Remove la_filename_extensions initializer.
5006 (pascal_language::filename_extensions): New member function.
5007 * rust-lang.c (rust_extensions): Delete, moved into
5008 rust_language::filename_extensions.
5009 (rust_language_data): Remove la_filename_extensions initializer.
5010 (rust_language::filename_extensions): New member function.
5011 * symfile.c (add_filename_language): Add new assert.
5013 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5015 * ada-lang.c (ada_language_data): Remove la_name and
5016 la_natural_name initializers.
5017 (ada_language::name): New member function.
5018 (ada_language::natural_name): New member function.
5019 * c-lang.c (c_language_data): Remove la_name and
5020 la_natural_name initializers.
5021 (c_language::name): New member function.
5022 (c_language::natural_name): New member function.
5023 (cplus_language_data): Remove la_name and
5024 la_natural_name initializers.
5025 (cplus_language::name): New member function.
5026 (cplus_language::natural_name): New member function.
5027 (asm_language_data): Remove la_name and
5028 la_natural_name initializers.
5029 (asm_language::name): New member function.
5030 (asm_language::natural_name): New member function.
5031 (minimal_language_data): Remove la_name and
5032 la_natural_name initializers.
5033 (minimal_language::name): New member function.
5034 (minimal_language::natural_name): New member function.
5035 * compile/compile.c (compile_to_object): Update call to
5036 lanugage_defn::name.
5037 * d-lang.c (d_language_data): Remove la_name and
5038 la_natural_name initializers.
5039 (d_language::name): New member function.
5040 (d_language::natural_name): New member function.
5041 * expprint.c (print_subexp_standard): Update call to
5042 language_defn::name.
5043 (dump_raw_expression): Likewise
5044 (dump_prefix_expression): Likewise.
5045 * f-lang.c (f_language_data): Remove la_name and
5046 la_natural_name initializers.
5047 (f_language::name): New member function.
5048 (f_language::natural_name): New member function.
5049 * go-lang.c (go_language_data): Remove la_name and
5050 la_natural_name initializers.
5051 (go_language::name): New member function.
5052 (go_language::natural_name): New member function.
5053 * language.c (show_language_command): Update call to
5054 language_defn::name.
5055 (set_language_command): Likewise.
5056 (language_enum): Likewise.
5057 (language_str): Likewise.
5058 (add_set_language_command): Likewise, use
5059 language_defn::natural_name in the doc string.
5060 (unknown_language_data): Remove la_name and
5061 la_natural_name initializers.
5062 (unknown_language::name): New member function.
5063 (unknown_language::natural_name): New member function.
5064 (auto_language_data): Remove la_name and
5065 la_natural_name initializers.
5066 (auto_language::name): New member function.
5067 (auto_language::natural_name): New member function.
5068 (language_lookup_primitive_type_as_symbol): Update call to
5069 language_defn::name.
5070 * language.h (language_data): Remove la_name and la_natural_name
5072 (language_defn::name): New member function.
5073 (language_defn::natural_name): New member function.
5074 * m2-lang.c (m2_language_data): Remove la_name and
5075 la_natural_name initializers.
5076 (m2_language::name): New member function.
5077 (m2_language::natural_name): New member function.
5078 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5079 language_defn::natural_name.
5080 * objc-lang.c (objc_language_data): Remove la_name and
5081 la_natural_name initializers.
5082 (objc_language::name): New member function.
5083 (objc_language::natural_name): New member function.
5084 * opencl-lang.c (opencl_language_data): Remove la_name and
5085 la_natural_name initializers.
5086 (opencl_language::name): New member function.
5087 (opencl_language::natural_name): New member function.
5088 * p-lang.c (pascal_language_data): Remove la_name and
5089 la_natural_name initializers.
5090 (pascal_language::name): New member function.
5091 (pascal_language::natural_name): New member function.
5092 * rust-lang.c (rust_language_data): Remove la_name and
5093 la_natural_name initializers.
5094 (rust_language::name): New member function.
5095 (rust_language::natural_name): New member function.
5096 * symtab.c (lookup_language_this): Update call to
5097 language_defn::name.
5099 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5101 * ada-lang.c (ada_language_data): Remove la_name_of_this
5103 * ax-gdb.c (gen_expr): Update call to name_of_this.
5104 * c-exp.y (classify_name): Likewise.
5105 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5106 (cplus_language_data): Likewise.
5107 (cplus_language::name_of_this): New member function.
5108 (asm_language_data): Remove la_name_of_this initializer.
5109 (minimal_language_data): Likewise.
5110 * d-lang.c (d_language_data): Likewise.
5111 (d_language::name_of_this): New member function.
5112 * expprint.c (print_subexp_standard): Update call to name_of_this.
5113 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5114 * go-lang.c (go_language_data): Likewise.
5115 * language.c (unknown_language_data): Likewise.
5116 (unknown_language::name_of_this): New member function.
5117 (auto_language_data): Remove la_name_of_this initializer.
5118 (auto_language::name_of_this): New member function.
5119 * language.h (language_data): Delete la_name_of_this member
5121 (language_defn::name_of_this): New member function.
5122 * m2-lang.c (m2_language_data): Remove la_name_of_this
5124 * objc-lang.c (objc_language_data): Likewise.
5125 (objc_language::name_of_this): New member function.
5126 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5128 * p-lang.c (pascal_language_data): Likewise.
5129 (pascal_language::name_of_this): New member function.
5130 * rust-lang.c (rust_language_data): Remove la_name_of_this
5132 * symtab.c (lookup_language_this): Update call to name_of_this.
5133 (lookup_symbol_aux): Likewise.
5134 * valops.c (value_of_this): Likewise.
5136 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5138 * ada-lang.c (ada_language_data): Remove
5139 la_struct_too_deep_ellipsis initializer.
5140 (ada_language::struct_too_deep_ellipsis): New member function.
5141 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5143 (cplus_language_data): Likewise.
5144 (asm_language_data): Likewise.
5145 (minimal_language_data): Likewise.
5146 * cp-valprint.c (cp_print_value): Update call to
5147 struct_too_deep_ellipsis.
5148 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5150 * f-lang.c (f_language_data): Likewise.
5151 (f_language::struct_too_deep_ellipsis): New member function.
5152 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5154 * language.c (unknown_language_data): Likewise.
5155 (auto_language_data): Likewise.
5156 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5158 (language_defn::struct_too_deep_ellipsis): New member function.
5159 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5161 * objc-lang.c (objc_language_data): Likewise.
5162 * opencl-lang.c (opencl_language_data): Likewise.
5163 * p-lang.c (pascal_language_data): Likewise.
5164 * rust-lang.c (rust_language_data): Likewise.
5165 * valprint.c (val_print_check_max_depth): Update call to
5166 struct_too_deep_ellipsis.
5168 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5170 * MAINTAINERS (Write After Approval): Add myself.
5172 2020-09-15 Tom Tromey <tom@tromey.com>
5174 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5177 2020-09-15 Tom Tromey <tom@tromey.com>
5179 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5180 and TYPE_CODE_METHODPTR cases.
5181 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5182 (c_value_print_inner): Update.
5183 * valprint.c (generic_value_print_memberptr): New function, from
5184 c_value_print_memberptr.
5185 (generic_value_print): Use it. Call cplus_print_method_ptr.
5187 2020-09-15 Tom Tromey <tromey@adacore.com>
5189 * python/python-internal.h (PyInt_FromLong): Remove define.
5190 * python/py-value.c (convert_value_from_python): Use
5191 gdb_py_object_from_longest.
5192 * python/py-type.c (typy_get_code): Use
5193 gdb_py_object_from_longest.
5194 * python/py-symtab.c (salpy_get_line): Use
5195 gdb_py_object_from_longest.
5196 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5197 gdb_py_object_from_longest.
5198 * python/py-record.c (recpy_gap_reason_code): Use
5199 gdb_py_object_from_longest.
5200 * python/py-record-btrace.c (recpy_bt_insn_size)
5201 (recpy_bt_func_level, btpy_list_count): Use
5202 gdb_py_object_from_longest.
5203 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5204 gdb_py_object_from_longest. Fix error handling.
5205 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5206 gdb_py_object_from_longest.
5207 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5208 gdb_py_object_from_longest.
5209 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5210 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5211 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5213 2020-09-15 Tom Tromey <tromey@adacore.com>
5215 * python/python.c (gdbpy_parameter_value): Use
5216 gdb_py_object_from_ulongest.
5218 2020-09-15 Tom Tromey <tromey@adacore.com>
5220 * python/py-infevents.c (create_register_changed_event_object):
5221 Use gdb_py_object_from_longest.
5222 * python/py-exitedevent.c (create_exited_event_object): Use
5223 gdb_py_object_from_longest.
5225 2020-09-15 Tom Tromey <tromey@adacore.com>
5227 * python/python.c (gdbpy_parameter_value): Use
5228 gdb_py_object_from_longest.
5229 * python/py-type.c (convert_field, typy_range): Use
5230 gdb_py_object_from_longest.
5231 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5232 gdb_py_object_from_longest.
5233 * python/py-lazy-string.c (stpy_get_length): Use
5234 gdb_py_object_from_longest.
5235 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5236 gdb_py_object_from_longest.
5237 * python/py-infevents.c (create_memory_changed_event_object): Use
5238 gdb_py_object_from_longest.
5239 * python/py-inferior.c (infpy_get_num): Use
5240 gdb_py_object_from_longest.
5241 (infpy_get_pid): Likewise.
5243 2020-09-15 Tom Tromey <tromey@adacore.com>
5245 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5247 * python/py-value.c (valpy_long): Use
5248 gdb_py_object_from_ulongest.
5249 * python/py-symtab.c (salpy_get_pc): Use
5250 gdb_py_object_from_ulongest.
5251 (salpy_get_last): Likewise.
5252 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5253 gdb_py_object_from_ulongest.
5254 * python/py-lazy-string.c (stpy_get_address): Use
5255 gdb_py_object_from_ulongest.
5256 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5257 * python/py-arch.c (archpy_disassemble): Use
5258 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5261 2020-09-15 Tom Tromey <tromey@adacore.com>
5263 * python/python-internal.h (gdb_py_long_from_longest): Remove
5265 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5266 * python/py-type.c (convert_field, typy_get_sizeof): Use
5267 gdb_py_object_from_longest.
5268 * python/py-record-btrace.c (btpy_list_index): Use
5269 gdb_py_object_from_longest.
5271 2020-09-15 Tom Tromey <tromey@adacore.com>
5273 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5274 * python/py-record.c (recpy_element_number): Use
5275 gdb_py_object_from_longest.
5276 (recpy_gap_number): Likewise.
5278 2020-09-15 Tom Tromey <tromey@adacore.com>
5280 * top.c (ui::ui): Update.
5281 (highest_ui_num): Remove.
5282 * top.h (struct ui) <num>: Remove.
5284 2020-09-15 Tom Tromey <tromey@adacore.com>
5286 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5287 * ui-style.c (ansi_regex_text): Now array.
5288 * rust-exp.y (number_regex_text): Now array.
5289 * linespec.c (linespec_quote_characters): Now array.
5290 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5293 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5295 * debuginfod-support.c (debuginfod_client_deleter): New.
5296 (debuginfod_client_up): New.
5297 (debuginfod_init): Return debuginfod_client_up.
5298 (debuginfod_source_query): Adjust.
5299 (debuginfod_debuginfo_query): Adjust.
5301 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5303 * debuginfod-support.c (debuginfod_source_query): Use
5304 make_unique_xstrdup.
5306 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5308 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5309 with `type::instance_flags`.
5311 2020-09-14 Michael Mullin <masmullin@gmail.com>
5313 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5314 Remove baton parameter.
5316 2020-09-14 Pedro Alves <pedro@palves.net>
5318 * Makefile.in (SELFTESTS_SRCS): Add
5319 unittests/enum-flags-selftests.c.
5320 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5321 btrace_function_flags instead of enum btrace_function_flag.
5322 * compile/compile-c-types.c (convert_qualified): Use
5324 * compile/compile-cplus-symbols.c (convert_one_symbol)
5325 (convert_symbol_bmsym):
5326 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5327 (compile_cplus_convert_struct_or_union_methods)
5328 (compile_cplus_instance::convert_qualified_base):
5329 * go-exp.y (parse_string_or_char): Add cast to int.
5330 * unittests/enum-flags-selftests.c: New file.
5331 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5332 type to btrace_thread_flags from btrace_thread_flag.
5333 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5334 local's type to btrace_thread_flags from btrace_thread_flag. Add
5337 2020-09-14 Pedro Alves <pedro@palves.net>
5339 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5340 * gdbtypes.c (address_space_name_to_int): Rename to ...
5341 (address_space_name_to_type_instance_flags): ... this.
5342 (address_space_int_to_name): Rename to ...
5343 (address_space_type_instance_flags_to_name): ... this.
5344 * gdbtypes.h (address_space_name_to_int): Rename to ...
5345 (address_space_name_to_type_instance_flags): ... this.
5346 (address_space_int_to_name): Rename to ...
5347 (address_space_type_instance_flags_to_name): ... this.
5348 * type-stack.c (type_stack::insert): Adjust to rename.
5349 * type-stack.h (type_stack::insert): Likewise.
5351 2020-09-14 Pedro Alves <pedro@palves.net>
5352 Andrew Burgess <andrew.burgess@embecosm.com>
5354 * avr-tdep.c (avr_address_class_type_flags): Return
5355 type_instance_flags.
5356 (avr_address_class_type_flags_to_name): Take a
5357 type_instance_flags.
5358 (avr_address_class_name_to_type_flags): Return bool and take a
5359 type_instance_flags.
5360 * d-lang.c (build_d_types): Use type::set_instance_flags.
5361 * ft32-tdep.c (ft32_address_class_type_flags): Return
5362 type_instance_flags.
5363 (ft32_address_class_type_flags_to_name): Take a
5364 type_instance_flags.
5365 (ft32_address_class_name_to_type_flags): Return bool and take a
5366 type_instance_flags.
5367 (ft32_gdbarch_init): Use type::set_instance_flags.
5368 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5369 * gdbarch.h, gdbarch.c: Regenerate.
5370 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5371 (address_class_name_to_type_flags): Use type_instance_flags and
5373 * gdbtypes.c (address_space_name_to_int)
5374 (address_space_int_to_name, make_qualified_type): Use
5375 type_instance_flags.
5376 (make_qualified_type): Use type_instance_flags and
5377 type::set_instance_flags.
5378 (make_type_with_address_space, make_cv_type, make_vector_type)
5379 (check_typedef): Use type_instance_flags.
5380 (recursive_dump_type): Cast type_instance_flags to unsigned for
5382 (copy_type_recursive): Use type::set_instance_flags.
5383 (gdbtypes_post_init): Use type::set_instance_flags.
5384 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5385 <m_instance_flags>: ... this.
5386 <instance_flags, set_instance_flags>: New methods.
5387 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5388 (SET_TYPE_INSTANCE_FLAGS): New.
5389 (address_space_name_to_int, address_space_int_to_name)
5390 (make_type_with_address_space): Pass flags using
5391 type_instance_flags instead of int.
5392 * stabsread.c (cleanup_undefined_types_noname): Use
5393 type::set_instance_flags.
5394 * s390-tdep.c (s390_address_class_type_flags): Return
5395 type_instance_flags.
5396 (s390_address_class_type_flags_to_name): Take a
5397 type_instance_flags.
5398 (s390_address_class_name_to_type_flags): Return bool and take a
5399 type_instance_flags.
5400 * type-stack.c (type_stack::follow_types): Use
5401 type_instance_flags.
5402 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5404 2020-09-14 Tom Tromey <tromey@adacore.com>
5406 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5407 * x86-tdep.c (x86_is_thunk_register_name)
5408 (x86_in_indirect_branch_thunk): Update.
5409 * sparc64-tdep.c (sparc64_fpu_register_names)
5410 (sparc64_cp0_register_names, sparc64_register_names)
5411 (sparc64_pseudo_register_names): Now const.
5412 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5413 cp0_registers_num>: Now const.
5414 * sparc-tdep.c (sparc_core_register_names)
5415 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5416 (sparc32_pseudo_register_names): Now const.
5417 (validate_tdesc_registers): Update.
5418 * rust-lang.c (rust_extensions): Now const.
5419 * p-lang.c (p_extensions): Now const.
5420 * objc-lang.c (objc_extensions): Now const.
5421 * nto-tdep.c (nto_thread_state_str): Now const.
5422 * moxie-tdep.c (moxie_register_names): Now const.
5423 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5425 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5426 (mips_linux_reg_names): Now const.
5427 (mips_gdbarch_init): Update.
5428 * microblaze-tdep.c (microblaze_register_names): Now const.
5429 * m68k-tdep.c (m68k_register_names): Now const.
5430 * m32r-tdep.c (m32r_register_names): Now const.
5431 * ia64-tdep.c (ia64_register_names): Now const.
5432 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5433 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5434 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5435 ymm_avx512_register_names, pkeys_register_names>: Now const.
5436 * i386-tdep.c (i386_register_names, i386_zmm_names)
5437 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5438 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5439 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5440 * f-lang.c (f_extensions): Now const.
5441 * d-lang.c (d_extensions): Now const.
5442 * csky-tdep.c (csky_register_names): Now const.
5443 * charset.c (default_charset_names, charset_enum): Now const.
5444 (_initialize_charset): Update.
5445 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5447 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5448 (bsd_uthread_solib_loaded): Update.
5449 (bsd_uthread_state): Now const.
5450 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5451 (amd64_ymm_avx512_names, amd64_ymmh_names)
5452 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5453 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5454 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5455 (amd64_dword_names): Now const.
5456 * agent.c (can_use_agent_enum): Now const.
5457 * ada-tasks.c (task_states, long_task_states): Now const.
5458 * ada-lang.c (known_runtime_file_name_patterns)
5459 (known_auxiliary_function_name_patterns, attribute_names)
5460 (standard_exc, ada_extensions): Now const.
5462 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5464 * bcache.h (struct bcache) <bcache>: Remove constructor.
5465 <m_hash_function, m_compare_function>: Remove.
5466 <~bcache>: Make virtual.
5467 <compare>: Remove static method, introduce virtual method.
5468 <default_hash>: Remove.
5469 <hash>: New virtual method.
5470 * bcache.c (bcache::expand_hash_table): Update.
5471 (bcache::insert): Update.
5472 (bcache::hash): New.
5473 (bcache::compare): Update comment and parameter names.
5474 * gdbtypes.c (types_deeply_equal): Update.
5475 * psymtab.h (struct psymbol_bcache): New struct.
5476 (class psymtab_storage) <psymtab_storage>: Make default.
5477 <psymbol_cache>: Change type to psymbol_bcache.
5478 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5479 (psymbol_hash): Change to...
5480 (psymbol_bcache::hash): ... this.
5481 (psymbol_compare): Change to...
5482 (psymbol_bcache::compare): ... this.
5484 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5486 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5487 checking for initial lwp.
5489 2020-09-14 Tom Tromey <tromey@adacore.com>
5491 * m68k-tdep.c (m68k_extract_return_value): Use
5492 pointer_result_regnum.
5493 (m68k_store_return_value): Likewise.
5494 (m68k_reg_struct_return_p): Handle vectors and arrays.
5495 (m68k_return_value): Handle arrays.
5496 (m68k_svr4_return_value): Fix single-element aggregate handling.
5497 Handle long double. Adjust for embedded ABI.
5498 (m68k_svr4_init_abi): Set pointer_result_regnum.
5499 (m68k_embedded_init_abi): New function.
5500 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5501 (m68k_osabi_sniffer): New function.
5502 (_initialize_m68k_tdep): Register osabi sniffer.
5503 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5506 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5508 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5509 with gdb::unique_xmalloc_ptr<char>.
5511 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5513 * xml-support.h (xml_fetch_another): Change type to be a
5515 (xml_process_xincludes): Remove baton parameter.
5516 (xml_fetch_content_from_file): Change baton parameter to
5518 * xml-support.c (struct xinclude_parsing_data)
5519 <xinclude_parsing_data>: Remove baton parameter.
5520 <fetcher_baton>: Remove.
5521 (xinclude_start_include): Adjust.
5522 (xml_process_xincludes): Adjust.
5523 (xml_fetch_content_from_file): Replace baton parameter with
5525 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5526 (xml_init_syscalls_info): Use a lambda.
5527 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5528 (file_read_description_xml): Use a lambda.
5529 (fetch_available_features_from_target): Change baton parameter
5531 (target_read_description_xml): Use a lambda.
5532 (target_fetch_description_xml): Use a lambda.
5533 (string_read_description_xml): Update.
5535 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5537 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5538 uses with type::endianity_is_not_default.
5540 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5542 * gdbtypes.h (struct type) <endianity_is_not_default,
5543 set_endianity_is_not_default>: New methods.
5544 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5545 type::endianity_is_not_default, change all write call sites to
5546 use type::set_endianity_is_not_default.
5548 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5550 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5551 uses with type::is_fixed_instance.
5553 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5555 * gdbtypes.h (struct type) <is_fixed_instance,
5556 set_is_fixed_instance>: New methods.
5557 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5558 write call sites to use type::set_is_fixed_instance.
5560 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5562 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5563 uses with type::is_gnu_ifunc.
5565 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5567 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5568 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5569 use type::set_is_gnu_ifunc.
5571 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5573 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5574 uses with type::stub_is_supported.
5576 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5578 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5579 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5580 use type::set_stub_is_supported.
5582 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5584 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5585 uses with type::is_vector.
5587 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5589 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5590 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5591 use type::set_is_vector.
5593 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5595 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5596 uses with type::has_varargs.
5598 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5600 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5601 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5602 use type::set_has_varargs.
5604 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5606 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5607 uses with type::is_prototyped.
5609 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5611 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5613 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5614 call sites to use type::set_is_prototyped.
5616 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5618 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5619 uses with type::target_is_stub.
5621 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5623 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5625 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5626 sites to use type::set_target_is_stub.
5628 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5630 * gdbtypes.h (TYPE_STUB): Remove, replace all
5631 uses with type::is_stub.
5633 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5635 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5636 (TYPE_STUB): Use type::is_stub, change all write call sites to
5637 use type::set_is_stub.
5639 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5641 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5642 type::has_no_signedness.
5644 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5646 * gdbtypes.h (struct type) <has_no_signedness,
5647 set_has_no_signedness>: New methods.
5648 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5649 call sites to use type::set_has_no_signedness.
5651 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5653 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5656 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5658 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5660 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5661 sites to use type::set_is_unsigned.
5663 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5664 Adam Renquinha <arenquinha@cimeq.qc.ca>
5666 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5667 pointer and stack frame offset when unwinding.
5669 2020-09-13 Pedro Alves <pedro@palves.net>
5671 * NEWS: Document "-break-insert --qualified".
5672 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5674 2020-09-13 Pedro Alves <pedro@palves.net>
5676 * linespec.c (classify_mtype, compare_msyms): Delete.
5677 (search_minsyms_for_name): Remove classification logic. Instead
5678 filter out trampoline symbols if we also found an external
5679 function of the same name.
5681 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5683 * NEWS: Create a new section for the next release branch.
5684 Rename the section of the current branch, now that it has
5687 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5689 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5690 * version.in: Bump version to 11.0.50.DATE-git.
5692 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5694 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5696 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5697 Felix Willgerodt <Felix.Willgerodt@intel.com>
5699 * gdbarch.sh: Added bfloat16 type.
5700 * gdbarch.c: Regenerated.
5701 * gdbarch.h: Regenerated.
5702 * gdbtypes.c (floatformats_bfloat16): New struct.
5703 (gdbtypes_post_init): Add builtin_bfloat16.
5704 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5705 (floatformats_bfloat16): New struct.
5706 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5707 (i386_ymm_type): Add field "v16_bfloat16"
5708 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5709 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5710 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5711 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5712 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5713 * features/i386/64bit-avx512.c: Regenerated.
5714 * features/i386/64bit-sse.xml: Add bfloat16 type.
5715 * features/i386/64bit-sse.c: Regenerated.
5717 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5719 * i386-tdep.c (i386_zmm_type): Fix field names.
5720 (i386_ymm_type): Fix field names.
5722 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5724 * breakpoint.c: Fix typo in the help message of the
5725 "set breakpoint condition-evaluation" command.
5727 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5729 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5730 * (nbsd_nat_target::pid_to_exec_file)
5731 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5732 (nbsd_nat_target::post_startup_inferior)
5733 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5734 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5735 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5736 * (nbsd_thread_lister): Remove.
5738 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5740 * fork-inferior.c (startup_inferior): Avoid double free.
5742 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5744 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5745 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5747 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5749 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5750 * netbsd-nat.c: Include <sys/ptrace.h>.
5751 * (netbsd_nat::enable_proc_events): Add.
5753 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5755 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5756 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5757 (netbsd_nat::for_each_thread): Add.
5758 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5759 "gdbsupport/common-debug.h".
5760 * (netbsd_nat::netbsd_thread_lister)
5761 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5762 (netbsd_nat::for_each_thread): Add.
5764 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5766 * netbsd-nat.h: Include <unistd.h>.
5767 * (netbsd_nat::pid_to_exec_file): Add.
5768 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5769 * (netbsd_nat::pid_to_exec_file) Add.
5771 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5773 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5775 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5777 * netbsd-nat.h: New file.
5778 * netbsd-nat.c: Likewise.
5780 2020-09-09 Tom Tromey <tromey@adacore.com>
5782 * ada-lang.c (remove_extra_symbols): Do not increment when
5785 2020-09-08 Tom Tromey <tromey@adacore.com>
5787 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5789 2020-09-08 Tom Tromey <tromey@adacore.com>
5792 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5793 (gdb_bfd_init_data): New function.
5794 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5796 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5798 * infrun.c (fetch_inferior_event): Use
5799 `switch_to_target_no_thread` to switch the target.
5801 2020-09-06 Tom Tromey <tom@tromey.com>
5803 * symfile.h (dwarf2_free_objfile): Don't declare.
5805 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5807 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5808 to match 16 byte real/complex type generated by Flang compiler.
5810 2020-09-03 Tom de Vries <tdevries@suse.de>
5813 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5814 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5816 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5818 * maint.c (index_digits): New function.
5819 (struct maint_print_section_data): Remove.
5820 (print_bfd_section_info): Remove print_data parameter, add arg
5822 (print_objfile_section_info): Likewise.
5823 (print_bfd_section_info_maybe_relocated): Likewise (plus
5825 (maintenance_info_sections): Adjust calls.
5827 2020-09-02 Tom Tromey <tromey@adacore.com>
5829 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5831 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5833 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5835 * bcache.h (struct bcache) <insert>: Change type of `added` to
5837 * bcache.c (bcache::insert): Likewise.
5838 * gdbtypes.c (check_types_worklist): Adjust.
5839 * psymtab.c (add_psymbol_to_bcache): Adjust.
5841 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5843 * corelow.c (unordered_set): Include.
5844 (class core_target): Add field 'm_core_unavailable_mappings'.
5845 (core_target::build_file_mappings): Print only one warning
5846 per inaccessible file. Add unavailable/broken mappings
5847 to m_core_unavailable_mappings.
5848 (core_target::xfer_partial): Call...
5849 (core_target::xfer_memory_via_mappings): New method.
5851 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5853 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5856 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5858 * dwarf2/read.c (struct field_info): Fix indentation.
5860 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5862 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5863 ordering in comment.
5864 * frame.c (frame_id_eq): Fix indentation.
5866 2020-08-31 Scott Linder <scott@scottlinder.com>
5867 Simon Marchi <simon.marchi@efficios.com>
5869 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5870 inline frame ids in outer frame.
5872 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5874 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5875 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5876 (outer_frame_id): Use FID_STACK_OUTER instead of
5878 (frame_id_p): Don't check for outer_frame_id.
5880 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5882 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5883 regnum/frame in value. Call allocate_value_lazy.
5884 * frame.c (frame_unwind_register_value): Use
5885 val_print_not_saved.
5887 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5889 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5891 2020-08-29 Pedro Alves <pedro@palves.net>
5893 * progspace.c (print_program_space): Use all_inferiors. Switch to
5894 the inferior before calling target_pid_to_str.
5896 2020-08-28 Tom Tromey <tom@tromey.com>
5898 * xcoffread.c (xcoff_end_psymtab): Update comment.
5899 * dbxread.c (dbx_end_psymtab): Update comment.
5901 2020-08-28 Tom de Vries <tdevries@suse.de>
5904 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5906 (create_breakpoint): Same.
5907 (base_breakpoint_decode_location): Same.
5908 (bkpt_create_sals_from_location): Same.
5909 (bkpt_decode_location): Same.
5910 (bkpt_probe_create_sals_from_location): Same.
5911 (bkpt_probe_decode_location): Same.
5912 (tracepoint_create_sals_from_location): Same.
5913 (tracepoint_decode_location): Same.
5914 (tracepoint_probe_decode_location): Same.
5915 (strace_marker_create_sals_from_location): Same.
5916 (strace_marker_decode_location): Same.
5917 (create_sals_from_location_default): Same.
5918 (decode_location_default): Same.
5919 * breakpoint.h (struct breakpoint_ops): Same.
5920 (create_breakpoint): Same.
5921 * linespec.h (decode_line_full): Same.
5922 * linespec.c (decode_line_full): Same. Throw error if
5923 result.size () == 0.
5925 2020-08-27 Pedro Alves <pedro@palves.net>
5928 * breakpoint.c (until_break_fsm) <location_breakpoint,
5929 caller_breakpoint>: Delete fields.
5930 <breakpoints>: New field.
5931 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5932 two individual breakpoints.
5933 (until_break_fsm::should_stop): Loop over breakpoints in the
5935 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5937 (until_break_command): Handle location expanding into multiple
5940 2020-08-27 Pedro Alves <pedro@palves.net>
5943 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5944 bp_until breakpoints user-specified locations. Update intro
5947 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5949 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5950 gdb_bfd_sections): New.
5951 * maint.c (print_bfd_section_info): Change param type to
5952 maint_print_section_data.
5953 (print_objfile_section_info): Likewise.
5954 (print_bfd_section_info_maybe_relocated): Likewise.
5955 (maintenance_info_sections): Use gdb_bfd_sections.
5957 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5959 * MAINTAINERS: Add ARC target and maintainer.
5961 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5963 * configure.tgt: ARC support for GNU/Linux.
5964 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5965 * arc-linux-tdep.c: New file.
5966 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5967 * arc-tdep.c (arc_write_pc): Use it.
5969 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5971 * arc-tdep.c (arc_check_for_hardware_loop): New.
5972 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5974 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5976 * arc-tdep.h: Include "gdbarch.h".
5978 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5981 (arc_gdbarch_features): New class to stir the selection of target XML.
5982 (arc_create_target_description): Use FEATURES to choose XML target.
5983 (arc_lookup_target_description): Use arc_create_target_description
5984 to create _new_ target descriptions or return the already created
5985 ones if the FEATURES is the same.
5986 * arch/arc.c: Implementation of prototypes described above.
5987 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5988 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5989 * arc-tdep.c (*_feature_name): Make feature names consistent.
5990 (arc_register_feature): A new struct to hold information about
5991 registers of a particular target/feature.
5992 (arc_check_tdesc_feature): Check if XML provides registers in
5993 compliance with ARC_REGISTER_FEATURE structs.
5994 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5995 (determine_*_reg_feature_set): Which feature name to look for.
5996 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5997 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5998 to expected ISA enums to be used in arc_gdbarch_features structs.
5999 * features/Makefile (FEATURE_XMLFILES): Add new files.
6000 * gdb/features/arc/v1-aux.c: New file.
6001 * gdb/features/arc/v1-aux.xml: Likewise.
6002 * gdb/features/arc/v1-core.c: Likewise.
6003 * gdb/features/arc/v1-core.xml: Likewise.
6004 * gdb/features/arc/v2-aux.c: Likewise.
6005 * gdb/features/arc/v2-aux.xml: Likewise.
6006 * gdb/features/arc/v2-core.c: Likewise.
6007 * gdb/features/arc/v2-core.xml: Likewise.
6008 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
6010 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
6011 Andrew Burgess <andrew.burgess@embecosm.com>
6014 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
6015 an assert. Remove single element array indexing pattern as the
6016 MULTI_SUBSCRIPT support will handle this case too.
6018 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
6020 * value.h (valprint_check_validity): Move declaration from
6022 * valprint.h (valprint_check_validity): ... to here.
6024 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6026 * debug.h: New file.
6027 * debug.c (debug_prefixed_vprintf): New function.
6028 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6029 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
6031 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6033 * infrun.h (infrun_debug_printf_1): New function declaration.
6034 (infrun_debug_printf): New macro.
6035 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6037 (infrun_debug_printf): New function.
6038 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6039 (handle_jit_event): Likewise.
6041 2020-08-21 Mark Wielaard <mark@klomp.org>
6043 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6045 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
6047 * frame.c (enum class frame_id_status): New.
6048 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6049 (fprintf_frame): Update.
6050 (compute_frame_id): Set frame id status to "computing" on entry.
6051 Set it back to "not_computed" on failure and to "computed" on
6053 (get_frame_id): Assert the frame id is not being computed.
6054 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6055 (create_new_frame): Likewise.
6056 (frame_cleanup_after_sniffer): Update assert.
6058 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6060 * regcache.c (pid_ptid_regcache_map): New type.
6061 (target_ptid_regcache_map): Remove.
6062 (target_pid_ptid_regcache_map): New type.
6063 (regcaches): Change type to target_pid_ptid_regcache_map.
6064 (get_thread_arch_aspace_regcache): Update.
6065 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6067 (regcaches_size): Update.
6068 (regcache_count): Update.
6069 (registers_changed_ptid_target_pid_test): New.
6070 (_initialize_regcache): Register new test.
6072 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6074 * regcache.c (regcache_count): New.
6075 (struct regcache_test_data): New.
6076 (regcache_test_data_up): New.
6077 (populate_regcaches_for_test): New.
6078 (regcaches_test): Remove.
6079 (get_thread_arch_aspace_regcache_test): New.
6080 (registers_changed_ptid_all_test): New.
6081 (registers_changed_ptid_target_test): New.
6082 (registers_changed_ptid_target_ptid_test): New.
6083 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6084 (_initialize_regcache): Register new tests.
6086 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6088 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6089 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6090 gdbarch and aspace parameter. Use current inferior's aspace.
6091 Validate regcache's arch value.
6092 (regcaches_test): Update.
6094 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6096 * regcache.c (regcaches_test): Call registers_changed.
6098 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6100 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6102 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6104 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6105 to find the end of prologue for flang compiled binaries.
6106 * arm-tdep.c (arm_skip_prologue): Likewise.
6107 * i386-tdep.c (i386_skip_prologue): Likewise.
6108 * producer.c (producer_is_llvm): New function.
6109 (producer_parsing_tests): Added new tests for clang/flang.
6110 * producer.h (producer_is_llvm): New declaration.
6112 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
6114 * linux-nat.c (linux_nat_debug_printf): New function.
6115 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6117 2020-08-18 Aaron Merey <amerey@redhat.com>
6119 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6120 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6121 (CLIBS): Add DEBUGINFOD_LIBS.
6123 2020-08-17 Sergei Trofimovich <siarheit@google.com>
6125 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6128 2020-08-17 Tom Tromey <tromey@adacore.com>
6130 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6131 ada_get_decoded_value returns NULL.
6133 2020-08-17 Tom Tromey <tromey@adacore.com>
6135 * python/py-inferior.c (infpy_search_memory): Use
6136 gdb_py_object_from_ulongest.
6137 * python/py-infevents.c (create_inferior_call_event_object)
6138 (create_memory_changed_event_object): Use
6139 gdb_py_object_from_ulongest.
6140 * python/py-linetable.c (ltpy_entry_get_pc): Use
6141 gdb_py_object_from_ulongest.
6143 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6145 * loc.c (class symbol_needs_eval_context): Fix indentation.
6147 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6149 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6152 2020-08-17 Tom de Vries <tdevries@suse.de>
6155 * gdbtypes.c (dump_dynamic_prop): New function.
6156 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6158 2020-08-15 Tom de Vries <tdevries@suse.de>
6161 * stack.c (print_frame_args): Temporarily set the selected
6162 frame to FRAME while printing the frame's arguments.
6164 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6166 PR breakpoints/26385
6167 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6168 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6170 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6172 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6173 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6174 and >= to check return value instead of == -1 and != -1.
6176 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6178 * utils.h (class gdb_argv) <as_array_view>: New method.
6179 * utils.c (gdb_argv_as_array_view_test): New.
6180 (_initialize_utils): Register selftest.
6181 * maint.c (maintenance_selftest): Use the new method.
6183 2020-08-13 Kamil Rytarowski <n54@gmx.com>
6185 * target.h (supports_dumpcore, dumpcore): New
6186 function declarations.
6187 * target.c (supports_dumpcore, dumpcore): New
6189 * target-delegates.c: Rebuild.
6190 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6191 and target_dumpcore ().
6193 2020-08-13 Aaron Merey <amerey@redhat.com>
6195 * debuginfod-support.c: Replace global variables with user_data.
6197 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6199 * maint.c (maintenance_selftest): Split args and pass array_view
6202 2020-08-12 Luis Machado <luis.machado@linaro.org>
6204 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6206 Use %s and pulongest to print the length.
6208 2020-08-12 Pedro Alves <palves@redhat.com>
6210 * NEWS: Move "Multi-target debugging support" item to the
6211 "Changes since GDB 9" section.
6213 2020-08-12 Pedro Alves <palves@redhat.com>
6216 * progspace.c (program_space::remove_objfile): Invalidate the
6219 2020-08-11 Tom de Vries <tdevries@suse.de>
6221 * MAINTAINERS: Mark ms1 as deleted.
6223 2020-08-10 Luis Machado <luis.machado@linaro.org>
6227 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6229 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6230 movz/str/stur/stp skipping behavior.
6232 2020-08-10 Luis Machado <luis.machado@linaro.org>
6234 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6235 struct user_sve_header instead of struct sve_context.
6237 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6239 * read.h (dwarf2_fetch_die_loc_sect_off,
6240 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6241 `void *` parameter with function_view.
6242 * read.c (dwarf2_fetch_die_loc_sect_off,
6243 dwarf2_fetch_die_loc_cu_off): Likewise.
6244 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6245 (per_cu_dwarf_call): Adjust.
6246 (get_frame_address_in_block_wrapper): Remove.
6247 (indirect_synthetic_pointer): Adjust.
6248 (get_ax_pc): Remove.
6249 (dwarf2_compile_expr_to_ax): Adjust.
6251 2020-08-08 Tom de Vries <tdevries@suse.de>
6254 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6256 * regcache.c (get_thread_arch_aspace_regcache): Same.
6258 2020-08-07 Tom Tromey <tromey@adacore.com>
6260 * ravenscar-thread.c
6261 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6263 (ravenscar_thread_target::wait): Check
6264 runtime_initialized.
6265 (ravenscar_thread_target::prepare_to_store)
6266 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6267 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6268 (ravenscar_thread_target::stopped_by_watchpoint)
6269 (ravenscar_thread_target::stopped_data_address)
6270 (ravenscar_thread_target::core_of_thread): Use
6271 scoped_restore_current_thread and
6272 set_base_thread_from_ravenscar_task.
6274 2020-08-07 Tom Tromey <tromey@adacore.com>
6276 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6278 2020-08-07 Tom Tromey <tromey@adacore.com>
6280 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6281 update_inferior_ptid before update_thread_list.
6282 (temporarily_change_regcache_ptid): New class.
6283 (ravenscar_thread_target::fetch_registers)
6284 (ravenscar_thread_target::store_registers)
6285 (ravenscar_thread_target::prepare_to_store): Use base thread when
6286 forwarding operation.
6288 2020-08-07 Tom Tromey <tromey@adacore.com>
6290 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6293 2020-08-07 Tom Tromey <tromey@adacore.com>
6295 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6297 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6299 (ravenscar_thread_target::add_thread): Rename from
6300 ravenscar_add_thread.
6301 (ravenscar_thread_target::update_thread_list): Use a lambda.
6302 (ravenscar_thread_target::xfer_partial): New method.
6304 2020-08-07 Tom Tromey <tromey@adacore.com>
6306 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6308 (iterate_over_live_ada_tasks): Change type of argument.
6309 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6312 2020-08-07 Tom Tromey <tromey@adacore.com>
6314 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6316 (ravenscar_thread_target::extra_thread_info): Remove.
6317 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6318 defer to target beneath for non-Ravenscar threads.
6320 2020-08-07 Tom Tromey <tromey@adacore.com>
6322 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6323 get_base_thread_from_ravenscar_task>: Now methods.
6324 <m_cpu_map>: New member.
6325 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6326 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6327 (ravenscar_thread_target::task_is_currently_active): Update.
6328 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6330 (ravenscar_thread_target::add_active_thread): Put initial thread
6333 2020-08-07 Tom Tromey <tromey@adacore.com>
6335 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6338 2020-08-07 Tom Tromey <tromey@adacore.com>
6340 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6341 runtime_initialized.
6343 2020-08-07 Tom Tromey <tromey@adacore.com>
6345 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6347 (ravenscar_thread_target::add_active_thread): Now public.
6348 (ravenscar_inferior_created): Call add_active_thread after pushing
6351 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6353 * regcache.c (ptid_regcache_map): New type.
6354 (target_ptid_regcache_map): New type.
6355 (regcaches): Change type to target_ptid_regcache_map.
6356 (get_thread_arch_aspace_regcache): Update to regcaches' new
6358 (regcache_thread_ptid_changed): Likewise.
6359 (registers_changed_ptid): Likewise.
6360 (regcaches_size): Likewise.
6361 (regcaches_test): Update.
6362 (regcache_thread_ptid_changed): Update.
6363 * regcache.h (regcache_up): New type.
6364 * gdbsupport/ptid.h (hash_ptid): New struct.
6366 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6368 * observable.h (thread_ptid_changed): Add parameter
6369 `process_stratum_target *`.
6370 * infrun.c (infrun_thread_ptid_changed): Add parameter
6371 `process_stratum_target *` and use it.
6372 (selftests): New namespace.
6373 (infrun_thread_ptid_changed): New function.
6374 (_initialize_infrun): Register selftest.
6375 * regcache.c (regcache_thread_ptid_changed): Add parameter
6376 `process_stratum_target *` and use it.
6377 (regcache_thread_ptid_changed): New function.
6378 (_initialize_regcache): Register selftest.
6379 * thread.c (thread_change_ptid): Pass target to
6380 thread_ptid_changed observable.
6382 2020-08-06 Caroline Tice <cmtice@google.com>
6384 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6385 (struct dwp_sections): Update field comments. Add loclists and
6387 (struct virtual_v2_dwo_sections): Rename struct to
6388 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6389 size & offset fields for loclists and rnglists.
6390 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6391 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6392 skipping dummy type units.
6393 (create_dwp_hash_table): Update the large comment above the function to
6394 discuss Version 5 DWP files as well, with references. Update all the
6395 version checks in the function to check for version 5 as well. Add new
6396 section at the end to create dwp hash table for version 5.
6397 (create_dwp_v2_section): Rename function to
6398 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6399 Add V5 to error message text.
6400 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6401 into calls to create_dwp_v2_or_v5_section.
6402 (create_dwo_unit_in_dwp_v5): New function.
6403 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6404 check for version2; add else clause to handle version 5.
6405 (open_and_init_dwo_file): Add code to check dwarf version & only call
6406 create_debug_types_hash_table (with sections.types) if version is not 5;
6407 else call create_debug_type_hash_table, with sections.info.
6408 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6410 (dwarf2_locate_v5_dwp_sections): New function.
6411 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6412 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6414 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6416 * regcache.h (class regcache): Remove friend
6417 registers_changed_ptid.
6418 <regcache_thread_ptid_changed>: Remove.
6419 <regcaches>: Remove.
6420 * regcache.c (regcache::regcaches): Rename to...
6421 (regcaches): ... this. Make static.
6422 (get_thread_arch_aspace_regcache): Update.
6423 (regcache::regcache_thread_ptid_changed): Rename to...
6424 (regcache_thread_ptid_changed): ... this. Update.
6425 (class regcache_access): Remove.
6426 (regcaches_test): Update.
6427 (_initialize_regcache): Update.
6428 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6431 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6433 * regcache.h (class regcache) <current_regcache>: Rename to...
6434 <regcaches>: ... this. Move doc here.
6435 * regcache.c (regcache::current_regcache) Rename to...
6436 (regcache::regcaches): ... this. Move doc to header.
6437 (get_thread_arch_aspace_regcache): Update.
6438 (regcache::regcache_thread_ptid_changed): Update.
6439 (registers_changed_ptid): Update.
6440 (class regcache_access) <current_regcache_size>: Rename to...
6441 <regcaches_size>: ... this.
6442 (current_regcache_test): Rename to...
6443 (regcaches_test): ... this.
6444 (_initialize_regcache): Update.
6446 2020-08-06 Victor Collod <vcollod@nvidia.com>
6448 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6450 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6452 * corelow.c (core_target::build_file_mappings): Don't output
6453 null pathname in warning.
6455 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6457 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6458 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6459 gdb.dwarf2/dw2-single-line-discriminators.exp,
6460 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6462 2020-08-05 Tom Tromey <tromey@adacore.com>
6465 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6466 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6467 Fix off-by-one and type size errors in ordinary case.
6469 2020-08-05 Tom de Vries <tdevries@suse.de>
6471 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6472 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6474 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6476 * frame.h (frame_id_p): Return bool.
6477 (frame_id_artificial_p): Return bool.
6478 (frame_id_eq): Return bool.
6479 (has_stack_frames): Return bool.
6480 (get_selected_frame): Fix typo in comment.
6481 (get_frame_pc_if_available): Return bool.
6482 (get_frame_address_in_block_if_available): Return bool.
6483 (get_frame_func_if_available): Return bool.
6484 (read_frame_register_unsigned): Return bool.
6485 (get_frame_register_bytes): Return bool.
6486 (safe_frame_unwind_memory): Return bool.
6487 (deprecated_frame_register_read): Return bool.
6488 (frame_unwinder_is): Return bool.
6489 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6491 <this_id::p>: Likewise.
6493 (frame_stash_add): Return bool.
6494 (get_frame_id): Use bool.
6495 (frame_id_build_special) Use bool.
6496 (frame_id_build_unavailable_stack): Use bool.
6497 (frame_id_build): Use bool.
6498 (frame_id_p): Return bool, use true/false instead of 1/0.
6499 (frame_id_artificial_p): Likewise.
6500 (frame_id_eq): Likewise.
6501 (frame_id_inner): Likewise.
6502 (get_frame_func_if_available): Likewise.
6503 (read_frame_register_unsigned): Likewise.
6504 (deprecated_frame_register_read): Likewise.
6505 (get_frame_register_bytes): Likewise.
6506 (has_stack_frames): Likewise.
6507 (inside_main_func): Likewise.
6508 (inside_entry_func): Likewise.
6509 (get_frame_pc_if_available): Likewise.
6510 (get_frame_address_in_block_if_available): Likewise.
6511 (frame_unwinder_is): Likewise.
6512 (safe_frame_unwind_memory): Likewise.
6513 (frame_unwind_arch): Likewise.
6515 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6517 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6518 type to cached_copy_status.
6519 (fprintf_frame): Adjust.
6520 (get_frame_func_if_available): Adjust.
6521 (frame_cleanup_after_sniffer): Adjust.
6523 2020-08-04 Mark Wielaard <mark@klomp.org>
6525 * MAINTAINERS (Write After Approval): Update email address.
6527 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6529 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6530 dynamic_prop::const_val.
6532 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6534 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6537 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6539 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6541 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6543 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6545 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6546 Jose E. Marchesi <jose.marchesi@oracle.com>
6548 * configure.tgt: Add entry for bpf-*-*.
6549 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6550 (ALLDEPFILES): Add bpf-tdep.c.
6551 * bpf-tdep.c: New file.
6552 * MAINTAINERS: Add bpf target and maintainer.
6553 * NEWS: Mention the support for the new target.
6555 2020-08-04 Tom de Vries <tdevries@suse.de>
6558 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6561 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6563 * syscalls/freebsd.xml: Regenerate.
6565 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6567 * syscalls/update-freebsd.sh: Fix usage and year range.
6569 2020-08-03 Tom de Vries <tdevries@suse.de>
6572 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6573 DW_LNE_lo_user/DW_LNE_hi_user range.
6575 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6578 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6581 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6583 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6585 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6587 * breakpoint.c (set_breakpoint_condition): Update the condition
6588 expressions after checking that the input condition string parses
6589 successfully and does not contain junk at the end.
6591 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6593 * breakpoint.c (set_breakpoint_condition): Update the
6594 condition string after parsing the new condition successfully.
6596 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6598 * proc-api.c (_STRUCTURED_PROC): Don't define.
6599 * proc-events.c: Likewise.
6600 * proc-flags.c: Likewise.
6601 * proc-why.c: Likewise.
6602 * procfs.c: Likewise.
6604 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6605 * configure, config.in: Regenerate.
6607 2020-07-30 Tom de Vries <tdevries@suse.de>
6610 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6611 m_red/m_green/m_blue in a union.
6613 2020-07-29 Tom de Vries <tdevries@suse.de>
6616 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6618 2020-07-28 Tom Tromey <tromey@adacore.com>
6621 * symtab.h (find_pc_partial_function_sym): Declare.
6622 * cli/cli-cmds.c (disassemble_command): Use
6623 find_pc_partial_function_sym. Check asm_demangle.
6624 * blockframe.c (cache_pc_function_sym): New global.
6625 (cache_pc_function_name): Remove.
6626 (clear_pc_function_cache): Update.
6627 (find_pc_partial_function_sym): New function, from
6628 find_pc_partial_function.
6629 (find_pc_partial_function): Rewrite using
6630 find_pc_partial_function_sym.
6632 2020-07-28 Tom Tromey <tromey@adacore.com>
6634 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6637 2020-07-28 Tom Tromey <tromey@adacore.com>
6639 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6640 <DW_OP_GNU_variable_value>: Cast to address type.
6642 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6644 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6645 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6646 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6647 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6648 (nbsd_get_siginfo_type): New.
6649 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6650 (_initialize_nbsd_tdep): New.
6652 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6655 * configure: Regenerated.
6657 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6660 * configure: Regenerated.
6662 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6664 * python/py-frame.c: Remove 'user-regs.h' include.
6665 (frapy_read_register): Rewrite to make use of
6666 gdbpy_parse_register_id.
6667 * python/py-registers.c (gdbpy_parse_register_id): New function,
6668 moved here from python/py-unwind.c. Updated the return type, and
6669 also accepts register descriptor objects.
6670 * python/py-unwind.c: Remove 'user-regs.h' include.
6671 (pyuw_parse_register_id): Moved to python/py-registers.c.
6672 (unwind_infopy_add_saved_register): Update to use
6673 gdbpy_parse_register_id.
6674 (pending_framepy_read_register): Likewise.
6675 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6677 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6679 * python/py-registers.c: Add 'user-regs.h' include.
6680 (register_descriptor_iter_find): New function.
6681 (register_descriptor_iterator_object_methods): New static global
6683 (register_descriptor_iterator_object_type): Add pointer to methods
6686 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6688 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6689 for all architectures on FreeBSD 11.3 and later.
6691 2020-07-27 Tom Tromey <tromey@adacore.com>
6693 * gcore.h (load_corefile): Don't declare.
6695 2020-07-27 Tom de Vries <tdevries@suse.de>
6697 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6698 * config.in: Regenerate.
6699 * configure: Regenerate.
6701 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6703 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6704 ws2tcpip.h. When checking whether socklen_t type is defined, use
6705 ws2tcpip.h if it is available and sys/socket.h isn't.
6706 * configure: Regenerate.
6707 * config.in: Regenerate.
6709 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6713 * valops.c (value_ind): Pass address to
6714 readjust_indirect_value_type.
6715 * value.c (readjust_indirect_value_type): Make parameter
6716 non-const, and add extra address parameter. Resolve original type
6718 * value.h (readjust_indirect_value_type): Update function
6719 signature and comment.
6721 2020-07-25 Tom de Vries <tdevries@suse.de>
6724 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6727 2020-07-24 Aaron Merey <amerey@redhat.com>
6729 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6730 * configure: Rebuild.
6732 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6735 * corelow.c (_initialize_corelow): Add period to help text
6736 for "maintenance print core-file-backed-mappings".
6738 2020-07-23 Pedro Alves <pedro@palves.net>
6740 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6741 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6743 * frame.c (frame_cache_generation, get_frame_cache_generation):
6745 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6746 (get_prev_frame_if_no_cycle): On exception, don't touch
6747 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6748 * frame.h (get_frame_cache_generation): Declare.
6750 2020-07-23 Tom de Vries <tdevries@suse.de>
6753 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6754 New default constructor.
6756 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6758 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6759 exclude non-statement entries.
6761 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6763 * NEWS (New commands): Mention new command
6764 "maintenance print core-file-backed-mappings".
6766 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6768 * corelow.c (gdbcmd.h): Include.
6769 (core_target::info_proc_mappings): New method.
6770 (get_current_core_target): New function.
6771 (maintenance_print_core_file_backed_mappings): New function.
6772 (_initialize_corelow): Add core-file-backed-mappings to
6773 "maint print" commands.
6775 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6777 * linux-tdep.c (dump_note_entry_p): New function.
6778 (linux_dump_mapping_p_ftype): New typedef.
6779 (linux_find_memory_regions_full): Add new parameter,
6780 should_dump_mapping_p.
6781 (linux_find_memory_regions): Adjust call to
6782 linux_find_memory_regions_full.
6783 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6784 call to linux_find_memory_regions_full.
6786 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6788 * corelow.c (solist.h, unordered_map): Include.
6789 (class core_target): Add field m_core_file_mappings and
6790 method build_file_mappings.
6791 (core_target::core_target): Call build_file_mappings.
6792 (core_target::~core_target): Free memory associated with
6793 m_core_file_mappings.
6794 (core_target::build_file_mappings): New method.
6795 (core_target::xfer_partial): Use m_core_file_mappings
6796 for memory transfers.
6797 * linux-tdep.c (linux_read_core_file_mappings): New
6799 (linux_core_info_proc_mappings): Rewrite to use
6800 linux_read_core_file_mappings.
6801 (linux_init_abi): Register linux_read_core_file_mappings.
6803 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6805 * arch-utils.c (default_read_core_file_mappings): New function.
6806 * arch-utils.c (default_read_core_file_mappings): Declare.
6807 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6808 * gdbarch.h, gdbarch.c: Regenerate.
6810 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6813 * corelow.c (core_target:xfer_partial): Revise
6814 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6815 case after first checking the stratum beneath the core
6817 (has_all_memory): Return true.
6818 * target.c (raw_memory_xfer_partial): Revise comment
6819 regarding use of has_all_memory.
6821 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6823 * exec.h (section_table_xfer_memory): Revise declaration,
6824 replacing section name parameter with an optional callback
6826 * exec.c (section_table_xfer_memory): Likewise.
6827 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6828 of section_table_xfer_memory.
6830 2020-07-22 Tom Tromey <tromey@adacore.com>
6832 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6833 lookup_symbol_search_name.
6835 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6837 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6838 redundant local variable.
6839 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6840 reference, not pointer, update code accordingly.
6842 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6843 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6845 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6846 * jit.c (jit_breakpoint_re_set_internal): Use the
6847 `skip_jit_symbol_lookup` field.
6849 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6850 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6852 * jit.c (jit_read_descriptor): Define the descriptor address once,
6854 (jit_breakpoint_deleted): Move the declaration of the loop variable
6855 `iter` into the loop header.
6856 (jit_breakpoint_re_set_internal): Move the declaration of the local
6857 variable `objf_data` to the first point of definition.
6858 (jit_event_handler): Move the declaration of local variables
6859 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6860 Rename `objf` to `jited`.
6862 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6864 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6866 * jit.c (get_jiter_objfile_data): Update.
6868 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6869 Simon Marchi <simon.marchi@polymtl.ca>
6871 * jit.c (struct jit_program_space_data): Remove.
6872 (jit_program_space_key): Remove.
6873 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6875 (get_jit_program_space_data): Remove.
6876 (jit_breakpoint_deleted): Iterate on all of the program space's
6878 (jit_inferior_init): Likewise.
6879 (jit_breakpoint_re_set_internal): Likewise. Also change return
6881 (jit_breakpoint_re_set): Pass current_program_space to
6882 jit_breakpoint_re_set_internal.
6884 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6886 * jit.h (struct jiter_objfile_data) <cached_code_address,
6887 jit_breakpoint>: Move to here from ...
6888 * jit.c (jit_program_space_data): ... here.
6889 (jiter_objfile_data::~jiter_objfile_data): Update.
6890 (jit_breakpoint_deleted): Update.
6891 (jit_breakpoint_re_set_internal): Update.
6893 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6895 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6897 (jit_read_descriptor): Remove NULL check.
6898 (jit_event_handler): Add an assertion.
6900 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6902 * jit.h (struct jit_objfile_data): Split into...
6903 (struct jiter_objfile_data): ... this ...
6904 (struct jited_objfile_data): ... and this.
6905 * objfiles.h (struct objfile) <jit_data>: Remove.
6906 <jiter_data, jited_data>: New fields.
6907 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6908 (jiter_objfile_data::~jiter_objfile_data): ... this.
6909 (get_jit_objfile_data): Rename to ...
6910 (get_jiter_objfile_data): ... this.
6911 (add_objfile_entry): Update.
6912 (jit_read_descriptor): Use get_jiter_objfile_data.
6913 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6914 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6915 (jit_inferior_exit_hook): Use objfile's jited_data field.
6917 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6919 * jit.h: Forward-declare `struct minimal_symbol`.
6920 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6921 constructor, destructor, and an objfile* field.
6922 * jit.c (jit_objfile_data): Remove.
6923 (struct jit_objfile_data): Migrate from here to jit.h.
6924 (jit_objfile_data::~jit_objfile_data): New destructor
6925 implementation with code moved from free_objfile_data.
6926 (free_objfile_data): Delete.
6927 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6928 (jit_find_objf_with_entry_addr): Ditto.
6929 (jit_inferior_exit_hook): Ditto.
6930 (_initialize_jit): Remove the call to
6931 register_objfile_data_with_cleanup.
6932 * objfiles.h (struct objfile) <jit_data>: New field.
6934 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6936 * jit.h: Forward-declare `struct objfile`.
6937 (jit_event_handler): Add a second parameter, the JITer objfile.
6938 * jit.c (jit_read_descriptor): Change the signature to take the
6939 JITer objfile as an argument instead of the jit_program_space_data.
6940 (jit_inferior_init): Update the call to jit_read_descriptor.
6941 (jit_event_handler): Use the new JITer objfile argument when calling
6942 jit_read_descriptor.
6943 * breakpoint.c (handle_jit_event): Update the call to
6944 jit_event_handler to pass the JITer objfile.
6946 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6948 * gdbarch.c: Regenerate.
6949 * gdbarch.h: Regenerate.
6950 * gdbarch.sh (handle_segmentation_fault): Remove method.
6951 * infrun.c (handle_segmentation_fault): Remove.
6952 (print_signal_received_reason): Remove call to
6953 handle_segmentation_fault.
6955 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6957 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6958 Rename to sparc64_linux_report_signal_info and add siggnal
6960 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6961 instead of sparc64_linux_handle_segmentation_fault.
6963 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6965 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6966 i386_linux_report_signal_info instead of
6967 i386_linux_handle_segmentation_fault.
6968 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6969 to i386_linux_report_signal_info and add siggnal argument.
6970 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6971 of i386_linux_handle_segmentation_fault.
6972 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6973 to i386_linux_report_signal_info and add siggnal argument.
6975 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6977 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6980 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6982 * gdbarch.c: Regenerate.
6983 * gdbarch.h: Regenerate.
6984 * gdbarch.sh (report_signal_info): New method.
6985 * infrun.c (print_signal_received_reason): Invoke gdbarch
6986 report_signal_info hook if present.
6988 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6990 * python/py-registers.c : Add 'unordered_map' include.
6991 (gdbpy_new_reggroup): Renamed to...
6992 (gdbpy_get_reggroup): ...this. Update to only create register
6993 group descriptors when needed.
6994 (gdbpy_reggroup_iter_next): Update.
6996 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6998 * python/py-registers.c (gdbpy_register_object_data): New static
7000 (gdbpy_register_object_data_init): New function.
7001 (gdbpy_new_register_descriptor): Renamed to...
7002 (gdbpy_get_register_descriptor): ...this, and update to reuse
7003 existing register descriptors where possible.
7004 (gdbpy_register_descriptor_iter_next): Update.
7005 (gdbpy_initialize_registers): Register new gdbarch data.
7007 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
7009 * linux-nat.c (stopped_pids): Make static.
7011 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
7014 * gdbtypes.c (ada_discrete_type_low_bound,
7015 ada_discrete_type_high_bound): Handle undefined bounds.
7017 2020-07-21 Kamil Rytarowski <n54@gmx.com>
7019 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
7021 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
7024 2020-07-20 John Baldwin <jhb@FreeBSD.org>
7026 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
7027 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
7028 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
7029 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7030 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7033 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7035 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7036 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7037 which are deprecated in Guile 3.0.
7038 * configure.ac (try_guile_versions): Add "guile-3.0".
7039 * configure (try_guile_versions): Regenerate.
7040 * NEWS: Update entry.
7042 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7043 Doug Evans <dje@google.com>
7046 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7047 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7048 USING_GUILE_BEFORE_2_2.
7049 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7050 Change type to 'scm_t_port_type *'.
7051 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7052 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7053 parameter and honor it. Update callers.
7054 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7055 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7057 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7058 USING_GUILE_BEFORE_2_2.
7059 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7060 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7061 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7062 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7063 and 'SCM_PORT_TYPE'.
7064 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7065 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7066 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7067 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7068 [!USING_GUILE_BEFORE_2_2]: New functions.
7069 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7070 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7071 'gdbscm_memory_port_read'.
7072 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7073 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7074 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7076 (ioscm_init_memory_port): Remove.
7077 (ioscm_init_memory_port_stream): New function
7078 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7080 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7081 Return scm_from_uint (0).
7082 (gdbscm_set_memory_port_read_buffer_size_x)
7083 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7084 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7085 Return scm_from_uint (0).
7086 (gdbscm_set_memory_port_write_buffer_size_x)
7087 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7088 * configure.ac (try_guile_versions): Add "guile-2.2".
7089 * configure: Regenerate.
7092 2020-07-18 Tom Tromey <tom@tromey.com>
7094 * linux-nat.c (linux_multi_process): Remove.
7095 (linux_nat_target::supports_multi_process): Return true.
7097 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7099 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7100 (riscv_lookup_target_description): Return pointer out of
7102 * target-descriptions.c (allocate_target_description): Add
7104 (target_desc_deleter::operator()): Likewise.
7105 * target-descriptions.h (struct target_desc_deleter): Moved to
7107 (target_desc_up): Likewise.
7109 2020-07-17 Tom Tromey <tromey@adacore.com>
7111 * linux-nat.c (linux_nat_target::supports_non_stop)
7112 (linux_nat_target::always_non_stop_p): Use "true".
7113 (linux_nat_target::supports_disable_randomization): Use "true" and
7116 2020-07-16 Caroline Tice <cmtice@google.com>
7118 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7119 (RNGLIST_HEADER_SIZE64): New constant definition.
7120 (struct dwop_section_names): Add rnglists_dwo.
7121 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7122 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7123 (struct dwo_sections): Add rnglists field.
7124 (read_attribut_reprocess): Add tag parameter.
7125 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7126 (cu_debug_rnglists_section): New function (decl & definition).
7127 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7128 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7129 die whose range is being checked; get rnglist section from
7130 cu_debug_rnglists_section, to get from either objfile or dwo file as
7131 appropriate. Add cases for DW_RLE_base_addressx,
7132 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7133 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7134 test inside if-condition and updating complaint message.
7135 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7136 dwarf2_rnglists_process.
7137 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7138 dwarf2_ranges_process.
7139 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7140 need_ranges_base and update comment appropriately. Also pass die tag
7141 to dwarf2_ranges_read.
7142 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7143 need_ranges_base and update comment appropriately. Also pass die tag
7144 to dwarf2_ranges_process.
7145 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7146 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7147 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7148 need_ranges_base and update comment appropriately. Also pass die tag
7149 to read_attribute_reprocess and dwarf2_ranges_read.
7150 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7151 and update function comment appropriately.
7152 (read_loclist_index): Call read_loclists_rnglists_header instead of
7153 read_loclist_header.
7154 (read_rnglist_index): New function.
7155 (read_attribute_reprocess): Add tag parameter. Add code for
7156 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7157 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7159 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7161 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7164 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7166 * arch-utils.c (show_architecture): Update formatting of messages.
7168 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7170 * gdbtypes.h (struct type) <bounds>: Handle array and string
7172 * ada-lang.c (assign_aggregate): Use type::bounds on
7174 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7175 * c-varobj.c (c_number_of_children): Likewise.
7176 (c_describe_child): Likewise.
7177 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7178 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7179 (f_type_print_base): Likewise.
7180 * f-valprint.c (f77_array_offset_tbl): Likewise.
7181 (f77_get_upperbound): Likewise.
7182 (f77_print_array_1): Likewise.
7183 * guile/scm-type.c (gdbscm_type_range): Likewise.
7184 * m2-typeprint.c (m2_array): Likewise.
7185 (m2_is_long_set_of_type): Likewise.
7186 * m2-valprint.c (get_long_set_bounds): Likewise.
7187 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7188 * python/py-type.c (typy_range): Likewise.
7189 * rust-lang.c (rust_internal_print_type): Likewise.
7190 * type-stack.c (type_stack::follow_types): Likewise.
7191 * valarith.c (value_subscripted_rvalue): Likewise.
7192 * valops.c (value_cast): Likewise.
7194 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7196 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7197 callers to use the equivalent accessor methods.
7199 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7201 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7202 (struct type) <bit_stride>: New method.
7203 (TYPE_BIT_STRIDE): Remove.
7204 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7206 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7208 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7209 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7210 callers to use the equivalent accessor methods instead.
7212 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7214 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7215 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7216 callers to use the equivalent accessor methods instead.
7218 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7220 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7221 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7222 to use dynamic_prop::kind.
7224 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7226 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7227 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7228 to get the bound property's kind and check against
7231 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7233 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7234 all callers to use type::range_bounds followed by
7235 dynamic_prop::{low,high}.
7237 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7239 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7240 const_val, set_const_val, baton, set_locexpr, set_loclist,
7241 set_addr_offset, variant_parts, set_variant_parts,
7242 original_type, set_original_type>: New methods.
7243 <kind>: Rename to...
7244 <m_kind>: ... this. Update all users to use the new methods
7246 <data>: Rename to...
7247 <m_data>: ... this. Update all users to use the new methods
7250 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7252 * gdbtypes.c (get_discrete_bounds): Return failure if
7253 the range type's bounds are not both defined and constant
7255 (get_array_bounds): Update comment. Remove undefined bound check.
7257 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7259 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7260 the type::bounds method directly.
7262 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7264 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7265 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7266 are used to set the range type's bounds to use set_bounds.
7268 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7270 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7272 2020-07-10 Pedro Alves <pedro@palves.net>
7274 * gdbthread.h (inferior_ref): Define.
7275 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7276 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7278 (scoped_restore_current_thread::restore):
7279 Adjust to gdb::ref_ptr.
7280 (scoped_restore_current_thread::~scoped_restore_current_thread):
7281 Remove manual decref handling.
7282 (scoped_restore_current_thread::scoped_restore_current_thread):
7284 inferior_ref::new_reference/thread_info_ref::new_reference.
7285 Incref the thread before calling get_frame_id instead of after.
7286 Let TARGET_CLOSE_ERROR propagate.
7288 2020-07-10 Pedro Alves <pedro@palves.net>
7290 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7291 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7292 NOT_AVAILABLE_ERROR.
7293 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7294 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7296 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7297 Pedro Alves <pedro@palves.net>
7300 * infrun.c (threads_are_resumed_pending_p): Delete.
7301 (do_target_wait): Remove threads_are_executing and
7302 threads_are_resumed_pending_p checks from the inferior_matches
7303 lambda. Update comments.
7305 2020-07-10 Pedro Alves <pedro@palves.net>
7308 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7311 2020-07-10 Pedro Alves <pedro@palves.net>
7314 * infrun.c (handle_no_resumed): Handle multiple targets.
7316 2020-07-10 Pedro Alves <pedro@palves.net>
7319 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7322 2020-07-10 Pedro Alves <pedro@palves.net>
7325 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7326 threads, not all threads.
7328 2020-07-10 Pedro Alves <pedro@palves.net>
7331 * remote.c (remote_target::open_1): Pass remote target pointer as
7332 data to create_async_event_handler.
7333 (remote_async_inferior_event_handler): Mark async event handler
7334 before returning if the remote target still has either pending
7335 events or unacknowledged notifications.
7337 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7339 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7341 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7344 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7346 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7349 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7351 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7352 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7353 AT_FREEBSD_PS_STRINGS.
7355 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7357 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7358 of debugfile path on Windows.
7360 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7362 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7365 2020-07-08 Tom Tromey <tromey@adacore.com>
7367 * ada-lang.c (ada_exception_message_1): Use read_memory.
7369 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7372 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7373 special handling for inline frames.
7374 * findvar.c (value_of_register_lazy): Skip inline frames when
7375 creating lazy register values.
7376 * frame.c (frame_id_computed_p): Delete definition.
7377 * frame.h (frame_id_computed_p): Delete declaration.
7379 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7381 * NEWS: Mention additions to Python API.
7382 * python/py-arch.c (archpy_register_groups): New function.
7383 (arch_object_methods): Add 'register_groups' method.
7384 * python/py-registers.c (reggroup_iterator_object): New struct.
7385 (reggroup_object): New struct.
7386 (gdbpy_new_reggroup): New function.
7387 (gdbpy_reggroup_to_string): New function.
7388 (gdbpy_reggroup_name): New function.
7389 (gdbpy_reggroup_iter): New function.
7390 (gdbpy_reggroup_iter_next): New function.
7391 (gdbpy_new_reggroup_iterator): New function
7392 (gdbpy_initialize_registers): Register new types.
7393 (reggroup_iterator_object_type): Define new Python type.
7394 (gdbpy_reggroup_getset): New static global.
7395 (reggroup_object_type): Define new Python type.
7396 * python/python-internal.h
7398 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7400 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7401 * python/py-arch.c (archpy_registers): New function.
7402 (arch_object_methods): Add 'registers' method.
7403 * python/py-registers.c: New file.
7404 * python/python-internal.h
7405 (gdbpy_new_register_descriptor_iterator): Declare.
7406 (gdbpy_initialize_registers): Declare.
7407 * python/python.c (do_start_initialization): Call
7408 gdbpy_initialize_registers.
7409 * NEWS: Mention additions to the Python API.
7411 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7413 * NEWS: Mention new Python API method.
7414 * python/py-unwind.c (pending_framepy_architecture): New function.
7415 (pending_frame_object_methods): Add architecture method.
7417 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7419 * gdbarch.c: Regenerate.
7420 * gdbarch.h: Regenerate.
7421 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7422 (gdbarch_data): Use internal_error for the case where
7423 deprecated_set_gdbarch_data was originally needed.
7424 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7425 and use passed in obstack.
7426 (libunwind_frame_set_descr): Should no longer get back NULL from
7428 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7430 * user-regs.c (user_regs_init): Update parameters, and use passed
7432 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7433 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7435 2020-07-06 Tom de Vries <tdevries@suse.de>
7437 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7438 End-Of-Sequence in lte_is_less_than.
7439 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7440 "gdb: Don't reorder line table entries too much when sorting".
7442 2020-07-06 Tom de Vries <tdevries@suse.de>
7445 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7447 2020-07-05 Tom de Vries <tdevries@suse.de>
7450 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7451 std::uncaught_exceptions instead of deprecated
7452 std::uncaught_exception.
7454 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7456 * macroexp.h (macro_stringify): Return
7457 gdb::unique_xmalloc_ptr<char>.
7458 * macroexp.c (macro_stringify): Likewise.
7459 * macrotab.c (fixup_definition): Update.
7461 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7463 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7464 (lex_one_token): Update.
7465 * macroexp.c (struct macro_buffer) <release>: Return
7466 gdb::unique_xmalloc_ptr<char>.
7467 (macro_stringify): Update.
7468 (macro_expand): Update.
7469 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7470 * macroexp.h (macro_expand_next): Likewise.
7472 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7474 * macroexp.h (macro_lookup_ftype): Remove.
7475 (macro_expand, macro_expand_once, macro_expand_next): Remove
7476 lookup function parameters, add scope parameter.
7477 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7478 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7479 * macroscope.h (standard_macro_lookup): Change parameter type
7481 * macroscope.c (standard_macro_lookup): Likewise.
7482 * c-exp.y (lex_one_token): Update.
7483 * macrocmd.c (macro_expand_command): Likewise.
7484 (macro_expand_once_command): Likewise.
7486 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7488 * inf-loop.c (inferior_event_handler): Remove client_data param.
7489 * inf-loop.h (inferior_event_handler): Likewise.
7490 * infcmd.c (step_1): Adjust.
7491 * infrun.c (proceed): Adjust.
7492 (fetch_inferior_event): Remove client_data param.
7493 (infrun_async_inferior_event_handler): Adjust.
7494 * infrun.h (fetch_inferior_event): Remove `void *` param.
7495 * linux-nat.c (handle_target_event): Adjust.
7496 * record-btrace.c (record_btrace_handle_async_inferior_event):
7498 * record-full.c (record_full_async_inferior_event_handler):
7500 * remote.c (remote_async_inferior_event_handler): Adjust.
7502 2020-07-01 Tom Tromey <tom@tromey.com>
7504 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7505 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7507 2020-07-01 Tom Tromey <tom@tromey.com>
7509 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7511 (tui_win_info::make_window): Merge with
7512 tui_gen_win_info::make_window.
7513 (tui_win_info::make_visible): Move from tui_gen_win_info.
7514 * tui/tui-win.c (tui_win_info::max_width): Move from
7516 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7518 <window_factory>: Likewise.
7519 * tui/tui-layout.c (tui_win_info::resize): Move from
7521 (make_standard_window): Change return type.
7522 (get_locator_window, tui_get_window_by_name): Likewise.
7523 (tui_layout_window::apply): Remove a cast.
7524 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7525 (struct tui_win_info): Merge with tui_gen_win_info.
7526 (struct tui_gen_win_info): Remove.
7528 2020-07-01 Tom Tromey <tom@tromey.com>
7530 * tui/tui-stack.h (struct tui_locator_window): Derive from
7532 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7533 <can_box>: New method.
7535 2020-07-01 Tom Tromey <tom@tromey.com>
7537 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7539 2020-07-01 Tom Tromey <tom@tromey.com>
7541 * tui/tui-regs.c (tui_data_window::display_registers_from)
7542 (tui_data_window::display_registers_from)
7543 (tui_data_window::first_data_item_displayed)
7544 (tui_data_window::delete_data_content_windows): Update.
7545 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7547 (tui_data_window::check_register_values): Update.
7548 (tui_data_item_window::rerender): Add parameters. Update.
7549 (tui_data_item_window::refresh_window): Remove.
7550 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7552 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7554 <refresh_window, max_height, min_height>: Remove.
7555 <rerender>: Add parameters.
7556 <x, y, visible>: New members.
7557 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7558 <m_item_width>: New member.
7560 2020-07-01 Tom Tromey <tom@tromey.com>
7562 * tui/tui-regs.c (tui_data_window::show_register_group)
7563 (tui_data_window::check_register_values): Update.
7564 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7567 2020-07-01 Tom Tromey <tom@tromey.com>
7569 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7572 2020-07-01 Tom Tromey <tom@tromey.com>
7574 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7575 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7577 2020-07-01 Tom Tromey <tom@tromey.com>
7579 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7580 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7581 (struct tui_line_or_address): Move from tui-data.h.
7582 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7583 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7584 (tui_cmd_window, tui_source_window_base, tui_source_window)
7585 (tui_disasm_window): Don't declare.
7586 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7588 (SINGLE_KEY): Move to tui-stack.c.
7590 2020-07-01 Tom Tromey <tom@tromey.com>
7592 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7594 * tui/tui-regs.c (class tab_expansion_file): New.
7595 (tab_expansion_file::write): New method.
7596 (tui_register_format): Change return type. Use
7598 (tui_get_register, tui_data_window::display_registers_from)
7599 (tui_data_item_window::rerender): Update.
7600 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7601 * tui/tui-io.c (tui_expand_tabs): Remove.
7603 2020-07-01 Tom Tromey <tom@tromey.com>
7605 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7607 2020-07-01 Fangrui Song <maskray@google.com>
7609 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7611 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7613 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7614 forms for DW_AT_associated and DW_AT_allocated attributes,
7615 which is already checked in function attr_to_dynamic_prop.
7617 2020-06-30 Tom Tromey <tromey@adacore.com>
7619 * dwarf2/read.c (quirk_rust_enum): Correctly call
7620 alloc_rust_variant for default-less enum.
7622 2020-06-30 Tom Tromey <tromey@adacore.com>
7625 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7628 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7630 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7631 * gdbarch.h: Re-generate.
7633 2020-06-28 Tom Tromey <tom@tromey.com>
7635 * command.h (cmd_types): Remove.
7636 (cmd_type): Don't declare.
7637 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7639 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7640 * cli/cli-decode.c (cmd_type): Remove.
7642 2020-06-27 Pedro Alves <palves@redhat.com>
7644 * fork-child.c (prefork_hook): Adjust.
7645 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7647 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7648 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7649 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7650 Remove declarations.
7651 (struct inferior) <set_tty, tty>: New methods.
7652 (struct inferior) <terminal>: Rename to ...
7653 (struct inferior) <m_terminal>: ... this and make private.
7654 * main.c (captured_main_1): Adjust.
7655 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7656 (mi_cmd_inferior_tty_show): Adjust.
7657 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7658 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7660 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7662 * configure.ac: Add --enable-libctf: handle --disable-static
7664 * acinclude.m4: sinclude ../config/enable.m4.
7665 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7666 (LIBCTF): Substitute in.
7667 (CTF_DEPS): New, likewise.
7668 (CLIBS): libctf needs symbols from libbfd: move earlier.
7669 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7671 * ctfread.c: Surround in ENABLE_LIBCTF.
7672 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7673 * configure: Regenerate.
7674 * config.in: Likewise.
7676 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7678 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7680 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7682 * inferior.h (struct inferior) <terminal>: Change type to
7683 gdb::unique_xmalloc_ptr<char>.
7684 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7685 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7686 field, adjust to unique pointer.
7687 (get_inferior_io_terminal): Adjust to unique pointer.
7689 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7691 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7692 registers, not just the known core set of registers.
7694 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7696 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7697 fflags, frm, and fcsr registers.
7698 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7700 (riscv_tdesc_unknown_reg): New function.
7701 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7702 tdesc_use_registers.
7703 * riscv-tdep.h (struct gdbarch_tdep): Add
7704 unknown_csrs_first_regnum, unknown_csrs_count,
7705 duplicate_fflags_regnum, duplicate_frm_regnum, and
7706 duplicate_fcsr_regnum fields.
7708 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7710 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7711 callback, use the callback (when not null) to help number unknown
7713 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7714 (tdesc_use_registers): Add extra parameter to declaration.
7716 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7718 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7720 (class riscv_pending_register_alias): Likewise.
7721 (riscv_register_feature::register_info): Change 'required_p' field
7722 to 'required', and change its type. Add 'check' member function.
7723 (riscv_register_feature::register_info::check): Define new member
7725 (riscv_xreg_feature): Change initialisation of 'required' field.
7726 (riscv_freg_feature): Likewise.
7727 (riscv_virtual_feature): Likewise.
7728 (riscv_csr_feature): Likewise.
7729 (riscv_check_tdesc_feature): Take extra parameter, the csr
7730 tdesc_feature, rewrite the function to use the new
7731 riscv_register_feature::register_info::check function.
7732 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7734 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7736 * features/Makefile: Remove all references to the deleted files
7738 * features/riscv/32bit-csr.c: Deleted.
7739 * features/riscv/32bit-csr.xml: Deleted.
7740 * features/riscv/64bit-csr.c: Deleted.
7741 * features/riscv/64bit-csr.xml: Deleted.
7742 * features/riscv/rebuild-csr-xml.sh: Deleted.
7744 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7746 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7747 whitespace error for declaration of names member variable.
7748 (struct riscv_register_feature): Add new prefer_first_name member
7749 variable, and fix whitespace error in declaration of registers.
7750 (riscv_xreg_feature): Initialize prefer_first_name field.
7751 (riscv_freg_feature): Likewise.
7752 (riscv_virtual_feature): Likewise.
7753 (riscv_csr_feature): Likewise.
7754 (riscv_register_name): Expand on comments. Remove register name
7755 modifications for CSR and virtual registers.
7757 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7759 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7762 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7764 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7766 (class riscv_pending_register_alias): New class.
7767 (riscv_check_tdesc_feature): Take vector of pending aliases and
7768 populate it as appropriate.
7769 (riscv_setup_register_aliases): Delete.
7770 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7771 to riscv_check_tdesc_feature in all cases. Use the vector to
7772 create the register aliases.
7774 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7776 * sol2-tdep.c (sol2_static_transform_name): Remove.
7777 (sol2_init_abi): Don't register it.
7778 * gdbarch.sh (static_transform_name): Remove.
7779 * gdbarch.c, gdbarch.h: Regenerate.
7781 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7782 gdbarch_static_transform_name.
7783 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7784 * stabsread.c (define_symbol) <'X'>: Remove.
7785 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7788 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7789 <'S'>: Remove call to gdbarch_static_transform_name.
7791 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7793 * procfs.c (procfs_pre_trace): New function.
7794 (procfs_target::create_inferior): Pass it to fork_inferior.
7796 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7798 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7799 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7800 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7801 sol2-tdep.o, sparc-sol2-tdep.o.
7802 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7803 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7804 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7805 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7807 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7809 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7810 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7812 Remove calls to set_gdbarch_skip_solib_resolver,
7813 set_gdbarch_core_pid_to_str.
7814 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7815 (i386_sol2_static_transform_name): Remove.
7816 (i386_sol2_init_abi): Call sol2_init_abi.
7817 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7818 set_gdbarch_static_transform_name,
7819 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7820 Use sol2_sigtramp_p.
7821 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7822 (sol2_sigtramp_p): New function.
7823 (sol2_static_transform_name): New function.
7824 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7825 (sol2_init_abi): New function.
7826 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7827 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7828 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7829 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7830 (sparc_sol2_static_transform_name): Remove.
7831 (sparc32_sol2_init_abi): Call sol2_init_abi.
7832 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7833 set_gdbarch_static_transform_name,
7834 set_gdbarch_skip_solib_resolver,
7835 set_gdbarch_core_pid_to_str.
7836 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7837 (sparc_sol2_static_transform_name): Remove
7838 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7839 call sol2_sigtramp_p.
7840 (sparc64_sol2_init_abi): Call sol2_init_abi.
7841 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7842 set_gdbarch_static_transform_name,
7843 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7845 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7847 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7848 * exec.c (validate_exec_file): If from_tty, set both
7849 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7850 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7851 and from_tty, unconditionally ask a confirmation.
7853 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7855 * target-descriptions.c (tdesc_architecture_name): Protect against
7856 NULL pointer dereference.
7857 (maint_print_xml_tdesc_cmd): New function.
7858 (_initialize_target_descriptions): Register new 'maint print
7859 xml-tdesc' command and give it the filename completer.
7860 * NEWS: Mention new 'maint print xml-tdesc' command.
7862 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7864 * target-descriptions.c (class tdesc_compatible_info): New class.
7865 (struct target_desc): Change type of compatible vector.
7866 (tdesc_compatible_p): Update for change in type of
7867 target_desc::compatible.
7868 (tdesc_compatible_info_list): New function.
7869 (tdesc_compatible_info_arch_name): New function.
7870 (tdesc_add_compatible): Update for change in type of
7871 target_desc::compatible.
7872 (print_c_tdesc::visit_pre): Likewise.
7874 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7876 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7877 whitespace to underscore.
7878 (maint_print_c_tdesc_cmd): Use fake filename for target
7879 descriptions that came from the target.
7880 (_initialize_target_descriptions): Add filename command completion
7881 for 'maint print c-tdesc'.
7883 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7885 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7888 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7890 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7892 (dwarf2_find_location_expression): Likewise.
7893 (call_site_parameter_matches): Likewise.
7894 (dwarf2_compile_expr_to_ax): Likewise.
7895 (disassemble_dwarf_expression): Likewise.
7896 (loclist_describe_location): Likewise.
7898 2020-06-23 Pedro Alves <palves@redhat.com>
7900 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7901 progspace-and-thread.h. Include scoped-mock-context.h instead.
7902 (register_to_value_test): Use scoped_mock_context.
7903 * regcache.c: Include "scoped-mock-context.h".
7904 (cooked_read_test): Don't error out if a target is already pushed.
7905 Use scoped_mock_context. Adjust.
7906 * scoped-mock-context.h: New file.
7908 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7910 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7912 (ada_language::is_string_type_p): New member function.
7913 * c-lang.c (c_language_data): Delete la_is_string_type_p
7915 (cplus_language_data): Likewise.
7916 (asm_language_data): Likewise.
7917 (minimal_language_data): Likewise.
7918 * d-lang.c (d_language_data): Likewise.
7919 * f-lang.c (f_is_string_type_p): Delete function, implementation
7920 moved to f_language::is_string_type_p.
7921 (f_language_data): Delete la_is_string_type_p initializer.
7922 (f_language::is_string_type_p): New member function,
7923 implementation from f_is_string_type_p.
7924 * go-lang.c (go_is_string_type_p): Delete function, implementation
7925 moved to go_language::is_string_type_p.
7926 (go_language_data): Delete la_is_string_type_p initializer.
7927 (go_language::is_string_type_p): New member function,
7928 implementation from go_is_string_type_p.
7929 * language.c (language_defn::is_string_type_p): Define new member
7931 (default_is_string_type_p): Make static, add comment copied from
7933 (unknown_language_data): Delete la_is_string_type_p initializer.
7934 (unknown_language::is_string_type_p): New member function.
7935 (auto_language_data): Delete la_is_string_type_p initializer.
7936 (auto_language::is_string_type_p): New member function.
7937 * language.h (language_data): Delete la_is_string_type_p field.
7938 (language_defn::is_string_type_p): Declare new function.
7939 (default_is_string_type_p): Delete desclaration, move comment to
7941 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7942 moved to m2_language::is_string_type_p.
7943 (m2_language_data): Delete la_is_string_type_p initializer.
7944 (m2_language::is_string_type_p): New member function,
7945 implementation from m2_is_string_type_p.
7946 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7948 * opencl-lang.c (opencl_language_data): Likewise.
7949 * p-lang.c (pascal_is_string_type_p): Delete function,
7950 implementation moved to pascal_language::is_string_type_p.
7951 (pascal_language_data): Delete la_is_string_type_p initializer.
7952 (pascal_language::is_string_type_p): New member function,
7953 implementation from pascal_is_string_type_p.
7954 * rust-lang.c (rust_is_string_type_p): Delete function,
7955 implementation moved to rust_language::is_string_type_p.
7956 (rust_language_data): Delete la_is_string_type_p initializer.
7957 (rust_language::is_string_type_p): New member function,
7958 implementation from rust_is_string_type_p.
7959 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7962 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7964 * ada-lang.c (ada_language_data): Delete la_print_typedef
7966 (ada_language::print_typedef): New member function.
7967 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7968 (cplus_language_data): Likewise.
7969 (asm_language_data): Likewise.
7970 (minimal_language_data): Likewise.
7971 * d-lang.c (d_language_data): Likewise.
7972 * f-lang.c (f_language_data): Likewise.
7973 (f_language::print_typedef): New member function.
7974 * go-lang.c (go_language_data): Delete la_print_typedef
7976 * language.c (language_defn::print_typedef): Define member
7978 (unknown_language_data): Delete la_print_typedef initializer.
7979 (unknown_language::print_typedef): New member function.
7980 (auto_language_data): Delete la_print_typedef initializer.
7981 (auto_language::print_typedef): New member function.
7982 * language.h (language_data): Delete la_print_typedef field.
7983 (language_defn::print_typedef): Declare new member function.
7984 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7985 (default_print_typedef): Delete declaration.
7986 * m2-lang.c (m2_language_data): Delete la_print_typedef
7988 (m2_language::print_typedef): New member function.
7989 * objc-lang.c (objc_language_data): Delete la_print_typedef
7991 * opencl-lang.c (opencl_language_data): Likewise.
7992 * p-lang.c (pascal_language_data): Likewise.
7993 (pascal_language::print_typedef): New member function.
7994 * rust-lang.c (rust_print_typedef): Delete function,
7995 implementation moved to rust_language::print_typedef.
7996 (rust_language): Delete la_print_typedef initializer.
7997 (rust_language::print_typedef): New member function,
7998 implementation from rust_print_typedef.
7999 * typeprint.c (default_print_typedef): Delete.
8001 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8003 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
8004 (ada_language::printstr): New member function.
8005 * c-lang.c (c_language_data): Delete la_printstr initializer.
8006 (cplus_language_data): Likewise.
8007 (asm_language_data): Likewise.
8008 (minimal_language_data): Likewise.
8009 * d-lang.c (d_language_data): Likewise.
8010 * f-lang.c (f_printstr): Rename to f_language::printstr.
8011 (f_language_data): Delete la_printstr initializer.
8012 (f_language::printstr): New member function, implementation from
8014 * go-lang.c (go_language_data): Delete la_printstr initializer.
8015 * language.c (language_defn::printstr): Define new member
8017 (unk_lang_printstr): Delete.
8018 (unknown_language_data): Delete la_printstr initializer.
8019 (unknown_language::printstr): New member function.
8020 (auto_language_data): Delete la_printstr initializer.
8021 (auto_language::printstr): New member function.
8022 * language.h (language_data): Delete la_printstr field.
8023 (language_defn::printstr): Declare new member function.
8024 (LA_PRINT_STRING): Update call to printstr.
8025 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
8026 (m2_language_data): Delete la_printstr initializer.
8027 (m2_language::printstr): New member function, implementation from
8029 * objc-lang.c (objc_language_data): Delete la_printstr
8031 * opencl-lang.c (opencl_language_data): Likewise.
8032 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8033 (pascal_language_data): Delete la_printstr initializer.
8034 (pascal_language::printstr): New member function, implementation
8035 from pascal_printstr.
8036 * p-lang.h (pascal_printstr): Delete declaration.
8037 * rust-lang.c (rust_printstr): Update header comment.
8038 (rust_language_data): Delete la_printstr initializer.
8039 (rust_language::printstr): New member function.
8041 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8043 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8044 (ada_language::printchar): New member function.
8045 * c-lang.c (c_language_data): Delete la_printchar initializer.
8046 (cplus_language_data): Likewise.
8047 (asm_language_data): Likewise.
8048 (minimal_language_data): Likewise.
8049 * d-lang.c (d_language_data): Likewise.
8050 * f-lang.c (f_printchar): Rename to f_language::printchar.
8051 (f_language_data): Delete la_printchar initializer.
8052 (f_language::printchar): New member function, implementation from
8054 * go-lang.c (go_language_data): Delete la_printchar initializer.
8055 * language.c (unk_lang_printchar): Delete.
8056 (language_defn::printchar): Define new member function.
8057 (unknown_language_data): Delete la_printchar initializer.
8058 (unknown_language::printchar): New member function.
8059 (auto_language_data): Delete la_printchar initializer.
8060 (auto_language::printchar): New member function.
8061 * language.h (language_data): Delete la_printchar field.
8062 (language_defn::printchar): Declare new member function.
8063 (LA_PRINT_CHAR): Update call to printchar.
8064 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8065 (m2_language::printchar): New member function.
8066 * objc-lang.c (objc_language_data): Delete la_printchar
8068 * opencl-lang.c (opencl_language_data): Likewise.
8069 * p-lang.c (pascal_language_data): Delete la_printchar
8071 (pascal_language::printchar): New member function.
8072 * rust-lang.c (rust_printchar): Rename to
8073 rust_language::printchar.
8074 (rust_language_data): Delete la_printchar initializer.
8075 (rust_language::printchar): New member function, implementation
8076 from rust_printchar.
8078 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8080 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8081 (ada_language_data): Delete la_emitchar initializer.
8082 (ada_language::emitchar): New member function, implementation from
8084 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8085 (cplus_language_data): Likewise.
8086 (asm_language_data): Likewise.
8087 (minimal_language_data): Likewise.
8088 * d-lang.c (d_language_data): Likewise.
8089 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8090 (f_language_data): Delete la_emitchar initializer.
8091 (f_language::emitchar): New member function, implementation from
8093 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8094 * language.c (unk_lang_emit_char): Delete.
8095 (language_defn::emitchar): New member function definition.
8096 (unknown_language_data): Delete la_emitchar initializer.
8097 (unknown_language::emitchar): New member function.
8098 (auto_language_data): Delete la_emitchar initializer.
8099 (auto_language::emitchar): New member function.
8100 * language.h (language_data): Delete la_emitchar field.
8101 (language_defn::emitchar): New member field declaration.
8102 (LA_EMIT_CHAR): Update call to emitchar.
8103 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8104 (m2_language_data): Delete la_emitchar initializer.
8105 (m2_language::emitchar): New member function, implementation from
8107 * objc-lang.c (objc_language_data): Delete la_emitchar
8109 * opencl-lang.c (opencl_language_data): Likewise.
8110 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8111 (pascal_language_data): Delete la_emitchar initializer.
8112 (pascal_language::emitchar): New member function, implementation
8113 from pascal_emit_char.
8114 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8115 (rust_language_data): Delete la_emitchar initializer.
8116 (rust_language::emitchar): New member function, implementation
8119 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8121 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8122 (ada_language_data): Delete la_post_parser initializer.
8123 (ada_language::post_parser): New member function.
8124 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8125 (cplus_language_data): Likewise.
8126 (asm_language_data): Likewise.
8127 (minimal_language_data): Likewise.
8128 * d-lang.c (d_language_data): Likewise.
8129 * f-lang.c (f_language_data): Likewise.
8130 * go-lang.c (go_language_data): Likewise.
8131 * language.c (unknown_language_data): Likewise.
8132 (auto_language_data): Likewise.
8133 * language.h (language_data): Delete la_post_parser field.
8134 (language_defn::post_parser): New member function.
8135 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8136 * objc-lang.c (objc_language_data): Likewise.
8137 * opencl-lang.c (opencl_language_data): Likewise.
8138 * p-lang.c (pascal_language_data): Likewise.
8139 * parse.c (parse_exp_in_context): Update call to post_parser.
8140 (null_post_parser): Delete definition.
8141 * parser-defs.h (null_post_parser): Delete declaration.
8142 * rust-lang.c (rust_language_data): Delete la_post_parser
8145 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8147 * ada-lang.c (parse): Rename to ada_language::parser.
8148 (ada_language_data): Delete la_parser initializer.
8149 (ada_language::parser): New member function, implementation from
8151 * c-lang.c (c_language_data): Delete la_parser initializer.
8152 (cplus_language_data): Likewise.
8153 (asm_language_data): Likewise.
8154 (minimal_language_data): Likewise.
8155 * d-lang.c (d_language_data): Likewise.
8156 (d_language::parser): New member function.
8157 * f-lang.c (f_language_data): Delete la_parser initializer.
8158 (f_language::parser): New member function.
8159 * go-lang.c (go_language_data): Delete la_parser initializer.
8160 (go_language::parser): New member function.
8161 * language.c (unk_lang_parser): Delete.
8162 (language_defn::parser): Define new member function.
8163 (unknown_language_data): Delete la_parser initializer.
8164 (unknown_language::parser): New member function.
8165 (auto_language_data): Delete la_parser initializer.
8166 (auto_language::parser): New member function.
8167 * language.h (language_data): Delete la_parser field.
8168 (language_defn::parser): Declare new member function.
8169 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8170 (m2_language::parser): New member function.
8171 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8172 * opencl-lang.c (opencl_language_data): Likewise.
8173 * p-lang.c (pascal_language_data): Likewise.
8174 (pascal_language::parser): New member function.
8175 * parse.c (parse_exp_in_context): Update call to parser.
8176 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8177 (rust_language::parser): New member function.
8179 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8181 * top.c (print_gdb_configuration): Print --with-python-libdir
8182 configuration value.
8184 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8186 * NEWS: Mention change to the alias command.
8188 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8190 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8191 (alias_command_completer)
8192 (make_alias_options_def_group): New functions.
8193 (alias_opts, alias_option_defs): New struct and array.
8194 (alias_usage_error): Update usage.
8195 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8196 Use option framework.
8197 (_initialize_cli_cmds): Update alias command help.
8198 Update aliases command help.
8200 Add NULL for new default_args lookup_cmd argument.
8201 (valid_command_p): Rename to validate_aliased_command.
8202 Add NULL for new default_args lookup_cmd argument. Verify that the
8203 aliased_command has no default args.
8204 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8205 (lookup_cmd_1, lookup_cmd): New argument default_args.
8207 Add NULL for new default_args lookup_cmd argument.
8208 (print_help_for_command): Show default args under the layout
8209 alias some_alias = some_aliased_cmd some_alias_default_arg.
8210 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8211 xfree default_args in destructor.
8212 * cli/cli-script.c (process_next_line, do_define_command):
8213 Add NULL for new default_args lookup_cmd argument.
8214 * command.h: Declare new default_args argument in lookup_cmd
8216 * completer.c (complete_line_internal_1):
8217 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8218 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8219 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8221 * infcmd.c (_initialize_infcmd): Likewise.
8222 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8223 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8224 * python/py-param.c (add_setshow_generic): Likewise.
8225 * remote.c (_initialize_remote): Likewise.
8226 * top.c (execute_command): Prepend default_args if command has some.
8228 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8229 * tracepoint.c (validate_actionline, encode_actions_1):
8230 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8232 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8234 * jit.c (jit_read_descriptor): Use bool as the return type.
8235 (jit_breakpoint_re_set_internal): Use bool as the return type.
8236 Invert the return value logic; return true if the jit breakpoint
8237 has been successfully initialized.
8238 (jit_inferior_init): Update the call to
8239 jit_breakpoint_re_set_internal.
8241 2020-06-22 Pedro Alves <palves@redhat.com>
8244 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8245 Use the current inferior instead. Don't return
8246 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8248 * sol-thread.c (sol_thread_target::wait): Don't reference
8250 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8251 (sol_update_thread_list_callback): Use the current inferior's pid
8252 instead of inferior_ptid.
8254 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8256 * procfs.c: Cleanup many comments.
8258 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8259 (AFTER_WATCHFLAG): Replace by value.
8261 (MAIN_PROC_NAME_FORMAT): Inline ...
8262 (create_procinfo): ... here.
8264 (procfs_debug_inferior): Remove SYS_exec handling.
8265 (syscall_is_exec): Likewise.
8266 (procfs_set_exec_trap): Likewise.
8268 (syscall_is_lwp_exit): Inline in callers.
8269 (syscall_is_exit): Likewise.
8270 (syscall_is_exec): Likewise.
8271 (syscall_is_lwp_create): Likewise.
8273 (invalidate_cache): Remove #if 0 code.
8275 (make_signal_thread_runnable): Remove.
8276 (procfs_target::resume): Remove #if 0 code.
8278 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8281 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8283 (procfs_target::create_inferior): ... here.
8285 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8287 * exec.c (validate_exec_file): Ensure the build-id is up to
8288 date by calling reopen_exec_file (that checks file timestamp
8289 to decide to re-read the file).
8291 2020-06-18 Pedro Alves <palves@redhat.com>
8294 * gdbthread.h (delete_thread, delete_thread_silent)
8295 (find_thread_ptid): Update comments.
8296 * thread.c (current_thread_): New global.
8297 (is_current_thread): Move higher, and reimplement.
8298 (inferior_thread): Reimplement.
8299 (set_thread_exited): Use bool. Add assertions.
8300 (add_thread_silent): Simplify thread-reuse handling by always
8301 calling delete_thread.
8302 (delete_thread): Remove intro comment.
8303 (find_thread_ptid): Skip exited threads.
8304 (switch_to_thread_no_regs): Write to current_thread_.
8305 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8306 INFERIOR_PTID. Clear current_thread_.
8308 2020-06-18 Pedro Alves <palves@redhat.com>
8310 * aix-thread.c (pd_update): Use switch_to_thread.
8312 2020-06-18 Pedro Alves <palves@redhat.com>
8314 * ravenscar-thread.c (ravenscar_thread_target): Update.
8315 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8316 (ravenscar_thread_target::add_active_thread): ... this. Don't
8317 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8318 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8320 2020-06-18 Pedro Alves <palves@redhat.com>
8322 * nat/windows-nat.c (current_windows_thread): Remove.
8323 * nat/windows-nat.h (current_windows_thread): Remove.
8324 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8326 (display_selectors): Adjust to fetch the current
8327 windows_thread_info based on inferior_ptid.
8328 (fake_create_process): No longer write to current_windows_thread.
8329 (windows_nat_target::get_windows_debug_event):
8330 Don't set inferior_ptid or current_windows_thread.
8331 (windows_nat_target::wait): Adjust to not rely on
8332 current_windows_thread.
8333 (do_initial_windows_stuff): Now a method of windows_nat_target.
8334 Switch to the last_ptid thread.
8335 (windows_nat_target::attach): Adjust.
8336 (windows_nat_target::detach): Use switch_to_no_thread instead of
8337 writing to inferior_ptid directly.
8338 (windows_nat_target::create_inferior): Adjust.
8340 2020-06-18 Pedro Alves <palves@redhat.com>
8342 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8344 2020-06-18 Pedro Alves <palves@redhat.com>
8346 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8347 after creating it, instead of writing to inferior_ptid. Don't
8348 write to inferior_ptid.
8350 2020-06-18 Pedro Alves <palves@redhat.com>
8352 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8354 2020-06-18 Pedro Alves <palves@redhat.com>
8356 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8357 it, instead of writing to inferior_ptid.
8359 2020-06-18 Pedro Alves <palves@redhat.com>
8361 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8364 2020-06-18 Pedro Alves <palves@redhat.com>
8366 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8367 instead of writing to inferior_ptid directly.
8369 2020-06-18 Pedro Alves <palves@redhat.com>
8371 * corelow.c (core_target::close): Use switch_to_no_thread instead
8372 of writing to inferior_ptid directly.
8373 (add_to_thread_list, core_target_open): Use switch_to_thread
8374 instead of writing to inferior_ptid directly.
8376 2020-06-18 Pedro Alves <palves@redhat.com>
8378 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8380 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8382 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8383 inferior_ptid directly.
8384 (darwin_nat_target::init_thread_list): Switch to thread, instead
8385 of writing to inferior_ptid.
8386 (darwin_nat_target::attach): Don't write to inferior_ptid.
8387 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8389 2020-06-18 Pedro Alves <palves@redhat.com>
8391 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8393 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8394 Instead use switch_to_thread.
8395 (gnu_nat_target::detach): Use switch_to_no_thread
8396 instead of writing to inferior_ptid directly. Used passed-in
8397 inferior instead of looking up the inferior by pid.
8399 2020-06-18 Pedro Alves <palves@redhat.com>
8401 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8404 2020-06-18 Pedro Alves <palves@redhat.com>
8406 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8408 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8410 (nto_procfs_target::detach): Avoid referencing
8411 inferior_ptid. Use switch_to_no_thread instead of writing to
8412 inferior_ptid directly.
8413 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8414 instead of writing to inferior_ptid directly.
8415 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8418 2020-06-18 Pedro Alves <palves@redhat.com>
8420 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8421 after creating it, instead of writing to inferior_ptid.
8422 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8423 to inferior_ptid directly.
8424 (gdbsim_target::wait): Don't write to inferior_ptid.
8426 2020-06-18 Pedro Alves <palves@redhat.com>
8428 * remote.c (remote_target::remote_notice_new_inferior): Use
8429 switch_to_thread instead of writing to inferior_ptid directly.
8430 (remote_target::add_current_inferior_and_thread): Use
8431 switch_to_no_thread instead of writing to inferior_ptid directly.
8432 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8433 and switch_to_thread instead of using set_current_inferior or
8434 writing to inferior_ptid directly.
8436 2020-06-18 Pedro Alves <palves@redhat.com>
8438 * tracectf.c (ctf_target_open): Switch to added thread instead of
8439 writing to inferior_ptid directly.
8440 (ctf_target::close): Use switch_to_no_thread instead of writing to
8441 inferior_ptid directly.
8443 2020-06-18 Pedro Alves <palves@redhat.com>
8445 * tracefile-tfile.c (tfile_target_open): Don't write to
8446 inferior_ptid directly, instead switch to added thread.
8447 (tfile_target::close): Use switch_to_no_thread instead of writing
8448 to inferior_ptid directly.
8450 2020-06-18 Pedro Alves <palves@redhat.com>
8452 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8453 (procfs_target::detach): Use switch_to_no_thread
8454 instead of writing to inferior_ptid directly.
8455 (do_attach): Change return type to void. Switch to the added
8457 (procfs_target::create_inferior): Switch to the added thread.
8458 (procfs_do_thread_registers): Don't write to inferior_ptid.
8460 2020-06-18 Pedro Alves <palves@redhat.com>
8462 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8463 of writing to inferior_ptid.
8464 (scoped_restore_exited_inferior): Delete.
8465 (handle_vfork_child_exec_or_exit): Simplify using
8466 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8467 instead of writing to inferior_ptid.
8468 (THREAD_STOPPED_BY): Delete.
8469 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8470 (thread_stopped_by_hw_breakpoint): Delete.
8471 (save_waitstatus): Use
8472 scoped_restore_current_thread+switch_to_thread, and call
8473 target_stopped_by_watchpoint instead of
8474 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8475 instead of thread_stopped_by_sw_breakpoint, and
8476 target_stopped_by_hw_breakpoint instead of
8477 thread_stopped_by_hw_breakpoint.
8478 (handle_inferior_event)
8479 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8480 inferior_ptid directly, nor
8481 set_current_inferior/set_current_program_space. Use
8482 switch_to_thread / switch_to_inferior_no_thread instead.
8484 2020-06-18 Pedro Alves <palves@redhat.com>
8486 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8487 instead of writing to inferior_ptid.
8489 2020-06-18 Pedro Alves <palves@redhat.com>
8491 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8493 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8494 to the added thread.
8495 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8496 instead of writing to inferior_ptid.
8498 2020-06-18 Pedro Alves <palves@redhat.com>
8500 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8501 (register_to_value_test): Mock a program_space too. Heap-allocate
8502 the address space. Don't write to inferior_ptid. Use
8503 switch_to_thread instead.
8505 2020-06-18 Pedro Alves <palves@redhat.com>
8507 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8509 (find_signalled_thread()): New, factored out from
8510 linux_make_corefile_notes and adjusted to handle exited threads.
8511 (linux_make_corefile_notes): Adjust to use the new
8512 find_signalled_thread.
8514 2020-06-18 Pedro Alves <palves@redhat.com>
8516 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8517 of saving/restoring inferior_ptid.
8519 2020-06-17 Tom Tromey <tom@tromey.com>
8521 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8522 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8524 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8526 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8528 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8531 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8533 * regformats/reg-arm.dat: Remove.
8534 * regformats/reg-bfin.dat: Remove.
8535 * regformats/reg-cris.dat: Remove.
8536 * regformats/reg-crisv32.dat: Remove.
8537 * regformats/reg-m32r.dat: Remove.
8538 * regformats/reg-tilegx.dat: Remove.
8539 * regformats/reg-tilegx32.dat: Remove.
8541 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8543 * features/Makefile (WHICH): Remove arm files.
8544 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8545 * regformats/arm/arm-with-neon.dat: Remove.
8546 * regformats/arm/arm-with-vfpv2.dat: Remove.
8547 * regformats/arm/arm-with-vfpv3.dat: Remove.
8549 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8551 * features/Makefile (XMLTOC): Remove rx.xml.
8553 2020-06-17 Pedro Alves <palves@redhat.com>
8555 * gdbthread.h (thread_control_state) <trap_expected> Update
8558 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8560 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8561 ada_language::lookup_symbol_nonlocal.
8562 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8563 (ada_language::lookup_symbol_nonlocal): New member function,
8564 implementation from ada_lookup_symbol_nonlocal.
8565 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8567 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8569 (cplus_language::lookup_symbol_nonlocal): New member function.
8570 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8571 (minimal_language_data) Likewise.
8572 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8573 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8575 (d_language::lookup_symbol_nonlocal): New member function.
8576 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8578 (f_language::lookup_symbol_nonlocal): New member function.
8579 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8581 * language.c (unknown_language_data): Likewise.
8582 (auto_language_data): Likewise.
8583 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8585 (language_defn::lookup_symbol_nonlocal): New member function.
8586 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8588 * objc-lang.c (objc_language_data): Likewise.
8589 * opencl-lang.c (opencl_language_data): Likewise.
8590 * p-lang.c (pascal_language_data): Likewise.
8591 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8592 rust_language::lookup_symbol_nonlocal.
8593 (rust_language_data): Delete la_lookup_symbol_nonlocal
8595 (rust_language::lookup_symbol_nonlocal): New member function,
8596 implementation from rust_lookup_symbol_nonlocal.
8597 * symtab.c (lookup_symbol_aux): Update call to
8598 lookup_symbol_nonlocal.
8599 (basic_lookup_symbol_nonlocal): Rename to...
8600 (language_defn::lookup_symbol_nonlocal): ...this, and update
8601 header comment. Remove language_defn parameter, and replace with
8603 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8605 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8607 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8609 (ada_language::value_print_inner): New member function.
8610 * c-lang.c (c_language_data): Delete la_value_print_inner
8612 (cplus_language_data): Likewise.
8613 (asm_language_data): Likewise.
8614 (minimal_language_data): Likewise.
8615 * d-lang.c (d_language_data): Likewise.
8616 (d_language::value_print_inner): New member function.
8617 * f-lang.c (f_language_data): Delete la_value_print_inner
8619 (f_language::value_print_inner): New member function.
8620 * f-lang.h (f_value_print_innner): Rename to...
8621 (f_value_print_inner): ...this (note spelling of 'inner').
8622 * f-valprint.c (f_value_print_innner): Rename to...
8623 (f_value_print_inner): ...this (note spelling of 'inner').
8624 * go-lang.c (go_language_data): Delete la_value_print_inner
8626 (go_language::value_print_inner): New member function.
8627 * language.c (language_defn::value_print_inner): Define new member
8629 (unk_lang_value_print_inner): Delete.
8630 (unknown_language_data): Delete la_value_print_inner initializer.
8631 (unknown_language::value_print_inner): New member function.
8632 (auto_language_data): Delete la_value_print_inner initializer.
8633 (auto_language::value_print_inner): New member function.
8634 * language.h (language_data): Delete la_value_print_inner field.
8635 (language_defn::value_print_inner): Delcare new member function.
8636 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8638 (m2_language::value_print_inner): New member function.
8639 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8641 * opencl-lang.c (opencl_language_data): Likewise.
8642 * p-lang.c (pascal_language_data): Likewise.
8643 (pascal_language::value_print_inner): New member function.
8644 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8646 (rust_language::value_print_inner): New member function.
8647 * valprint.c (do_val_print): Update call to value_print_inner.
8649 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8651 * ada-lang.c (ada_language_data): Delete la_value_print
8653 (ada_language::value_print): New member function.
8654 * c-lang.c (c_language_data): Delete la_value_print initializer.
8655 (cplus_language_data): Likewise.
8656 (asm_language_data): Likewise.
8657 (minimal_language_data): Likewise.
8658 * d-lang.c (d_language_data): Likewise.
8659 * f-lang.c (f_language_data): Likewise.
8660 * go-lang.c (go_language_data): Likewise.
8661 * language.c (unk_lang_value_print): Delete.
8662 (language_defn::value_print): Define new member function.
8663 (unknown_language_data): Delete la_value_print initializer.
8664 (unknown_language::value_print): New member function.
8665 (auto_language_data): Delete la_value_print initializer.
8666 (auto_language::value_print): New member function.
8667 * language.h (language_data): Delete la_value_print field.
8668 (language_defn::value_print): Declare new member function.
8669 (LA_VALUE_PRINT): Update call to value_print.
8670 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8671 * objc-lang.c (objc_language_data): Likewise.
8672 * opencl-lang.c (opencl_language_data): Likewise.
8673 * p-lang.c (pascal_language_data): Likewise.
8674 (pascal_language::value_print): New member function.
8675 * rust-lang.c (rust_language_data): Delete la_value_print
8678 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8680 * ada-lang.c (ada_watch_location_expression): Rename to
8681 ada_language::watch_location_expression.
8682 (ada_language_data): Delete la_watch_location_expression
8684 (ada_language::watch_location_expression): New member function,
8685 implementation from ada_watch_location_expression.
8686 * breakpoint.c (watch_command_1): Update call to
8687 watch_location_expression.
8688 * c-lang.c (c_watch_location_expression): Rename to
8689 language_defn::watch_location_expression.
8690 (c_language_data): Delete la_watch_location_expression
8692 (cplus_language_data): Likewise.
8693 (asm_language_data): Likewise.
8694 (minimal_language_data): Likewise.
8695 * c-lang.h (c_watch_location_expression): Delete declaration.
8696 * d-lang.c (d_language_data): Delete la_watch_location_expression
8698 * f-lang.c (f_language_data): Likewise.
8699 * go-lang.c (go_language_data): Likewise.
8700 * language.c (language_defn::watch_location_expression): Member
8701 function implementation from c_watch_location_expression.
8702 (unknown_language_data): Delete la_watch_location_expression
8704 (auto_language_data): Likewise.
8705 * language.h (language_data): Delete la_watch_location_expression
8707 (language_defn::watch_location_expression): Declare new member
8709 * m2-lang.c (m2_language_data): Delete
8710 la_watch_location_expression initializer.
8711 * objc-lang.c (objc_language_data): Likewise.
8712 * opencl-lang.c (opencl_language_data): Likewise.
8713 * p-lang.c (pascal_language_data): Likewise.
8714 * rust-lang.c (rust_watch_location_expression): Rename to
8715 rust_language::watch_location_expression.
8716 (rust_language_data): Delete la_watch_location_expression
8718 (rust_language::watch_location_expression): New member function,
8719 implementation from rust_watch_location_expression.
8721 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8723 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8724 ada_language::collect_symbol_completion_matches.
8725 (ada_language_data): Delete la_collect_symbol_completion_matches
8727 (ada_language::collect_symbol_completion_matches): New member
8728 function, implementation from
8729 ada_collect_symbol_completion_matches.
8730 * c-lang.c (c_language_data): Delete
8731 la_collect_symbol_completion_matches initializer.
8732 (cplus_language_data): Likewise.
8733 (asm_language_data): Likewise.
8734 (minimal_language_data): Likewise.
8735 * d-lang.c (d_language_data): Likewise.
8736 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8737 f_language::collect_symbol_completion_matches.
8738 (f_language_data): Delete la_collect_symbol_completion_matches
8740 (f_language::collect_symbol_completion_matches) New member
8741 function, implementation from f_collect_symbol_completion_matches.
8742 * go-lang.c (go_language_data): Delete
8743 la_collect_symbol_completion_matches initializer.
8744 * language.c (unknown_language_data): Likewise.
8745 (auto_language_data): Likewise.
8746 * language.h (language_data): Delete
8747 la_collect_symbol_completion_matches field.
8748 (language_defn::collect_symbol_completion_matches): New member
8750 * m2-lang.c (m2_language_data): Delete
8751 la_collect_symbol_completion_matches initializer.
8752 * objc-lang.c (objc_language_data): Likewise.
8753 * opencl-lang.c (opencl_language_data): Likewise.
8754 * p-lang.c (pascal_language_data): Likewise.
8755 * rust-lang.c (rust_language_data): Likewise.
8756 * symtab.c (default_collect_symbol_completion_matches): Delete.
8757 (collect_symbol_completion_matches): Update call to
8758 collect_symbol_completion_matches.
8759 (collect_symbol_completion_matches_type): Likewise.
8760 * symtab.h (default_collect_symbol_completion_matches): Delete
8763 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8765 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8766 (ada_language_data): Delete la_word_break_characters initializer.
8767 (ada_language::word_break_characters): New member function.
8768 * c-lang.c (c_language_data): Delete la_word_break_characters
8770 (cplus_language_data): Likewise.
8771 (asm_language_data): Likewise.
8772 (minimal_language_data): Likewise.
8773 * completer.c: Update global comment.
8774 (advance_to_expression_complete_word_point): Update call to
8775 word_break_characters.
8776 (complete_files_symbols): Likewise.
8777 (complete_line_internal_1): Likewise.
8778 (default_completer_handle_brkchars): Likewise.
8779 (skip_quoted_chars): Likewise.
8780 * d-lang.c (d_language_data): Delete la_word_break_characters
8782 * f-lang.c (f_word_break_characters): Delete.
8783 (f_language_data): Delete la_word_break_characters initializer.
8784 (f_language::word_break_characters): New member function.
8785 * go-lang.c (go_language_data): Delete la_word_break_characters
8787 * language.c (unknown_language_data): Likewise.
8788 (auto_language_data): Likewise.
8789 * language.h (default_word_break_characters): Move declaration to
8790 earlier in the file.
8791 (language_data): Delete la_word_break_characters field.
8792 (language_defn::word_break_characters): New member function.
8793 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8795 * objc-lang.c (objc_language_data): Likewise.
8796 * opencl-lang.c (opencl_language_data): Likewise.
8797 * p-lang.c (pascal_language_data): Likewise.
8798 * rust-lang.c (rust_language_data): Likewise.
8800 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8802 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8803 (ada_language_data): Delete la_get_symbol_name_matcher
8805 (language_defn::get_symbol_name_matcher_inner): New member
8807 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8809 (cplus_language_data): Likewise.
8810 (cplus_language::get_symbol_name_matcher_inner): New member
8812 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8813 (minimal_language_data): Likewise.
8814 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8815 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8817 * dictionary.c (iter_match_first_hashed): Update call to
8818 get_symbol_name_matcher.
8819 (iter_match_next_hashed): Likewise.
8820 (iter_match_next_linear): Likewise.
8821 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8822 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8824 (f_language::get_symbol_name_matcher_inner): New member function.
8825 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8827 * language.c (default_symbol_name_matcher): Update header comment,
8829 (language_defn::get_symbol_name_matcher): New definition.
8830 (language_defn::get_symbol_name_matcher_inner): Likewise.
8831 (get_symbol_name_matcher): Delete.
8832 (unknown_language_data): Delete la_get_symbol_name_matcher
8834 (auto_language_data): Likewise.
8835 * language.h (language_data): Delete la_get_symbol_name_matcher
8837 (language_defn::get_symbol_name_matcher): New member function.
8838 (language_defn::get_symbol_name_matcher_inner): Likewise.
8839 (default_symbol_name_matcher): Delete declaration.
8840 * linespec.c (find_methods): Update call to
8841 get_symbol_name_matcher.
8842 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8844 * minsyms.c (lookup_minimal_symbol): Update call to
8845 get_symbol_name_matcher.
8846 (iterate_over_minimal_symbols): Likewise.
8847 * objc-lang.c (objc_language_data): Delete
8848 la_get_symbol_name_matcher initializer.
8849 * opencl-lang.c (opencl_language_data): Likewise.
8850 * p-lang.c (pascal_language_data): Likewise.
8851 * psymtab.c (psymbol_name_matches): Update call to
8852 get_symbol_name_matcher.
8853 * rust-lang.c (rust_language_data): Delete
8854 la_get_symbol_name_matcher initializer.
8855 * symtab.c (symbol_matches_search_name): Update call to
8856 get_symbol_name_matcher.
8857 (compare_symbol_name): Likewise.
8859 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8861 * ada-lang.c (ada_language_data): Delete la_compute_program
8863 * c-lang.c (c_language_data): Likewise.
8864 (c_language::compute_program): New member function.
8865 (cplus_language_data): Delete la_compute_program initializer.
8866 (cplus_language::compute_program): New member function.
8867 (asm_language_data): Delete la_compute_program initializer.
8868 (minimal_language_data): Likewise.
8869 * c-lang.h (c_compute_program): Update comment.
8870 (cplus_compute_program): Likewise.
8871 * compile/compile-c-support.c (c_compute_program): Likewise.
8872 (cplus_compute_program): Likewise.
8873 * compile/compile.c (compile_to_object): Update call to
8875 * d-lang.c (d_language_data): Delete la_compute_program
8877 * f-lang.c (f_language_data): Likewise.
8878 * go-lang.c (go_language_data): Likewise.
8879 * language.c (unknown_language_data): Likewise.
8880 (auto_language_data): Likewise.
8881 * language.h (language_data): Delete la_compute_program field.
8882 (language_defn::compute_program): New member function.
8883 * m2-lang.c (m2_language_data): Delete la_compute_program
8885 * objc-lang.c (objc_language_data): Likewise.
8886 * opencl-lang.c (opencl_language_data): Likewise.
8887 * p-lang.c (pascal_language_data): Likewise.
8888 * rust-lang.c (rust_language_data): Likewise.
8890 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8892 * ada-lang.c (ada_language_data) Delete
8893 la_class_name_from_physname initializer.
8894 * c-lang.c (c_language_data): Likewise.
8895 (cplus_language_data): Likewise.
8896 (cplus_language::class_name_from_physname): New member function.
8897 (asm_language_data): Delete la_class_name_from_physname
8899 (minimal_language_data): Likewise.
8900 * d-lang.c (d_language_data): Likewise.
8901 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8902 method on language_defn class.
8903 (guess_full_die_structure_name): Likewise.
8904 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8906 * go-lang.c (go_language_data): Likewise.
8907 * language.c (language_class_name_from_physname): Delete.
8908 (unk_lang_class_name): Delete.
8909 (unknown_language_data): Delete la_class_name_from_physname
8911 (auto_language_data): Likewise.
8912 * language.h (language_data): Delete la_class_name_from_physname
8914 (language_defn::class_name_from_physname): New function.
8915 (language_class_name_from_physname): Delete declaration.
8916 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8918 * objc-lang.c (objc_language_data): Likewise.
8919 * opencl-lang.c (opencl_language_data): Likewise.
8920 * p-lang.c (pascal_language_data): Likewise.
8921 * rust-lang.c (rust_language_data): Likewise.
8923 2020-06-16 Tom Tromey <tom@tromey.com>
8925 * tui/tui-data.h (STATUS_NAME): New macro.
8926 * tui/tui-layout.c (tui_remove_some_windows)
8927 (initialize_known_windows, tui_register_window)
8928 (tui_layout_split::remove_windows, initialize_layouts)
8929 (tui_new_layout_command): Don't use hard-coded window names.
8931 2020-06-16 Tom Tromey <tom@tromey.com>
8934 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8935 tui_initialize_readline. Only run once. Call rl_initialize.
8936 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8937 tui_initialize_readline.
8938 * tui/tui-io.c (tui_setup_io): Call
8939 tui_ensure_readline_initialized.
8940 * tui/tui-interp.c (tui_interp::init): Update.
8942 2020-06-16 Tom Tromey <tom@tromey.com>
8944 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8945 Also preserve the status window.
8947 2020-06-16 Tom Tromey <tom@tromey.com>
8949 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8950 where m_window==nullptr.
8952 2020-06-15 Tom Tromey <tromey@adacore.com>
8954 * windows-nat.c (windows_nat::handle_output_debug_string):
8956 (windows_nat::handle_ms_vc_exception): Update.
8957 * target.h (target_read_string): Change API.
8958 * target.c (target_read_string): Change API.
8959 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8961 * solib-frv.c (frv_current_sos): Update.
8962 * solib-dsbt.c (dsbt_current_sos): Update.
8963 * solib-darwin.c (darwin_current_sos): Update.
8964 * linux-thread-db.c (inferior_has_bug): Update.
8965 * expprint.c (print_subexp_standard): Update.
8966 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8967 (ada_exception_message_1): Update.
8969 2020-06-15 Tom Tromey <tromey@adacore.com>
8971 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8973 2020-06-15 Tom Tromey <tromey@adacore.com>
8975 * valprint.c (read_string): Update comment.
8976 * target.c (MIN): Remove.
8977 (target_read_string): Rewrite.
8979 2020-06-15 Tom Tromey <tromey@adacore.com>
8981 * corefile.c (read_memory_string): Remove.
8982 * ada-valprint.c (ada_value_print_ptr): Update.
8983 * ada-lang.h (ada_tag_name): Change return type.
8984 * ada-lang.c (type_from_tag): Update.
8985 (ada_tag_name_from_tsd): Change return type. Use
8987 (ada_tag_name): Likewise.
8988 * gdbcore.h (read_memory_string): Don't declare.
8990 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8992 * symtab.c (rbreak_command): Ignore Windows drive colon.
8994 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8996 * NEWS: Mention removed GDBserver host support.
8998 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
9000 * features/riscv/rebuild-csr-xml.sh: Updated.
9002 2020-06-11 Tom Tromey <tom@tromey.com>
9005 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
9007 2020-06-09 Jonny Grant <jg@jguk.org>
9008 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
9010 * main.c (captured_main_1): Don't print new line after help.
9011 (print_gdb_help): add mailing list and IRC channel information
9012 to --help. Add new lines between items in the footer. Remove
9013 quotes around bug url.
9015 2020-06-11 Keith Seitz <keiths@redhat.com>
9018 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
9019 Resolve typedefs for type length calculations.
9021 2020-06-10 Tom de Vries <tdevries@suse.de>
9024 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
9025 (write_psymbols): Enable .gdb_index for ada.
9026 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
9029 2020-06-10 Tom de Vries <tdevries@suse.de>
9031 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9032 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9033 namei" instead of "const char *name" argument.
9034 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9035 dw2_symtab_iter_init.
9037 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9039 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9040 to use type::field and field::type instead.
9042 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9044 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9045 to use field::type instead.
9047 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9049 * gdbtypes.h (struct field) <type, set_type>: New methods.
9050 Rename `type` field to...
9051 <m_type>: ... this. Change references throughout to use type or
9053 (FIELD_TYPE): Use field::type. Change call sites that modify
9054 the field's type to use field::set_type instead.
9056 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9058 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9059 to use type::index_type instead.
9061 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9063 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9065 (TYPE_INDEX_TYPE): Use type::index_type.
9066 * gdbtypes.c (create_array_type_with_stride): Likewise.
9068 2020-06-07 Tom Tromey <tom@tromey.com>
9070 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9072 (generic_value_print): Update.
9074 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9076 Revert commit 982a38f60b0.
9077 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9079 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9081 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9082 avoid use after free.
9084 2020-06-05 Tom de Vries <tdevries@suse.de>
9088 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
9090 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9092 (dwarf2_read_debug_names): Likewise.
9093 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9094 object when re-using a per_bfd object with an index.
9096 2020-06-03 Tom de Vries <tdevries@suse.de>
9099 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9101 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9104 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9106 * ada-lang.c (ada_language_data): Delete skip_trampoline
9108 * c-lang.c (c_language_data): Likewise.
9109 (cplus_language_data): Likewise.
9110 (cplus_language::skip_trampoline): New member function.
9111 (asm_language_data): Delete skip_trampoline initializer.
9112 (minimal_language_data): Likewise.
9113 * d-lang.c (d_language_data): Likewise.
9114 * f-lang.c (f_language_data): Likewise.
9115 * go-lang.c (go_language_data): Likewise.
9116 * language.c (unk_lang_trampoline): Delete function.
9117 (skip_language_trampoline): Update.
9118 (unknown_language_data): Delete skip_trampoline initializer.
9119 (auto_language_data): Likewise.
9120 * language.h (language_data): Delete skip_trampoline field.
9121 (language_defn::skip_trampoline): New function.
9122 * m2-lang.c (m2_language_data): Delete skip_trampoline
9124 * objc-lang.c (objc_skip_trampoline): Delete function, move
9125 implementation to objc_language::skip_trampoline.
9126 (objc_language_data): Delete skip_trampoline initializer.
9127 (objc_language::skip_trampoline): New member function with
9128 implementation from objc_skip_trampoline.
9129 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9131 * p-lang.c (pascal_language_data): Likewise.
9132 * rust-lang.c (rust_language_data): Likewise.
9134 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9136 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9137 (ada_language::demangle): New member function.
9138 * c-lang.c (c_language_data): Delete la_demangle initializer.
9139 (cplus_language_data): Delete la_demangle initializer.
9140 (cplus_language::demangle): New member function.
9141 (asm_language_data): Delete la_demangle initializer.
9142 (minimal_language_data): Delete la_demangle initializer.
9143 * d-lang.c (d_language_data): Delete la_demangle initializer.
9144 (d_language::demangle): New member function.
9145 * f-lang.c (f_language_data): Delete la_demangle initializer.
9146 (f_language::demangle): New member function.
9147 * go-lang.c (go_language_data): Delete la_demangle initializer.
9148 (go_language::demangle): New member function.
9149 * language.c (language_demangle): Update.
9150 (unk_lang_demangle): Delete.
9151 (unknown_language_data): Delete la_demangle initializer.
9152 (unknown_language::demangle): New member function.
9153 (auto_language_data): Delete la_demangle initializer.
9154 (auto_language::demangle): New member function.
9155 * language.h (language_data): Delete la_demangle field.
9156 (language_defn::demangle): New function.
9157 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9158 * objc-lang.c (objc_language_data): Delete la_demangle
9160 (objc_language::demangle): New member function.
9161 * opencl-lang.c (opencl_language_data): Delete la_demangle
9163 * p-lang.c (pascal_language_data): Likewise.
9164 * rust-lang.c (rust_language_data): Likewise.
9165 (rust_language::demangle): New member function.
9167 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9169 * ada-lang.c (ada_language_data): Delete la_print_type
9171 (ada_language::print_type): New member function.
9172 * c-lang.c (c_language_data): Delete la_print_type initializer.
9173 (c_language::print_type): New member function.
9174 (cplus_language_data): Delete la_print_type initializer.
9175 (cplus_language::print_type): New member function.
9176 (asm_language_data): Delete la_print_type initializer.
9177 (asm_language::print_type): New member function.
9178 (minimal_language_data): Delete la_print_type initializer.
9179 (minimal_language::print_type): New member function.
9180 * d-lang.c (d_language_data): Delete la_print_type initializer.
9181 (d_language::print_type): New member function.
9182 * f-lang.c (f_language_data): Delete la_print_type initializer.
9183 (f_language::print_type): New member function.
9184 * go-lang.c (go_language_data): Delete la_print_type initializer.
9185 (go_language::print_type): New member function.
9186 * language.c (unk_lang_print_type): Delete.
9187 (unknown_language_data): Delete la_print_type initializer.
9188 (unknown_language::print_type): New member function.
9189 (auto_language_data): Delete la_print_type initializer.
9190 (auto_language::print_type): New member function.
9191 * language.h (language_data): Delete la_print_type field.
9192 (language_defn::print_type): New function.
9193 (LA_PRINT_TYPE): Update.
9194 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9195 (m2_language::print_type): New member function.
9196 * objc-lang.c (objc_language_data): Delete la_print_type
9198 (objc_language::print_type): New member function.
9199 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9200 to opencl_language::print_type.
9201 (opencl_language_data): Delete la_print_type initializer.
9202 (opencl_language::print_type): New member function, implementation
9203 from opencl_print_type.
9204 * p-lang.c (pascal_language_data): Delete la_print_type
9206 (pascal_language::print_type): New member function.
9207 * rust-lang.c (rust_print_type): Delete, implementation moved to
9208 rust_language::print_type.
9209 (rust_language_data): Delete la_print_type initializer.
9210 (rust_language::print_type): New member function, implementation
9211 from rust_print_type.
9213 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9215 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9216 implementation moves to...
9217 (ada_language::sniff_from_mangled_name): ...here. Update return
9219 (ada_language_data): Delete la_sniff_from_mangled_name
9221 * c-lang.c (c_language_data): Likewise.
9222 (cplus_language_data): Likewise.
9223 (cplus_language::sniff_from_mangled_name): New member function,
9224 implementation taken from gdb_sniff_from_mangled_name.
9225 (asm_language_data): Delete la_sniff_from_mangled_name
9227 (minimal_language_data): Likewise.
9228 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9229 implementation moves to cplus_language::sniff_from_mangled_name.
9230 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9231 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9233 (d_language::sniff_from_mangled_name): ...here.
9234 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9235 * f-lang.c (f_language_data): Likewise.
9236 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9238 (go_language::sniff_from_mangled_name): ...here.
9239 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9240 * language.c (language_sniff_from_mangled_name): Delete.
9241 (unknown_language_data): Delete la_sniff_from_mangled_name
9243 (auto_language_data): Likewise.
9244 * language.h (language_data): Delete la_sniff_from_mangled_name
9246 (language_defn::sniff_from_mangled_name): New function.
9247 (language_sniff_from_mangled_name): Delete declaration.
9248 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9250 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9251 implementation moves to...
9252 (objc_language::sniff_from_mangled_name): ...here.
9253 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9254 * opencl-lang.c (opencl_language_data): Likewise.
9255 * p-lang.c (pascal_language_data): Likewise.
9256 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9257 implementation moves to...
9258 (rust_language::sniff_from_mangled_name): ...here.
9259 (rust_language_data): Delete la_sniff_from_mangled_name
9261 * symtab.c (symbol_find_demangled_name): Call
9262 sniff_from_mangled_name member function.
9264 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9266 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9268 * c-lang.c (c_language_data): Likewise.
9269 (cplus_language_data): Likewise.
9270 (cplus_language::search_name_hash): New member function.
9271 (asm_language_data): Delete la_search_name_hash initializer.
9272 (minimal_language_data): Likewise.
9273 * d-lang.c (d_language_data): Likewise.
9274 * dictionary.c (default_search_name_hash): Rename to...
9275 (language_defn::search_name_hash): ...this.
9276 * f-lang.c (f_language_data): Likewise.
9277 (f_language::search_name_hash): New member function.
9278 * go-lang.c (go_language_data): Delete la_search_name_hash
9280 * language.c (unknown_language_data): Likewise.
9281 (auto_language_data): Likewise.
9282 * language.h (struct language_data): Delete la_search_name_hash
9284 (language_defn::search_name_hash): Declare new member function.
9285 (default_search_name_hash): Delete declaration.
9286 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9288 * objc-lang.c (objc_language_data): Likewise.
9289 * opencl-lang.c (opencl_language_data): Likewise.
9290 * p-lang.c (pascal_language_data): Likewise.
9291 * rust-lang.c (rust_language_data): Likewise.
9292 * symtab.c (search_name_hash): Update call.
9294 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9296 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9298 * c-lang.c (class compile_instance): Declare.
9299 (c_language_data): Delete la_get_compile_instance initializer.
9300 (c_language::get_compile_instance): New member function.
9301 (cplus_language_data): Delete la_get_compile_instance initializer.
9302 (cplus_language::get_compile_instance): New member function.
9303 (asm_language_data): Delete la_get_compile_instance initializer.
9304 (minimal_language_data): Likewise.
9305 * c-lang.h (c_get_compile_context): Update comment.
9306 (cplus_get_compile_context): Update comment.
9307 * compile/compile.c (compile_to_object): Update calls, don't rely
9308 on function pointer being NULL.
9309 * d-lang.c (d_language_data): Delete la_get_compile_instance
9311 * f-lang.c (f_language_data): Likewise.
9312 * go-lang.c (go_language_data): Likewise.
9313 * language.c (unknown_language_data): Likewise.
9314 (auto_language_data): Likewise.
9315 * language.h (language_data): Delete la_get_compile_instance field.
9316 (language_defn::get_compile_instance): New member function.
9317 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9319 * objc-lang.c (objc_language_data): Likewise.
9320 * opencl-lang.c (opencl_language_data): Likewise.
9321 * p-lang.c (pascal_language_data): Likewise.
9322 * rust-lang.c (rust_language_data): Likewise.
9324 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9326 * ada-lang.c (ada_add_all_symbols): Update comment.
9327 (ada_iterate_over_symbols): Delete, move implementation to...
9328 (ada_language::iterate_over_symbols): ...here, a new member
9329 function, rewrite to use range based for loop.
9330 (ada_language_data): Delete la_iterate_over_symbols initializer.
9331 * c-lang.c (c_language_data): Likewise.
9332 (cplus_language_data): Likewise.
9333 (asm_language_data): Likewise.
9334 (minimal_language_data): Likewise.
9335 * d-lang.c (d_language_data): Likewise.
9336 * f-lang.c (f_language_data): Likewise.
9337 * go-lang.c (go_language_data): Likewise.
9338 * language.c (unknown_language_data): Likewise.
9339 (auto_language_data): Likewise.
9340 * language.h (language_data): Delete la_iterate_over_symbols field.
9341 (language_defn::iterate_over_symbols): New member function.
9342 (LA_ITERATE_OVER_SYMBOLS): Update.
9343 * linespec.c (iterate_over_all_matching_symtabs): Update.
9344 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9346 * objc-lang.c (objc_language_data): Likewise.
9347 * opencl-lang.c (opencl_language_data): Likewise.
9348 * p-lang.c (pascal_language_data): Likewise.
9349 * rust-lang.c (rust_language_data): Likewise.
9351 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9353 * ada-lang.c (ada_language_data): Delete
9354 la_lookup_transparent_type initializer.
9355 * c-lang.c (c_language_data): Likewise.
9356 (cplus_language_data): Likewise.
9357 (cplus_language::lookup_transparent_type): New member function.
9358 (asm_language_data): Delete la_lookup_transparent_type
9360 (minimal_language_data): Likewise.
9361 * d-lang.c (d_language_data): Likewise.
9362 * f-lang.c (f_language_data): Likewise.
9363 * go-lang.c (go_language_data): Likewise.
9364 * language.c (unknown_language_data): Likewise.
9365 (auto_language_data): Likewise.
9366 * language.h (struct language_data): Delete
9367 la_lookup_transparent_type field.
9368 (language_defn::lookup_transparent_type): New member function.
9369 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9371 * objc-lang.c (objc_language_data): Likewise.
9372 * opencl-lang.c (opencl_language_data): Likewise.
9373 * p-lang.c (pascal_language_data): Likewise.
9374 * rust-lang.c (rust_language_data): Likewise.
9375 * symtab.c (symbol_matches_domain): Update call.
9377 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9379 * ada-lang.c (ada_language_arch_info): Delete function, move
9380 implementation to...
9381 (ada_language::language_arch_info): ...here, a new member
9383 (ada_language_data): Delete la_language_arch_info.
9384 * c-lang.c (c_language_data): Likewise.
9385 (c_language::language_arch_info): New member function.
9386 (cplus_language_arch_info): Delete function, move
9387 implementation to...
9388 (cplus_language::language_arch_info): ...here, a new member
9390 (cplus_language_data): Delete la_language_arch_info.
9391 (asm_language_data): Likewise.
9392 (asm_language::language_arch_info): New member function.
9393 (minimal_language_data): Delete la_language_arch_info.
9394 (minimal_language::language_arch_info): New member function.
9395 * d-lang.c (d_language_arch_info): Delete function, move
9396 implementation to...
9397 (d_language::language_arch_info): ...here, a new member
9399 (d_language_data): Delete la_language_arch_info.
9400 * f-lang.c (f_language_arch_info): Delete function, move
9401 implementation to...
9402 (f_language::language_arch_info): ...here, a new member
9404 (f_language_data): Delete la_language_arch_info.
9405 * go-lang.c (go_language_arch_info): Delete function, move
9406 implementation to...
9407 (go_language::language_arch_info): ...here, a new member
9409 (go_language_data): Delete la_language_arch_info.
9410 * language.c (unknown_language_data): Likewise.
9411 (unknown_language::language_arch_info): New member function.
9412 (auto_language_data): Delete la_language_arch_info.
9413 (auto_language::language_arch_info): New member function.
9414 (language_gdbarch_post_init): Update call to
9415 la_language_arch_info.
9416 * language.h (language_data): Delete la_language_arch_info
9418 (language_defn::language_arch_info): New function.
9419 * m2-lang.c (m2_language_arch_info): Delete function, move
9420 implementation to...
9421 (m2_language::language_arch_info): ...here, a new member
9423 (m2_language_data): Delete la_language_arch_info.
9424 * objc-lang.c (objc_language_arch_info): Delete function, move
9425 implementation to...
9426 (objc_language::language_arch_info): ...here, a new member
9428 (objc_language_data): Delete la_language_arch_info.
9429 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9430 implementation to...
9431 (opencl_language::language_arch_info): ...here, a new member
9433 (opencl_language_data): Delete la_language_arch_info.
9434 * p-lang.c (pascal_language_arch_info): Delete function, move
9435 implementation to...
9436 (pascal_language::language_arch_info): ...here, a new member
9438 (pascal_language_data): Delete la_language_arch_info.
9439 * rust-lang.c (rust_language_arch_info): Delete function, move
9440 implementation to...
9441 (rust_language::language_arch_info): ...here, a new member
9443 (rust_language_data): Delete la_language_arch_info.
9445 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9447 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9449 * c-lang.c (c_language_data): Likewise.
9450 (cplus_language_data): Likewise.
9451 (cplus_language::pass_by_reference_info): New method.
9452 (asm_language_data): Delete la_pass_by_reference initializer.
9453 (minimal_language_data): Likewise.
9454 * cp-abi.c (cp_pass_by_reference): Remove use of
9455 default_pass_by_reference.
9456 * d-lang.c (d_language_data): Likewise.
9457 * f-lang.c (f_language_data): Likewise.
9458 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9459 default_pass_by_reference.
9460 * go-lang.c (go_language_data): Likewise.
9461 * language.c (language_pass_by_reference): Update.
9462 (default_pass_by_reference): Delete.
9463 (unknown_language_data): Delete la_pass_by_reference
9465 (auto_language_data): Likewise.
9466 * language.h (struct language_data): Delete la_pass_by_reference
9468 (language_defn::pass_by_reference_info): New member function.
9469 (default_pass_by_reference): Delete declaration.
9470 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9472 * objc-lang.c (objc_language_data): Likewise.
9473 * opencl-lang.c (opencl_language_data): Likewise.
9474 * p-lang.c (pascal_language_data): Likewise.
9475 * rust-lang.c (rust_language_data): Likewise.
9477 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9479 * ada-lang.c (ada_read_var_value): Delete function, move
9480 implementation to...
9481 (ada_language::read_var_value): ...here.
9482 (ada_language_data): Delete la_read_var_value initializer.
9483 * c-lang.c (c_language_data): Likewise.
9484 (cplus_language_data): Likewise.
9485 (minimal_language_data): Likewise.
9486 * d-lang.c (d_language_data): Likewise.
9487 * f-lang.c (f_language_data): Likewise.
9488 * findvar.c (default_read_var_value): Rename to...
9489 (language_defn::read_var_value): ...this.
9490 * findvar.c (read_var_value): Update header comment, and change to
9491 call member function instead of function pointer.
9492 * go-lang.c (go_language_data): Likewise.
9493 * language.c (unknown_language_data): Delete la_read_var_value
9495 (auto_language_data): Likewise.
9496 * language.h (struct language_data): Delete la_read_var_value
9498 (language_defn::read_var_value): New member function.
9499 (default_read_var_value): Delete declaration.
9500 * m2-lang.c (m2_language_data): Delete la_read_var_value
9502 * objc-lang.c (objc_language_data): Likewise.
9503 * opencl-lang.c (opencl_language_data): Likewise.
9504 * p-lang.c (pascal_language_data): Likewise.
9505 * rust-lang.c (rust_language_data): Likewise.
9506 * value.h (default_read_var_value): Delete declaration.
9508 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9510 * ada-lang.c (ada_print_array_index): Delete function, move
9511 implementation to...
9512 (ada_language::print_array_index): ...here.
9513 (ada_language_data): Delete la_print_array_index initializer.
9514 * c-lang.c (c_language_data): Likewise.
9515 (cplus_language_data): Likewise.
9516 (minimal_language_data): Likewise.
9517 * d-lang.c (d_language_data): Likewise.
9518 * f-lang.c (f_language_data): Likewise.
9519 * go-lang.c (go_language_data): Likewise.
9520 * language.c (default_print_array_index): Delete function, move
9521 implementation to...
9522 (language_defn::print_array_index): ...here.
9523 (unknown_language_data): Delete la_print_array_index initializer.
9524 (auto_language_data): Likewise.
9525 * language.h (struct language_data): Delete la_print_array_index
9527 (language_defn::print_array_index): New member function.
9528 (LA_PRINT_ARRAY_INDEX): Update.
9529 (default_print_array_index): Delete declaration.
9530 * m2-lang.c (m2_language_data): Delete la_print_array_index
9532 * objc-lang.c (objc_language_data): Likewise.
9533 * opencl-lang.c (opencl_language_data): Likewise.
9534 * p-lang.c (pascal_language_data): Likewise.
9535 * rust-lang.c (rust_language_data): Likewise.
9537 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9539 * gdb/ada-lang.c (ada_language_defn): Convert to...
9540 (ada_language_data): ...this.
9541 (class ada_language): New class.
9542 (ada_language_defn): New static global.
9543 * gdb/c-lang.c (c_language_defn): Convert to...
9544 (c_language_data): ...this.
9545 (class c_language): New class.
9546 (c_language_defn): New static global.
9547 (cplus_language_defn): Convert to...
9548 (cplus_language_data): ...this.
9549 (class cplus_language): New class.
9550 (cplus_language_defn): New static global.
9551 (asm_language_defn): Convert to...
9552 (asm_language_data): ...this.
9553 (class asm_language): New class.
9554 (asm_language_defn): New static global.
9555 (minimal_language_defn): Convert to...
9556 (minimal_language_data): ...this.
9557 (class minimal_language): New class.
9558 (minimal_language_defn): New static global.
9559 * gdb/d-lang.c (d_language_defn): Convert to...
9560 (d_language_data): ...this.
9561 (class d_language): New class.
9562 (d_language_defn): New static global.
9563 * gdb/f-lang.c (f_language_defn): Convert to...
9564 (f_language_data): ...this.
9565 (class f_language): New class.
9566 (f_language_defn): New static global.
9567 * gdb/go-lang.c (go_language_defn): Convert to...
9568 (go_language_data): ...this.
9569 (class go_language): New class.
9570 (go_language_defn): New static global.
9571 * gdb/language.c (unknown_language_defn): Remove declaration.
9572 (current_language): Initialize to nullptr, real initialization is
9573 moved to _initialize_language.
9574 (languages): Delete global.
9575 (language_defn::languages): Define.
9576 (set_language_command): Use language_defn::languages.
9577 (set_language): Likewise.
9578 (range_error): Likewise.
9579 (language_enum): Likewise.
9580 (language_def): Likewise.
9581 (add_set_language_command): Use language_def::languages for the
9582 language list, and language_def to lookup language pointers.
9583 (skip_language_trampoline): Use language_defn::languages.
9584 (unknown_language_defn): Convert to...
9585 (unknown_language_data): ...this.
9586 (class unknown_language): New class.
9587 (unknown_language_defn): New static global.
9588 (auto_language_defn): Convert to...
9589 (auto_language_data): ...this.
9590 (class auto_language): New class.
9591 (auto_language_defn): New static global.
9592 (language_gdbarch_post_init): Use language_defn::languages.
9593 (_initialize_language): Initialize current_language.
9594 * gdb/language.h (struct language_defn): Rename to...
9595 (struct language_data): ...this.
9596 (struct language_defn): New.
9597 (auto_language_defn): Delete.
9598 (unknown_language_defn): Delete.
9599 (minimal_language_defn): Delete.
9600 (ada_language_defn): Delete.
9601 (asm_language_defn): Delete.
9602 (c_language_defn): Delete.
9603 (cplus_language_defn): Delete.
9604 (d_language_defn): Delete.
9605 (f_language_defn): Delete.
9606 (go_language_defn): Delete.
9607 (m2_language_defn): Delete.
9608 (objc_language_defn): Delete.
9609 (opencl_language_defn): Delete.
9610 (pascal_language_defn): Delete.
9611 (rust_language_defn): Delete.
9612 * gdb/m2-lang.c (m2_language_defn): Convert to...
9613 (m2_language_data): ...this.
9614 (class m2_language): New class.
9615 (m2_language_defn): New static global.
9616 * gdb/objc-lang.c (objc_language_defn): Convert to...
9617 (objc_language_data): ...this.
9618 (class objc_language): New class.
9619 (objc_language_defn): New static global.
9620 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9621 (opencl_language_data): ...this.
9622 (class opencl_language): New class.
9623 (opencl_language_defn): New static global.
9624 * gdb/p-lang.c (pascal_language_defn): Convert to...
9625 (pascal_language_data): ...this.
9626 (class pascal_language): New class.
9627 (pascal_language_defn): New static global.
9628 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9629 language pointer, update comment format.
9630 * gdb/rust-lang.c (rust_language_defn): Convert to...
9631 (rust_language_data): ...this.
9632 (class rust_language): New class.
9633 (rust_language_defn): New static global.
9635 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9637 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9639 <m_stmt_at_address>: New member variable.
9640 (lnp_state_machine::record_line): Don't record some lines, update
9641 tracking of is_stmt at the same address.
9642 (lnp_state_machine::lnp_state_machine): Initialise new member
9645 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9647 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9648 "-include gnu-nat-mig.h".
9649 * gnu-nat-mig.h: New file.
9650 * gnu-nat.c: Include "gnu-nat-mig.h".
9651 (exc_server, msg_reply_server, notify_server,
9652 process_reply_server): Remove declarations.
9654 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9656 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9657 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9658 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9659 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9660 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9661 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9662 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9663 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9664 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9665 to gnu_nat_target class.
9666 * gnu-nat.c: Likewise.
9667 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9668 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9669 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9671 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9672 instead of `gnu_target'.
9674 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9676 * i386-gnu-tdep.c: Include "gdbcore.h"
9677 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9678 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9679 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9680 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9681 i386_gnu_sigcontext_addr): New functions
9682 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9683 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9686 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9688 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9689 before fork_inferior call. Avoid calling it if target_is_pushed returns
9692 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9694 * gnu-nat.h (gnu_target): New variable declaration.
9695 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9697 * gnu-nat.c (gnu_target): New variable.
9698 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9699 add_thread_silent, and add_thread calls.
9700 (gnu_nat_target::create_inferior): Pass gnu_target to
9701 add_thread_silent, thread_change_ptid call.
9702 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9705 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9707 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9708 (gnu_nat_target::find_memory_regions): Remove unused
9709 `old_address' variable.
9711 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9713 * gnu-nat.c: Include "gdbarch.h".
9715 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9717 * reply_mig_hack.awk (Error return): Cast function through
9718 void *, to bypass compiler function call check.
9720 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9722 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9723 $(srcdir)/reply_mig_hack.awk.
9725 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9727 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9729 2020-05-30 Jonny Grant <jg@jguk.org>
9731 * configure.ac (ACX_BUGURL): change bug URL to https.
9733 2020-05-30 Pedro Alves <palves@redhat.com>
9735 * cp-support.c (replace_typedefs_template): New.
9736 (replace_typedefs_qualified_name): Handle
9737 DEMANGLE_COMPONENT_TEMPLATE.
9739 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9741 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9742 dwarf2/index-cache.h, dwarf2/index-write.c,
9743 dwarf2/index-write.h, dwarf2/line-header.c,
9744 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9745 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9746 variables and fields from `dwarf2_per_objfile` to just
9747 `per_objfile` throughout.
9749 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9751 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9752 <push_dwarf_reg_entry_value>: Add comment.
9754 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9755 Keith Seitz <keiths@redhat.com>
9757 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9758 instead of PyEval_ReleaseLock.
9759 (class gdbpy_gil): Move to earlier in file.
9760 (finalize_python): Set gdb_python_initialized.
9761 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9762 when not initialized.
9764 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9766 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9767 <push_dwarf_reg_entry_value>: Remove assert. Override
9768 per_objfile with caller_per_objfile.
9770 2020-05-28 Tom de Vries <tdevries@suse.de>
9772 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9773 PR gold/15646 workaround to symbol kind "type".
9775 2020-05-27 Tom Tromey <tromey@adacore.com>
9777 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9779 2020-05-27 Tom Tromey <tromey@adacore.com>
9781 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9782 Use htab_find_with_hash.
9783 <add_abbrev>: Remove "abbrev_number" parameter.
9784 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9785 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9786 (hash_abbrev): Add comment.
9787 (abbrev_table::lookup_abbrev): Move to header file.
9788 (abbrev_table::read): Update.
9790 2020-05-27 Tom Tromey <tromey@adacore.com>
9792 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9794 <canonical_name>: New member.
9795 <raw_name>: Rename from "name".
9796 (partial_die_info): Initialize canonical_name.
9797 (scan_partial_symbols): Check raw_name.
9798 (partial_die_parent_scope, partial_die_full_name)
9799 (add_partial_symbol, add_partial_subprogram)
9800 (add_partial_enumeration, load_partial_dies): Use "name" method.
9801 (partial_die_info::name): New method.
9802 (partial_die_info::read, guess_partial_die_structure_name)
9803 (partial_die_info::fixup): Update.
9805 2020-05-27 Tom Tromey <tromey@adacore.com>
9807 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9808 <get_ref_die_offset>: Inline.
9809 <get_ref_die_offset_complaint>: New method.
9810 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9811 (attribute::get_ref_die_offset_complaint): Rename from
9812 get_ref_die_offset. Just issue complaint.
9814 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9816 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9818 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9820 * exec.c (exec_file_attach): Use errno value of first openp failure.
9822 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9824 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9825 Don't close thread handle.
9827 2020-05-27 Tom Tromey <tom@tromey.com>
9828 Simon Marchi <simon.marchi@efficios.com>
9830 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9832 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9834 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9835 dwarf2_per_bfd_objfile_data_key>: New globals.
9836 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9837 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9838 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9840 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9841 short-circuit when sharing.
9842 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9843 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9845 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9847 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9849 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9850 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9852 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9854 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9855 build_name_components, find_name_components_bounds>:
9856 Add per_objfile parameter.
9857 (struct mapped_index) <symbol_name_at>: Likewise.
9858 (struct mapped_debug_names): Remove constructor.
9859 <dwarf2_per_objfile>: Remove field.
9860 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9861 (mapped_index_base::find_name_components_bounds,
9862 mapped_index_base::build_name_components,
9863 dw2_expand_symtabs_matching_symbol): Likewise.
9864 (class mock_mapped_index) <symbol_name_at>: Likewise.
9865 (check_match): Likewise.
9866 (check_find_bounds_finds): Likewise.
9867 (test_mapped_index_find_name_component_bounds): Update.
9868 (CHECK_MATCH): Update.
9869 (dw2_expand_symtabs_matching): Update.
9870 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9871 per_objfile parameter.
9872 <find_vec_in_debug_names>: Likewise.
9873 <m_per_objfile>: New field.
9874 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9876 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9877 (dw2_debug_names_iterator::next): Update.
9878 (dw2_debug_names_lookup_symbol): Update.
9879 (dw2_debug_names_expand_symtabs_for_function): Update.
9880 (dw2_debug_names_map_matching_symbols): Update.
9881 (dw2_debug_names_expand_symtabs_matching): Update.
9882 (dwarf2_read_debug_names): Update.
9884 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9886 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9887 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9888 move to dwarf2_per_objfile.
9889 <read_in_chain>: Remove.
9890 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9891 remove_all_cus, age_comp_units>: New methods.
9892 <m_dwarf2_cus>: New member.
9893 (struct dwarf2_per_cu_data) <cu>: Remove.
9894 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9895 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9896 moved to methods of dwarf2_per_objfile.
9897 (dwarf2_clear_marks): Remove.
9898 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9899 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9900 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9901 (dwarf2_per_objfile::remove_all_cus): New.
9902 (class free_cached_comp_units) <~free_cached_comp_units>:
9905 (dw2_do_instantiate_symtab): Adjust.
9906 (fill_in_sig_entry_from_dwo_entry): Adjust.
9907 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9908 (cutu_reader::cutu_reader): Likewise.
9909 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9910 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9911 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9912 and dwarf2_per_objfile::age_comp_units.
9913 (load_partial_comp_unit): Update.
9914 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9915 (process_queue): Likewise.
9916 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9918 (dwarf2_read_addr_index): Likewise.
9919 (follow_die_offset): Likewise.
9920 (dwarf2_fetch_die_loc_sect_off): Likewise.
9921 (dwarf2_fetch_constant_bytes): Likewise.
9922 (dwarf2_fetch_die_type_sect_off): Likewise.
9923 (follow_die_sig_1): Likewise.
9924 (load_full_type_unit): Likewise.
9925 (read_signatured_type): Likewise.
9926 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9927 (dwarf2_cu::~dwarf2_cu): Remove.
9928 (dwarf2_per_objfile::get_cu): New.
9929 (dwarf2_per_objfile::set_cu): New.
9930 (age_cached_comp_units): Rename to...
9931 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9932 to std::unordered_map.
9933 (free_one_cached_comp_unit): Rename to...
9934 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9935 to std::unordered_map.
9936 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9937 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9938 a dwarf2_per_objfile in data.
9939 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9940 (dwarf2_clear_marks): Remove.
9942 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9944 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9945 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9946 (init_tu_and_read_dwo_dies): Likewise.
9947 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9948 (cutu_reader::cutu_reader): Likewise.
9949 (load_partial_comp_unit): Likewise.
9950 (process_psymtab_comp_unit): Update.
9951 (build_type_psymtabs_1): Update.
9952 (process_skeletonless_type_unit): Update.
9953 (load_full_comp_unit): Update.
9954 (find_partial_die): Update.
9955 (dwarf2_read_addr_index): Update.
9956 (read_signatured_type): Update.
9958 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9960 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9961 m_header_read_in>: New fields.
9962 <get_header>: New method.
9963 * dwarf2/read.c (per_cu_header_read_in): Remove.
9964 (dwarf2_per_cu_data::get_header): New.
9965 (dwarf2_per_cu_data::addr_size): Update.
9966 (dwarf2_per_cu_data::offset_size): Update.
9967 (dwarf2_per_cu_data::ref_addr_size): Update.
9969 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9971 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9972 (dw2_do_instantiate_symtab): Update.
9973 (queue_and_load_all_dwo_tus): Change parameter from
9974 dwarf2_per_cu_data to dwarf2_cu.
9975 (dwarf2_fetch_die_loc_sect_off): Update.
9976 (dwarf2_fetch_constant_bytes): Update.
9977 (dwarf2_fetch_die_type_sect_off): Update.
9979 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9981 * dwarf2/read.c (process_full_comp_unit,
9982 process_full_type_unit): Remove per_cu, per_objfile paramters.
9983 Add dwarf2_cu parameter.
9984 (process_queue): Update.
9986 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9988 * dwarf2/read.c (create_cu_from_index_list): Replace
9989 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9990 (create_cus_from_index_list): Likewise.
9991 (create_cus_from_index): Likewise.
9992 (create_signatured_type_table_from_index): Likewise.
9993 (create_cus_from_debug_names_list): Likewise.
9994 (create_cus_from_debug_names): Likewise.
9995 (dwarf2_read_gdb_index): Update.
9996 (dwarf2_read_debug_names): Update.
9998 2020-05-27 Tom Tromey <tom@tromey.com>
9999 Simon Marchi <simon.marchi@efficios.com>
10001 * dwarf2/read.h (struct dwarf2_per_objfile)
10002 <get_type_for_signatured_type, set_type_for_signatured_type>:
10004 <m_type_map>: New member.
10005 (struct signatured_type) <type>: Remove.
10007 (dwarf2_per_objfile::get_type_for_signatured_type,
10008 dwarf2_per_objfile::set_type_for_signatured_type): New.
10009 (get_signatured_type): Use new methods.
10011 2020-05-27 Tom Tromey <tom@tromey.com>
10012 Simon Marchi <simon.marchi@efficios.com>
10014 * dwarf2/read.h (struct type_unit_group_unshareable): New.
10015 (struct dwarf2_per_objfile) <type_units>: New member.
10016 <get_type_unit_group_unshareable>: New method.
10017 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
10018 num_symtabs, symtabs>: Remove; move to
10019 type_unit_group_unshareable.
10020 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
10021 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
10022 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
10024 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10026 * dwarf2/read.h (struct dwarf2_per_cu_data):
10027 <dwarf2_per_objfile>: Remove.
10028 * dwarf2/read.c (create_cu_from_index_list): Don't assign
10029 dwarf2_per_objfile.
10030 (create_signatured_type_table_from_index): Likewise.
10031 (create_signatured_type_table_from_debug_names): Likewise.
10032 (create_debug_type_hash_table): Likewise.
10033 (fill_in_sig_entry_from_dwo_entry): Likewise.
10034 (create_type_unit_group): Likewise.
10035 (read_comp_units_from_section): Likewise.
10036 (create_cus_hash_table): Likewise.
10038 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10040 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10041 dwarf2_per_cu_data::dwarf2_per_objfile.
10042 (compute_compunit_symtab_includes): Likewise.
10043 (dwarf2_cu::start_symtab): Likewise.
10045 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10047 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10049 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10050 (read_namespace_alias): Update.
10051 (lookup_die_type): Update.
10052 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10053 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10055 (disassemble_dwarf_expression): Update.
10057 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10059 * dwarf2/read.h (struct dwarf2_queue_item): Add
10060 dwarf2_per_objfile parameter, assign new parameter.
10061 <per_objfile>: New field.
10062 * dwarf2/read.c (free_one_cached_comp_unit): Add
10063 dwarf2_per_objfile parameter.
10064 (queue_comp_unit): Likewise.
10065 (dw2_do_instantiate_symtab): Update.
10066 (process_psymtab_comp_unit): Update.
10067 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10068 (process_imported_unit_die): Update.
10069 (queue_and_load_dwo_tu): Update.
10070 (follow_die_offset): Update.
10071 (follow_die_sig_1): Update.
10073 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10075 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10076 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10077 (read_call_site_scope): Assign per_objfile.
10078 (dwarf2_per_cu_data::objfile): Remove.
10079 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10080 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10081 dwarf2_per_objfile parameter.
10082 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10083 dwarf2_per_objfile parameter.
10084 (dwarf_expr_reg_to_entry_parameter): Add output
10085 dwarf2_per_objfile parameter.
10086 (locexpr_get_frame_base): Update.
10087 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10088 <push_dwarf_reg_entry_value>: Update.
10089 <call_site_to_target_addr>: Update.
10090 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10092 (value_of_dwarf_reg_entry): Update.
10093 (rw_pieced_value): Update.
10094 (indirect_synthetic_pointer): Update.
10095 (dwarf2_evaluate_property): Update.
10096 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10098 (locexpr_read_variable): Update.
10099 (locexpr_get_symbol_read_needs): Update.
10100 (loclist_read_variable): Update.
10102 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10104 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10105 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10106 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10108 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10109 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10110 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10112 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10113 sect_variable_value): Add dwarf2_per_objfile parameter.
10114 (class dwarf_evaluate_loc_desc) <dwarf_call,
10115 dwarf_variable_value>: Update.
10116 (fetch_const_value_from_synthetic_pointer): Add
10117 dwarf2_per_objfile parameter.
10118 (fetch_const_value_from_synthetic_pointer): Update.
10119 (coerced_pieced_ref): Update.
10120 (class symbol_needs_eval_context) <dwarf_call,
10121 dwarf_variable_value>: Update.
10122 (dwarf2_compile_expr_to_ax): Update.
10124 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10126 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10128 (dwarf2_evaluate_loc_desc_full): Update.
10130 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10132 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10134 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10135 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10136 dwarf2_per_objfile parameter.
10137 (decode_debug_loc_dwo_addresses): Likewise.
10138 (dwarf2_find_location_expression): Update.
10139 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10140 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10142 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10144 (locexpr_describe_location_1): Likewise.
10145 (locexpr_describe_location): Update.
10147 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10149 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10151 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10152 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10153 (dwarf2_compile_property_to_c): Update.
10154 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10155 use text offset from objfile.
10156 (locexpr_tracepoint_var_ref): Update.
10157 (locexpr_generate_c_location): Update.
10158 (loclist_describe_location): Update.
10159 (loclist_tracepoint_var_ref): Update.
10160 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10161 dwarf2_per_objfile parameter.
10162 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10163 use text offset from objfile.
10164 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10166 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10168 * dwarf2/expr.h (struct dwarf_expr_context)
10169 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10171 <per_objfile>: New member.
10172 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10173 dwarf2_per_objfile parameter. Don't set offset, set
10175 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10176 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10177 a dwarf2_per_objfile object instead of an offset.
10178 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10180 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10181 to dwarf2_expr_executor constructor. Don't set offset.
10182 (dwarf2_fetch_cfa_info): Update.
10183 (struct dwarf2_frame_cache) <text_offset>: Remove.
10184 <per_objfile>: New field.
10185 (dwarf2_frame_cache): Update.
10186 (dwarf2_frame_prev_register): Update.
10187 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10188 <dwarf_evaluate_loc_desc>: Add constructor.
10189 (dwarf2_evaluate_loc_desc_full): Update.
10190 (dwarf2_locexpr_baton_eval): Update.
10191 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10193 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10195 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10197 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10198 addr_sized_int_type>: Move to dwarf2_cu.
10199 <int_type>: Move to dwarf2_per_objfile.
10200 (struct dwarf2_per_objfile) <int_type>: Move here.
10201 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10202 addr_sized_int_type>: Move here.
10203 (read_func_scope): Update.
10204 (read_array_type): Update.
10205 (read_tag_string_type): Update.
10206 (attr_to_dynamic_prop): Update.
10207 (dwarf2_per_cu_data::int_type): Rename to...
10208 (dwarf2_per_objfile::int_type): ... this.
10209 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10210 (dwarf2_cu::addr_sized_int_type): ... this.
10211 (read_subrange_type): Update.
10212 (dwarf2_per_cu_data::addr_type): Rename to...
10213 (dwarf2_cu::addr_type): ... this.
10214 (set_die_type): Update.
10216 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10218 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10219 data through per_cu->cu.
10221 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10223 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10224 dwarf2_per_cu_data parameter fo dwarf2_cu.
10225 (lookup_dwo_type_unit): Likewise.
10226 (read_cutu_die_from_dwo): Likewise.
10227 (lookup_dwo_unit): Likewise.
10228 (open_and_init_dwo_file): Likewise.
10229 (lookup_dwo_cutu): Likewise.
10230 (lookup_dwo_comp_unit): Likewise.
10231 (lookup_dwo_type_unit): Likewise.
10232 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10233 (cutu_reader::cutu_reader): Update.
10235 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10237 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10239 (process_full_type_unit): Likewise.
10240 (process_queue): Update.
10242 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10244 * dwarf2/read.c (recursively_compute_inclusions): Add
10245 dwarf2_per_objfile parameter.
10246 (compute_compunit_symtab_includes): Likewise.
10247 (process_cu_includes): Update.
10249 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10251 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10253 (create_type_unit_group): Update.
10254 (process_psymtab_comp_unit_reader): Update.
10255 (build_type_psymtabs_reader): Update.
10257 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10259 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10260 object through m_this_cu->cu.
10262 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10264 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10265 the info parameter.
10266 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10268 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10270 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10271 per_objfile parameter.
10272 (load_full_type_unit): Add per_objfile parameter.
10273 (read_signatured_type): Likewise.
10274 (load_full_comp_unit): Likewise.
10275 (load_cu): Likewise.
10276 (dw2_do_instantiate_symtab): Likewise.
10277 (dw2_get_file_names): Likewise.
10278 (dw2_map_symtabs_matching_filename): Update.
10279 (dw_expand_symtabs_matching_file_matcher): Update.
10280 (dw2_map_symbol_filenames): Update.
10281 (process_psymtab_comp_unit): Add per_objfile parameter.
10282 (build_type_psymtabs_1): Update.
10283 (process_skeletonless_type_unit): Update.
10284 (dwarf2_build_psymtabs_hard): Update.
10285 (load_partial_comp_unit): Add per_objfile parameter.
10286 (scan_partial_symbols): Update.
10287 (load_full_comp_unit): Add per_objfile parameter.
10288 (process_imported_unit_die): Update.
10289 (create_cus_hash_table): Update.
10290 (find_partial_die): Update.
10291 (dwarf2_read_addr_index): Update.
10292 (follow_die_offset): Update.
10293 (dwarf2_fetch_die_loc_sect_off): Update.
10294 (dwarf2_fetch_constant_bytes): Update.
10295 (dwarf2_fetch_die_type_sect_off): Update.
10296 (follow_die_sig_1): Update.
10297 (load_full_type_unit): Add per_objfile parameter.
10298 (read_signatured_type): Likewise.
10300 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10302 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10305 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10307 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10308 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10309 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10311 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10312 (create_cus_from_index): Update.
10313 (dwarf2_read_gdb_index): Update.
10314 (create_cus_from_debug_names): Update.
10315 (dwarf2_read_debug_names): Update.
10316 (get_abbrev_section_for_cu): Update.
10317 (create_all_comp_units): Update.
10318 (read_attribute_value): Update.
10319 (get_debug_line_section): Update.
10320 * dwarf2/index-cache.c (index_cache::store): Update.
10321 * dwarf2/index-write.c (save_gdb_index_command): Update.
10322 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10324 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10326 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10328 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10329 dwarf2_per_cu_data::per_bfd.
10330 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10331 (create_type_unit_group): Likewise.
10332 (queue_comp_unit): Remove reference to
10333 per_cu->dwarf2_per_objfile.
10334 (maybe_queue_comp_unit): Likewise.
10335 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10336 (create_cus_hash_table): Assign new field.
10338 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10340 * dwarf2/read.c: Replace
10341 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10342 dwarf2_cu->per_objfile throughout.
10344 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10346 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10347 parameter, don't use per_cu->dwarf2_per_objfile.
10348 (dw2_instantiate_symtab): Likewise.
10349 (dw2_find_last_source_symtab): Update.
10350 (dw2_map_expand_apply): Update.
10351 (dw2_lookup_symbol): Update.
10352 (dw2_expand_symtabs_for_function): Update.
10353 (dw2_expand_all_symtabs): Update.
10354 (dw2_expand_symtabs_with_fullname): Update.
10355 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10356 don't use per_cu->dwarf2_per_objfile.
10357 (dw2_expand_marked_cus): Update.
10358 (dw2_find_pc_sect_compunit_symtab): Update.
10359 (dw2_debug_names_lookup_symbol): Update.
10360 (dw2_debug_names_expand_symtabs_for_function): Update.
10361 (dw2_debug_names_map_matching_symbols): Update.
10362 (dwarf2_psymtab::expand_psymtab): Update.
10364 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10366 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10367 <per_objfile>: New member.
10368 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10369 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10371 (cutu_reader::cutu_reader): Update.
10372 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10374 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10376 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10377 struct dwarf2_per_objfile.
10378 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10380 * dwarf2/read.c (set_die_type): Update.
10381 (get_die_type_at_offset): Update.
10383 2020-05-27 Tom Tromey <tom@tromey.com>
10384 Simon Marchi <simon.marchi@efficios.com>
10386 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10388 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10389 get_symtab, set_symtab>: New methods.
10390 <m_symtabs>: New field.
10391 (struct dwarf2_psymtab): Derive from partial_symtab.
10392 <readin_p, get_compunit_symtab>: Declare methods.
10393 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10394 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10396 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10397 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10398 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10399 (dw2_symtab_iter_next, dw2_print_stats)
10400 (dw2_expand_symtabs_with_fullname)
10401 (dw2_expand_symtabs_matching_one)
10402 (dw_expand_symtabs_matching_file_matcher)
10403 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10404 (dw2_debug_names_iterator::next)
10405 (dw2_debug_names_map_matching_symbols)
10406 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10407 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10408 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10410 (get_compunit_symtab, process_full_comp_unit)
10411 (process_full_type_unit): Update.
10412 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10414 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10416 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10417 then introduce a new dwarf2_per_objfile type.
10418 <read_line_string>: Move to the new dwarf2_per_objfile type.
10419 <objfile>: Likewise.
10420 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10421 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10422 dwarf2_per_objfile->per_bfd.
10423 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10424 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10425 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10426 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10427 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10428 (dwarf2_per_objfile::locate_sections): Rename to...
10429 (dwarf2_per_bfd::locate_sections): ... this.
10430 (dwarf2_per_objfile::get_cutu): Rename to...
10431 (dwarf2_per_bfd::get_cutu): ... this.
10432 (dwarf2_per_objfile::get_cu): Rename to...
10433 (dwarf2_per_bfd::get_cu): ... this.
10434 (dwarf2_per_objfile::get_tu): Rename to...
10435 (dwarf2_per_bfd::get_tu): ... this.
10436 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10437 (dwarf2_per_bfd::allocate_per_cu): ... this.
10438 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10439 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10440 (get_gdb_index_contents_ftype): Change parameter from
10441 dwarf2_per_objfile to dwarf2_per_bfd.
10442 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10443 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10445 2020-05-27 Tom Tromey <tom@tromey.com>
10446 Simon Marchi <simon.marchi@efficios.com>
10448 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10449 (allocate_piece_closure): Set "per_objfile" member.
10450 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10451 (locexpr_describe_location, loclist_describe_location): Use new
10453 * dwarf2/read.c (read_call_site_scope)
10454 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10455 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10456 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10457 handle_data_member_location): Set per_objfile member.
10458 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10460 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10462 2020-05-27 Tom Tromey <tom@tromey.com>
10464 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10465 allocate_signatured_type>: Declare new methods.
10466 <m_num_psymtabs>: New member.
10467 (struct dwarf2_per_cu_data) <index>: New member.
10468 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10469 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10470 (create_cu_from_index_list): Use allocate_per_cu.
10471 (create_signatured_type_table_from_index)
10472 (create_signatured_type_table_from_debug_names)
10473 (create_debug_type_hash_table, add_type_unit)
10474 (read_comp_units_from_section): Use allocate_signatured_type.
10476 2020-05-27 Tom Tromey <tom@tromey.com>
10478 * psymtab.c (partial_map_expand_apply)
10479 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10480 (psym_lookup_global_symbol_language)
10481 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10482 (psym_print_stats, psym_expand_symtabs_for_function)
10483 (psym_map_symbol_filenames, psym_map_matching_symbols)
10484 (psym_expand_symtabs_matching)
10485 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10486 (maintenance_check_psymtabs): Update.
10487 * psympriv.h (struct partial_symtab) <readin_p,
10488 get_compunit_symtab>: Add objfile parameter.
10489 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10491 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10492 get_compunit_symtab>: Likewise.
10493 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10495 2020-05-27 Tom Tromey <tom@tromey.com>
10497 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10499 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10500 (create_cu_from_index_list)
10501 (create_signatured_type_table_from_index)
10502 (create_signatured_type_table_from_debug_names)
10503 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10504 (dwarf2_create_include_psymtab)
10505 (create_debug_type_hash_table, add_type_unit)
10506 (create_type_unit_group, read_comp_units_from_section)
10507 (dwarf2_compute_name, create_cus_hash_table)
10508 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10509 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10511 (dw2_get_real_path): Likewise. Change argument to
10512 dwarf2_per_objfile.
10514 2020-05-27 Luis Machado <luis.machado@linaro.org>
10517 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10518 for ldrd (immediate).
10520 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10522 * command.h: Add comment giving the name of class_tui.
10523 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10524 create the fake command for the help for class_tui.
10526 2020-05-26 Tom Tromey <tromey@adacore.com>
10528 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10529 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10530 (val_atr): New function.
10531 (value_val_atr): Use it.
10532 * ada-valprint.c (print_optional_low_bound): Change low bound
10533 handling for enums.
10534 (val_print_packed_array_elements): Don't call discrete_position.
10535 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10536 discrete_position for enum types.
10537 * language.c (default_print_array_index): Change type.
10538 * language.h (struct language_defn) <la_print_array_index>: Add
10539 index_type parameter, change type of index_value.
10540 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10541 (default_print_array_index): Update.
10542 * valprint.c (maybe_print_array_index): Don't call
10543 value_from_longest. Update.
10544 (value_print_array_elements): Don't call discrete_position.
10546 2020-05-26 Tom Tromey <tromey@adacore.com>
10548 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10549 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10551 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10554 * avr-tdep.c (avr_integer_to_address): Return data or code
10555 address accordingly to the second 'type' argument of the
10558 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10560 * infcmd.c, inferior.h: (construct_inferior_arguments):
10561 Moved function from here to gdbsupport/common-inferior.{h,cc}
10563 2020-05-23 Tom Tromey <tom@tromey.com>
10565 Revert commit eca1f90c:
10566 * NEWS: Remove entry for completion styling.
10567 * completer.c (_rl_completion_prefix_display_length): Move
10569 (gdb_fnprint): Revert.
10570 (gdb_display_match_list_1): Likewise.
10571 * cli/cli-style.c (completion_prefix_style)
10572 (completion_difference_style, completion_suffix_style): Remove.
10573 (_initialize_cli_style): Revert.
10574 * cli/cli-style.h (completion_prefix_style)
10575 (completion_difference_style, completion_suffix_style): Don't
10578 2020-05-24 Pedro Alves <palves@redhat.com>
10580 * symtab.c (completion_list_add_name): Return boolean indication
10581 of whether the symbol matched.
10582 (completion_list_add_symbol): Don't try to remove C++ aliases if
10583 the symbol didn't match in the first place.
10584 * symtab.h (completion_list_add_name): Return bool.
10586 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10588 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10591 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10595 2020-05-23 Tom Tromey <tom@tromey.com>
10597 * NEWS: Add entry for completion styling.
10598 * completer.c (_rl_completion_prefix_display_length): Move
10599 declaration earlier.
10600 (gdb_fnprint): Use completion_style.
10601 (gdb_display_match_list_1): Likewise.
10602 * cli/cli-style.c (completion_prefix_style)
10603 (completion_difference_style, completion_suffix_style): New
10605 (_initialize_cli_style): Register new globals.
10606 * cli/cli-style.h (completion_prefix_style)
10607 (completion_difference_style, completion_suffix_style): Declare.
10609 2020-05-23 Pedro Alves <palves@redhat.com>
10611 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10612 (parse_escape): Use ISDIGIT instead of isdigit.
10613 (puts_debug): Use gdb_isprint instead of isprint.
10614 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10615 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10616 ISSPACE instead of isspace.
10617 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10618 instead of isspace.
10619 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10620 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10621 instead of isxdigit and ISDIGIT instead of isdigit.
10623 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10625 * gdbtypes.h (struct type) <field>: New method.
10626 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10629 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10631 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10632 (TYPE_FIELDS): Use type::fields. Change all call sites that
10633 modify the propery to use type::set_fields instead.
10635 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10637 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10638 type::num_fields instead.
10640 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10642 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10644 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10645 that modify the number of fields to use type::set_num_fields
10648 2020-05-22 Tom Tromey <tromey@adacore.com>
10650 * compile/compile-object-load.h (munmap_list_free): Don't
10653 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10655 * annotate.c (annotate_source_line): Update return type, add call
10656 to update current symtab and line.
10657 * annotate.h (annotate_source_line): Update return type, and
10658 extend header comment.
10659 * source.c (info_line_command): Check annotation_level before
10660 calling annotate_source_line.
10661 * stack.c (print_frame_info): If calling annotate_source_line
10662 returns true, then don't print any other source line information.
10664 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10666 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10668 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10670 * coffread.c (patch_type): Remove NULL check before xfree.
10671 * corefile.c (set_gnutarget): Likewise.
10672 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10673 * exec.c (build_section_table): Likewise.
10674 * remote.c (remote_target::pass_signals): Likewise.
10675 * utils.c (n_spaces): Likewise.
10676 * cli/cli-script.c (document_command): Likewise.
10677 * i386-windows-tdep.c (core_process_module_section): Likewise.
10678 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10680 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10682 * symfile.c (reread_symbols): Clear objfile's section_offsets
10683 vector and section indices, re-compute them by calling
10686 2020-05-20 Tom Tromey <tromey@adacore.com>
10688 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10689 (desc_one_bound, desc_index_type): Compute field name.
10691 2020-05-20 Tom de Vries <tdevries@suse.de>
10694 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10696 2020-05-20 Alan Modra <amodra@gmail.com>
10699 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10701 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10702 passed to bfd_set_filename.
10703 * symfile-mem.c (add_vsyscall_page): Likewise for string
10704 passed to symbol_file_add_from_memory.
10705 (symbol_file_add_from_memory): Make name param a const char* and
10708 2020-05-20 Alan Modra <amodra@gmail.com>
10710 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10711 rather than accessing bfd->filename directly.
10712 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10713 and use bfd_section_name.
10714 * dwarf2/frame.c (decode_frame_entry): Likewise.
10715 * exec.c (exec_set_section_address): Likewise.
10716 * solib-aix.c (solib_aix_bfd_open): Likewise.
10717 * stap-probe.c (get_stap_base_address): Likewise.
10718 * symfile.c (reread_symbols): Likewise.
10720 2020-05-19 Tom Tromey <tromey@adacore.com>
10722 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10724 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10726 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10728 2020-05-19 Pedro Alves <palves@redhat.com>
10730 * NEWS (set exec-file-mismatch): Adjust entry.
10731 * exec.c: Include "build-id.h".
10732 (validate_exec_file): Try to match build IDs instead of filenames.
10733 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10734 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10735 and pass down 'warn_if_slow'.
10736 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10737 gdb_bfd_open_closure to pass it down.
10738 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10740 2020-05-19 Pedro Alves <palves@redhat.com>
10742 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10743 * target.c (target_fileio_open_1): Rename to target_fileio_open
10744 and make extern. Use bool.
10745 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10746 (target_fileio_read_alloc_1): Adjust.
10747 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10748 (target_fileio_open_warn_if_slow): Delete declaration.
10750 2020-05-19 Pedro Alves <palves@redhat.com>
10752 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10753 Adjust all callers.
10755 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10757 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10758 whether disp is negative.
10760 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10762 * symfile.h (struct symfile_segment_data)
10763 <~symfile_segment_data>: Remove.
10764 <segment_info>: Change to std::vector.
10765 * symfile.c (default_symfile_segments): Update.
10766 * elfread.c (elf_symfile_segments): Update.
10768 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10770 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10772 <segment_bases, segment_sizes>: Remove.
10773 * symfile.c (default_symfile_segments): Update.
10774 * elfread.c (elf_symfile_segments): Update.
10775 * remote.c (remote_target::get_offsets): Update.
10776 * solib-target.c (solib_target_relocate_section_addresses):
10779 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10781 * symfile.h (struct symfile_segment_data): Initialize fields.
10782 <~symfile_segment_data>: Add.
10783 (symfile_segment_data_up): New.
10784 (struct sym_fns) <sym_segments>: Return a
10785 symfile_segment_data_up.
10786 (default_symfile_segments): Return a symfile_segment_data_up.
10787 (free_symfile_segment_data): Remove.
10788 (get_symfile_segment_data): Return a symfile_segment_data_up.
10789 * symfile.c (default_symfile_segments): Likewise.
10790 (get_symfile_segment_data): Likewise.
10791 (free_symfile_segment_data): Remove.
10792 (symfile_find_segment_sections): Update.
10793 * elfread.c (elf_symfile_segments): Return a
10794 symfile_segment_data_up.
10795 * remote.c (remote_target::get_offsets): Update.
10796 * solib-target.c (solib_target_relocate_section_addresses):
10798 * symfile-debug.c (debug_sym_segments): Return a
10799 symfile_segment_data_up.
10801 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10804 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10805 Hardcode register numbers.
10808 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10809 procfs_find_LDT_entry): Remove.
10810 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10811 procfs_find_LDT_entry): Remove.
10812 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10815 2020-05-17 Pedro Alves <palves@redhat.com>
10816 Andrew Burgess <andrew.burgess@embecosm.com>
10817 Keno Fischer <keno@juliacomputing.com>
10820 * breakpoint.c (build_target_condition_list): Update comments.
10821 (build_target_command_list): Update comments and skip matching
10823 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10824 a separate function. Simplify "set breakpoint auto-hw off"
10826 (insert_breakpoints): Update comment.
10827 (tracepoint_locations_match): New parameter. For breakpoints,
10828 compare location types too, if the caller wants to.
10829 (handle_automatic_hardware_breakpoints): New functions.
10830 (bp_location_is_less_than): Also sort by location type and
10831 hardware breakpoint length.
10832 (update_global_location_list): Handle "set breakpoint auto-hw on"
10834 (update_breakpoint_locations): Ask breakpoint_locations_match to
10835 ignore location types.
10837 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10839 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10840 type::name instead.
10842 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10844 * gdbtypes.h (struct type) <name, set_name>: New methods.
10845 (TYPE_CODE): Use type::name. Change all call sites used to set
10846 the name to use type::set_name instead.
10848 2020-05-16 Tom Tromey <tom@tromey.com>
10850 * top.c (quit_force): Update.
10851 * infrun.c (handle_no_resumed): Update.
10852 * top.h (all_uis): New function.
10855 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10857 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10859 2020-05-16 Pedro Alves <palves@redhat.com>
10862 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10864 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10866 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10868 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10869 (sparc64_adi_info): Likewise.
10871 2020-05-15 Tom Tromey <tom@tromey.com>
10873 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10875 (lookup_objfile_from_block): Remove.
10876 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10877 (lookup_global_symbol): Use block_objfile.
10878 * symtab.h (lookup_objfile_from_block): Don't declare.
10879 * printcmd.c (clear_dangling_display_expressions): Use
10881 * parse.c (operator_check_standard): Use block_objfile.
10883 2020-05-15 Tom Tromey <tom@tromey.com>
10885 * language.c (language_alloc_type_symbol): Set
10887 * symtab.c (initialize_objfile_symbol): Remove.
10888 (allocate_symbol): Remove.
10889 (allocate_template_symbol): Remove.
10890 * dwarf2/read.c (fixup_go_packaging): Use "new".
10891 (new_symbol): Use "new".
10892 (read_variable): Don't call initialize_objfile_symbol. Use
10894 (read_func_scope): Use "new".
10895 * xcoffread.c (process_xcoff_symbol): Don't call
10896 initialize_objfile_symbol.
10897 (SYMBOL_DUP): Remove.
10898 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10900 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10901 (allocate_template_symbol): Don't declare.
10902 (struct symbol): Add copy constructor. Change defaults.
10903 * jit.c (finalize_symtab): Use "new".
10904 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10906 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10907 (common_block_end): Use "new".
10908 * mdebugread.c (parse_symbol): Use "new".
10909 (new_symbol): Likewise.
10911 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10913 * NEWS: Mention changes to help and apropos.
10915 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10917 * command.h (enum command_class): Improve comments, document
10918 that class_alias is for user-defined aliases, give the class
10919 name for each class, remove unused class_xdb.
10920 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10921 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10922 by a precise class.
10923 * infcmd.c (_initialize_infcmd): Likewise.
10924 * reverse.c (_initialize_reverse): Likewise.
10925 * stack.c (_initialize_stack): Likewise.
10926 * symfile.c (_initialize_symfile): Likewise.
10927 * tracepoint.c (_initialize_tracepoint): Likewise.
10929 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10931 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10932 when their aliased command is traversed.
10933 (help_cmd): Add fput_command_names_styled call to
10934 output command name and aliases when command has an alias.
10936 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10938 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10939 * cli/cli-decode.c (help_cmd_list): Declare as static,
10940 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10941 a command together with the command.
10942 (fput_command_name_styled, fput_command_names_styled): New functions.
10943 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10944 fput_command_name_styled.
10945 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10946 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10948 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10950 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10951 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10952 * command.h (cmd_show_list): Likewise.
10953 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10954 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10956 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10958 * unittests/command-def-selftests.c (traverse_command_structure):
10959 Verify all commands of a list have the same prefix command and
10960 that only the top cmdlist commands have a null prefix.
10962 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10964 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10965 as prefix, not one of its aliases.
10966 (set_cmd_prefix): Remove.
10967 (do_add_cmd): Centralize the setting of the prefix of a command, when
10968 command is defined after its full chain of prefix commands.
10969 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10970 (add_setshow_cmd_full): Likewise.
10971 (update_prefix_field_of_prefixed_commands): New function.
10972 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10973 update_prefix_field_of_prefixed_commands.
10974 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10975 addresses of remote_set_cmdlist and remote_show_cmdlist given
10976 as argument, not the address of an argument.
10977 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10978 * gdb/remote.c (_initialize_remote): Likewise.
10980 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10982 * cli/cli-cmds.c (alias_command): Check for an existing alias
10983 using lookup_cmd_composition, as valid_command_p is too strict
10984 and forbids aliases that are the prefix of an existing alias
10986 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10987 command is properly recognised as a valid command.
10989 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10991 * unittests/help-doc-selftests.c: Rename to
10992 unittests/command-def-selftests.c
10993 * unittests/command-def-selftests.c (help_doc_tests): Update some
10995 (command_structure_tests, traverse_command_structure): New namespace
10997 (command_structure_invariants_tests): New function.
10998 (_initialize_command_def_selftests) Renamed from
10999 _initialize_help_doc_selftests, register command_structure_invariants
11002 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11004 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
11005 an alias of 'show'.
11007 2020-05-15 Joel Brobecker <brobecker@adacore.com>
11009 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
11010 ada_is_fixed_point_type. Update all callers.
11011 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
11013 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
11014 Update all callers.
11015 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
11016 print_fixed_point_type. Update all callers.
11017 * ada-valprint.c (ada_value_print_num): Replace call to
11018 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
11020 2020-05-14 Kevin Buettner <kevinb@redhat.com>
11022 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
11024 (cpu_supports_bts): Add CV_AMD case.
11026 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
11027 Simon Marchi <simon.marchi@efficios.com>
11029 * infrun.c (stop_all_threads): Collect multiple wait events at
11032 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11034 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11035 type::code instead.
11037 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11039 * gdbtypes.h (struct type) <code, set_code>: New methods.
11040 (TYPE_CODE): Use type::code. Change all call sites used to set
11041 the code to use type::set_code instead.
11043 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11044 Tom de Vries <tdevries@suse.de>
11045 Pedro Alves <palves@redhat.com>
11048 * infrun.c (stop_all_threads): Do NOT ignore
11049 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11050 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11052 (handle_no_resumed): Remove code handling a live inferior with no
11054 * remote.c (has_single_non_exited_thread): New.
11055 (remote_target::update_thread_list): Do not delete a thread if is
11056 the last thread of the process.
11057 * thread.c (thread_select): Call delete_exited_threads instead of
11060 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11062 * infrun.c (stop_all_threads): Enable/disable thread events of all
11063 targets. Move a debug message denoting the end of the function
11064 into the SCOPED_EXIT block.
11066 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11068 * process-stratum-target.h: Include <set>.
11069 (all_non_exited_process_targets, switch_to_target_no_thread): New
11070 function declarations.
11071 * process-stratum-target.c (all_non_exited_process_targets)
11072 (switch_to_target_no_thread): New function implementations.
11074 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11076 * infrun.c (handle_inferior_event): Extract out a piece of code
11078 (mark_non_executing_threads): ...this new function.
11080 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11082 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11085 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11087 * regcache.c (regcache_read_pc_protected): New function
11088 implementation that returns 0 if the PC cannot read via
11089 'regcache_read_pc'.
11090 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11091 instead of 'regcache_read_pc'.
11092 (keep_going_pass_signal): Ditto.
11094 2020-05-13 Tom Tromey <tromey@adacore.com>
11096 * ada-lang.c (align_value): Remove.
11097 (ada_template_to_fixed_record_type_1): Use align_up.
11099 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11101 * async-event.c: Update the copyright year.
11102 * async-event.h: Update the copyright year.
11104 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
11106 * objfiles.h (is_addr_in_objfile,
11107 shared_objfile_contains_address_p): Return bool.
11108 * objfile.c (is_addr_in_objfile,
11109 shared_objfile_contains_address_p): Return bool.
11111 2020-05-11 Tom Tromey <tromey@adacore.com>
11113 * cli/cli-cmds.c (info_command): Restore.
11114 (_initialize_cli_cmds): Use add_prefix_command for "info".
11115 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11117 2020-05-11 Tom Tromey <tromey@adacore.com>
11119 * ada-lang.c (ada_value_primitive_field): Now public.
11120 * ada-lang.h (ada_value_primitive_field): Declare.
11121 * ada-valprint.c (print_field_values): Use
11122 ada_value_primitive_field for wrapper fields.
11124 2020-05-11 Tom de Vries <tdevries@suse.de>
11126 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11129 2020-05-11 Tom de Vries <tdevries@suse.de>
11132 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11133 with length 0, if not gdb-produced.
11134 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11136 2020-05-09 Tom de Vries <tdevries@suse.de>
11139 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11142 2020-05-09 Tom Tromey <tom@tromey.com>
11144 * top.c (server_command): Now bool.
11145 * top.h (server_command): Now bool.
11147 2020-05-08 Tom Tromey <tromey@adacore.com>
11149 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11150 already being processed.
11152 2020-05-08 Tom Tromey <tom@tromey.com>
11154 * printcmd.c (struct display) <next>: Remove.
11155 <display>: New constructor.
11156 <exp_string>: Now a std::string.
11157 <enabled_p>: Now a bool.
11158 (display_number): Move definition earlier.
11159 (displays): Rename from display_chain. Now a std::vector.
11160 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11161 (display_command): Update.
11162 (do_one_display, disable_display)
11163 (enable_disable_display_command, do_enable_disable_display):
11165 (free_display): Remove.
11166 (clear_displays): Rewrite.
11167 (delete_display): Update.
11168 (map_display_numbers): Use function_view. Remove "data"
11170 (do_delete_display): Remove.
11171 (undisplay_command): Update.
11172 (do_one_display, do_displays, disable_display)
11173 (info_display_command): Update.
11174 (do_enable_disable_display): Remove.
11175 (enable_disable_display_command)
11176 (clear_dangling_display_expressions): Update.
11178 2020-05-08 Tom Tromey <tom@tromey.com>
11180 * symtab.c (set_symbol_cache_size)
11181 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11182 (maintenance_print_symbol_cache_statistics): Update.
11183 * symmisc.c (print_symbol_bcache_statistics)
11184 (print_objfile_statistics, maintenance_print_objfiles)
11185 (maintenance_info_symtabs, maintenance_check_symtabs)
11186 (maintenance_expand_symtabs, maintenance_info_line_tables):
11188 * symfile-debug.c (set_debug_symfile): Update.
11189 * source.c (forget_cached_source_info): Update.
11190 * python/python.c (gdbpy_progspaces): Update.
11191 * psymtab.c (maintenance_info_psymtabs): Update.
11192 * probe.c (parse_probes): Update.
11193 * linespec.c (iterate_over_all_matching_symtabs)
11194 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11195 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11196 * exec.c (exec_target::close): Update.
11197 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11198 * breakpoint.c (print_one_breakpoint_location)
11199 (create_longjmp_master_breakpoint)
11200 (create_std_terminate_master_breakpoint): Update.
11201 * progspace.c (program_spaces): Now a std::vector.
11202 (maybe_new_address_space): Update.
11203 (add_program_space): Remove.
11204 (program_space::program_space): Update.
11205 (remove_program_space): Update.
11206 (number_of_program_spaces): Remove.
11207 (print_program_space, update_address_spaces): Update.
11208 * progspace.h (program_spaces): Change type.
11209 (ALL_PSPACES): Remove.
11210 (number_of_program_spaces): Don't declare.
11211 (struct program_space) <next>: Remove.
11213 2020-05-08 Tom Tromey <tom@tromey.com>
11215 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11216 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11217 (enable_break): Update.
11218 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11219 (frv_fdpic_find_canonical_descriptor): Update.
11220 (frv_fetch_objfile_link_map): Update.
11221 * progspace.c (program_space::free_all_objfiles): Update.
11222 (program_space::solibs): New method.
11223 * progspace.h (struct program_space) <solibs>: New method.
11224 * solist.h (master_so_list): Don't declare.
11225 (ALL_SO_LIBS): Remove.
11226 * solib.h (so_list_head): Remove.
11227 (update_solib_list): Update comment.
11228 * solib.c (master_so_list): Remove.
11229 (solib_used, update_solib_list, solib_add)
11230 (info_sharedlibrary_command, clear_solib)
11231 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11233 2020-05-08 Tom Tromey <tom@tromey.com>
11235 * extension.c (extension_languages): Now a std::array.
11236 (ALL_EXTENSION_LANGUAGES): Remove.
11237 (get_ext_lang_defn, get_ext_lang_of_file)
11238 (eval_ext_lang_from_control_command): Update.
11239 (finish_ext_lang_initialization)
11240 (auto_load_ext_lang_scripts_for_objfile)
11241 (ext_lang_type_printers::ext_lang_type_printers)
11242 (apply_ext_lang_type_printers)
11243 (ext_lang_type_printers::~ext_lang_type_printers)
11244 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11245 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11246 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11247 (get_matching_xmethod_workers, ext_lang_colorize)
11248 (ext_lang_before_prompt): Update.
11249 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11251 2020-05-08 Tom Tromey <tom@tromey.com>
11253 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11255 <swap_string, m_string>: Remove.
11256 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11258 * stabsread.c (define_symbol, read_type): Update.
11259 * linespec.c (find_linespec_symbols): Update.
11260 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11261 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11262 * dbxread.c (read_dbx_symtab): Update.
11263 * cp-support.h (cp_canonicalize_string_full)
11264 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11265 Return unique_xmalloc_ptr.
11266 * cp-support.c (inspect_type): Update.
11267 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11268 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11270 * c-typeprint.c (print_name_maybe_canonical): Update.
11271 * break-catch-throw.c (check_status_exception_catchpoint):
11274 2020-05-08 Tom de Vries <tdevries@suse.de>
11276 * infrun.c (follow_fork): Copy current_line and current_symtab to
11279 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11281 * async-event.c (struct async_signal_handler, struct
11282 async_event_handler): Reformat, remove typedef.
11284 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11286 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11287 access thistype->main_type->dyn_prop_list directly.
11289 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11291 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11292 (remove_dyn_prop): Remove. Update all users to use
11293 type::remove_dyn_prop.
11294 * gdbtypes.c (remove_dyn_prop): Rename to...
11295 (type::remove_dyn_prop): ... this.
11297 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11299 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11300 (add_dyn_prop): Remove. Update all users to use
11301 type::add_dyn_prop.
11302 * gdbtypes.c (add_dyn_prop): Rename to...
11303 (type::add_dyn_prop): ... this.
11305 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11307 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11308 (get_dyn_prop): Remove. Update all users to use
11310 * gdbtypes.c (get_dyn_prop): Rename to...
11311 (type::dyn_prop): ... this.
11313 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11315 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11317 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11319 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11320 instruction, skip it if it's there.
11322 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11324 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11326 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11328 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11329 * gdbtypes.c (recursive_dump_type): Remove use of
11332 2020-05-03 Tom Tromey <tom@tromey.com>
11334 * breakpoint.c (catch_command, tcatch_command): Remove.
11335 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11336 add_show_prefix_cmd.
11337 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11338 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11340 (add_internal_problem_command): Use add_basic_prefix_cmd,
11341 add_show_prefix_cmd.
11342 * mips-tdep.c (set_mipsfpu_command): Remove.
11343 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11344 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11345 (_initialize_index_cache): Use add_basic_prefix_cmd.
11346 * memattr.c (dummy_cmd): Remove.
11347 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11348 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11349 (_initialize_tui_win): Use add_basic_prefix_cmd,
11350 add_show_prefix_cmd.
11351 * cli/cli-logging.c (set_logging_command): Remove.
11352 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11353 add_show_prefix_cmd.
11354 (show_logging_command): Remove.
11355 * target.c (target_command): Remove.
11356 (add_target): Use add_basic_prefix_cmd.
11358 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11360 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11362 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11364 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11367 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11369 * nbsd-nat.c (nbsd_enable_proc_events)
11370 (nbsd_nat_target::post_startup_inferior): Add.
11371 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11372 (nbsd_nat_target::update_thread_list): Rewrite.
11373 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11374 "PTRACE_LWP_CREATE".
11375 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11377 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11379 * stack.c (_initialize_stack): Remove duplicated creation
11380 of "frame" command and "f" alias.
11382 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11385 * gdbtypes.c (check_typedef): Calculate size of array of
11388 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11391 * i386-tdep.c (i386_push_dummy_call): Call
11392 i386_thiscall_push_dummy_call.
11393 (i386_thiscall_push_dummy_call): New function.
11394 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11395 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11396 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11398 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11400 * gdbarch.sh (do_read): Add shellcheck disable directive for
11403 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11405 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11406 "referenced but not assigned" warning.
11408 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11410 * gdbarch.sh: Remove code that sets fallbackdefault.
11412 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11414 * gdbarch.sh: Use shell operators && and || instead of
11417 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11419 * gdbarch.sh: Use $(...) instead of `...`.
11421 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11423 * gdbarch.sh: Use double quotes around variables.
11425 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11427 * gdbarch.sh: Use %s with printf, instead of variables in the
11430 2020-04-29 Tom Tromey <tromey@adacore.com>
11433 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11435 (read_enumeration_type): Call
11436 update_enumeration_type_from_children later. Update comments.
11437 (process_enumeration_scope): Don't create type fields.
11439 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11441 * nbsd-tdep.c: Include "xml-syscall.h".
11442 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11444 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11446 * nbsd-nat.c: Include "sys/wait.h".
11447 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11448 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11449 (nbsd_nat_target::remove_exec_catchpoint)
11450 (nbsd_nat_target::set_syscall_catchpoint): Add.
11451 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11452 (nbsd_nat_target::insert_exec_catchpoint)
11453 (nbsd_nat_target::remove_exec_catchpoint)
11454 (nbsd_nat_target::set_syscall_catchpoint): Add.
11455 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11456 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11457 `nbsd_get_syscall_number'.
11459 2020-04-29 Tom Tromey <tom@tromey.com>
11461 * stack.c (print_block_frame_labels): Remove.
11463 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11466 * ada-valprint.c (val_print_packed_array_elements): Move array
11467 end bracket to new line.
11468 (ada_val_print_string): Remove extra spaces before first array
11470 * c-valprint.c (c_value_print_array): Likewise.
11471 * m2-valprint.c (m2_print_array_contents): Likewise.
11472 (m2_value_print_inner): Likewise.
11473 * p-valprint.c (pascal_value_print_inner): Likewise.
11474 * valprint.c (generic_val_print_array): Likewise.
11475 (value_print_array_elements): Move first array element and array
11476 end bracket to new line.
11478 2020-04-29 Tom de Vries <tdevries@suse.de>
11481 * linespec.c (find_method): Fix ix calculation.
11483 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11485 * syscalls/update-netbsd.sh: New file.
11486 * syscalls/netbsd.xml: Regenerate.
11487 * data-directory/Makefile.in: Register `netbsd.xml' in
11490 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11492 * syscalls/update-freebsd.sh: Add double quotes.
11494 2020-04-28 Tom Tromey <tom@tromey.com>
11497 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11498 (cmdpy_init): Allow class_tui.
11500 2020-04-28 Mark Williams <mark@myosotissp.com>
11503 * dwarf2read.c: Add missing assingments to list_in_scope when
11504 start_symtab was already called.
11506 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11509 * dwarf2/read.c (offset_map_type): Use
11510 gdb:hash_enum<sect_offset> as hash function.
11512 2020-04-28 Tom de Vries <tdevries@suse.de>
11514 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11515 with DW_AT_signature.
11517 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11519 * configure.ac: Remove check for fs_base/gs_base in
11521 * configure: Re-generate.
11522 * config.in: Re-generate.
11523 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11524 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11525 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11527 2020-04-27 Luis Machado <luis.machado@linaro.org>
11529 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11530 problematic inline frame unwinding situation.
11531 * frame.c (frame_id_computed_p): New function.
11532 * frame.h (frame_id_computed_p): New prototype.
11534 2020-04-26 Tom Tromey <tom@tromey.com>
11536 * command.h (enum command_class) <class_pseudo>: Remove.
11538 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11540 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11543 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11545 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11546 `PT_GET_PROCESS_STATE' block.
11548 2020-04-24 Tom Tromey <tom@tromey.com>
11550 * symtab.h (symbol_get_demangled_name): Don't declare.
11551 * symtab.c (symbol_get_demangled_name): Remove.
11552 (general_symbol_info::natural_name)
11553 (general_symbol_info::demangled_name): Update.
11555 2020-04-24 Tom Tromey <tom@tromey.com>
11558 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11560 2020-04-24 Tom Tromey <tom@tromey.com>
11563 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11565 (new_symbol): Likewise.
11566 * compile/compile-object-load.c (get_out_value_type): Use
11567 symbol_matches_search_name.
11569 2020-04-24 Tom Tromey <tom@tromey.com>
11571 * dwarf2/read.c (add_partial_symbol): Do not call
11572 compute_and_set_names.
11574 2020-04-24 Tom Tromey <tom@tromey.com>
11576 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11579 2020-04-24 Tom Tromey <tom@tromey.com>
11581 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11582 (add_psymbol_to_list): New overload. Make old overload call new
11584 * psympriv.h (add_psymbol_to_list): New overload.
11586 2020-04-24 Tom Tromey <tom@tromey.com>
11588 * dwarf2/read.c (partial_die_info::read) <case
11589 DW_AT_linkage_name>: Use value_as_string.
11590 (dwarf2_string_attr): Use value_as_string.
11591 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11593 * dwarf2/attribute.c (attribute::value_as_string): New method.
11595 2020-04-24 Tom Tromey <tom@tromey.com>
11597 * symtab.c (general_symbol_info::natural_name)
11598 (general_symbol_info::demangled_name): Check for language_rust.
11600 2020-04-24 Tom Tromey <tom@tromey.com>
11602 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11603 (dwarf2_physname): ... from here.
11604 (partial_die_info::read): Add Rust "{" hack.
11606 2020-04-24 Tom Tromey <tom@tromey.com>
11608 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11610 (symbol_set_demangled_name): Don't declare.
11611 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11612 symbol_set_demangled_name.
11613 (general_symbol_info::set_language)
11614 (general_symbol_info::compute_and_set_names): Update.
11615 * minsyms.c (minimal_symbol_reader::install): Update.
11616 * dwarf2/read.c (new_symbol): Update.
11618 2020-04-24 Tom Tromey <tromey@adacore.com>
11621 * python/py-type.c (convert_field): Handle
11622 FIELD_LOC_KIND_DWARF_BLOCK.
11623 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11624 (typy_get_dynamic): Nw function.
11625 (type_object_getset): Add "dynamic".
11628 2020-04-24 Tom Tromey <tromey@adacore.com>
11630 * ada-typeprint.c (print_choices, print_variant_part)
11631 (print_record_field_types_dynamic): New functions.
11632 (print_record_field_types): Use print_record_field_types_dynamic.
11634 2020-04-24 Tom Tromey <tromey@adacore.com>
11636 * dwarf2/read.c (handle_data_member_location): New overload.
11637 (dwarf2_add_field): Use it.
11638 (decode_locdesc): Add "computed" parameter. Update comment.
11639 * gdbtypes.c (is_dynamic_type_internal): Also look for
11640 FIELD_LOC_KIND_DWARF_BLOCK.
11641 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11642 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11643 virtual base classes.
11644 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11645 FIELD_LOC_KIND_DWARF_BLOCK.
11647 2020-04-24 Tom Tromey <tromey@adacore.com>
11649 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11650 * gdbtypes.c (is_dynamic_type_internal): Check
11651 TYPE_HAS_DYNAMIC_LENGTH.
11652 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11653 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11655 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11658 2020-04-24 Tom Tromey <tromey@adacore.com>
11660 * dwarf2/read.c (struct variant_field): Rewrite.
11661 (struct variant_part_builder): New.
11662 (struct nextfield): Remove "variant" field. Add "offset".
11663 (struct field_info): Add "current_variant_part" and
11665 (alloc_discriminant_info): Remove.
11666 (alloc_rust_variant): New function.
11667 (quirk_rust_enum): Update.
11668 (dwarf2_add_field): Set "offset" member. Don't handle
11669 DW_TAG_variant_part.
11670 (offset_map_type): New typedef.
11671 (convert_variant_range, create_one_variant)
11672 (create_one_variant_part, create_variant_parts)
11673 (add_variant_property): New functions.
11674 (dwarf2_attach_fields_to_type): Call add_variant_property.
11675 (read_structure_type): Don't handle DW_TAG_variant_part.
11676 (handle_variant_part, handle_variant): New functions.
11677 (handle_struct_member_die): Use them.
11678 (process_structure_scope): Don't handle variant parts.
11679 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11680 (struct discriminant_info): Remove.
11681 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11682 (struct main_type) <flag_discriminated_union>: Remove.
11683 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11684 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11685 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11687 * valops.c (value_union_variant): Remove.
11688 * value.h (value_union_variant): Don't declare.
11690 2020-04-24 Tom Tromey <tromey@adacore.com>
11692 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11693 (ada_value_primitive_packed_val): Update.
11694 * ada-valprint.c (ada_value_print_1): Update.
11695 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11696 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11697 just an address. Use evaluate_for_locexpr_baton.
11698 (dwarf2_evaluate_property): Update.
11699 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11701 * findvar.c (default_read_var_value): Update.
11702 * gdbtypes.c (compute_variant_fields_inner)
11703 (resolve_dynamic_type_internal): Update.
11704 (resolve_dynamic_type): Change type of valaddr parameter.
11705 * gdbtypes.h (resolve_dynamic_type): Update.
11706 * valarith.c (value_subscripted_rvalue): Update.
11707 * value.c (value_from_contents_and_address): Update.
11709 2020-04-24 Tom Tromey <tromey@adacore.com>
11711 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11712 "push_initial_value" parameter.
11713 (dwarf2_evaluate_property): Likewise.
11714 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11716 2020-04-24 Tom Tromey <tromey@adacore.com>
11718 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11719 (variant::matches, compute_variant_fields_recurse)
11720 (compute_variant_fields_inner, compute_variant_fields): New
11722 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11723 Use resolved_type after type is made.
11724 (operator==): Add new cases.
11725 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11726 (struct discriminant_range, struct variant, struct variant_part):
11728 (union dynamic_prop_data) <variant_parts, original_type>: New
11730 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11731 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11733 * value.c (unpack_bits_as_long): Now public.
11734 * value.h (unpack_bits_as_long): Declare.
11736 2020-04-24 Tom Tromey <tromey@adacore.com>
11738 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11739 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11741 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11743 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11745 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11747 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11748 (remove_fork_catchpoint, post_startup_inferior)
11749 (post_attach): Move...
11750 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11751 (remove_fork_catchpoint, post_startup_inferior)
11752 (post_attach): ...here.
11753 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11754 (remove_fork_catchpoint, post_startup_inferior)
11755 (post_attach): Move...
11756 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11757 (remove_fork_catchpoint, post_startup_inferior)
11758 (post_attach): ...here.
11760 2020-04-24 Tom Tromey <tromey@adacore.com>
11762 * nat/windows-nat.h (struct windows_thread_info)
11763 <pc_adjusted>: New member.
11764 * windows-nat.c (windows_fetch_one_register): Check
11766 (windows_nat_target::get_windows_debug_event)
11767 (windows_nat_target::wait): Set pc_adjusted.
11769 2020-04-24 Tom de Vries <tdevries@suse.de>
11771 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11772 Run gdb-add-index inside temp dir.
11774 2020-04-23 Tom Tromey <tromey@adacore.com>
11776 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11779 2020-04-23 Luis Machado <luis.machado@linaro.org>
11781 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11782 get_frame_register instead of gdbarch_unwind_pc.
11784 2020-04-23 Tom de Vries <tdevries@suse.de>
11786 * symtab.c (lookup_global_symbol): Prefer def over decl.
11788 2020-04-23 Tom de Vries <tdevries@suse.de>
11791 * block.c (best_symbol, better_symbol): Promote to external.
11792 * block.h (best_symbol, better_symbol): Declare.
11793 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11796 2020-04-23 Tom Tromey <tromey@adacore.com>
11799 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11800 "const char *", not a "const std::string &".
11801 <name_and_matcher::operator==>: Update.
11802 * unittests/lookup_name_info-selftests.c: Change type of
11805 2020-04-23 Tom Tromey <tom@tromey.com>
11807 * inferior.h (iterate_over_inferiors): Don't declare.
11808 * inferior.c (iterate_over_inferiors): Remove.
11809 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11811 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11812 use iterate_over_inferiors.
11813 (darwin_resume_inferior_it)
11814 (struct resume_inferior_threads_param)
11815 (darwin_resume_inferior_threads_it): Remove.
11816 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11818 2020-04-23 Tom de Vries <tdevries@suse.de>
11820 * blockframe.c (find_pc_partial_function): Use
11821 find_pc_sect_compunit_symtab rather than
11822 objfile->sf->qf->find_pc_sect_compunit_symtab.
11824 2020-04-22 Tom de Vries <tdevries@suse.de>
11827 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11830 2020-04-22 Tom de Vries <tdevries@suse.de>
11833 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11836 2020-04-22 Tom de Vries <tdevries@suse.de>
11839 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11840 CU if already created.
11842 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11844 * infrun.c (displaced_step_fixup): Switch to the event_thread
11845 before calling displaced_step_restore, not after.
11847 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11849 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11850 its inferior is not recorded by us.
11851 (record_btrace_target_open): Replace call to
11852 all_non_exited_threads () with call to current_inferior
11853 ()->non_exited_threads ().
11854 (record_btrace_target::stop_recording): Likewise.
11855 (record_btrace_target::close): Likewise.
11856 (record_btrace_target::wait): Likewise.
11857 (record_btrace_target::record_stop_replaying): Likewise.
11859 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11861 * btrace.c (btrace_enable): Throw an error on double enables and
11862 when enabling recording fails.
11863 (btrace_disable): Throw an error if the thread is not recorded.
11865 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11867 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11868 request if we do not have a thread_info.
11870 2020-04-21 Tom de Vries <tdevries@suse.de>
11874 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11875 exception in get_frame_id.
11877 2020-04-20 Tom Tromey <tromey@adacore.com>
11879 * python/python.c (struct gdbpy_event): Mark move constructor as
11881 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11882 constructor as noexcept.
11883 * completer.h (struct completion_result): Mark move constructor as
11885 * completer.c (completion_result::completion_result): Use
11886 initialization style. Don't call reset_match_list.
11888 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11890 * MAINTAINERS (Write After Approval): Add myself.
11892 2020-04-18 Tom Tromey <tom@tromey.com>
11894 * windows-tdep.c (init_w32_command_list)
11895 (w32_prefix_command_valid): Restore.
11896 (_initialize_windows_tdep): Call init_w32_command_list.
11898 2020-04-18 Tom Tromey <tom@tromey.com>
11900 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11901 * value.c (value_fn_field): Update.
11902 * valops.c (find_function_in_inferior)
11903 (value_allocate_space_in_inferior): Update.
11904 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11906 * tui/tui-source.c (tui_source_window::set_contents): Update.
11907 * symtab.c (lookup_global_or_static_symbol)
11908 (find_function_start_sal_1, skip_prologue_sal)
11909 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11910 * symmisc.c (dump_msymbols, dump_symtab_1)
11911 (maintenance_print_one_line_table): Update.
11912 * symfile.c (init_entry_point_info, section_is_mapped)
11913 (list_overlays_command, simple_read_overlay_table)
11914 (simple_overlay_update_1): Update.
11915 * stap-probe.c (handle_stap_probe): Update.
11916 * stabsread.c (dbx_init_float_type, define_symbol)
11917 (read_one_struct_field, read_enum_type, read_range_type): Update.
11918 * source.c (info_line_command): Update.
11919 * python/python.c (gdbpy_source_objfile_script)
11920 (gdbpy_execute_objfile_script): Update.
11921 * python/py-type.c (save_objfile_types): Update.
11922 * python/py-objfile.c (py_free_objfile): Update.
11923 * python/py-inferior.c (python_new_objfile): Update.
11924 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11925 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11926 (maintenance_check_psymtabs): Update.
11927 * printcmd.c (info_address_command): Update.
11928 * objfiles.h (struct objfile) <arch>: New method, from
11930 (get_objfile_arch): Don't declare.
11931 * objfiles.c (get_objfile_arch): Remove.
11932 (filter_overlapping_sections): Update.
11933 * minsyms.c (msymbol_is_function): Update.
11934 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11935 (output_nondebug_symbol): Update.
11936 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11937 (mdebug_expand_psymtab): Update.
11938 * machoread.c (macho_add_oso_symfile): Update.
11939 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11941 * linux-fork.c (checkpoint_command): Update.
11942 * linespec.c (convert_linespec_to_sals): Update.
11943 * jit.c (finalize_symtab): Update.
11944 * infrun.c (insert_exception_resume_from_probe): Update.
11945 * ia64-tdep.c (ia64_find_unwind_table): Update.
11946 * hppa-tdep.c (internalize_unwinds): Update.
11947 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11949 * gcore.c (call_target_sbrk): Update.
11950 * elfread.c (record_minimal_symbol, elf_symtab_read)
11951 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11952 (elf_gnu_ifunc_resolve_by_got): Update.
11953 * dwarf2/read.c (create_addrmap_from_index)
11954 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11955 (read_debug_names_from_section)
11956 (process_psymtab_comp_unit_reader, add_partial_symbol)
11957 (add_partial_subprogram, process_full_comp_unit)
11958 (read_file_scope, read_func_scope, read_lexical_block_scope)
11959 (read_call_site_scope, dwarf2_ranges_read)
11960 (dwarf2_record_block_ranges, dwarf2_add_field)
11961 (mark_common_block_symbol_computed, read_tag_pointer_type)
11962 (read_tag_string_type, dwarf2_init_float_type)
11963 (dwarf2_init_complex_target_type, read_base_type)
11964 (partial_die_info::read, partial_die_info::read)
11965 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11966 (dwarf2_fetch_die_loc_sect_off): Update.
11967 * dwarf2/loc.c (dwarf2_find_location_expression)
11968 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11969 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11970 (dwarf2_loc_desc_get_symbol_read_needs)
11971 (locexpr_describe_location_piece, locexpr_describe_location_1)
11972 (loclist_describe_location): Update.
11973 * dwarf2/index-write.c (write_debug_names): Update.
11974 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11975 * dtrace-probe.c (dtrace_process_dof): Update.
11976 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11977 (process_one_symbol): Update.
11978 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11979 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11980 (coff_read_enum_type): Update.
11981 * cli/cli-cmds.c (edit_command, list_command): Update.
11982 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11983 * breakpoint.c (create_overlay_event_breakpoint)
11984 (create_longjmp_master_breakpoint)
11985 (create_std_terminate_master_breakpoint)
11986 (create_exception_master_breakpoint, get_sal_arch): Update.
11987 * block.c (block_gdbarch): Update.
11988 * annotate.c (annotate_source_line): Update.
11990 2020-04-17 Tom Tromey <tromey@adacore.com>
11992 * auto-load.c (show_auto_load_cmd): Remove.
11993 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11994 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11995 (maintenance_print_arc_command): Remove.
11996 * tui/tui-win.c (tui_command): Remove.
11997 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11998 * tui/tui-layout.c (tui_layout_command): Remove.
11999 (_initialize_tui_layout): Use add_basic_prefix_cmd.
12000 * python/python.c (user_set_python, user_show_python): Remove.
12001 (_initialize_python): Use add_basic_prefix_cmd,
12002 add_show_prefix_cmd.
12003 * guile/guile.c (set_guile_command, show_guile_command): Remove.
12004 (install_gdb_commands): Use add_basic_prefix_cmd,
12005 add_show_prefix_cmd.
12006 (info_guile_command): Remove.
12007 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
12008 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
12009 add_show_prefix_cmd.
12010 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
12011 Remove do_set and do_show parameters.
12012 * cli/cli-style.c (set_style, show_style): Remove.
12013 (_initialize_cli_style): Use add_basic_prefix_cmd,
12014 add_show_prefix_cmd.
12015 (cli_style_option::add_setshow_commands): Remove do_set and
12016 do_show parameters.
12017 (cli_style_option::add_setshow_commands): Use
12018 add_basic_prefix_cmd, add_show_prefix_cmd.
12019 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
12020 (set_style_name): Remove.
12021 * cli/cli-dump.c (dump_command, append_command): Remove.
12022 (srec_dump_command, ihex_dump_command, verilog_dump_command)
12023 (tekhex_dump_command, binary_dump_command)
12024 (binary_append_command): Remove.
12025 (_initialize_cli_dump): Use add_basic_prefix_cmd.
12026 * windows-tdep.c (w32_prefix_command_valid): Remove global.
12027 (init_w32_command_list): Remove; move into ...
12028 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
12029 * valprint.c (set_print, show_print, set_print_raw)
12030 (show_print_raw): Remove.
12031 (_initialize_valprint): Use add_basic_prefix_cmd,
12032 add_show_prefix_cmd.
12033 * typeprint.c (set_print_type, show_print_type): Remove.
12034 (_initialize_typeprint): Use add_basic_prefix_cmd,
12035 add_show_prefix_cmd.
12036 * record.c (set_record_command, show_record_command): Remove.
12037 (_initialize_record): Use add_basic_prefix_cmd,
12038 add_show_prefix_cmd.
12039 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12040 add_show_prefix_cmd.
12041 (info_command, show_command, set_debug, show_debug): Remove.
12042 * top.h (set_history, show_history): Don't declare.
12043 * top.c (set_history, show_history): Remove.
12044 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12045 (unset_tdesc_cmd): Remove.
12046 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12047 add_show_prefix_cmd.
12048 * symtab.c (info_module_command): Remove.
12049 (_initialize_symtab): Use add_basic_prefix_cmd.
12050 * symfile.c (overlay_command): Remove.
12051 (_initialize_symfile): Use add_basic_prefix_cmd.
12052 * sparc64-tdep.c (info_adi_command): Remove.
12053 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12054 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12055 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12056 add_show_prefix_cmd.
12057 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12058 (_initialize_serial): Use add_basic_prefix_cmd,
12059 add_show_prefix_cmd.
12060 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12061 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12062 add_show_prefix_cmd.
12063 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12064 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12065 add_show_prefix_cmd.
12066 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12067 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12068 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12069 add_show_prefix_cmd.
12070 * remote.c (remote_command, set_remote_cmd): Remove.
12071 (_initialize_remote): Use add_basic_prefix_cmd.
12072 * record-full.c (set_record_full_command)
12073 (show_record_full_command): Remove.
12074 (_initialize_record_full): Use add_basic_prefix_cmd,
12075 add_show_prefix_cmd.
12076 * record-btrace.c (cmd_set_record_btrace)
12077 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12078 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12079 (cmd_show_record_btrace_pt): Remove.
12080 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12081 add_show_prefix_cmd.
12082 * ravenscar-thread.c (set_ravenscar_command)
12083 (show_ravenscar_command): Remove.
12084 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12085 add_show_prefix_cmd.
12086 * mips-tdep.c (show_mips_command, set_mips_command)
12087 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12088 add_show_prefix_cmd.
12089 * maint.c (maintenance_command, maintenance_info_command)
12090 (maintenance_check_command, maintenance_print_command)
12091 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12092 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12093 add_show_prefix_cmd.
12094 (show_per_command_cmd): Remove.
12095 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12097 (maintenance_show_test_settings_cmd): Remove.
12098 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12099 add_show_prefix_cmd.
12100 * maint-test-options.c (maintenance_test_options_command):
12102 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12103 * macrocmd.c (macro_command): Remove
12104 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12105 * language.c (set_check, show_check): Remove.
12106 (_initialize_language): Use add_basic_prefix_cmd,
12107 add_show_prefix_cmd.
12108 * infcmd.c (unset_command): Remove.
12109 (_initialize_infcmd): Use add_basic_prefix_cmd.
12110 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12111 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12112 add_show_prefix_cmd.
12113 * go32-nat.c (go32_info_dos_command): Remove.
12114 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12115 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12116 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12117 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12118 (_initialize_frame): Use add_basic_prefix_cmd,
12119 add_show_prefix_cmd.
12120 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12121 (_initialize_dcache): Use add_basic_prefix_cmd,
12122 add_show_prefix_cmd.
12123 * cp-support.c (maint_cplus_command): Remove.
12124 (_initialize_cp_support): Use add_basic_prefix_cmd.
12125 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12126 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12127 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12128 add_basic_prefix_cmd, add_show_prefix_cmd.
12129 * breakpoint.c (save_command): Remove.
12130 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12131 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12132 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12133 add_show_prefix_cmd.
12134 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12135 (set_ada_command, show_ada_command): Remove.
12136 (_initialize_ada_language): Use add_basic_prefix_cmd,
12137 add_show_prefix_cmd.
12138 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12140 2020-04-16 Kamil Rytarowski <n54@gmx.com>
12142 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12143 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12145 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12147 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12150 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12152 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12153 import table is not at beginning of .idata section.
12155 2020-04-16 Pedro Alves <palves@redhat.com>
12157 * inferior.c (delete_inferior): Use delete operator directly
12158 instead of delete_program_space.
12159 * progspace.c (add_program_space): New, factored out from
12160 program_space::program_space.
12161 (remove_program_space): New, factored out from
12162 delete_program_space.
12163 (program_space::program_space): Remove intro comment. Rewrite.
12164 (program_space::~program_space): Remove intro comment. Call
12165 remove_program_space.
12166 (delete_program_space): Delete.
12167 * progspace.h (program_space::program_space): Make explicit. Move
12168 intro comment here, adjusted.
12169 (program_space::~program_space): Move intro comment here,
12171 (delete_program_space): Remove.
12173 2020-04-16 Tom Tromey <tromey@adacore.com>
12175 * windows-nat.c (windows_nat::handle_access_violation): New
12177 * nat/windows-nat.h (handle_access_violation): Declare.
12178 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12179 windows-nat.c. Call handle_access_violation.
12181 2020-04-16 Tom de Vries <tdevries@suse.de>
12184 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12185 CUs without psymtab.
12187 2020-04-16 Kevin Buettner <kevinb@redhat.com>
12189 * python/python.c (do_start_initialization): Don't call
12190 PyEval_InitThreads for Python 3.9 and beyond.
12192 2020-04-15 Kamil Rytarowski <n54@gmx.com>
12194 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12196 (obsd_nat_target::wait): Likewise.
12198 2020-04-15 Tom Tromey <tromey@adacore.com>
12200 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12201 (DEBUG_EXCEPT): Use debug_printf.
12203 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12205 * completer.c (class completion_tracker::completion_hash_entry)
12206 <hash_name>: New member function.
12207 (completion_tracker::discard_completions): New callback to hash a
12208 completion_hash_entry, pass this to htab_create_alloc.
12210 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12212 * windows-nat.c (windows_make_so): Warn rather than stopping with
12213 an error if realpath() fails.
12215 2020-04-14 Kamil Rytarowski <n54@gmx.com>
12217 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12218 (nbsd_nat_target::info_proc): Add do_status.
12220 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12221 Tom de Vries <tdevries@suse.de>
12224 * psympriv.h (struct partial_symtab::read_symtab)
12225 (struct partial_symtab::expand_psymtab)
12226 (struct partial_symtab::read_dependencies): Update comments.
12227 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12228 read_symtab for includer.
12229 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12230 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12231 (struct dwarf2_include_psymtab::m_readin): Remove.
12232 (struct dwarf2_include_psymtab::includer): New member function.
12233 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12235 2020-04-14 Tom de Vries <tdevries@suse.de>
12238 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12239 with NULL symbol_matcher and lookup_name.
12240 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12242 * dwarf2/read.c (dw2_expand_symtabs_matching)
12243 (dw2_debug_names_expand_symtabs_matching): Same.
12244 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12245 Make lookup_name a pointer. Update comment.
12246 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12247 lookup_name being a pointer.
12248 * symfile.c (expand_symtabs_matching): Same.
12249 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12250 * linespec.c (iterate_over_all_matching_symtabs): Same.
12252 2020-04-13 Tom Tromey <tom@tromey.com>
12254 * run-on-main-thread.c: Update include.
12255 * unittests/main-thread-selftests.c: Update include.
12256 * tui/tui-win.c: Update include.
12257 * tui/tui-io.c: Update include.
12258 * tui/tui-interp.c: Update include.
12259 * tui/tui-hooks.c: Update include.
12260 * top.h: Update include.
12261 * top.c: Update include.
12262 * ser-base.c: Update include.
12263 * remote.c: Update include.
12264 * remote-notif.c: Update include.
12265 * remote-fileio.c: Update include.
12266 * record-full.c: Update include.
12267 * record-btrace.c: Update include.
12268 * python/python.c: Update include.
12269 * posix-hdep.c: Update include.
12270 * mingw-hdep.c: Update include.
12271 * mi/mi-main.c: Update include.
12272 * mi/mi-interp.c: Update include.
12273 * main.c: Update include.
12274 * linux-nat.c: Update include.
12275 * interps.c: Update include.
12276 * infrun.c: Update include.
12277 * inf-loop.c: Update include.
12278 * event-top.c: Update include.
12279 * event-loop.c: Move to ../gdbsupport/.
12280 * event-loop.h: Move to ../gdbsupport/.
12281 * async-event.h: Update include.
12282 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12284 2020-04-13 Tom Tromey <tom@tromey.com>
12286 * tui/tui-win.c: Include async-event.h.
12287 * remote.c: Include async-event.h.
12288 * remote-notif.c: Include async-event.h.
12289 * record-full.c: Include async-event.h.
12290 * record-btrace.c: Include async-event.h.
12291 * infrun.c: Include async-event.h.
12292 * event-top.c: Include async-event.h.
12293 * event-loop.h: Move some declarations to async-event.h.
12294 * event-loop.c: Don't include ser-event.h or top.h. Move some
12295 code to async-event.c.
12296 * async-event.h: New file.
12297 * async-event.c: New file.
12298 * Makefile.in (COMMON_SFILES): Add async-event.c.
12299 (HFILES_NO_SRCDIR): Add async-event.h.
12301 2020-04-13 Tom Tromey <tom@tromey.com>
12303 * utils.c (flush_streams): New function.
12304 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12306 2020-04-13 Tom Tromey <tom@tromey.com>
12308 * event-loop.c (handle_file_event): Use warning, not
12311 2020-04-13 Tom Tromey <tom@tromey.com>
12313 * event-loop.c: Include <chrono>.
12315 2020-04-13 Tom Tromey <tom@tromey.com>
12317 * gdb_select.h: Move to ../gdbsupport/.
12318 * event-loop.c: Update include path.
12319 * top.c: Update include path.
12320 * ser-base.c: Update include path.
12321 * ui-file.c: Update include path.
12322 * ser-tcp.c: Update include path.
12323 * guile/scm-ports.c: Update include path.
12324 * posix-hdep.c: Update include path.
12325 * ser-unix.c: Update include path.
12326 * gdb_usleep.c: Update include path.
12327 * mingw-hdep.c: Update include path.
12328 * inflow.c: Update include path.
12329 * infrun.c: Update include path.
12330 * event-top.c: Update include path.
12332 2020-04-13 Tom Tromey <tom@tromey.com>
12334 * configure: Rebuild.
12335 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12337 2020-04-13 Tom Tromey <tom@tromey.com>
12339 * event-loop.h (start_event_loop): Don't declare.
12340 * event-loop.c (start_event_loop): Move...
12341 * main.c (start_event_loop): ...here. Now static.
12343 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12345 * MAINTAINERS: Update my email address.
12347 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12349 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12352 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12354 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12355 (nbsd_nat_target::info_proc): Add do_cmdline.
12357 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12359 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12360 (nbsd_nat_target::info_proc): Add do_cwd.
12362 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12364 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12366 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12368 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12369 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12370 (nbsd_nat_target::info_proc): New functions.
12371 * nbsd-nat.c (kinfo_get_vmmap): New function.
12372 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12373 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12374 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12375 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12377 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12378 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12379 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12380 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12381 (KINFO_VME_FLAG_GROWS_DOWN): New.
12383 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12385 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12388 2020-04-10 Tom Tromey <tromey@adacore.com>
12390 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12392 2020-04-10 Tom Tromey <tromey@adacore.com>
12394 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12395 separate debug files.
12397 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12399 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12401 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12403 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12404 Check for STATUS_WX86_BREAKPOINT.
12405 (windows_nat_target::wait): Same.
12407 2020-04-10 Tom de Vries <tdevries@suse.de>
12410 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12412 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12414 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12415 (Write After Approval): Remove Tom de Vries.
12417 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12420 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12422 * buildsym.c (record_line): Fix undefined behavior and preserve
12425 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12427 * auxv.h (svr4_auxv_parse): New.
12428 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12429 and generic_auxv_parse.
12430 (svr4_auxv_parse): Add.
12431 * obsd-tdep.c: Include "auxv.h".
12432 (obsd_auxv_parse): Remove.
12433 (obsd_init_abi): Remove comment.
12434 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12435 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12436 * nbsd-tdep.c: Include "auxv.h".
12437 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12439 2020-04-08 Tom Tromey <tromey@adacore.com>
12441 * nat/windows-nat.h (last_wait_event): Don't declare.
12442 (wait_for_debug_event): Update comment.
12443 * nat/windows-nat.c (last_wait_event): Now static.
12445 2020-04-08 Tom Tromey <tromey@adacore.com>
12447 * windows-nat.c (wait_for_debug_event): Move to
12449 * nat/windows-nat.h (wait_for_debug_event): Declare.
12450 * nat/windows-nat.c (wait_for_debug_event): Move from
12451 windows-nat.c. No longer static.
12453 2020-04-08 Tom Tromey <tromey@adacore.com>
12455 * windows-nat.c (get_windows_debug_event): Use
12456 fetch_pending_stop.
12457 * nat/windows-nat.h (fetch_pending_stop): Declare.
12458 * nat/windows-nat.c (fetch_pending_stop): New function.
12460 2020-04-08 Tom Tromey <tromey@adacore.com>
12462 * windows-nat.c (windows_continue): Use matching_pending_stop and
12463 continue_last_debug_event.
12464 * nat/windows-nat.h (matching_pending_stop)
12465 (continue_last_debug_event): Declare.
12466 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12467 (matching_pending_stop, continue_last_debug_event): New
12470 2020-04-08 Tom Tromey <tromey@adacore.com>
12472 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12473 (handle_exception_result): Move to nat/windows-nat.h.
12474 (DEBUG_EXCEPTION_SIMPLE): Remove.
12475 (windows_nat::handle_ms_vc_exception): New function.
12476 (handle_exception): Move to nat/windows-nat.c.
12477 (get_windows_debug_event): Update.
12478 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12480 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12481 (handle_exception_result): Move from windows-nat.c.
12482 (handle_exception): Declare.
12483 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12484 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12487 2020-04-08 Tom Tromey <tromey@adacore.com>
12489 * windows-nat.c (exception_count, event_count): Remove.
12490 (handle_exception, get_windows_debug_event)
12491 (do_initial_windows_stuff): Update.
12493 2020-04-08 Tom Tromey <tromey@adacore.com>
12495 * windows-nat.c (windows_nat::handle_load_dll)
12496 (windows_nat::handle_unload_dll): Rename. No longer static.
12497 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12500 2020-04-08 Tom Tromey <tromey@adacore.com>
12502 * complaints.h (stop_whining): Declare at top-level.
12503 (complaint): Don't declare stop_whining.
12505 2020-04-08 Tom Tromey <tromey@adacore.com>
12507 * windows-nat.c (windows_nat::handle_output_debug_string):
12508 Rename. No longer static.
12509 * nat/windows-nat.h (handle_output_debug_string): Declare.
12511 2020-04-08 Tom Tromey <tromey@adacore.com>
12513 * windows-nat.c (current_process_handle, current_process_id)
12514 (main_thread_id, last_sig, current_event, last_wait_event)
12515 (current_windows_thread, desired_stop_thread_id, pending_stops)
12516 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12517 (display_selectors, fake_create_process)
12518 (get_windows_debug_event): Update.
12519 * nat/windows-nat.h (current_process_handle, current_process_id)
12520 (main_thread_id, last_sig, current_event, last_wait_event)
12521 (current_windows_thread, desired_stop_thread_id, pending_stops)
12522 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12523 * nat/windows-nat.c (current_process_handle, current_process_id)
12524 (main_thread_id, last_sig, current_event, last_wait_event)
12525 (current_windows_thread, desired_stop_thread_id, pending_stops)
12526 (siginfo_er): New globals. Move from windows-nat.c.
12528 2020-04-08 Tom Tromey <tromey@adacore.com>
12530 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12531 (handle_load_dll): Update.
12532 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12534 2020-04-08 Tom Tromey <tromey@adacore.com>
12536 * windows-nat.c (enum thread_disposition_type): Move to
12538 (windows_nat::thread_rec): Rename from thread_rec. No longer
12540 (windows_add_thread, windows_nat_target::fetch_registers)
12541 (windows_nat_target::store_registers, handle_exception)
12542 (windows_nat_target::resume, get_windows_debug_event)
12543 (windows_nat_target::get_tib_address)
12544 (windows_nat_target::thread_name)
12545 (windows_nat_target::thread_alive): Update.
12546 * nat/windows-nat.h (enum thread_disposition_type): Move from
12548 (thread_rec): Declare.
12550 2020-04-08 Tom Tromey <tromey@adacore.com>
12552 * windows-nat.c: Add "using namespace".
12553 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12554 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12556 2020-04-08 Tom Tromey <tromey@adacore.com>
12558 * nat/windows-nat.h (struct windows_thread_info): Declare
12560 * nat/windows-nat.c (~windows_thread_info): New.
12562 2020-04-08 Tom Tromey <tromey@adacore.com>
12565 * windows-nat.c (current_event): Update comment.
12566 (last_wait_event, desired_stop_thread_id): New globals.
12567 (struct pending_stop): New.
12568 (pending_stops): New global.
12569 (windows_nat_target) <stopped_by_sw_breakpoint>
12570 <supports_stopped_by_sw_breakpoint>: New methods.
12571 (windows_fetch_one_register): Add assertions. Adjust PC.
12572 (windows_continue): Handle pending stops. Suspend other threads
12573 when stepping. Use last_wait_event
12574 (wait_for_debug_event): New function.
12575 (get_windows_debug_event): Use wait_for_debug_event. Handle
12576 pending stops. Queue spurious stops.
12577 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12578 (windows_nat_target::kill): Use wait_for_debug_event.
12579 * nat/windows-nat.h (struct windows_thread_info)
12580 <stopped_at_software_breakpoint>: New field.
12581 * nat/windows-nat.c (windows_thread_info::resume): Clear
12582 stopped_at_software_breakpoint.
12584 2020-04-08 Tom Tromey <tromey@adacore.com>
12586 * windows-nat.c (enum thread_disposition_type): New.
12587 (thread_rec): Replace "get_context" parameter with "disposition";
12589 (windows_add_thread, windows_nat_target::fetch_registers)
12590 (windows_nat_target::store_registers, handle_exception)
12591 (windows_nat_target::resume, get_windows_debug_event)
12592 (windows_nat_target::get_tib_address)
12593 (windows_nat_target::thread_name)
12594 (windows_nat_target::thread_alive): Update.
12596 2020-04-08 Tom Tromey <tromey@adacore.com>
12598 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12599 (windows_continue): Use windows_continue::resume.
12600 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12601 resume>: Declare new methods.
12602 * nat/windows-nat.c: New file.
12603 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12605 2020-04-08 Tom Tromey <tromey@adacore.com>
12607 * windows-nat.c (windows_add_thread, windows_delete_thread)
12608 (windows_nat_target::fetch_registers)
12609 (windows_nat_target::store_registers, fake_create_process)
12610 (windows_nat_target::resume, windows_nat_target::resume)
12611 (get_windows_debug_event, windows_nat_target::wait)
12612 (windows_nat_target::pid_to_str)
12613 (windows_nat_target::get_tib_address)
12614 (windows_nat_target::get_ada_task_ptid)
12615 (windows_nat_target::thread_name)
12616 (windows_nat_target::thread_alive): Use lwp, not tid.
12618 2020-04-08 Tom Tromey <tromey@adacore.com>
12620 * windows-nat.c (handle_exception)
12621 (windows_nat_target::thread_name): Update.
12622 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12623 <name>: Now unique_xmalloc_ptr.
12625 2020-04-08 Tom Tromey <tromey@adacore.com>
12627 * windows-nat.c (thread_rec)
12628 (windows_nat_target::fetch_registers): Update.
12629 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12631 <debug_registers_changed, reload_context>: Now bool.
12633 2020-04-08 Tom Tromey <tromey@adacore.com>
12635 * windows-nat.c (windows_add_thread): Use new.
12636 (windows_init_thread_list, windows_delete_thread): Use delete.
12637 (get_windows_debug_event): Update.
12638 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12639 destructor, and initializers.
12641 2020-04-08 Tom Tromey <tromey@adacore.com>
12643 * windows-nat.c (struct windows_thread_info): Remove.
12644 * nat/windows-nat.h: New file.
12646 2020-04-08 Tom Tromey <tromey@adacore.com>
12648 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12649 (thread_rec, windows_add_thread, windows_delete_thread)
12650 (windows_continue): Update.
12652 2020-04-08 Tom Tromey <tromey@adacore.com>
12654 * windows-nat.c (struct windows_thread_info): Remove typedef.
12655 (thread_head): Remove.
12656 (thread_list): New global.
12657 (thread_rec, windows_add_thread, windows_init_thread_list)
12658 (windows_delete_thread, windows_continue): Update.
12660 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12662 * windows-tdep.h (windows_init_abi): Add comment.
12663 (cygwin_init_abi): New declaration.
12664 * windows-tdep.c: Split signal enumeration in two, one for
12665 Windows and one for Cygwin.
12666 (windows_gdb_signal_to_target): Only deal with signal of the
12668 (cygwin_gdb_signal_to_target): New function.
12669 (windows_init_abi): Rename to windows_init_abi_common, don't set
12670 gdb_signal_to_target gdbarch method. Add new new function with
12672 (cygwin_init_abi): New function.
12673 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12674 comment. Don't call windows_init_abi.
12675 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12676 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12677 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12678 i386_windows_init_abi_common, don't call windows_init_abi. Add
12679 a new function of this name.
12680 (i386_cygwin_init_abi): New function.
12681 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12684 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12686 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12688 (dwarf2_read_gdb_index): Update.
12690 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12692 * nbsd-tdep.c: Include "objfiles.h".
12693 (nbsd_skip_solib_resolver): New.
12694 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12696 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12698 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12699 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12700 with DW_LLE_base_addressx are being emitted in DWARFv5.
12701 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12702 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12705 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12707 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12708 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12709 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12710 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12711 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12712 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12713 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12716 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12718 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12719 (read_loclist_index): New function definition.
12720 (lookup_loclist_base): New function definition.
12721 (read_loclist_header): New function definition.
12722 (dwarf2_cu): Add loclist_base and loclist_header field.
12723 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12724 (read_full_die_1): Read the value of DW_AT_loclists_base.
12725 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12726 (read_attribute_value): Handle DW_FORM_loclistx.
12727 (skip_one_die): Handle DW_FORM_loclistx.
12728 (loclist_header): New structure declaration.
12729 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12731 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12733 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12734 constructor. Remove `addr` parameter from other constructor and
12735 add `per_cu` parameter.
12736 * dwarf2/read.c (create_partial_symtab): Update.
12738 2020-04-07 Tom de Vries <tdevries@suse.de>
12741 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12742 (partial_die_info::fixup): Inherit has_const_value.
12744 2020-04-07 Tom de Vries <tdevries@suse.de>
12746 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12747 symbols without address.
12749 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12751 * nbsd-nat.h (struct thread_info): Add forward declaration.
12752 (nbsd_nat_target::thread_alive): Add.
12753 (nbsd_nat_target::thread_name): Likewise.
12754 (nbsd_nat_target::update_thread_list): Likewise.
12755 (update_thread_list::post_attach): Likewise.
12756 (post_attach::pid_to_str): Likewise.
12757 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12758 (nbsd_thread_lister): Add.
12759 (nbsd_nat_target::thread_alive): Likewise.
12760 (nbsd_nat_target::thread_name): Likewise.
12761 (nbsd_add_threads): Likewise.
12762 (update_thread_list::post_attach): Likewise.
12763 (nbsd_nat_target::update_thread_list): Likewise.
12764 (post_attach::pid_to_str): Likewise.
12766 2020-04-06 Tom Tromey <tromey@adacore.com>
12768 * ada-valprint.c (print_variant_part): Extract the variant field.
12769 (print_field_values): Use the field as the outer value when
12772 2020-04-06 Tom Tromey <tromey@adacore.com>
12774 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12775 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12776 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12777 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12778 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12780 2020-04-06 Tom Tromey <tromey@adacore.com>
12782 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12785 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12787 * nbsd-tdep.c: Include "gdbarch.h".
12788 Define enum with NetBSD signal numbers.
12789 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12790 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12791 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12792 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12793 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12794 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12795 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12796 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12797 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12798 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12799 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12800 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12802 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12805 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12807 2020-04-03 Tom Tromey <tromey@adacore.com>
12809 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12810 Read constant block.
12812 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12814 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12815 (gdb_bfd_get_full_section_contents): New declaration.
12816 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12817 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12818 gdb_bfd_get_full_section_contents.
12820 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12822 * exec.c (build_section_table): Replace internal_error with
12824 (section_table_xfer_memory_partial): Likewise.
12825 * mdebugread.c (parse_partial_symbols): Likewise.
12826 * psymtab.c (lookup_partial_symbol): Likewise.
12827 * utils.c (wrap_here): Likewise.
12829 2020-04-02 Tom Tromey <tromey@adacore.com>
12831 * f-lang.c (build_fortran_types): Use arch_type to initialize
12832 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12834 2020-04-02 Tom Tromey <tromey@adacore.com>
12836 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12839 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12840 Bernd Edlinger <bernd.edlinger@hotmail.de>
12841 Tom Tromey <tromey@adacore.com>
12843 * buildsym.c (buildsym_compunit::record_line): Remove
12844 deduplication code.
12846 2020-04-02 Tom de Vries <tdevries@suse.de>
12849 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12851 2020-04-02 Tom de Vries <tdevries@suse.de>
12853 * dwarf2/read.c (dwarf2_gdb_index_functions,
12854 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12856 * psymtab.c (psym_lookup_global_symbol_language): New function.
12857 (psym_functions): Init psym_lookup_global_symbol_language with
12858 psym_lookup_global_symbol_language.
12859 * symfile-debug.c (debug_sym_quick_functions): Init
12860 lookup_global_symbol_language with NULL.
12861 * symfile.c (set_initial_language): Remove fixme comment.
12862 * symfile.h (struct quick_symbol_functions): Add
12863 lookup_global_symbol_language.
12864 * symtab.c (find_quick_global_symbol_language): New function.
12865 (find_main_name): Use find_quick_global_symbol_language.
12867 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12869 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12871 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12873 * buildsym.c (record_line): Fix undefined behavior and preserve
12876 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12878 * buildsym.c (record_line): Fix the resizing condition.
12880 2020-04-01 Tom Tromey <tom@tromey.com>
12882 * value.h (value_literal_complex): Add comment.
12883 * valops.c (value_literal_complex): Refer to value.h.
12885 2020-04-01 Tom Tromey <tom@tromey.com>
12887 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12888 (scalar_type): New rule, from typebase.
12889 (typebase): Use scalar_type. Recognize complex types.
12890 (field_name): Handle FLOAT_KEYWORD.
12891 (ident_tokens): Add _Complex and __complex__.
12893 2020-04-01 Tom Tromey <tom@tromey.com>
12896 * valarith.c (promotion_type, complex_binop): New functions.
12897 (scalar_binop): Handle complex numbers. Use promotion_type.
12898 (value_pos, value_neg, value_complement): Handle complex numbers.
12900 2020-04-01 Tom Tromey <tom@tromey.com>
12902 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12903 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12904 (parse_number): Handle complex numbers.
12906 2020-04-01 Tom Tromey <tom@tromey.com>
12908 * c-valprint.c (c_decorations): Change complex suffix to "i".
12910 2020-04-01 Tom Tromey <tom@tromey.com>
12912 * valprint.c (generic_value_print_complex): Use accessors.
12913 * value.h (value_real_part, value_imaginary_part): Declare.
12914 * valops.c (value_real_part, value_imaginary_part): New
12916 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12918 2020-04-01 Tom Tromey <tom@tromey.com>
12920 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12921 (read_range_type): Update.
12922 * mdebugread.c (basic_type): Update.
12923 * go-lang.c (build_go_types): Use init_complex_type.
12924 * gdbtypes.h (struct main_type) <complex_type>: New member.
12925 (init_complex_type): Update.
12926 (arch_complex_type): Don't declare.
12927 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12928 Make name if none given. Use alloc_type_copy. Look for cached
12930 (arch_complex_type): Remove.
12931 (gdbtypes_post_init): Use init_complex_type.
12932 * f-lang.c (build_fortran_types): Use init_complex_type.
12933 * dwarf2/read.c (read_base_type): Update.
12934 * d-lang.c (build_d_types): Use init_complex_type.
12935 * ctfread.c (read_base_type): Update.
12937 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12939 * infrun.c (stop_all_threads): Update assertion, plus when
12940 stopping threads, take into account that we might be trying
12941 to stop an all-stop target.
12942 (stop_waiting): Call 'stop_all_threads' if there exists a
12945 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12947 * target.h (exists_non_stop_target): New function declaration.
12948 * target.c (exists_non_stop_target): New function.
12950 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12953 * eval.c (is_integral_or_integral_reference): New function.
12954 (evaluate_subexp_standard): Allow integer references in
12955 pointer arithmetic.
12957 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12959 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12960 check for no ptid in the stop reply when the target is non-stop.
12962 2020-04-01 Tom Tromey <tromey@adacore.com>
12964 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12965 "name" parameter to rvalue reference. Initialize m_name_holder.
12966 <lookup_name_info>: New overloads.
12967 <name>: Return gdb::string_view.
12968 <c_str>: New method.
12969 <make_ignore_params>: Update.
12970 <search_name_hash>: Update.
12971 <language_lookup_name>: Return const char *.
12972 <m_name>: Change type.
12973 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12974 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12975 (lookup_name_info::match_any): Update.
12976 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12978 * minsyms.c (linkage_name_str): Update.
12979 * language.c (default_symbol_name_matcher): Update.
12980 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12982 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12983 (ada_lookup_name_info::ada_lookup_name_info): Update.
12984 (literal_symbol_name_matcher): Update.
12986 2020-04-01 Tom Tromey <tromey@adacore.com>
12988 * psymtab.c (psymtab_search_name): Remove function.
12989 (psym_lookup_symbol): Create search name and lookup name here.
12990 (lookup_partial_symbol): Remove "name" parameter; add
12992 (psym_expand_symtabs_for_function): Update.
12994 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12997 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12999 2020-03-31 Tom Tromey <tromey@adacore.com>
13001 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
13004 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
13006 * features/riscv/32bit-csr.xml: Regenerated.
13007 * features/riscv/64bit-csr.xml: Regenerated.
13009 2020-03-30 Tom Tromey <tromey@adacore.com>
13011 * ada-valprint.c (print_variant_part): Update.
13012 * ada-lang.h (ada_which_variant_applies): Update.
13013 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
13014 outer_valaddr parameters; replace with "outer" value parameter.
13015 (to_fixed_variant_branch_type): Update.
13017 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13019 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
13020 <list>. Remove inclusion of observable.h.
13021 (PPC_DEBUG_CURRENT_VERSION): Move up define.
13022 (struct arch_lwp_info): New struct.
13023 (class ppc_linux_dreg_interface): New class.
13024 (struct ppc_linux_process_info): New struct.
13025 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
13026 <low_new_clone, low_forget_process, low_prepare_to_resume>
13027 <copy_thread_dreg_state, mark_thread_stale>
13028 <mark_debug_registers_changed, register_hw_breakpoint>
13029 <clear_hw_breakpoint, register_wp, clear_wp>
13030 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
13031 <num_memory_accesses, get_trigger_type>
13032 <create_watchpoint_request, hwdebug_point_cmp>
13033 <init_arch_lwp_info, get_arch_lwp_info>
13034 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13036 <struct ptid_hash>: New inner struct.
13037 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13039 (saved_dabr_value, hwdebug_info, max_slots_number)
13040 (struct hw_break_tuple, struct thread_points, ppc_threads)
13041 (have_ptrace_hwdebug_interface)
13042 (hwdebug_find_thread_points_by_tid)
13043 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13044 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13045 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13046 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13047 use m_dreg_interface.
13048 (hwdebug_point_cmp): Change to...
13049 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13050 reference arguments instead of pointers.
13051 (ppc_linux_nat_target::ranged_break_num_registers): Use
13053 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13054 m_dreg_interface. Call register_hw_breakpoint.
13055 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13056 m_dreg_interface. Call clear_hw_breakpoint.
13057 (get_trigger_type): Change to...
13058 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13060 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13061 use m_dreg_interface. Call register_hw_breakpoint.
13062 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13063 use m_dreg_interface. Call clear_hw_breakpoint.
13064 (can_use_watchpoint_cond_accel): Change to...
13065 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13066 method. Update comment, use m_dreg_interface and
13068 (calculate_dvc): Change to...
13069 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13071 (num_memory_accesses): Change to...
13072 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13073 (check_condition): Change to...
13074 (ppc_linux_nat_target::check_condition): ...this method.
13075 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13076 comment, use m_dreg_interface.
13077 (create_watchpoint_request): Change to...
13078 (ppc_linux_nat_target::create_watchpoint_request): ...this
13079 method. Use m_dreg_interface.
13080 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13081 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13082 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13083 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13084 (ppc_linux_nat_target::low_forget_process)
13085 (ppc_linux_nat_target::low_new_fork)
13086 (ppc_linux_nat_target::low_new_clone)
13087 (ppc_linux_nat_target::low_delete_thread)
13088 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13089 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13090 only call mark_thread_stale.
13091 (ppc_linux_thread_exit): Remove.
13092 (ppc_linux_nat_target::stopped_data_address): Change to...
13093 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13094 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13095 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13096 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13097 comment. Call low_stopped_data_address.
13098 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13100 (ppc_linux_nat_target::masked_watch_num_registers): Use
13102 (ppc_linux_nat_target::copy_thread_dreg_state)
13103 (ppc_linux_nat_target::mark_thread_stale)
13104 (ppc_linux_nat_target::mark_debug_registers_changed)
13105 (ppc_linux_nat_target::register_hw_breakpoint)
13106 (ppc_linux_nat_target::clear_hw_breakpoint)
13107 (ppc_linux_nat_target::register_wp)
13108 (ppc_linux_nat_target::clear_wp)
13109 (ppc_linux_nat_target::init_arch_lwp_info)
13110 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13111 (_initialize_ppc_linux_nat): Remove observer callback.
13113 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13115 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13116 (ppc_linux_nat_target::auxv_parse)
13117 (ppc_linux_nat_target::read_description)
13118 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13121 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13123 * linux-nat.h (low_new_clone): New method.
13124 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13126 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13128 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13129 (dbx_expand_psymtab): ... this.
13130 (start_psymtab): Update.
13131 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13132 (mdebug_expand_psymtab): ... this.
13133 (parse_partial_symbols): Update.
13134 (new_psymtab): Update.
13135 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13136 (xcoff_expand_psymtab): ... this.
13137 (xcoff_start_psymtab): Update.
13139 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13141 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13142 <expand_dependencies>: ... this.
13143 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13144 (partial_symtab::expand_dependencies): ... this.
13145 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13147 (dwarf2_psymtab::expand_psymtab): Update.
13148 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13149 * mdebugread.c (psymtab_to_symtab_1): Update.
13150 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13152 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13154 * psympriv.h (discard_psymtab): Remove.
13155 * dbxread.c (dbx_end_psymtab): Update.
13156 * xcoffread.c (xcoff_end_psymtab): Update.
13158 2020-03-28 Tom Tromey <tom@tromey.com>
13160 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13163 2020-03-28 Tom Tromey <tom@tromey.com>
13165 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13167 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
13169 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13171 2020-03-26 John Baldwin <jhb@FreeBSD.org>
13173 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13175 2020-03-26 Tom Tromey <tom@tromey.com>
13177 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13178 (mark_common_block_symbol_computed, read_tag_string_type)
13179 (attr_to_dynamic_prop, read_subrange_type): Update.
13180 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13181 to be methods on struct attribute.
13182 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13183 (read_call_site_scope, partial_die_info::read)
13184 (partial_die_info::read, lookup_die_type, follow_die_ref):
13186 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13187 from dwarf2_get_ref_die_offset.
13188 (attribute::constant_value): New method, from
13189 dwarf2_get_attr_constant_value.
13190 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13192 <constant_value>: New method.
13194 2020-03-26 Tom Tromey <tom@tromey.com>
13196 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13197 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13198 (dwarf_type_encoding_name): Move to stringify.c.
13199 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13200 * dwarf2/stringify.c: New file.
13201 * dwarf2/stringify.h: New file.
13203 2020-03-26 Tom Tromey <tom@tromey.com>
13205 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13208 2020-03-26 Tom Tromey <tom@tromey.com>
13210 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13212 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13213 (lookup_ranges_base): Likewise.
13214 (read_cutu_die_from_dwo, read_full_die_1): Update.
13216 2020-03-26 Tom Tromey <tom@tromey.com>
13218 * dwarf2/read.c (read_import_statement, read_file_scope)
13219 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13220 (read_lexical_block_scope, read_call_site_scope)
13221 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13222 (handle_struct_member_die, process_structure_scope)
13223 (update_enumeration_type_from_children)
13224 (process_enumeration_scope, read_array_type, read_common_block)
13225 (read_namespace, read_module, read_subroutine_type): Update.
13226 (sibling_die): Remove.
13228 2020-03-26 Tom Tromey <tom@tromey.com>
13230 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13231 (build_type_psymtabs_reader, read_structure_type)
13232 (read_enumeration_type, read_full_die_1): Update.
13233 (dwarf2_attr_no_follow): Move to die.h.
13234 * dwarf2/die.h (struct die_info) <attr>: New method.
13236 2020-03-26 Tom Tromey <tom@tromey.com>
13238 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13239 <base_address>: Now an optional.
13240 (dwarf2_find_base_address, dwarf2_rnglists_process)
13241 (dwarf2_ranges_process, fill_in_loclist_baton)
13242 (dwarf2_symbol_mark_computed): Update.
13244 2020-03-26 Tom Tromey <tom@tromey.com>
13246 * dwarf2/read.c (struct die_info): Move to die.h.
13247 * dwarf2/die.h: New file.
13249 2020-03-26 Tom Tromey <tom@tromey.com>
13251 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13253 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13254 Move to line-header.c.
13255 (read_checked_initial_length_and_offset, read_formatted_entries):
13257 (dwarf_decode_line_header): Split into two.
13258 * dwarf2/line-header.c
13259 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13261 (read_checked_initial_length_and_offset, read_formatted_entries):
13263 (dwarf_decode_line_header): New function, split from read.c.
13265 2020-03-26 Tom Tromey <tom@tromey.com>
13267 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13269 * dwarf2/read.c (read_attribute_value): Update.
13270 (dwarf2_per_objfile::read_line_string): Rename from
13271 read_indirect_line_string.
13272 (read_formatted_entries): Update.
13274 2020-03-26 Tom Tromey <tom@tromey.com>
13276 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13279 2020-03-26 Tom Tromey <tom@tromey.com>
13281 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13283 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13284 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13287 2020-03-26 Tom Tromey <tom@tromey.com>
13289 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13290 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13291 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13292 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13294 2020-03-26 Tom Tromey <tom@tromey.com>
13296 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13297 file_names_size, file_full_name, file_file_name>: Use const.
13298 <file_name_at, file_names>: Add const overload.
13299 * dwarf2/line-header.c (line_header::file_file_name)
13300 (line_header::file_full_name): Update.
13302 2020-03-26 Tom Tromey <tom@tromey.com>
13304 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13305 (macro_start_file, consume_improper_spaces)
13306 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13307 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13308 (dwarf_decode_macros): Move to macro.c.
13309 * dwarf2/macro.c: New file.
13310 * dwarf2/macro.h: New file.
13311 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13313 2020-03-26 Tom Tromey <tom@tromey.com>
13315 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13317 * dwarf2/section.c: New method. From
13318 read_indirect_string_at_offset_from.
13319 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13320 (read_indirect_string_at_offset_from): Move to section.c.
13321 (read_indirect_string_at_offset): Rewrite.
13322 (read_indirect_line_string_at_offset): Remove.
13323 (read_indirect_string, read_indirect_line_string)
13324 (dwarf_decode_macro_bytes): Update.
13326 2020-03-26 Tom Tromey <tom@tromey.com>
13328 * dwarf2/section.h (struct dwarf2_section_info)
13329 <overload_complaint>: Declare.
13330 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13331 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13332 Rename from dwarf2_section_buffer_overflow_complaint.
13333 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13334 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13336 2020-03-26 Tom Tromey <tom@tromey.com>
13338 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13340 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13342 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13345 2020-03-26 Tom Tromey <tom@tromey.com>
13347 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13349 2020-03-26 Tom Tromey <tom@tromey.com>
13351 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13353 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13355 (dwarf_decode_macros): Update.
13357 2020-03-26 Tom Tromey <tom@tromey.com>
13359 * dwarf2/read.c (read_attribute_value): Update.
13360 (read_indirect_string_from_dwz): Move to dwz.c; change into
13362 (dwarf_decode_macro_bytes): Update.
13363 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13364 * dwarf2/dwz.c: New file.
13365 * Makefile.in (COMMON_SFILES): Add dwz.c.
13367 2020-03-26 Tom Tromey <tom@tromey.com>
13369 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13370 * dwarf2/read.c: Add include.
13371 * dwarf2/index-write.c: Add include.
13372 * dwarf2/index-cache.c: Add include.
13373 * dwarf2/dwz.h: New file.
13375 2020-03-25 Tom Tromey <tom@tromey.com>
13377 * compile/compile-object-load.c (get_out_value_type): Mention
13378 correct symbol name in error message.
13380 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13382 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13384 2020-03-25 Tom de Vries <tdevries@suse.de>
13386 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13387 * symmisc.c (dump_symtab_1): Print user and includes fields.
13388 (maintenance_info_symtabs): Same.
13390 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13393 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13394 (riscv_regcache_cooked_write): New function.
13395 (riscv_push_dummy_call): Use new function.
13396 (riscv_return_value): Likewise.
13398 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13400 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13401 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13402 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13403 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13404 * infrun.c (follow_fork): Likewise.
13405 (follow_fork_inferior): Likewise.
13406 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13407 * linux-nat.h (class linux_nat_target): Likewise.
13408 * remote.c (class remote_target) <follow_fork>: Likewise.
13409 (remote_target::follow_fork): Likewise.
13410 * target-delegates.c: Re-generate.
13411 * target.c (default_follow_fork): Likewise.
13412 (target_follow_fork): Likewise.
13413 * target.h (struct target_ops) <follow_fork>: Likewise.
13414 (target_follow_fork): Likewise.
13416 2020-03-24 Tom de Vries <tdevries@suse.de>
13418 * psymtab.c (maintenance_info_psymtabs): Print user field.
13420 2020-03-20 Tom Tromey <tromey@adacore.com>
13422 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13424 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13427 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13429 * ptrace.m4: Don't check for ptrace declaration.
13430 * config.in: Re-generate.
13431 * configure: Re-generate.
13432 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13435 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13437 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13439 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13440 * sparc-nat.c (gdb_ptrace): Likewise.
13441 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13443 2020-03-20 Tom Tromey <tromey@adacore.com>
13445 * c-exp.y (lex_one_token): Fix assert.
13447 2020-03-20 Tom Tromey <tromey@adacore.com>
13449 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13450 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13453 2020-03-20 Tom Tromey <tromey@adacore.com>
13455 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13457 2020-03-20 Tom Tromey <tromey@adacore.com>
13459 * ada-valprint.c (print_variant_part): Remove parameters; switch
13460 to value-based API.
13461 (print_field_values): Likewise.
13462 (ada_val_print_struct_union): Likewise.
13463 (ada_value_print_1): Update.
13465 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13467 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13468 nbsd_nat_target instead of inf_ptrace_target.
13469 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13472 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13474 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13475 it to the ptrace call.
13476 * (store_registers): Likewise.
13478 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13480 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13481 it to the ptrace call.
13482 * (store_registers): Likewise.
13484 2020-03-19 Luis Machado <luis.machado@linaro.org>
13486 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13487 valid, fetch vg value from ptrace.
13489 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13490 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13491 * inf-ptrace.c: Likewise.
13492 * (gdb_ptrace): Add.
13493 * (inf_ptrace_target::resume): Update.
13494 * (inf_ptrace_target::xfer_partial): Likewise.
13495 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13496 * (inf_ptrace_peek_poke): Update.
13498 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13500 * x86-bsd-nat.c (gdb_ptrace): New.
13501 * (x86bsd_dr_set): Add new argument `ptid'.
13502 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13503 x86bsd_dr_set_addr): Update.
13505 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13507 * remote.c (remote_target::process_stop_reply): Handle events for
13508 all threads differently.
13510 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13512 * completer.c (completion_tracker::remove_completion): Define new
13514 * completer.h (completion_tracker::remove_completion): Declare new
13516 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13517 when adding a C++ function symbol.
13519 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13521 * completer.c (completion_tracker::completion_hash_entry): Define
13523 (advance_to_filename_complete_word_point): Call
13524 recompute_lowest_common_denominator.
13525 (completion_tracker::completion_tracker): Call discard_completions
13526 to setup the hash table.
13527 (completion_tracker::discard_completions): Allow for being called
13528 from the constructor, pass new equal function, and element deleter
13529 when constructing the hash table. Initialise new class member
13531 (completion_tracker::maybe_add_completion): Remove use of
13532 m_entries_vec, and store more information into m_entries_hash.
13533 (completion_tracker::recompute_lcd_visitor): New function, most
13534 content taken from...
13535 (completion_tracker::recompute_lowest_common_denominator):
13536 ...here, this now just visits each item in the hash calling the
13538 (completion_tracker::build_completion_result): Remove use of
13539 m_entries_vec, call recompute_lowest_common_denominator.
13540 * completer.h (completion_tracker::have_completions): Remove use
13542 (completion_tracker::completion_hash_entry): Declare new class.
13543 (completion_tracker::recompute_lowest_common_denominator): Change
13544 function signature.
13545 (completion_tracker::recompute_lcd_visitor): Declare new function.
13546 (completion_tracker::m_entries_vec): Delete.
13547 (completion_tracker::m_entries_hash): Initialize to NULL.
13548 (completion_tracker::m_lowest_common_denominator_valid): New
13550 (completion_tracker::m_lowest_common_denominator_max_length): New
13553 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13555 * regformats/regdef.h: Put reg in gdb namespace.
13557 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13559 * i386-bsd-nat.c (gdb_ptrace): New.
13560 * (i386bsd_fetch_inferior_registers,
13561 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13562 * (i386bsd_fetch_inferior_registers,
13563 i386bsd_store_inferior_registers) Use gdb_ptrace.
13565 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13567 * amd64-bsd-nat.c (gdb_ptrace): New.
13568 * (amd64bsd_fetch_inferior_registers,
13569 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13570 * (amd64bsd_fetch_inferior_registers,
13571 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13573 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13575 * user-regs.c (user_reg::read): Rename to...
13576 (user_reg::xread): ...this.
13577 * (append_user_reg): Rename argument `read' to `xread'.
13578 * (user_reg_add_builtin): Likewise.
13579 * (user_reg_add): Likewise.
13580 * (value_of_user_reg): Likewise.
13582 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13584 * sparc-nat.c (gdb_ptrace): New.
13585 * sparc-nat.c (sparc_fetch_inferior_registers)
13586 (sparc_store_inferior_registers) Remove obsolete comment.
13587 * sparc-nat.c (sparc_fetch_inferior_registers)
13588 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13589 * sparc-nat.c (sparc_fetch_inferior_registers)
13590 (sparc_store_inferior_registers) Use gdb_ptrace.
13592 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13594 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13595 it to the ptrace call.
13596 * sh-nbsd-nat.c (store_registers): Likewise.
13598 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13600 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13601 nbsd_nat_target instead of inf_ptrace_target.
13602 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13605 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13607 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13609 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13611 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13613 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13615 2020-03-17 Tom de Vries <tdevries@suse.de>
13618 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13620 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13622 (process_imported_unit_die): Skip import of c++ CUs.
13624 2020-03-16 Tom Tromey <tom@tromey.com>
13626 * p-valprint.c (pascal_object_print_value): Initialize
13629 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13630 Shahab Vahedi <shahab@synopsys.com>
13632 * Makefile.in: Add arch/arc.o
13633 * configure.tgt: Likewise.
13634 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13635 (_initialize_arc_tdep): Don't initialize old target descriptions.
13636 (arc_read_description): New function to cache target descriptions.
13637 * arc-tdep.h (arc_read_description): Add proto type.
13638 * arch/arc.c: New file.
13639 * arch/arc.h: Likewise.
13640 * features/Makefile: Replace old target descriptions with new.
13641 * features/arc-arcompact.c: Remove.
13642 * features/arc-arcompact.xml: Likewise.
13643 * features/arc-v2.c: Likewise
13644 * features/arc-v2.xml: Likewise
13645 * features/arc/aux-arcompact.xml: New file.
13646 * features/arc/aux-v2.xml: Likewise.
13647 * features/arc/core-arcompact.xml: Likewise.
13648 * features/arc/core-v2.xml: Likewise.
13649 * features/arc/aux-arcompact.c: Generate.
13650 * features/arc/aux-v2.c: Likewise.
13651 * features/arc/core-arcompact.c: Likewise.
13652 * features/arc/core-v2.c: Likewise.
13653 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13655 2020-03-16 Tom Tromey <tromey@adacore.com>
13658 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13659 putting value into bcache.
13661 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13664 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13666 (amd64_windows_init_abi_common): ... this. Don't set size of
13668 (amd64_windows_init_abi): New function.
13669 (amd64_cygwin_init_abi): New function.
13670 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13672 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13675 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13677 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13678 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13679 (pe_import_directory_entry): New struct type.
13680 (is_linked_with_cygwin_dll): New function.
13681 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13682 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13683 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13685 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13687 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13688 i386_cygwin_core_osabi_sniffer.
13690 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13692 * i386-cygwin-tdep.c: Rename to...
13693 * i386-windows-tdep.c: ... this.
13694 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13695 i386-windows-tdep.c.
13696 * configure.tgt: Likewise.
13698 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13700 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13701 * osabi.c (gdb_osabi_names): Add "Windows".
13702 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13703 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13704 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13705 i386_cygwin_osabi_sniffer.
13706 (_initialize_i386_cygwin_tdep): Register OS ABI
13707 GDB_OSABI_WINDOWS for i386.
13708 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13709 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13710 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13712 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13713 when the target matches '*-*-mingw*'.
13715 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13717 * defs.h (enum gdb_osabi): Move to...
13718 * osabi.h (enum gdb_osabi): ... here.
13719 * gdbarch.sh: Include osabi.h in gdbarch.h.
13720 * gdbarch.h: Re-generate.
13722 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13724 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13726 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13728 2020-03-14 Tom Tromey <tom@tromey.com>
13730 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13732 (c_type_print_modifier): Likewise. Add "language" parameter.
13733 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13734 (c_type_print_base_1): Update.
13735 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13737 * type-stack.c (type_stack::insert): Handle tp_atomic and
13739 (type_stack::follow_type_instance_flags): Likewise.
13740 (type_stack::follow_types): Likewise. Merge type-following code.
13741 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13742 (space_identifier, cv_with_space_id)
13743 (const_or_volatile_or_space_identifier_noopt)
13744 (const_or_volatile_or_space_identifier): Remove.
13745 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13747 (ptr_operator, typebase): Update.
13748 (enum token_flag) <FLAG_C>: New constant.
13749 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13751 (lex_one_token): Handle FLAG_C.
13753 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13755 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13756 it to the ptrace call.
13757 * m68k-bsd-nat.c (store_registers): Likewise.
13759 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13761 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13763 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13764 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13765 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13767 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13769 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13770 nbsd_nat_target instead of inf_ptrace_target.
13771 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13774 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13776 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13779 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13781 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13782 it to the ptrace call.
13783 * alpha-bsd-nat.c (store_registers): Likewise.
13785 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13787 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13789 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13790 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13791 fill_fpregset): Likewise.
13793 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13795 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13796 nbsd_nat_target instead of inf_ptrace_target.
13797 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13800 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13802 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13805 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13807 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13808 it to the ptrace call.
13809 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13810 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13811 * arm-nbsd-nat.c (store_register): Likewise.
13812 * arm-nbsd-nat.c (store_regs): Likewise.
13813 * arm-nbsd-nat.c (store_fp_register): Likewise.
13814 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13816 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13818 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13819 nbsd_nat_target instead of inf_ptrace_target.
13820 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13823 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13825 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13826 it to the ptrace call.
13827 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13829 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13831 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13832 it to the ptrace call.
13833 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13835 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13837 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13839 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13841 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13843 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13844 instead of inf_ptrace_target.
13845 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13848 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13850 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13853 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13855 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13858 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13860 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13863 2020-03-13 Tom Tromey <tom@tromey.com>
13865 * value.h (val_print): Don't declare.
13866 * valprint.h (val_print_array_elements)
13867 (val_print_scalar_formatted, generic_val_print): Don't declare.
13868 * valprint.c (generic_val_print_array): Take a struct value.
13869 (generic_val_print_ptr, generic_val_print_memberptr)
13870 (generic_val_print_bool, generic_val_print_int)
13871 (generic_val_print_char, generic_val_print_complex)
13872 (generic_val_print): Remove.
13873 (generic_value_print): Update.
13874 (do_val_print): Remove unused parameters. Don't call
13876 (val_print): Remove.
13877 (common_val_print): Update. Don't call value_check_printable.
13878 (val_print_scalar_formatted, val_print_array_elements): Remove.
13879 * rust-lang.c (rust_val_print): Remove.
13880 (rust_language_defn): Update.
13881 * p-valprint.c (pascal_val_print): Remove.
13882 (pascal_value_print_inner): Update.
13883 (pascal_object_print_val_fields, pascal_object_print_val):
13885 (pascal_object_print_static_field): Update.
13886 * p-lang.h (pascal_val_print): Don't declare.
13887 * p-lang.c (pascal_language_defn): Update.
13888 * opencl-lang.c (opencl_language_defn): Update.
13889 * objc-lang.c (objc_language_defn): Update.
13890 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13891 * m2-lang.h (m2_val_print): Don't declare.
13892 * m2-lang.c (m2_language_defn): Update.
13893 * language.h (struct language_defn) <la_val_print>: Remove.
13894 * language.c (unk_lang_value_print_inner): Rename. Change
13896 (unknown_language_defn, auto_language_defn): Update.
13897 * go-valprint.c (go_val_print): Remove.
13898 * go-lang.h (go_val_print): Don't declare.
13899 * go-lang.c (go_language_defn): Update.
13900 * f-valprint.c (f_val_print): Remove.
13901 * f-lang.h (f_value_print): Don't declare.
13902 * f-lang.c (f_language_defn): Update.
13903 * d-valprint.c (d_val_print): Remove.
13904 * d-lang.h (d_value_print): Don't declare.
13905 * d-lang.c (d_language_defn): Update.
13906 * cp-valprint.c (cp_print_value_fields)
13907 (cp_print_value_fields_rtti, cp_print_value): Remove.
13908 (cp_print_static_field): Update.
13909 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13910 (c_val_print_struct, c_val_print_union, c_val_print_int)
13911 (c_val_print_memberptr, c_val_print): Remove.
13912 * c-lang.h (c_val_print_array, cp_print_value_fields)
13913 (cp_print_value_fields_rtti): Don't declare.
13914 * c-lang.c (c_language_defn, cplus_language_defn)
13915 (asm_language_defn, minimal_language_defn): Update.
13916 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13917 (ada_val_print_enum): Take a struct value.
13918 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13919 (ada_val_print): Remove.
13920 (ada_value_print_1): Update.
13921 (printable_val_type): Remove.
13922 * ada-lang.h (ada_val_print): Don't declare.
13923 * ada-lang.c (ada_language_defn): Update.
13925 2020-03-13 Tom Tromey <tom@tromey.com>
13927 * valprint.c (do_val_print): Update.
13928 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13930 (value_to_value_object_no_release): Declare.
13931 * python/py-value.c (value_to_value_object_no_release): New
13933 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13935 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13937 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13939 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13941 (gdbscm_apply_val_pretty_printer): Take a struct value.
13942 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13944 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13946 * extension-priv.h (struct extension_language_ops)
13947 <apply_val_pretty_printer>: Take a struct value.
13948 * cp-valprint.c (cp_print_value): Create a struct value.
13949 (cp_print_value): Update.
13951 2020-03-13 Tom Tromey <tom@tromey.com>
13953 * ada-valprint.c (print_field_values): Call common_val_print.
13955 2020-03-13 Tom Tromey <tom@tromey.com>
13957 * ada-valprint.c (val_print_packed_array_elements): Remove
13958 bitoffset and val parameters. Call common_val_print.
13959 (ada_val_print_string): Remove offset, address, and original_value
13961 (ada_val_print_array): Update.
13962 (ada_value_print_array): New function.
13963 (ada_value_print_1): Call it.
13965 2020-03-13 Tom Tromey <tom@tromey.com>
13967 * ada-valprint.c (ada_value_print): Use common_val_print.
13969 2020-03-13 Tom Tromey <tom@tromey.com>
13971 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13973 2020-03-13 Tom Tromey <tom@tromey.com>
13975 * ada-valprint.c (ada_value_print_num): New function.
13976 (ada_value_print_1): Use it.
13978 2020-03-13 Tom Tromey <tom@tromey.com>
13980 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13982 2020-03-13 Tom Tromey <tom@tromey.com>
13984 * ada-valprint.c (ada_value_print_ptr): New function.
13985 (ada_value_print_1): Use it.
13987 2020-03-13 Tom Tromey <tom@tromey.com>
13989 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13990 call common_val_print.
13991 (ada_val_print_1): Update.
13992 (ada_value_print_1): New function.
13993 (ada_value_print_inner): Rewrite.
13995 2020-03-13 Tom Tromey <tom@tromey.com>
13997 * cp-valprint.c (cp_print_value_fields): Update.
13998 (cp_print_value): New function.
14000 2020-03-13 Tom Tromey <tom@tromey.com>
14002 * m2-valprint.c (m2_value_print_inner): Use
14003 cp_print_value_fields.
14004 * cp-valprint.c (cp_print_value_fields): New function.
14005 * c-valprint.c (c_value_print_struct): New function.
14006 (c_value_print_inner): Use c_value_print_struct.
14007 * c-lang.h (cp_print_value_fields): Declare.
14009 2020-03-13 Tom Tromey <tom@tromey.com>
14011 * c-valprint.c (c_value_print_array): New function.
14012 (c_value_print_inner): Use it.
14014 2020-03-13 Tom Tromey <tom@tromey.com>
14016 * c-valprint.c (c_value_print_memberptr): New function.
14017 (c_value_print_inner): Use it.
14019 2020-03-13 Tom Tromey <tom@tromey.com>
14021 * c-valprint.c (c_value_print_int): New function.
14022 (c_value_print_inner): Use it.
14024 2020-03-13 Tom Tromey <tom@tromey.com>
14026 * c-valprint.c (c_value_print_ptr): New function.
14027 (c_value_print_inner): Use it.
14029 2020-03-13 Tom Tromey <tom@tromey.com>
14031 * c-valprint.c (c_value_print_inner): Rewrite.
14033 2020-03-13 Tom Tromey <tom@tromey.com>
14035 * valprint.c (generic_value_print_complex): New function.
14036 (generic_value_print): Use it.
14038 2020-03-13 Tom Tromey <tom@tromey.com>
14040 * valprint.c (generic_val_print_float): Don't call
14041 val_print_scalar_formatted.
14042 (generic_val_print, generic_value_print): Update.
14044 2020-03-13 Tom Tromey <tom@tromey.com>
14046 * valprint.c (generic_value_print_char): New function
14047 (generic_value_print): Use it.
14049 2020-03-13 Tom Tromey <tom@tromey.com>
14051 * valprint.c (generic_value_print_int): New function.
14052 (generic_value_print): Use it.
14054 2020-03-13 Tom Tromey <tom@tromey.com>
14056 * valprint.c (generic_value_print_bool): New function.
14057 (generic_value_print): Use it.
14059 2020-03-13 Tom Tromey <tom@tromey.com>
14061 * valprint.c (generic_val_print_func): Simplify.
14062 (generic_val_print, generic_value_print): Update.
14064 2020-03-13 Tom Tromey <tom@tromey.com>
14066 * valprint.c (generic_val_print_flags): Remove.
14067 (generic_val_print, generic_value_print): Update.
14068 (val_print_type_code_flags): Add original_value parameter.
14070 2020-03-13 Tom Tromey <tom@tromey.com>
14072 * valprint.c (generic_val_print): Update.
14073 (generic_value_print): Update.
14074 * valprint.c (generic_val_print_enum): Don't call
14075 val_print_scalar_formatted.
14077 2020-03-13 Tom Tromey <tom@tromey.com>
14079 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14080 * valprint.c (generic_value_print_ptr): New function.
14082 2020-03-13 Tom Tromey <tom@tromey.com>
14084 * valprint.c (generic_value_print): Rewrite.
14086 2020-03-13 Tom Tromey <tom@tromey.com>
14088 * p-valprint.c (pascal_object_print_value_fields)
14089 (pascal_object_print_value): New functions.
14091 2020-03-13 Tom Tromey <tom@tromey.com>
14093 * p-valprint.c (pascal_value_print_inner): Rewrite.
14095 2020-03-13 Tom Tromey <tom@tromey.com>
14097 * f-valprint.c (f_value_print_innner): Rewrite.
14099 2020-03-13 Tom Tromey <tom@tromey.com>
14101 * m2-valprint.c (m2_print_unbounded_array): New overload.
14102 (m2_print_unbounded_array): Update.
14103 (m2_print_array_contents): Take a struct value.
14104 (m2_value_print_inner): Rewrite.
14106 2020-03-13 Tom Tromey <tom@tromey.com>
14108 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14109 (d_value_print_inner): New function.
14110 * d-lang.h (d_value_print_inner): Declare.
14111 * d-lang.c (d_language_defn): Use d_value_print_inner.
14113 2020-03-13 Tom Tromey <tom@tromey.com>
14115 * go-valprint.c (go_value_print_inner): New function.
14116 * go-lang.h (go_value_print_inner): Declare.
14117 * go-lang.c (go_language_defn): Use go_value_print_inner.
14119 2020-03-13 Tom Tromey <tom@tromey.com>
14121 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14123 (rust_val_print): Rewrite.
14124 (rust_value_print_inner): New function, from rust_val_print.
14125 (rust_language_defn): Use rust_value_print_inner.
14127 2020-03-13 Tom Tromey <tom@tromey.com>
14129 * ada-valprint.c (ada_value_print_inner): New function.
14130 * ada-lang.h (ada_value_print_inner): Declare.
14131 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14133 2020-03-13 Tom Tromey <tom@tromey.com>
14135 * f-valprint.c (f_value_print_innner): New function.
14136 * f-lang.h (f_value_print_innner): Declare.
14137 * f-lang.c (f_language_defn): Use f_value_print_innner.
14139 2020-03-13 Tom Tromey <tom@tromey.com>
14141 * p-valprint.c (pascal_value_print_inner): New function.
14142 * p-lang.h (pascal_value_print_inner): Declare.
14143 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14145 2020-03-13 Tom Tromey <tom@tromey.com>
14147 * m2-valprint.c (m2_value_print_inner): New function.
14148 * m2-lang.h (m2_value_print_inner): Declare.
14149 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14151 2020-03-13 Tom Tromey <tom@tromey.com>
14153 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14154 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14155 * c-valprint.c (c_value_print_inner): New function.
14156 * c-lang.h (c_value_print_inner): Declare.
14157 * c-lang.c (c_language_defn, cplus_language_defn)
14158 (asm_language_defn, minimal_language_defn): Use
14159 c_value_print_inner.
14161 2020-03-13 Tom Tromey <tom@tromey.com>
14163 * p-valprint.c (pascal_object_print_value_fields): Now static.
14164 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14166 2020-03-13 Tom Tromey <tom@tromey.com>
14168 * c-valprint.c (c_val_print_array): Simplify.
14170 2020-03-13 Tom Tromey <tom@tromey.com>
14172 * valprint.c (value_print_array_elements): New function.
14173 * valprint.h (value_print_array_elements): Declare.
14175 2020-03-13 Tom Tromey <tom@tromey.com>
14177 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14178 * mips-tdep.c (mips_print_register): Use
14179 value_print_scalar_formatted.
14181 2020-03-13 Tom Tromey <tom@tromey.com>
14183 * valprint.h (value_print_scalar_formatted): Declare.
14184 * valprint.c (value_print_scalar_formatted): New function.
14186 2020-03-13 Tom Tromey <tom@tromey.com>
14188 * valprint.h (generic_value_print): Declare.
14189 * valprint.c (generic_value_print): New function.
14191 2020-03-13 Tom Tromey <tom@tromey.com>
14193 * valprint.c (do_val_print): Call la_value_print_inner, if
14195 * rust-lang.c (rust_language_defn): Update.
14196 * p-lang.c (pascal_language_defn): Update.
14197 * opencl-lang.c (opencl_language_defn): Update.
14198 * objc-lang.c (objc_language_defn): Update.
14199 * m2-lang.c (m2_language_defn): Update.
14200 * language.h (struct language_defn) <la_value_print_inner>: New
14202 * language.c (unknown_language_defn, auto_language_defn): Update.
14203 * go-lang.c (go_language_defn): Update.
14204 * f-lang.c (f_language_defn): Update.
14205 * d-lang.c (d_language_defn): Update.
14206 * c-lang.c (c_language_defn, cplus_language_defn)
14207 (asm_language_defn, minimal_language_defn): Update.
14208 * ada-lang.c (ada_language_defn): Update.
14210 2020-03-13 Tom Tromey <tom@tromey.com>
14212 * c-valprint.c (c_value_print): Use common_val_print.
14214 2020-03-13 Tom Tromey <tom@tromey.com>
14216 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14218 2020-03-13 Tom Tromey <tom@tromey.com>
14220 * f-valprint.c (f77_print_array_1, f_val_print): Use
14223 2020-03-13 Tom Tromey <tom@tromey.com>
14225 * riscv-tdep.c (riscv_print_one_register_info): Use
14228 2020-03-13 Tom Tromey <tom@tromey.com>
14230 * mi/mi-main.c (output_register): Use common_val_print.
14232 2020-03-13 Tom Tromey <tom@tromey.com>
14234 * infcmd.c (default_print_one_register_info): Use
14237 2020-03-13 Tom Tromey <tom@tromey.com>
14239 * valprint.h (common_val_print_checked): Declare.
14240 * valprint.c (common_val_print_checked): New function.
14241 * stack.c (print_frame_arg): Use common_val_print_checked.
14243 2020-03-13 Tom Tromey <tom@tromey.com>
14245 * valprint.c (do_val_print): New function, from val_print.
14246 (val_print): Use do_val_print.
14247 (common_val_print): Use do_val_print.
14249 2020-03-13 Tom Tromey <tom@tromey.com>
14251 * valprint.c (value_print): Use scoped_value_mark.
14253 2020-03-13 Tom de Vries <tdevries@suse.de>
14256 * psymtab.c (partial_symtab::partial_symtab): Don't set
14257 globals_offset and statics_offset. Push element onto
14258 current_global_psymbols and current_static_psymbols stacks.
14259 (concat): New function.
14260 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14261 element from current_global_psymbols and current_static_psymbols
14262 stacks. Concat popped elements to global_psymbols and
14264 (add_psymbol_to_list): Use current_global_psymbols and
14265 current_static_psymbols stacks.
14266 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14267 current_static_psymbols fields.
14269 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14271 * corelow.c (sniff_core_bfd): Remove.
14272 (class core_target) <m_core_vec>: Remove.
14273 (core_target::core_target): Update.
14274 (core_file_fns): Remove.
14275 (deprecated_add_core_fns): Remove.
14276 (default_core_sniffer): Remove.
14277 (sniff_core_bfd): Remove.
14278 (default_check_format): Remove.
14279 (gdb_check_format): Remove.
14280 (core_target_open): Update.
14281 (core_target::get_core_register_section): Update.
14282 (get_core_registers_cb): Update.
14283 (core_target::fetch_registers): Update.
14284 * gdbcore.h (struct core_fns): Remove.
14285 (deprecated_add_core_fns): Remove.
14286 (default_core_sniffer): Remove.
14287 (default_check_format): Remove.
14289 2020-03-12 Tom Tromey <tom@tromey.com>
14291 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14293 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14295 2020-03-12 Tom Tromey <tom@tromey.com>
14297 * remote.c (remote_target::download_tracepoint)
14298 (remote_target::enable_tracepoint)
14299 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14300 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14303 2020-03-12 Tom Tromey <tom@tromey.com>
14305 * symfile-mem.c: Update CORE_ADDR size assert.
14307 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14309 * selftest.m4: Move to gdbsupport/.
14310 * acinclude.m4: Update path to selftest.m4.
14312 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14314 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14315 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14316 gdbarch-selfselftests.c and selftest-arch.c.
14317 (SUBDIR_UNITTESTS_OBS): Rename to...
14318 (SELFTESTS_OBS): ... this.
14319 (COMMON_SFILES): Remove disasm-selftests.c and
14320 gdbarch-selftests.c.
14321 * configure.ac: Don't add selftest-arch.{c,o} to
14323 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14324 preprocessor conditions.
14326 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14328 * configure.ac: Don't source bfd/development.sh.
14329 * selftest.m4: Modify comment.
14330 * configure: Re-generate.
14332 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14334 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14335 not "true" or "false".
14336 * configure: Re-generate.
14338 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14340 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14341 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14342 renamed to arm_nbsd_supply_gregset.
14343 (fetch_register): Update to call arm_nbsd_supply_gregset.
14344 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14345 (arm_netbsd_nat_target::fetch_registers): Update.
14346 (fetch_elfcore_registers): Removed.
14347 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14348 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14349 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14350 not require NetBSD system headers.
14351 (arm_nbsd_regset): New struct.
14352 (arm_nbsd_iterate_over_regset_sections): New function.
14353 (arm_netbsd_init_abi_common): Updated to call
14354 set_gdbarch_iterate_over_regset_sections.
14355 * arm-nbsd-tdep.h: New file.
14357 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14359 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14362 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14364 * configure: Re-generate.
14366 2020-03-11 Tom Tromey <tromey@adacore.com>
14368 * ada-typeprint.c (print_choices): Fix comment.
14370 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14372 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14373 previous item in the list, when the list has no items.
14375 2020-03-11 Tom de Vries <tdevries@suse.de>
14377 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14378 PROP_LOCLIST handling code.
14380 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14382 * buildsym-legacy.c (record_line): Pass extra parameter to
14384 * buildsym.c (buildsym_compunit::record_line): Take an extra
14385 parameter, reduce duplication in the line table, and record the
14386 is_stmt flag in the line table.
14387 * buildsym.h (buildsym_compunit::record_line): Add extra
14389 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14390 non-statement lines.
14391 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14392 this to the symtab builder.
14393 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14394 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14395 through to dwarf_record_line_1.
14396 * infrun.c (process_event_stop_test): When stepping, don't stop at
14397 a non-statement instruction, and only refresh the step info when
14398 we land in the middle of a line's range. Also add an extra
14400 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14402 * record-btrace.c (btrace_find_line_range): Only record lines
14403 marked as is-statement.
14404 * stack.c (frame_show_address): Show the frame address if we are
14405 in a non-statement sal.
14406 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14407 (maintenance_print_one_line_table): Print a header for the is_stmt
14408 column, and include is_stmt information in the output.
14409 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14410 preference to non-statements.
14411 (find_pcs_for_symtab_line): Prefer is-statement entries.
14412 (find_line_common): Likewise.
14413 * symtab.h (struct linetable_entry): Add is_stmt field.
14414 (struct symtab_and_line): Likewise.
14415 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14416 arranging the line table.
14418 2020-03-07 Tom de Vries <tdevries@suse.de>
14420 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14423 2020-03-07 Tom Tromey <tom@tromey.com>
14425 * valops.c (value_literal_complex): Remove obsolete comment.
14426 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14429 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14431 * infrun.h: Forward-declare thread_info.
14432 (set_step_info): Add thread_info parameter, add doc.
14433 * infrun.c (set_step_info): Add thread_info parameter, move doc
14435 * infrun.c (process_event_stop_test): Pass thread to
14436 set_step_info call.
14437 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14439 (prepare_one_step): Add thread_info parameter, pass it to
14440 set_step_frame and prepare_one_step (recursive) call.
14441 (step_1): Pass thread to prepare_one_step call.
14442 (step_command_fsm::should_stop): Pass thread to
14444 (until_next_fsm): Pass thread to set_step_frame call.
14445 (finish_command): Pass thread to set_step_info call.
14447 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14449 * windows-tdep.c (windows_solib_create_inferior_hook):
14450 Check if inferior is running.
14452 2020-03-06 Tom de Vries <tdevries@suse.de>
14454 * NEWS: Fix "the the".
14457 2020-03-06 Tom de Vries <tdevries@suse.de>
14459 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14461 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14463 * .dir-locals.el: Add a comment referencing the other copies of
14466 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14468 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14471 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14473 * .gitattributes: New file.
14475 2020-03-04 Tom Tromey <tom@tromey.com>
14477 * symmisc.c (print_symbol_bcache_statistics)
14478 (print_objfile_statistics): Update.
14479 * symfile.c (allocate_symtab): Use intern.
14480 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14481 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14482 macro_cache>: Remove.
14483 <string_cache>: New member.
14484 (struct objfile) <intern>: New methods.
14485 * elfread.c (elf_symtab_read): Use intern.
14486 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14487 (dwarf2_compute_name, dwarf2_physname)
14488 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14490 (guess_partial_die_structure_name): Update.
14491 (partial_die_info::fixup): Intern name.
14492 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14494 (dwarf2_name): Intern name. Update.
14495 * buildsym.c (buildsym_compunit::get_macro_table): Use
14498 2020-03-04 Tom Tromey <tom@tromey.com>
14500 * jit.c (bfd_open_from_target_memory): Make "target" const.
14501 * corefile.c (gnutarget): Now const.
14502 * gdbcore.h (gnutarget): Now const.
14504 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14506 * NEWS: Mention support for WOW64 processes.
14507 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14508 (amd64_windows_segment_register_p): Remove static.
14509 (_initialize_amd64_windows_nat): Update.
14510 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14511 * i386-windows-nat.c (context_offset): Update.
14512 (i386_mappings): Rename and remove static.
14513 (i386_windows_segment_register_p): Remove static.
14514 (_initialize_i386_windows_nat): Update.
14515 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14516 (STATUS_WX86_SINGLE_STEP): New macro.
14517 (EnumProcessModulesEx): New macro.
14518 (Wow64SuspendThread): New macro.
14519 (Wow64GetThreadContext): New macro.
14520 (Wow64SetThreadContext): New macro.
14521 (Wow64GetThreadSelectorEntry): New macro.
14522 (windows_set_context_register_offsets): Add static.
14523 (windows_set_segment_register_p): Likewise.
14524 (windows_add_thread): Adapt for WOW64 processes.
14525 (windows_fetch_one_register): Likewise.
14526 (windows_nat_target::fetch_registers): Likewise.
14527 (windows_store_one_register): Likewise.
14528 (display_selector): Likewise.
14529 (display_selectors): Likewise.
14530 (handle_exception): Likewise.
14531 (windows_continue): Likewise.
14532 (windows_nat_target::resume): Likewise.
14533 (windows_add_all_dlls): Likewise.
14534 (do_initial_windows_stuff): Likewise.
14535 (windows_nat_target::attach): Likewise.
14536 (windows_get_exec_module_filename): Likewise.
14537 (windows_nat_target::create_inferior): Likewise.
14538 (windows_xfer_siginfo): Likewise.
14539 (_initialize_loadable): Initialize Wow64SuspendThread,
14540 Wow64GetThreadContext, Wow64SetThreadContext,
14541 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14542 * windows-nat.h (windows_set_context_register_offsets):
14543 Remove declaration.
14544 (windows_set_segment_register_p): Likewise.
14545 (i386_windows_segment_register_p): Add declaration.
14546 (amd64_windows_segment_register_p): Likewise.
14548 2020-03-04 Luis Machado <luis.machado@linaro.org>
14550 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14551 in "info registers" for AArch64/ARM.
14553 The change caused "info registers" to not print GPR's.
14557 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14559 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14560 when reg->group is empty and reggroup is not.
14562 2020-03-03 Tom Tromey <tromey@adacore.com>
14564 * dwarf2/frame.c (struct dwarf2_frame_cache)
14565 <checked_tailcall_bottom, entry_cfa_sp_offset,
14566 entry_cfa_sp_offset_p>: Remove members.
14567 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14568 (dwarf2_frame_prev_register): Don't call
14569 dwarf2_tailcall_sniffer_first.
14570 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14571 * frame-unwind.c (add_unwinder): New fuction.
14572 (frame_unwind_init): Use it. Add tailcall unwinder.
14574 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14575 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14577 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14578 value should be printed as true.
14580 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14582 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14583 (windows_init_abi): Set and use windows_so_ops.
14585 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14587 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14588 when verifying if dealing with a convenience variable.
14590 2020-03-03 Luis Machado <luis.machado@linaro.org>
14592 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14594 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14596 * infrun.c (gdbarch_supports_displaced_stepping): New.
14597 (use_displaced_stepping): Break up conditions in smaller pieces.
14598 Use gdbarch_supports_displaced_stepping.
14599 (displaced_step_prepare_throw): Use
14600 gdbarch_supports_displaced_stepping.
14602 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14604 * NEWS: Mention new behaviour of the history filename.
14605 * top.c (write_history_p): Add comment.
14606 (show_write_history_p): Add header comment, give a different
14607 message when history writing is on, but the history filename is
14609 (history_filename): Add comment.
14610 (history_filename_empty): New function.
14611 (show_history_filename): Add header comment, give a different
14612 message when the filename is empty.
14613 (init_history): Compare history_filename against nullptr, and only
14614 read history if the filename is not empty.
14615 (set_history_filename): Add header comment, and only make
14616 non-empty filenames absolute.
14617 (init_main): Make the filename argument to 'set history filename'
14620 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14622 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14623 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14624 (fetch_fp_register): Update.
14625 (fetch_fp_regs): Update.
14626 (store_fp_register): Update.
14627 (store_fp_regs): Update.
14628 (arm_netbsd_nat_target::read_description): New function.
14629 (fetch_elfcore_registers): Update.
14631 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14633 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14634 general_thread if the stop reply is missing a thread-id.
14635 (remote_target::process_stop_reply): Use the first non-exited
14636 thread if the target didn't pass a thread-id.
14637 * infrun.c (do_target_wait): Move call to
14638 switch_to_inferior_no_thread to ....
14639 (do_target_wait_1): ... here.
14641 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14643 * debuginfod-support.c: Include defs.h first.
14645 2020-02-28 Tom de Vries <tdevries@suse.de>
14647 * symfile.c (set_initial_language): Use default language for lookup.
14649 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14651 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14652 reader variable, pass `this` to read_cutu_die_from_dwo.
14654 2020-02-27 Aaron Merey <amerey@redhat.com>
14656 * source.c (open_source_file): Check for nullptr when computing
14659 2020-02-27 Tom Tromey <tromey@adacore.com>
14661 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14663 (dwarf2_add_field): Don't update nfields.
14664 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14666 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14668 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14671 2020-02-26 Tom Tromey <tom@tromey.com>
14673 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14674 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14675 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14676 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14679 2020-02-26 Tom Tromey <tom@tromey.com>
14681 * dwarf2/index-write.c (psym_index_map): Change type.
14682 (add_address_entry_worker, write_one_signatured_type)
14683 (recursively_count_psymbols, recursively_write_psymbols)
14684 (class debug_names, psyms_seen_size, write_gdbindex)
14685 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14687 2020-02-26 Aaron Merey <amerey@redhat.com>
14689 * Makefile.in: Handle optional debuginfod support.
14691 * README: Add --with-debuginfod summary.
14692 * config.in: Regenerate.
14693 * configure: Regenerate.
14694 * configure.ac: Handle optional debuginfod support.
14695 * debuginfod-support.c: debuginfod helper functions.
14696 * debuginfod-support.h: Ditto.
14697 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14699 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14700 when a dwz file cannot be found.
14701 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14702 debuginfo file cannot be found.
14703 * source.c (open_source_file): Query debuginfod servers when a
14704 source file cannot be found.
14705 * top.c (print_gdb_configuration): Include
14706 --{with,without}-debuginfod in the output.
14708 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14710 * thread.c (thr_try_catch_cmd): Print thread name.
14712 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14714 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14715 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14716 dwarf2_fetch_die_type_sect_off): Move to...
14717 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14718 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14719 dwarf2_fetch_die_type_sect_off): ... here.
14720 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14721 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14722 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14724 2020-02-26 Tom de Vries <tdevries@suse.de>
14727 * symfile.c (set_initial_language): Exit-early if
14728 language_mode == language_mode_manual.
14730 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14732 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14733 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14734 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14736 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14738 * gdbtypes.c (create_array_type_with_stride): Handle negative
14740 * valarith.c (value_subscripted_rvalue): Likewise.
14742 2020-02-25 Luis Machado <luis.machado@linaro.org>
14744 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14746 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14748 * loc.h (dwarf2_get_die_type): Move to...
14749 * read.h (dwarf2_get_die_type): ... here.
14750 * read.c (dwarf2_get_die_type): Move doc to header.
14752 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14754 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14755 'gnulib/Makefile.in' to the list.
14757 2020-02-24 Tom Tromey <tom@tromey.com>
14759 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14761 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14764 2020-02-24 Tom Tromey <tom@tromey.com>
14766 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14768 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14769 (dw2_do_instantiate_symtab, dw2_get_file_names)
14770 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14772 2020-02-24 Tom Tromey <tom@tromey.com>
14774 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14775 make_scoped_restore.
14776 (dwarf2_psymtab::read_symtab): Don't clear
14777 reading_partial_symbols.
14779 2020-02-24 Tom de Vries <tdevries@suse.de>
14782 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14784 2020-02-24 Tom de Vries <tdevries@suse.de>
14786 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14787 commands layout next/prev/regs.
14789 2020-02-22 Tom Tromey <tom@tromey.com>
14791 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14792 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14794 2020-02-22 Tom Tromey <tom@tromey.com>
14796 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14798 2020-02-22 Tom Tromey <tom@tromey.com>
14800 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14801 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14802 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14803 * tui/tui.c (_initialize_tui): Add usage text.
14805 2020-02-22 Tom Tromey <tom@tromey.com>
14807 * tui/tui-win.c (tui_set_focus_command)
14808 (tui_set_win_height_command): Use error_no_arg.
14809 (_initialize_tui_win): Update help text.
14810 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14812 2020-02-22 Tom Tromey <tom@tromey.com>
14814 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14815 * tui/tui-disasm.h (struct tui_disasm_window)
14816 <display_start_addr>: Declare.
14817 * tui/tui-source.h (struct tui_source_window)
14818 <display_start_addr>: Declare.
14819 * tui/tui-winsource.h (struct tui_source_window_base)
14820 <show_source_line, display_start_addr>: New methods.
14821 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14822 Rename and move to protected section.
14823 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14824 (tui_source_window_base::do_erase_source_content): Update.
14825 (tui_source_window_base::show_source_line): Now a method.
14826 (tui_source_window_base::show_source_content)
14827 (tui_source_window_base::tui_source_window_base)
14828 (tui_source_window_base::rerender)
14829 (tui_source_window_base::refill)
14830 (tui_source_window_base::do_scroll_horizontal)
14831 (tui_source_window_base::set_is_exec_point_at)
14832 (tui_source_window_base::update_breakpoint_info)
14833 (tui_source_window_base::update_exec_info): Update.
14834 * tui/tui-source.c (tui_source_window::set_contents)
14835 (tui_source_window::showing_source_p)
14836 (tui_source_window::do_scroll_vertical)
14837 (tui_source_window::location_matches_p)
14838 (tui_source_window::line_is_displayed): Update.
14839 (tui_source_window::display_start_addr): New method.
14840 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14841 (tui_disasm_window::do_scroll_vertical)
14842 (tui_disasm_window::location_matches_p): Update.
14843 (tui_disasm_window::display_start_addr): New method.
14845 2020-02-22 Tom Tromey <tom@tromey.com>
14847 * NEWS: Add entry for gdb.register_window_type.
14848 * tui/tui-layout.h (window_factory): New typedef.
14849 (tui_register_window): Declare.
14850 * tui/tui-layout.c (saved_tui_windows): New global.
14851 (tui_apply_current_layout): Use it.
14852 (tui_register_window): New function.
14853 * python/python.c (do_start_initialization): Call
14854 gdbpy_initialize_tui.
14855 (python_GdbMethods): Add "register_window_type" function.
14856 * python/python-internal.h (gdbpy_register_tui_window)
14857 (gdbpy_initialize_tui): Declare.
14858 * python/py-tui.c: New file.
14859 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14861 2020-02-22 Tom Tromey <tom@tromey.com>
14863 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14865 2020-02-22 Tom Tromey <tom@tromey.com>
14867 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14868 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14869 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14870 (tui_set_win_focus_to): Move from tui-win.c.
14872 2020-02-22 Tom Tromey <tom@tromey.com>
14874 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14876 (known_window_types): New global.
14877 (tui_get_window_by_name): Reimplement.
14878 (initialize_known_windows): New function.
14879 (validate_window_name): Rewrite.
14880 (_initialize_tui_layout): Call initialize_known_windows.
14882 2020-02-22 Tom Tromey <tom@tromey.com>
14884 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14886 * tui/tui-winsource.h (struct tui_source_window_base)
14887 <tui_source_window_base>: Remove parameter.
14888 * tui/tui-winsource.c
14889 (tui_source_window_base::tui_source_window_base): Remove
14891 (tui_source_window_base::refill): Update.
14892 * tui/tui-stack.h (struct tui_locator_window)
14893 <tui_locator_window>: Update.
14894 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14895 Default the constructor.
14896 * tui/tui-regs.h (struct tui_data_item_window)
14897 <tui_data_item_window>: Default the constructor.
14898 (struct tui_data_window) <tui_data_window>: Likewise.
14899 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14900 Default the constructor.
14901 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14902 Default the constructor.
14904 (struct tui_win_info) <tui_win_info>: Default the constructor.
14905 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14906 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14907 Default the constructor.
14909 2020-02-22 Tom Tromey <tom@tromey.com>
14911 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14912 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14913 * tui/tui-win.c (tui_resize_all): Don't call
14914 tui_delete_invisible_windows.
14915 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14917 (tui_set_layout): Update.
14918 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14919 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14920 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14922 2020-02-22 Tom Tromey <tom@tromey.com>
14924 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14927 2020-02-22 Tom Tromey <tom@tromey.com>
14929 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14931 2020-02-22 Tom Tromey <tom@tromey.com>
14933 * tui/tui-winsource.h (struct tui_source_window_iterator)
14934 <inner_iterator>: New etytypedef.
14935 <tui_source_window_iterator>: Take "end" parameter.
14936 <tui_source_window_iterator>: Take iterator.
14937 <operator*, advance>: Update.
14938 <m_iter>: Change type.
14939 <m_end>: New field.
14940 (struct tui_source_windows) <begin, end>: Update.
14941 * tui/tui-layout.c (tui_windows): New global.
14942 (tui_apply_current_layout): Clear tui_windows.
14943 (tui_layout_window::apply): Update tui_windows.
14944 * tui/tui-data.h (tui_windows): Declare.
14945 (all_tui_windows): Now inline function.
14946 (class tui_window_iterator, struct all_tui_windows): Remove.
14948 2020-02-22 Tom Tromey <tom@tromey.com>
14951 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14952 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14954 (class tui_layout_window) <get_sizes>: Likewise.
14955 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14957 <get_sizes>: Add "height" argument.
14958 <m_vertical>: New field.
14959 * tui/tui-layout.c (tui_layout_split::clone): Update.
14960 (tui_layout_split::get_sizes): Add "height" argument.
14961 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14962 (tui_new_layout_command): Parse "-horizontal".
14963 (_initialize_tui_layout): Update help string.
14964 (tui_layout_split::specification): Add "-horizontal" when needed.
14965 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14967 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14970 2020-02-22 Tom Tromey <tom@tromey.com>
14972 * tui/tui-layout.h (enum tui_adjust_result): New.
14973 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14974 (class tui_layout_window) <adjust_size>: Return
14975 tui_adjust_result. Rewrite.
14976 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14977 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14979 2020-02-22 Tom Tromey <tom@tromey.com>
14981 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14982 parameter and return types.
14983 (class tui_layout_base) <specification>: Add "depth".
14984 (class tui_layout_window) <specification>: Add "depth".
14985 (class tui_layout_split) <specification>: Add "depth".
14986 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14988 (tui_new_layout_command): Parse sub-layouts.
14989 (_initialize_tui_layout): Update help string.
14990 (tui_layout_window::specification): Add "depth".
14991 (add_layout_command): Update.
14993 2020-02-22 Tom Tromey <tom@tromey.com>
14995 * NEWS: Add "tui new-layout" item.
14996 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14997 Add new-layout command to help text.
14998 (validate_window_name): New function.
14999 (tui_new_layout_command): New function.
15000 (_initialize_tui_layout): Register "new-layout".
15001 (tui_layout_window::specification): New method.
15002 (tui_layout_window::specification): New method.
15003 * tui/tui-layout.h (class tui_layout_base) <specification>: New
15005 (class tui_layout_window) <specification>: New method.
15006 (class tui_layout_split) <specification>: New method.
15008 2020-02-22 Tom Tromey <tom@tromey.com>
15010 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
15011 * tui/tui-win.c (window_name_completer): Update comment.
15012 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
15014 (class tui_layout_window) <replace_window>: Likewise.
15015 (class tui_layout_split) <replace_window>: Likewise.
15016 (tui_set_layout): Don't declare.
15017 (tui_set_initial_layout): Declare function.
15018 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
15019 (asm_regs_layout): New globals.
15020 (tui_current_layout, show_layout): Remove.
15021 (tui_set_layout, tui_add_win_to_layout): Rewrite.
15022 (find_layout, tui_apply_layout): New function.
15023 (layout_completer): Remove.
15024 (tui_next_layout): Reimplement.
15025 (tui_next_layout_command): New function.
15026 (tui_set_initial_layout, tui_prev_layout_command): New functions.
15027 (tui_regs_layout): Reimplement.
15028 (tui_regs_layout_command): New function.
15029 (extract_display_start_addr): Rewrite.
15030 (next_layout, prev_layout): Remove.
15031 (tui_layout_window::replace_window): New method.
15032 (tui_layout_split::replace_window): New method.
15033 (destroy_layout): New function.
15034 (layout_list): New global.
15035 (add_layout_command): New function.
15036 (initialize_layouts): Update.
15037 (tui_layout_command): New function.
15038 (_initialize_tui_layout): Install "layout" commands.
15039 * tui/tui-data.h (enum tui_layout_type): Remove.
15040 (tui_current_layout): Don't declare.
15042 2020-02-22 Tom Tromey <tom@tromey.com>
15044 * tui/tui-regs.c (tui_reg_layout): Remove.
15045 (tui_reg_command): Use tui_regs_layout.
15046 * tui/tui-layout.h (tui_reg_command): Declare.
15047 * tui/tui-layout.c (tui_reg_command): New function.
15049 2020-02-22 Tom Tromey <tom@tromey.com>
15051 * tui/tui.c (tui_rl_delete_other_windows): Call
15052 tui_remove_some_windows.
15053 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15055 (class tui_layout_window) <remove_windows>: New method.
15056 (class tui_layout_split) <remove_windows>: Declare.
15057 (tui_remove_some_windows): Declare.
15058 * tui/tui-layout.c (tui_remove_some_windows): New function.
15059 (tui_layout_split::remove_windows): New method.
15061 2020-02-22 Tom Tromey <tom@tromey.com>
15063 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15064 * tui/tui-layout.h (tui_next_layout): Declare.
15065 * tui/tui-layout.c (tui_next_layout): New function.
15067 2020-02-22 Tom Tromey <tom@tromey.com>
15069 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15070 correct coordinates.
15072 2020-02-22 Tom Tromey <tom@tromey.com>
15074 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15075 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15078 2020-02-22 Tom Tromey <tom@tromey.com>
15080 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15081 TUI_DISASM_WIN, not tui_win_list.
15083 2020-02-22 Tom Tromey <tom@tromey.com>
15085 * valprint.c (generic_val_print_enum_1)
15086 (val_print_type_code_flags): Style member names.
15087 * rust-lang.c (val_print_struct, rust_print_enum)
15088 (rust_print_struct_def, rust_internal_print_type): Style member
15090 * p-valprint.c (pascal_object_print_value_fields): Style member
15091 names. Only call fprintf_symbol_filtered for static members.
15092 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15093 * f-valprint.c (f_val_print): Style member names.
15094 * f-typeprint.c (f_type_print_base): Style member names.
15095 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15096 call fprintf_symbol_filtered for static members.
15097 (cp_print_class_member): Style member names.
15098 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15100 * ada-valprint.c (ada_print_scalar): Style enum names.
15101 (ada_val_print_enum): Likewise.
15102 * ada-typeprint.c (print_enum_type): Style enum names.
15104 2020-02-21 Tom Tromey <tom@tromey.com>
15106 * psympriv.h (struct partial_symtab): Update comment.
15108 2020-02-21 Tom Tromey <tromey@adacore.com>
15110 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15113 2020-02-21 Tom de Vries <tdevries@suse.de>
15116 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15117 if dependencies[i]->user != NULL.
15119 2020-02-21 Ali Tamur <tamur@google.com>
15121 * dwarf2/read.c (dwarf2_name): Add null check.
15123 2020-02-20 Tom Tromey <tom@tromey.com>
15125 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15126 ">=", in binary search.
15127 (dwarf2_find_containing_comp_unit): New overload.
15128 (run_test): New self-test.
15129 (_initialize_dwarf2_read): Register new test.
15131 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
15133 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15134 * riscv-tdep.h: Likewise.
15135 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15137 * features/riscv/64bit-csr.xml: Regenerated.
15139 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15140 Tom Tromey <tom@tromey.com>
15142 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15143 of 'fputc_unfiltered'.
15144 (putchar_unfiltered): Call 'fputc_unfiltered'.
15145 (fputc_unfiltered): Call 'fputs_unfiltered'.
15147 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15149 * config.in: Regenerate.
15150 * configure: Regenerate.
15151 * configure.ac: Add --with-python-libdir option.
15152 * main.c: Use WITH_PYTHON_LIBDIR.
15154 2020-02-19 Tom Tromey <tom@tromey.com>
15156 * symtab.c (general_symbol_info::compute_and_set_names): Use
15157 obstack_strndup. Simplify call to symbol_set_demangled_name.
15159 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
15161 * dwarf2/read.c (allocate_signatured_type_table,
15162 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15163 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15164 Remove objfile parameter, update all callers.
15166 2020-02-19 Doug Evans <dje@google.com>
15169 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15170 rust_enum_variant calculation.
15172 2020-02-19 Tom Tromey <tromey@adacore.com>
15174 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15176 2020-02-19 Tom Tromey <tromey@adacore.com>
15178 * ada-lang.c (cache_symbol): Use obstack_strdup.
15180 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15182 * configure: Regenerate.
15184 2020-02-19 Tom Tromey <tromey@adacore.com>
15186 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15189 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
15191 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15193 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15195 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15196 if GDBSERVER is not defined.
15197 (riscv_tdesc_cache): Likewise, also store const target_desc.
15198 (STATIC_IN_GDB): Define.
15199 (riscv_create_target_description): Update declaration with
15201 (riscv_lookup_target_description): New function, only define if
15202 GDBSERVER is not defined.
15203 * arch/riscv.h (riscv_create_target_description): Declare only
15204 when GDBSERVER is defined.
15205 (riscv_lookup_target_description): New declaration when GDBSERVER
15207 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15208 (riscv_linux_read_features): ...this, and return
15209 riscv_gdbarch_features instead of target_desc.
15210 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15211 (riscv_linux_read_description): Rename to...
15212 (riscv_linux_read_features): ...this.
15213 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15214 Update to use riscv_gdbarch_features and
15215 riscv_lookup_target_description.
15216 * riscv-tdep.c (riscv_find_default_target_description): Use
15217 riscv_lookup_target_description instead of
15218 riscv_create_target_description.
15220 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15222 * valprint.c (generic_val_print_enum_1): When printing a flag
15223 enum with value 0 and there is no enumerator with value 0, print
15224 just "0" instead of "(unknown: 0x0)".
15226 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15228 * valprint.c (generic_val_print_enum_1): Print unknown part of
15231 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15233 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15234 flag enums to contain duplicate enumerators.
15235 * valprint.c (generic_val_print_enum_1): Update comment.
15237 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15239 * dwarf2/read.c: Include "count-one-bits.h".
15240 (update_enumeration_type_from_children): If an enumerator has
15241 multiple bits set, don't treat the enumeration as a "flag enum".
15242 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15243 of flag enums have 0 or 1 bit set.
15245 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15247 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15249 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15250 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15251 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15252 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15253 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15255 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15257 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15259 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15261 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15262 displaced_step_closure_up.
15263 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15264 (struct displaced_step_closure_up):
15265 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15266 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15267 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15269 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15270 * gdbarch.c, gdbarch.h: Re-generate.
15271 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15272 displaced_step_closure_up.
15273 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15274 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15275 * infrun.h (displaced_step_closure_up): New type alias.
15276 (struct displaced_step_inferior_state) <step_closure>: Change
15277 type to displaced_step_closure_up.
15278 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15279 displaced_step_closure_up.
15280 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15282 2020-02-14 Tom Tromey <tom@tromey.com>
15284 * minidebug.c (gnu_debug_key): New global.
15285 (find_separate_debug_file_in_section): Use it.
15287 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15289 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15291 * gdbarch.c: Re-generate.
15292 * gdbarch.h: Re-generate.
15293 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15295 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15296 type to std::unique_ptr.
15297 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15298 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15299 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15300 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15301 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15302 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15303 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15304 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15305 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15307 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15309 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15311 (displaced_step_clear): Rename to...
15312 (displaced_step_reset): ... this. Just call displaced->reset ().
15313 (displaced_step_clear_cleanup): Rename to...
15314 (displaced_step_reset_cleanup): ... this.
15315 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15316 (displaced_step_fixup): Likewise.
15317 (resume_1): Likewise.
15318 (handle_inferior_event): Restore child's memory before calling
15319 displaced_step_fixup on the parent.
15320 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15321 to std::unique_ptr.
15322 <step_closure>: Change type to std::unique_ptr.
15324 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15326 * arm-tdep.c: Include count-one-bits.h.
15327 (cleanup_block_store_pc): Use count_one_bits.
15328 (cleanup_block_load_pc): Use count_one_bits.
15329 (arm_copy_block_xfer): Use count_one_bits.
15330 (thumb2_copy_block_xfer): Use count_one_bits.
15331 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15332 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15333 (thumb_get_next_pcs_raw): Use count_one_bits.
15334 (arm_get_next_pcs_raw): Use count_one_bits_l.
15335 * arch/arm.c (bitcount): Remove.
15336 * arch/arm.h (bitcount): Remove.
15338 2020-02-14 Tom Tromey <tromey@adacore.com>
15340 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15342 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15343 * dwarf2/loc.c (call_site_find_chain_1): Return
15344 unique_xmalloc_ptr.
15345 (call_site_find_chain): Likewise.
15347 2020-02-14 Richard Biener <rguenther@suse.de>
15349 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15350 on expression with division operators.
15352 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15354 * MAINTAINERS (Write After Approval): Adding myself.
15356 2020-02-12 Tom Tromey <tom@tromey.com>
15358 * event-loop.c (event_data, gdb_event, event_handler_func):
15361 2020-02-12 Tom Tromey <tom@tromey.com>
15363 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15364 (dwarf2_frame_objfile_data): Add comment.
15365 (find_comp_unit, set_comp_unit): New functions.
15366 (dwarf2_frame_find_fde): Use find_comp_unit.
15367 (dwarf2_build_frame_info): Use set_comp_unit.
15369 2020-02-12 Tom Tromey <tom@tromey.com>
15371 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15372 (comp_unit): Don't initialize objfile.
15373 (execute_cfa_program): Add text_offset parameter.
15374 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15375 (dwarf2_frame_cache): Update.
15376 (dwarf2_build_frame_info): Don't set "objfile" member.
15378 2020-02-12 Tom Tromey <tom@tromey.com>
15380 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15381 (decode_frame_entry): Likewise.
15382 (dwarf2_build_frame_info): Update.
15384 2020-02-12 Tom Tromey <tom@tromey.com>
15386 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15387 (decode_frame_entry_1): Use the comp_unit obstack.
15389 2020-02-12 Tom Tromey <tom@tromey.com>
15391 * dwarf2/frame.c (struct comp_unit): Add initializers and
15393 (dwarf2_frame_objfile_data): Store a comp_unit.
15394 (dwarf2_frame_find_fde): Update.
15395 (dwarf2_build_frame_info): Use "new".
15397 2020-02-12 Tom Tromey <tom@tromey.com>
15399 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15400 (dwarf2_fde_table): Typedef for std::vector.
15401 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15402 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15403 (decode_frame_entry): Update.
15404 (dwarf2_build_frame_info): Use "new".
15406 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15408 * arm-tdep.c (arm_gdbarch_init): Update.
15409 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15410 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15411 have_neon, is_m>: Change to bool.
15413 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15415 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15417 2020-02-12 Tom Tromey <tom@tromey.com>
15419 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15421 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15423 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15424 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15426 2020-02-11 Tom Tromey <tom@tromey.com>
15428 * psymtab.h: Update comment.
15430 2020-02-11 Tom Tromey <tom@tromey.com>
15432 * gdb_obstack.h (struct auto_obstack): Use
15433 DISABLE_COPY_AND_ASSIGN.
15435 2020-02-11 Tom Tromey <tom@tromey.com>
15437 * dwarf2/frame.h (struct objfile): Don't forward declare.
15439 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15441 * cris-tdep.c (cris_supply_gregset): Change signature to match
15442 what struct regset expects.
15443 (cris_regset): New struct.
15444 (fetch_core_registers): Remove.
15445 (cris_iterate_over_regset_sections): New function.
15446 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15447 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15449 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15451 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15454 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15456 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15458 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15460 * configure: Re-generate.
15462 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15464 * configure: Re-generate.
15466 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15468 * acinclude: Update warning.m4 path.
15469 * warning.m4: Move to gdbsupport.
15471 2020-02-11 Tom Tromey <tromey@adacore.com>
15473 * remote.c (remote_console_output): Update.
15474 * printcmd.c (printf_command): Update.
15475 * event-loop.c (gdb_wait_for_event): Update.
15476 * linux-nat.c (sigchld_handler): Update.
15477 * remote-sim.c (gdb_os_write_stdout): Update.
15478 (gdb_os_flush_stdout): Update.
15479 (gdb_os_flush_stderr): Update.
15480 (gdb_os_write_stderr): Update.
15481 * exceptions.c (print_exception): Update.
15482 * remote-fileio.c (remote_fileio_func_read): Update.
15483 (remote_fileio_func_write): Update.
15484 * tui/tui.c (tui_enable): Update.
15485 * tui/tui-interp.c (tui_interp::init): Update.
15486 * utils.c (init_page_info): Update.
15487 (putchar_unfiltered, fputc_unfiltered): Update.
15488 (gdb_flush): Update.
15489 (emit_style_escape): Update.
15490 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15491 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15492 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15493 (stderr_file::write): Update.
15494 (stderr_file::puts): Update.
15495 * ui-file.h (ui_file_isatty, ui_file_write)
15496 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15497 (ui_file_puts): Don't declare.
15499 2020-02-10 Tom de Vries <tdevries@suse.de>
15501 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15502 sentinel to char *.
15504 2020-02-09 Tom de Vries <tdevries@suse.de>
15506 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15507 filename if it matches "<artificial>".
15509 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15511 * windows-tdep.c (struct enum_value_name): New struct.
15512 (create_enum): New function.
15513 (windows_get_siginfo_type): Create and use enum types.
15515 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15517 * NEWS: Mention $_siginfo support for Windows.
15518 * windows-nat.c (handle_exception): Set siginfo_er.
15519 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15520 (windows_xfer_siginfo): New function.
15521 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15522 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15523 (init_windows_gdbarch_data): New function.
15524 (get_windows_gdbarch_data): New function.
15525 (windows_get_siginfo_type): New function.
15526 (windows_init_abi): Register windows_get_siginfo_type.
15527 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15529 2020-02-08 Tom Tromey <tom@tromey.com>
15531 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15532 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15533 <keep>: Declare method.
15534 <m_keep>: Remove member.
15535 <~cutu_reader>: Remove.
15536 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15537 (cutu_reader::cutu_reader): Update.
15538 (cutu_reader::keep): Rename from ~cutu_reader.
15539 (process_psymtab_comp_unit, build_type_psymtabs_1)
15540 (process_skeletonless_type_unit, load_partial_comp_unit)
15541 (load_full_comp_unit, dwarf2_read_addr_index)
15542 (read_signatured_type): Update.
15544 2020-02-08 Tom Tromey <tom@tromey.com>
15546 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15547 "want_partial_unit" parameter.
15548 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15549 Inline check for DW_TAG_partial_unit.
15550 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15552 2020-02-08 Tom Tromey <tom@tromey.com>
15554 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15556 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15559 2020-02-08 Tom Tromey <tom@tromey.com>
15561 * dwarf2/read.c (read_address): Move to comp-unit.c.
15562 (dwarf2_rnglists_process, dwarf2_ranges_process)
15563 (read_attribute_value, dwarf_decode_lines_1)
15564 (var_decode_location, decode_locdesc): Update.
15565 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15566 read.c. Remove "cu" parameter.
15567 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15570 2020-02-08 Tom Tromey <tom@tromey.com>
15572 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15573 (read_indirect_line_string): Update.
15574 * dwarf2/comp-unit.c (read_offset): Remove.
15575 (read_comp_unit_head): Update.
15576 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15578 (read_offset): Don't declare.
15580 2020-02-08 Tom Tromey <tom@tromey.com>
15582 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15583 * dwarf2/read.c (struct comp_unit_head): Move to
15584 dwarf2/comp-unit.h.
15585 (enum class rcuh_kind): Move to comp-unit.h.
15586 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15587 (read_comp_unit_head, error_check_comp_unit_head)
15588 (read_and_check_comp_unit_head): Move to comp-unit.c.
15589 (read_offset, dwarf_unit_type_name): Likewise.
15590 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15591 (cutu_reader::cutu_reader, read_call_site_scope)
15592 (find_partial_die, follow_die_offset): Update.
15593 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15595 2020-02-08 Tom Tromey <tom@tromey.com>
15597 * dwarf2/read.c (read_offset_1): Move to leb.c.
15598 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15599 (dwarf_decode_macro_bytes): Update.
15600 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15601 * dwarf2/leb.h (read_offset): Declare.
15603 2020-02-08 Tom Tromey <tom@tromey.com>
15605 * dwarf2/read.c (dwarf2_section_size): Remove.
15606 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15608 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15610 2020-02-08 Tom Tromey <tom@tromey.com>
15612 * dwarf2/read.c (read_initial_length): Move to leb.c.
15613 * dwarf2/leb.h (read_initial_length): Declare.
15614 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15615 handle_nonstd parameter.
15616 * dwarf2/frame.c (read_initial_length): Remove.
15617 (decode_frame_entry_1): Update.
15619 2020-02-08 Tom Tromey <tom@tromey.com>
15621 * dwarf2/loc.c (dwarf2_find_location_expression)
15622 (dwarf_evaluate_loc_desc::get_tls_address)
15623 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15624 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15625 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15626 (dwarf2_compile_property_to_c)
15627 (dwarf2_loc_desc_get_symbol_read_needs)
15628 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15629 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15630 (loclist_describe_location, loclist_tracepoint_var_ref)
15631 (loclist_generate_c_location): Update.
15632 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15633 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15634 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15635 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15636 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15637 (dwarf2_per_cu_data::addr_size)
15638 (dwarf2_per_cu_data::ref_addr_size)
15639 (dwarf2_per_cu_data::text_offset)
15640 (dwarf2_per_cu_data::addr_type): Now methods.
15641 (per_cu_header_read_in): Make per_cu "const".
15642 (dwarf2_version): Remove.
15643 (dwarf2_per_cu_data::int_type): Now a method.
15644 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15645 (set_die_type, read_array_type, read_subrange_index_type)
15646 (read_tag_string_type, read_subrange_type): Update.
15647 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15648 offset_size, ref_addr_size, text_offset, addr_type, version,
15649 objfile, int_type, addr_sized_int_type>: Declare methods.
15651 2020-02-08 Tom Tromey <tom@tromey.com>
15653 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15656 2020-02-08 Tom Tromey <tom@tromey.com>
15658 * dwarf2/read.h (dwarf_line_debug): Declare.
15659 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15660 * dwarf2/read.c: Move line_header code to new files.
15661 (dwarf_line_debug): No longer static.
15662 * dwarf2/line-header.c: New file.
15663 * dwarf2/line-header.h: New file.
15665 2020-02-08 Tom Tromey <tom@tromey.com>
15667 * dwarf2/read.c (struct line_header) <file_full_name,
15668 file_file_name>: Return unique_xmalloc_ptr.
15669 (line_header::file_file_name): Update.
15670 (line_header::file_full_name): Update.
15671 (dw2_get_file_names_reader): Update.
15672 (macro_start_file): Update.
15674 2020-02-08 Tom Tromey <tom@tromey.com>
15676 * dwarf2/read.c (struct line_header) <file_full_name,
15677 file_file_name>: Declare methods.
15678 (dw2_get_file_names_reader): Update.
15679 (file_file_name): Now a method.
15680 (file_full_name): Likewise.
15681 (macro_start_file): Update.
15683 2020-02-08 Tom Tromey <tom@tromey.com>
15685 * dwarf2/read.c (dwarf_always_disassemble)
15686 (show_dwarf_always_disassemble): Move to loc.c.
15687 (_initialize_dwarf2_read): Move "always-disassemble" registration
15689 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15690 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15692 (show_dwarf_always_disassemble): Move from read.c.
15693 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15695 2020-02-08 Tom Tromey <tom@tromey.com>
15697 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15698 (create_quick_file_names_table): Return htab_up.
15699 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15701 * dwarf2/read.h (struct dwarf2_per_objfile)
15702 <quick_file_names_table>: Now htab_up.
15704 2020-02-08 Tom Tromey <tom@tromey.com>
15706 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15708 2020-02-08 Tom Tromey <tom@tromey.com>
15710 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15712 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15713 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15714 (abbrev_table::abbrev_table): No longer inline.
15715 (ABBREV_HASH_SIZE): Remove.
15716 (abbrev_table::m_abbrevs): Now an htab_up.
15718 2020-02-08 Tom Tromey <tom@tromey.com>
15720 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15721 (cutu_reader): Update.
15722 (build_type_psymtabs_1): Update.
15723 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15724 (abbrev_table::alloc_abbrev): Update.
15725 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15726 (abbrev_table::read): New static method, renamed from
15727 abbrev_table_read_table.
15728 (abbrev_table::alloc_abbrev)
15729 (abbrev_table::add_abbrev): Now private.
15730 (abbrev_table::abbrev_table): Now private.
15731 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15733 2020-02-08 Tom Tromey <tom@tromey.com>
15735 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15736 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15739 2020-02-08 Tom Tromey <tom@tromey.com>
15741 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15743 (lookup_dwo_unit_in_dwp): Update.
15744 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15747 2020-02-08 Tom Tromey <tom@tromey.com>
15749 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15752 2020-02-08 Tom Tromey <tom@tromey.com>
15754 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15756 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15757 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15758 Change type to htab_up.
15760 2020-02-08 Tom Tromey <tom@tromey.com>
15762 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15763 htab_up. Don't allocate on obstack.
15764 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15765 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15766 Change type to htab_up.
15768 2020-02-08 Tom Tromey <tom@tromey.com>
15770 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15771 Change type to htab_up.
15772 * dwarf2/read.c (create_signatured_type_table_from_index)
15773 (create_signatured_type_table_from_debug_names)
15774 (create_all_type_units, add_type_unit)
15775 (lookup_dwo_signatured_type, lookup_signatured_type)
15776 (process_skeletonless_type_unit): Update.
15777 (create_debug_type_hash_table, create_debug_types_hash_table):
15778 Change type of types_htab.
15779 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15780 htab_up. Don't allocate on obstack.
15781 (create_cus_hash_table): Change type of cus_htab parameter.
15782 (struct dwo_file) <cus, tus>: Now htab_up.
15783 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15784 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15785 (queue_and_load_all_dwo_tus): Update.
15786 * dwarf2/index-write.c (write_gdbindex): Update.
15787 (write_debug_names): Update.
15789 2020-02-08 Tom Tromey <tom@tromey.com>
15791 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15792 dwarf2/read.c. Remove "next" member. Add constructor ntad
15794 (struct dwarf2_per_objfile) <queue>: New member.
15795 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15797 (dwarf2_queue, dwarf2_queue_tail): Remove.
15798 (class dwarf2_queue_guard): Add parameter to constructor. Use
15799 DISABLE_COPY_AND_ASSIGN.
15800 <m_per_objfile>: New member.
15801 <~dwarf2_queue_guard>: Rewrite.
15802 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15804 (~dwarf2_queue_item): New.
15806 2020-02-08 Tom Tromey <tom@tromey.com>
15808 * dwarf2/read.c (struct die_info) <has_children>: New member.
15809 (dw2_get_file_names_reader): Remove has_children.
15810 (dw2_get_file_names): Update.
15811 (read_cutu_die_from_dwo): Remove has_children.
15812 (cutu_reader::init_tu_and_read_dwo_dies)
15813 (cutu_reader::cutu_reader): Update.
15814 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15815 Remove has_children.
15816 (build_type_psymtabs_1, process_skeletonless_type_unit)
15817 (load_partial_comp_unit, load_full_comp_unit): Update.
15818 (create_dwo_cu_reader): Remove has_children.
15819 (create_cus_hash_table, read_die_and_children): Update.
15820 (read_full_die_1,read_full_die): Remove has_children.
15821 (read_signatured_type): Update.
15822 (class cutu_reader) <has_children>: Remove.
15824 2020-02-08 Tom Tromey <tom@tromey.com>
15826 * dwarf2/expr.c: Rename from dwarf2expr.c.
15827 * dwarf2/expr.h: Rename from dwarf2expr.h.
15828 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15829 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15830 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15831 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15832 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15833 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15834 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15835 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15836 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15837 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15838 * dwarf2/loc.c: Rename from dwarf2loc.c.
15839 * dwarf2/loc.h: Rename from dwarf2loc.h.
15840 * dwarf2/read.c: Rename from dwarf2read.c.
15841 * dwarf2/read.h: Rename from dwarf2read.h.
15842 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15843 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15844 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15845 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15846 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15847 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15848 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15849 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15850 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15851 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15852 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15853 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15854 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15856 * Makefile.in (COMMON_SFILES): Update.
15857 (HFILES_NO_SRCDIR): Update.
15859 2020-02-08 Tom Tromey <tom@tromey.com>
15861 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15862 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15864 2020-02-08 Tom Tromey <tom@tromey.com>
15866 * dwarf2read.h (struct die_info): Don't declare.
15868 2020-02-08 Tom Tromey <tom@tromey.com>
15870 * dwarf2read.h (die_info_ptr): Remove typedef.
15872 2020-02-08 Tom Tromey <tom@tromey.com>
15874 * dwarf2read.c (read_call_site_scope)
15875 (handle_data_member_location, dwarf2_add_member_fn)
15876 (mark_common_block_symbol_computed, read_common_block)
15877 (attr_to_dynamic_prop, partial_die_info::read)
15878 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15879 (dwarf2_symbol_mark_computed, set_die_type): Update.
15880 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15882 (attr_form_is_block): Don't declare.
15883 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15885 2020-02-08 Tom Tromey <tom@tromey.com>
15887 * dwarf2read.c (dwarf2_find_base_address, )
15888 (read_call_site_scope, rust_containing_type)
15889 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15890 (handle_data_member_location, dwarf2_add_member_fn)
15891 (get_alignment, read_structure_type, process_structure_scope)
15892 (mark_common_block_symbol_computed, read_common_block)
15893 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15894 (partial_die_info::read, read_attribute_value, new_symbol)
15895 (lookup_die_type, dwarf2_get_ref_die_offset)
15896 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15897 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15898 (dwarf2_symbol_mark_computed): Update.
15899 * dwarf2/attribute.h (struct attribute) <value_as_address,
15900 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15902 (value_as_address, attr_form_is_section_offset)
15903 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15904 * dwarf2/attribute.c (attribute::value_as_address)
15905 (attribute::form_is_section_offset, attribute::form_is_constant)
15906 (attribute::form_is_ref): Now methods.
15908 2020-02-08 Tom Tromey <tom@tromey.com>
15910 * dwarf2read.c (struct attribute, DW_STRING)
15911 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15912 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15913 (attr_form_is_block, attr_form_is_section_offset)
15914 (attr_form_is_constant, attr_form_is_ref): Move.
15915 * dwarf2/attribute.h: New file.
15916 * dwarf2/attribute.c: New file, from dwarf2read.c.
15917 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15919 2020-02-08 Tom Tromey <tom@tromey.com>
15921 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15922 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15924 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15925 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15926 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15928 * dwarf2/abbrev.h: New file.
15929 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15930 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15932 2020-02-08 Tom Tromey <tom@tromey.com>
15934 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15935 (dwarf2_section_size, dwarf2_get_section_info)
15936 (create_signatured_type_table_from_debug_names)
15937 (create_addrmap_from_aranges, read_debug_names_from_section)
15938 (get_gdb_index_contents_from_section, read_comp_unit_head)
15939 (error_check_comp_unit_head, read_abbrev_offset)
15940 (create_debug_type_hash_table, init_cu_die_reader)
15941 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15942 (read_comp_units_from_section, create_cus_hash_table)
15943 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15944 (create_dwp_v2_section, dwarf2_rnglists_process)
15945 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15946 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15947 (read_indirect_string_from_dwz, read_addr_index_1)
15948 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15949 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15950 (fill_in_loclist_baton): Update.
15951 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15952 get_containing_section, get_bfd_owner, get_bfd_section,
15953 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15954 (dwarf2_read_section, get_section_name, get_section_file_name)
15955 (get_containing_section, get_section_bfd_owner)
15956 (get_section_bfd_section, get_section_name, get_section_file_name)
15957 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15959 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15960 (dwarf2_section_info::get_bfd_owner)
15961 (dwarf2_section_info::get_bfd_section)
15962 (dwarf2_section_info::get_name)
15963 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15964 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15965 (dwarf2_section_info::read): Now methods.
15966 * dwarf-index-write.c (class debug_names): Update.
15968 2020-02-08 Tom Tromey <tom@tromey.com>
15970 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15971 Move to dwarf2/section.h.
15972 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15973 (get_section_bfd_section, get_section_name)
15974 (get_section_file_name, get_section_id, get_section_flags)
15975 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15977 * dwarf2/section.h: New file.
15978 * dwarf2/section.c: New file, from dwarf2read.c.
15979 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15981 2020-02-08 Tom Tromey <tom@tromey.com>
15983 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15984 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15985 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15986 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15987 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15988 * dwarf2/leb.h: New file, from dwarf2read.c.
15989 * dwarf2/leb.c: New file, from dwarf2read.c.
15990 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15992 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15993 (COMMON_SFILES): Add dwarf2/leb.c.
15995 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15999 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16002 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
16003 * gdb/remote.c (remote_console_output): Update.
16004 * gdb/ui-file.c (fputs_unfiltered): Rename to...
16005 (ui_file_puts): ...this.
16006 * gdb/ui-file.h (ui_file_puts): Add declaration.
16007 * gdb/utils.c (emit_style_escape): Update.
16008 (flush_wrap_buffer): Update.
16009 (fputs_maybe_filtered): Update.
16010 (fputs_unfiltered): Add function.
16012 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16014 * gdb/event-loop.c (gdb_wait_for_event): Update.
16015 * gdb/printcmd.c (printf_command): Update.
16016 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
16017 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
16018 (gdb_os_flush_stderr): Update.
16019 * gdb/remote.c (remote_console_output): Update.
16020 * gdb/ui-file.c (gdb_flush): Rename to...
16021 (ui_file_flush): ...this.
16022 (stderr_file::write): Update.
16023 (stderr_file::puts): Update.
16024 * gdb/ui-file.h (gdb_flush): Rename to...
16025 (ui_file_flush): ...this.
16026 * gdb/utils.c (gdb_flush): Add function.
16027 * gdb/utils.h (gdb_flush): Add declaration.
16029 2020-02-07 Tom Tromey <tromey@adacore.com>
16031 PR breakpoints/24915:
16032 * source.c (find_and_open_source): Do not check basenames_may_differ.
16034 2020-02-07 Tom Tromey <tom@tromey.com>
16036 * README: Update gdbserver documentation.
16037 * gdbserver: Move to top level.
16038 * configure.tgt (build_gdbserver): Remove.
16039 * configure.ac: Remove --enable-gdbserver.
16040 * configure: Rebuild.
16041 * Makefile.in (distclean): Don't mention gdbserver.
16043 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16045 * source-cache.c (source_cache::ensure): Surround
16046 get_plain_source_lines with a try/catch.
16047 (source_cache::get_line_charpos): Get rid of try/catch
16048 and only check for the return value of "ensure".
16049 * tui/tui-source.c (tui_source_window::set_contents):
16050 Simplify "nlines" calculation.
16052 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16054 * MAINTAINERS (Write After Approval): Add myself.
16056 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16058 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16061 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16063 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16065 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
16067 * nat/riscv-linux-tdesc.h: New file.
16068 * nat/riscv-linux-tdesc.c: New file, taking code from...
16069 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16071 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16074 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16076 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16077 we don't set the fake simulator ptid to the null_ptid.
16079 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
16081 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16082 * gdbthread.h (class thread_info) <resumed>: Likewise.
16083 * infrun.c (resume_1): Likewise.
16084 (proceed): Likewise.
16085 (infrun_thread_stop_requested): Likewise.
16086 (stop_all_threads): Likewise.
16087 (handle_inferior_event): Likewise.
16088 (restart_threads): Likewise.
16089 (finish_step_over): Likewise.
16090 (keep_going_stepped_thread): Likewise.
16091 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16092 (linux_handle_extended_wait): Likewise.
16093 * record-btrace.c (get_thread_current_frame_id): Likewise.
16094 * record-full.c (record_full_wait_1): Likewise.
16095 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16096 * target.c (target_resume): Likewise.
16097 * thread.c (set_running_thread): Likewise.
16099 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16101 * f-valprint.c (f77_print_array_1): Changed datatype of index
16102 variable to LONGEST from int to enable it to contain bound
16105 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
16107 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16108 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16109 offsets according to FLEN determined.
16110 (riscv_linux_nat_target::read_description): Determine FLEN
16112 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16113 according to FLEN determined.
16114 (riscv_linux_nat_target::store_registers): Likewise.
16116 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
16118 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16119 when reg->group is empty and reggroup is not.
16121 2020-01-31 Tom Tromey <tromey@adacore.com>
16123 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16124 Call beneath target's mourn_inferior after unpushing.
16126 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16129 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16130 have enough lines to fill the screen, still return the lowest
16133 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16135 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16136 '-', '<', and '>' commands.
16138 2020-01-29 Pedro Alves <palves@redhat.com>
16139 Sergio Durigan Junior <sergiodj@redhat.com>
16141 * infcmd.c (construct_inferior_arguments): Assert that
16142 'argc' is greater than 0.
16144 2020-01-29 Luis Machado <luis.machado@linaro.org>
16146 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16147 (BRK_INSN_MASK): Define to 0xd4200000.
16148 (aarch64_program_breakpoint_here_p): New function.
16149 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16150 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16152 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16154 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16155 call gdbarch_program_breakpoint_here_p.
16156 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16157 default_program_breakpoint_here_p, changed return type to bool and
16159 * breakpoint.h (program_breakpoint_here): Moved prototype to
16160 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16161 return type to bool.
16162 * gdbarch.c: Regenerate.
16163 * gdbarch.h: Regenerate.
16164 * gdbarch.sh (program_breakpoint_here_p): New method.
16165 * infrun.c (handle_signal_stop): Call
16166 gdbarch_program_breakpoint_here_p.
16168 2020-01-26 Tom Tromey <tom@tromey.com>
16170 * ctfread.c (struct ctf_fp_info): Reindent.
16171 (_initialize_ctfread): Remove.
16173 2020-01-26 Tom Tromey <tom@tromey.com>
16175 * psymtab.c (partial_map_expand_apply)
16176 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16177 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16178 (psym_print_stats, psym_expand_symtabs_for_function)
16179 (psym_map_symbol_filenames, psym_map_matching_symbols)
16180 (psym_expand_symtabs_matching)
16181 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16182 (maintenance_check_psymtabs): Use new methods.
16183 * psympriv.h (struct partial_symtab) <readin_p,
16184 get_compunit_symtab>: New methods.
16185 <readin, compunit_symtab>: Remove members.
16186 (struct standard_psymtab): New.
16187 (struct legacy_psymtab): Derive from standard_psymtab.
16188 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16190 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16192 2020-01-26 Tom Tromey <tom@tromey.com>
16194 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16195 read_dependencies. Add assert.
16196 * psymtab.c (partial_symtab::read_dependencies): New method.
16197 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16199 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16200 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16202 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16205 2020-01-26 Tom Tromey <tom@tromey.com>
16207 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16208 Call expand_psymtab.
16209 (xcoff_read_symtab): Call expand_psymtab.
16210 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16211 legacy_expand_psymtab.
16212 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16214 (struct legacy_psymtab) <expand_psymtab>: Implement.
16215 <legacy_expand_psymtab>: New member.
16216 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16217 (parse_partial_symbols): Set legacy_expand_psymtab.
16218 (psymtab_to_symtab_1): Change argument order. Call
16220 (new_psymtab): Set legacy_expand_psymtab.
16221 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16222 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16224 (dwarf2_psymtab::expand_psymtab): Rename from
16225 psymtab_to_symtab_1. Call expand_psymtab.
16226 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16227 (dbx_end_psymtab): Likewise.
16228 (dbx_psymtab_to_symtab_1): Change argument order. Call
16230 (dbx_read_symtab): Call expand_psymtab.
16231 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16232 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16233 (ctf_psymtab::read_symtab): Call expand_psymtab.
16235 2020-01-26 Tom Tromey <tom@tromey.com>
16237 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16238 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16240 * mdebugread.c (mdebug_read_symtab): Remove prints.
16241 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16243 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16245 2020-01-26 Tom Tromey <tom@tromey.com>
16247 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16248 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16249 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16251 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16252 * psymtab.c (psymtab_to_symtab): Call method.
16253 (dump_psymtab): Update.
16254 * psympriv.h (struct partial_symtab): Add virtual destructor.
16255 <read_symtab>: New method.
16256 (struct legacy_symtab): New.
16257 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16258 (struct pst_map) <pst>: Now a legacy_psymtab.
16259 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16260 (new_psymtab): Use legacy_psymtab.
16261 * dwarf2read.h (struct dwarf2_psymtab): New.
16262 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16263 * dwarf2read.c (dwarf2_create_include_psymtab)
16264 (dwarf2_build_include_psymtabs, create_type_unit_group)
16265 (create_partial_symtab, process_psymtab_comp_unit_reader)
16266 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16267 (set_partial_user): Use dwarf2_psymtab.
16268 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16269 (psymtab_to_symtab_1, process_full_comp_unit)
16270 (process_full_type_unit, dwarf2_ranges_read)
16271 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16272 (dwarf_decode_lines): Use dwarf2_psymtab.
16273 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16274 (add_address_entry_worker, write_one_signatured_type)
16275 (recursively_count_psymbols, recursively_write_psymbols)
16276 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16277 (write_debug_names): Likewise.
16278 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16279 <pst>: Now a legacy_psymtab.
16280 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16281 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16282 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16283 * ctfread.c (struct ctf_psymtab): New.
16284 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16286 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16287 (create_partial_symtab): Return a ctf_psymtab.
16288 (scan_partial_symbols): Update.
16290 2020-01-26 Tom Tromey <tom@tromey.com>
16292 * xcoffread.c (xcoff_start_psymtab): Use new.
16293 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16294 renamed from start_psymtab_common.
16295 * psympriv.h (struct partial_symtab): Add new constructor.
16296 (start_psymtab_common): Don't declare.
16297 * mdebugread.c (parse_partial_symbols): Use new.
16298 * dwarf2read.c (create_partial_symtab): Use new.
16299 * dbxread.c (start_psymtab): Use new.
16300 * ctfread.c (create_partial_symtab): Use new.
16302 2020-01-26 Tom Tromey <tom@tromey.com>
16304 * xcoffread.c (xcoff_end_psymtab): Use new.
16305 * psymtab.c (start_psymtab_common): Use new.
16306 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16308 * psympriv.h (struct partial_symtab): Add parameters to
16309 constructor. Don't inline.
16310 (allocate_psymtab): Don't declare.
16311 * mdebugread.c (new_psymtab): Use new.
16312 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16313 * dbxread.c (dbx_end_psymtab): Use new.
16315 2020-01-26 Tom Tromey <tom@tromey.com>
16317 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16318 allocate_psymtab. Update documentation.
16319 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16320 allocate_psymtab. Do not use new.
16321 (allocate_psymtab): Use new. Update.
16323 2020-01-26 Tom Tromey <tom@tromey.com>
16325 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16326 * psymtab.c (psym_print_stats): Update.
16327 * psympriv.h (struct partial_symtab) <readin,
16328 psymtabs_addrmap_supported, anonymous>: Now bool.
16329 * mdebugread.c (psymtab_to_symtab_1): Update.
16330 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16331 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16332 (process_full_comp_unit, process_full_type_unit): Update.
16333 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16334 * ctfread.c (psymtab_to_symtab): Update.
16336 2020-01-26 Tom Tromey <tom@tromey.com>
16338 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16339 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16340 * psymtab.c (psymtab_storage): Delete psymtabs.
16341 (psymtab_storage::allocate_psymtab): Use new.
16342 (psymtab_storage::discard_psymtab): Use delete.
16343 * psympriv.h (struct partial_symtab): Add constructor and
16346 2020-01-26 Tom Tromey <tom@tromey.com>
16348 * machoread.c: Do not include psympriv.h.
16350 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16352 * NEWS: Mention the new option and the set/show commands.
16354 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16356 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16357 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16358 (validate_exec_file): New variables, enums, functions.
16359 (exec_file_locate_attach, print_section_info): Style the filenames.
16360 (_initialize_exec): Install show_exec_file_mismatch_command and
16361 set_exec_file_mismatch_command.
16362 * gdbcore.h (validate_exec_file): Declare.
16363 * infcmd.c (attach_command): Call validate_exec_file.
16364 * remote.c ( remote_target::remote_add_inferior): Likewise.
16366 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16368 * frame.c (find_frame_sal): Move call to get_next_frame into more
16370 * inline-frame.c (inilne_state) <inline_state>: Update argument
16372 (inilne_state) <skipped_symbol>: Rename to...
16373 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16374 (skip_inline_frames): Build vector of skipped symbols and use this
16375 to reate the inline_state.
16376 (inline_skipped_symbol): Add a comment and some assertions, fetch
16377 skipped symbol from the list.
16379 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16381 * buildsym.c (lte_is_less_than): Delete.
16382 (buildsym_compunit::end_symtab_with_blockvector): Create local
16383 lambda function to sort line table entries, and use
16384 std::stable_sort instead of std::sort.
16385 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16386 markers when looking for a previous line.
16388 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16390 * dwarf2read.c (lnp_state_machine::record_line): Include
16391 end_sequence parameter in debug print out. Record the line if we
16392 are at an end_sequence marker even if it's not the start of a
16394 * symmisc.c (maintenance_print_one_line_table): Print end of
16395 sequence markers with 'END' not '0'.
16397 2020-01-24 Pedro Alves <palves@redhat.com>
16400 * thread.c (scoped_restore_current_thread::restore): Use
16401 switch_to_inferior_no_thread.
16402 * exec.c: Include "progspace-and-thread.h".
16403 (add_target_sections, remove_target_sections):
16404 scoped_restore_current_pspace_and_thread instead of
16405 scoped_restore_current_thread.
16406 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16407 and aspace to the inferior before calling clone_program_space.
16408 Remove stale comment.
16410 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16412 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16413 (arm_netbsd_nat_target::fetch_registers): ...this.
16414 (arm_nbsd_nat_target::store_registers): Rename to...
16415 (arm_netbsd_nat_target::store_registers): ...this.
16417 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16419 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16422 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16424 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16426 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16428 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16429 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16430 the correct replacement (iterate_over_regset_sections).
16431 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16434 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16437 * gdb/python/python.c (execute_gdb_command): Call
16438 async_enable_stdin in catch block.
16440 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16442 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16443 SWITCH_THRU_ALL_UIS.
16445 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16448 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16449 comment, add extra parameter, and update to store previous symbol
16451 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16452 add extra parameter.
16453 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16454 remove unneeded parameter, add try/catch around gdb_print_insn,
16455 rewrite to add items to asm_lines vector.
16456 (tui_find_backward_disassembly_start_address): New function.
16457 (tui_find_disassembly_address): Updated throughout.
16458 (tui_disasm_window::set_contents): Update for changes to
16460 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16461 number of lines to scroll.
16463 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16465 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16466 (SECT_OFF_DATA): Likewise.
16467 (SECT_OFF_RODATA): Likewise.
16468 (SECT_OFF_TEXT): Likewise.
16469 (SECT_OFF_BSS): Likewise.
16470 (struct objfile) <text_section_offset, data_section_offset>: New
16472 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16473 objfile::text_section_offset.
16474 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16475 * coffread.c (coff_symtab_read): Likewise.
16476 (enter_linenos): Likewise.
16477 (process_coff_symbol): Likewise.
16478 * ctfread.c (get_objfile_text_range): Likewise.
16479 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16480 Use objfile::data_section_offset.
16481 * dwarf2-frame.c (execute_cfa_program): Use
16482 objfile::text_section_offset.
16483 (dwarf2_frame_find_fde): Likewise.
16484 * dwarf2read.c (create_addrmap_from_index): Likewise.
16485 (create_addrmap_from_aranges): Likewise.
16486 (dw2_find_pc_sect_compunit_symtab): Likewise.
16487 (process_psymtab_comp_unit_reader): Likewise.
16488 (add_partial_symbol): Likewise.
16489 (add_partial_subprogram): Likewise.
16490 (process_full_comp_unit): Likewise.
16491 (read_file_scope): Likewise.
16492 (read_func_scope): Likewise.
16493 (read_lexical_block_scope): Likewise.
16494 (read_call_site_scope): Likewise.
16495 (dwarf2_rnglists_process): Likewise.
16496 (dwarf2_ranges_process): Likewise.
16497 (dwarf2_ranges_read): Likewise.
16498 (dwarf_decode_lines_1): Likewise.
16499 (new_symbol): Likewise.
16500 (dwarf2_fetch_die_loc_sect_off): Likewise.
16501 (dwarf2_per_cu_text_offset): Likewise.
16502 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16503 * hppa-tdep.c (read_unwind_info): Likewise.
16504 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16505 * psympriv.h (struct partial_symtab): Likewise.
16506 * psymtab.c (find_pc_sect_psymtab): Likewise.
16507 * solib-svr4.c (enable_break): Likewise.
16508 * stap-probe.c (relocate_address): Use
16509 objfile::data_section_offset.
16510 * xcoffread.c (enter_line_range): Use
16511 objfile::text_section_offset.
16512 (read_xcoff_symtab): Likewise.
16514 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16516 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16517 declaration to narrower scopes.
16519 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16521 * darwin-nat.h (struct darwin_exception_msg, enum
16522 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16524 (class darwin_nat_target) <wait_1, check_new_threads,
16525 decode_exception_message, decode_message, stop_inferior,
16526 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16527 * darwin-nat.c (darwin_check_new_threads): Rename to...
16528 (darwin_nat_target::check_new_threads): ... this.
16529 (darwin_suspend_inferior_it): Remove.
16530 (darwin_decode_exception_message): Rename to...
16531 (darwin_nat_target::decode_exception_message): ... this.
16532 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16533 (darwin_decode_message): Rename to...
16534 (darwin_nat_target::decode_message): ... this.
16535 (cancel_breakpoint): Rename to...
16536 (darwin_nat_target::cancel_breakpoint): ... this.
16537 (darwin_wait): Rename to...
16538 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16539 instead of iterate_over_inferiors.
16540 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16541 (darwin_stop_inferior): Rename to...
16542 (darwin_nat_target::stop_inferior): ... this.
16543 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16544 (darwin_init_thread_list): Rename to...
16545 (darwin_nat_target::init_thread_list): ... this.
16546 (darwin_ptrace_him): Rename to...
16547 (darwin_nat_target::ptrace_him): ... this.
16548 (darwin_nat_target::create_inferior): Pass lambda function to
16550 (darwin_nat_target::detach): Call stop_inferior instead of
16551 darwin_stop_inferior.
16552 * fork-inferior.h (fork_inferior): Change init_trace_fun
16553 parameter to gdb::function_view.
16554 * fork-inferior.c (fork_inferior): Likewise.
16556 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16558 * i386-cygwin-tdep.c (core_process_module_section): Update.
16559 * windows-nat.c (struct lm_info_windows): Add text_offset.
16560 (windows_xfer_shared_libraries): Update.
16561 * windows-tdep.c (windows_xfer_shared_library):
16562 Add text_offset_cached argument.
16563 * windows-tdep.h (windows_xfer_shared_library): Update.
16565 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16567 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16569 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16571 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16572 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16573 replace with range-based for.
16574 (gdbsim_interrupt_inferior): Remove.
16575 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16576 with a range-based for. Inline code from
16577 gdbsim_interrupt_inferior.
16579 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16581 * infrun.c (proceed): Fix indentation.
16583 2020-01-21 Tom Tromey <tromey@adacore.com>
16585 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16586 * python/python.c (python_extension_ops): Update.
16587 (gdbpy_colorize): New function.
16588 * python/lib/gdb/__init__.py (colorize): New function.
16589 * extension.h (ext_lang_colorize): Declare.
16590 * extension.c (ext_lang_colorize): New function.
16591 * extension-priv.h (struct extension_language_ops) <colorize>: New
16593 * cli/cli-style.c (_initialize_cli_style): Update help text.
16595 2020-01-21 Luis Machado <luis.machado@linaro.org>
16597 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16598 <cond>: Change type to bool.
16599 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16600 (aarch64_displaced_step_cb): Likewise.
16601 (aarch64_displaced_step_tb): Likewise.
16603 2020-01-21 Luis Machado <luis.machado@linaro.org>
16605 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16608 2020-01-21 Luis Machado <luis.machado@linaro.org>
16610 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16611 <pc_adjust>: Adjust the documentation.
16612 (aarch64_displaced_step_fixup): Check if PC really moved before
16615 2020-01-19 Tom Tromey <tom@tromey.com>
16617 * disasm.c (~gdb_disassembler): New destructor.
16618 (gdb_buffered_insn_length): Call disassemble_free_target.
16619 * disasm.h (class gdb_disassembler): Declare destructor. Use
16620 DISABLE_COPY_AND_ASSIGN.
16622 2020-01-19 Tom Tromey <tom@tromey.com>
16624 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16625 (die_reader_func_ftype): Remove.
16626 (cutu_reader): New class.
16627 (dw2_get_file_names_reader): Remove "data" parameter.
16628 (dw2_get_file_names): Use cutu_reader.
16629 (create_debug_type_hash_table): Update.
16630 (read_cutu_die_from_dwo): Update comment.
16631 (lookup_dwo_unit): Add dwo_name parameter.
16632 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16633 die_reader_func_ftype and data parameters.
16634 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16635 Remove die_reader_func_ftype and data parameters.
16636 (~cutu_reader): New; from init_cutu_and_read_dies.
16637 (cutu_reader::cutu_reader): Rename from
16638 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16639 and data parameters.
16640 (init_cutu_and_read_dies_simple): Remove.
16641 (struct process_psymtab_comp_unit_data): Remove.
16642 (process_psymtab_comp_unit_reader): Remove data parameter; add
16643 want_partial_unit and pretend_language parameters.
16644 (process_psymtab_comp_unit): Use cutu_reader.
16645 (build_type_psymtabs_reader): Remove data parameter.
16646 (build_type_psymtabs_1): Use cutu_reader.
16647 (process_skeletonless_type_unit): Likewise.
16648 (load_partial_comp_unit_reader): Remove.
16649 (load_partial_comp_unit): Use cutu_reader.
16650 (load_full_comp_unit_reader): Remove.
16651 (load_full_comp_unit): Use cutu_reader.
16652 (struct create_dwo_cu_data): Remove.
16653 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16654 dwo_unit parameters.
16655 (create_cus_hash_table): Use cutu_reader.
16656 (struct dwarf2_read_addr_index_data): Remove.
16657 (dwarf2_read_addr_index_reader): Remove.
16658 (dwarf2_read_addr_index): Use cutu_reader.
16659 (read_signatured_type_reader): Remove.
16660 (read_signatured_type): Use cutu_reader.
16662 2020-01-19 Tom Tromey <tom@tromey.com>
16664 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16665 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16666 (tui_wrefresh): Declare.
16667 * tui/tui-wingeneral.c (suppress_output): New global.
16668 (tui_suppress_output, ~tui_suppress_output): New constructor and
16670 (tui_wrefresh): New function.
16671 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16672 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16673 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16675 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16677 (tui_data_window::no_refresh): New method.
16678 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16679 (tui_reg_command): Use tui_suppress_output
16680 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16681 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16683 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16685 2020-01-19 Tom Tromey <tom@tromey.com>
16687 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16688 Handle case where symtab is null.
16690 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16692 * linux-fork.c (one_fork_p): Simplify.
16694 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16696 * top.c (struct qt_args): Remove.
16697 (kill_or_detach): Change return type to void, replace `void *`
16698 parameter with a proper one.
16699 (print_inferior_quit_action): Likewise.
16700 (quit_confirm): Use range-based for loop to iterate over inferiors.
16701 (quit_force): Likewise.
16703 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16705 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16706 `void *` parameter with proper parameters.
16707 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16708 (print_one_inferior): Change return type to void, replace `void *`
16709 parameter with proper parameters.
16710 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16712 (get_other_inferior): Remove.
16713 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16716 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16718 * mi/mi-interp.c (report_initial_inferior): Remove.
16719 (mi_interp::init): Use range-based for to iterate over inferiors.
16721 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16723 * python/py-inferior.c (build_inferior_list): Remove.
16724 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16726 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16728 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16729 (btrace_stitch_trace): Likewise.
16730 * charset.c (intermediate_encoding): Likewise (vaild).
16731 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16732 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16733 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16735 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16737 * windows-tdep.c (windows_get_tlb_type):
16738 Add rtl_user_process_parameters type.
16740 2020-01-16 Pedro Alves <palves@redhat.com>
16741 Norbert Lange <nolange79@gmail.com>
16744 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16745 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16746 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16747 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16748 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16749 (ps_plog): Redeclare exported functions with default visibility.
16751 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16753 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16754 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16756 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16758 * infcmd.c (post_create_inferior): Use get_thread_regcache
16759 instead of get_current_regcache.
16761 2020-01-14 Tom Tromey <tom@tromey.com>
16764 * python/python.c (gdbpy_decode_line): Treat empty string the same
16767 2020-01-14 Tom Tromey <tom@tromey.com>
16769 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16771 2020-01-14 Tom Tromey <tom@tromey.com>
16773 * nat/linux-btrace.c: Don't include <config.h>.
16774 * nat/linux-ptrace.c: Don't include <config.h>.
16775 * nat/x86-linux-dregs.c: Don't include <config.h>.
16777 2020-01-14 Tom Tromey <tom@tromey.com>
16779 * configure: Rebuild.
16780 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16782 2020-01-14 Tom Tromey <tom@tromey.com>
16784 * nat/x86-linux-dregs.c: Include configh.h.
16785 * nat/linux-ptrace.c: Include configh.h.
16786 * nat/linux-btrace.c: Include configh.h.
16787 * defs.h: Include config.h, bfd.h.
16788 * configure.ac: Don't source common.host.
16789 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16790 * configure: Rebuild.
16791 * acinclude.m4: Update path.
16792 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16793 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16794 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16795 (CLIBS): Add LIBSUPPORT.
16797 (COMMON_SFILES): Remove gdbsupport files.
16798 (HFILES_NO_SRCDIR): Likewise.
16799 (stamp-version): Update path to create-version.sh.
16800 (ALLDEPFILES): Remove gdbsupport files.
16802 2020-01-14 Tom Tromey <tom@tromey.com>
16804 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16805 USE_WIN32API when needed.
16806 * configure.ac (USE_WIN32API): Don't define.
16807 (WIN32LIBS): Use WIN32APILIBS.
16808 * configure: Rebuild.
16810 2020-01-14 Tom Tromey <tom@tromey.com>
16812 * configure: Rebuild.
16813 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16815 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16817 * skip.c (skip_function_command): Make skip w/o arguments use the
16818 name of the inlined function if pc is inside any inlined function.
16820 2020-01-14 Luis Machado <luis.machado@linaro.org>
16822 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16823 * infrun.c (resume_1): Likewise.
16824 (handle_inferior_event): Remove stale comment.
16825 * linux-nat.c (linux_nat_target::resume): Update comments.
16826 (save_stop_reason): Likewise.
16827 (linux_nat_filter_event): Likewise.
16828 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16830 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16832 * elfread.c (record_minimal_symbol): Set section index to 0 for
16833 non-allocatable sections.
16836 2020-01-13 Ali Tamur <tamur@google.com>
16838 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16839 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16840 to gdb::optional. Update comments.
16841 (dwo_file): Update comments.
16842 (read_attribute): Update API to take an additional out parameter,
16843 need_reprocess. This is used to mark attributes that need other
16844 attributes (e.g. str_offsets_base) for correct computation which may not
16845 have been read yet.
16846 (read_attribute_reprocess): New function declaration.
16847 (read_addr_index): Likewise.
16848 (read_dwo_str_index): Likewise.
16849 (read_stub_str_index): Likewise.
16850 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16851 (lookup_addr_base): New function definition.
16852 (lookup_ranges_base): Likewise.
16853 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16854 lookup_ranges_base.
16855 (init_cutu_and_read_dies): Update comments.
16856 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16857 unit. This is used to inherit parent's str_offsets_base and addr_base.
16859 (init_cutu_and_read_dies_simple): Reflect API changes.
16860 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16861 (create_cus_hash_table): Change API to take parent compile unit.
16862 Reflect API changes.
16863 (open_and_init_dwo_file): Reflect API changes.
16864 (dwarf2_get_pc_bounds): Update comments.
16865 (dwarf2_record_block_ranges): Likewise.
16866 (read_full_die_1): Change implementation to reprocess attributes that
16867 need str_offsets_base and addr_base.
16868 (partial_die_info::read): Likewise.
16869 (read_attribute_reprocess): New function definition.
16870 (read_attribute_value): Change API to take an additional out parameter,
16871 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16872 when a non-dwo compile unit has index based attributes.
16873 (read_attribute): Reflect API changes.
16874 (read_addr_index_1): Reflect API changes. Update comments.
16875 (dwarf2_read_addr_index_data): Reflect API changes.
16876 (dwarf2_read_addr_index): Likewise.
16877 (read_str_index): Change API and implementation. This becomes a helper
16878 to be used by the new string index related methods. Update error
16879 message and comments.
16880 (read_dwo_str_index): New function definition.
16881 (read_stub_str_index): Likewise.
16882 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16883 * symfile.h (dwarf2_debug_sections): Likewise.
16884 * xcoffread.c (dwarf2_debug_sections): Likewise.
16886 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16888 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16889 core_reg_sect type to gdb_byte *.
16890 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16891 * cris-tdep.c (fetch_core_registers): Likewise.
16892 * corelow.c (core_target::get_core_register_section): Change
16893 type of `contents` to gdb::byte_vector.
16895 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16897 * tui/tui-wingeneral.c (box_win): Position the title in the center
16900 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16902 * corelow.c (core_target::get_core_register_section): Use
16903 std::vector instead of alloca.
16905 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16907 * warning.m4: Add -Wmissing-declarations to build_warnings.
16908 * configure: Re-generate.
16910 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16912 * python/python.c (init__gdb_module): Add declaration.
16914 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16916 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16917 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16918 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16919 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16920 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16921 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16922 * ada-exp.y (_initialize_ada_exp): Add declaration.
16923 * ada-lang.c (_initialize_ada_language): Add declaration.
16924 * ada-tasks.c (_initialize_tasks): Add declaration.
16925 * agent.c (_initialize_agent): Add declaration.
16926 * aix-thread.c (_initialize_aix_thread): Add declaration.
16927 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16928 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16929 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16930 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16931 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16932 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16933 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16934 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16935 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16936 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16937 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16938 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16939 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16940 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16941 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16942 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16943 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16944 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16945 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16946 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16947 * annotate.c (_initialize_annotate): Add declaration.
16948 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16949 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16950 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16951 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16952 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16953 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16954 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16955 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16956 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16957 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16958 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16959 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16960 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16961 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16962 * auto-load.c (_initialize_auto_load): Add declaration.
16963 * auxv.c (_initialize_auxv): Add declaration.
16964 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16965 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16966 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16967 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16968 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16969 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16970 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16971 * breakpoint.c (_initialize_breakpoint): Add declaration.
16972 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16973 * btrace.c (_initialize_btrace): Add declaration.
16974 * charset.c (_initialize_charset): Add declaration.
16975 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16976 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16977 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16978 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16979 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16980 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16981 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16982 * coffread.c (_initialize_coffread): Add declaration.
16983 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16984 * compile/compile.c (_initialize_compile): Add declaration.
16985 * complaints.c (_initialize_complaints): Add declaration.
16986 * completer.c (_initialize_completer): Add declaration.
16987 * copying.c (_initialize_copying): Add declaration.
16988 * corefile.c (_initialize_core): Add declaration.
16989 * corelow.c (_initialize_corelow): Add declaration.
16990 * cp-abi.c (_initialize_cp_abi): Add declaration.
16991 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16992 * cp-support.c (_initialize_cp_support): Add declaration.
16993 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16994 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16995 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16996 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16997 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16998 * ctfread.c (_initialize_ctfread): Add declaration.
16999 * d-lang.c (_initialize_d_language): Add declaration.
17000 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
17001 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
17002 * dbxread.c (_initialize_dbxread): Add declaration.
17003 * dcache.c (_initialize_dcache): Add declaration.
17004 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
17005 * disasm.c (_initialize_disasm): Add declaration.
17006 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
17007 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
17008 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
17009 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
17010 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
17011 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
17012 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
17013 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
17014 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
17015 * elfread.c (_initialize_elfread): Add declaration.
17016 * exec.c (_initialize_exec): Add declaration.
17017 * extension.c (_initialize_extension): Add declaration.
17018 * f-lang.c (_initialize_f_language): Add declaration.
17019 * f-valprint.c (_initialize_f_valprint): Add declaration.
17020 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
17021 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
17022 * filesystem.c (_initialize_filesystem): Add declaration.
17023 * findcmd.c (_initialize_mem_search): Add declaration.
17024 * findvar.c (_initialize_findvar): Add declaration.
17025 * fork-child.c (_initialize_fork_child): Add declaration.
17026 * frame-base.c (_initialize_frame_base): Add declaration.
17027 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
17028 * frame.c (_initialize_frame): Add declaration.
17029 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
17030 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
17031 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17032 * gcore.c (_initialize_gcore): Add declaration.
17033 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17034 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17035 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17036 * gdbarch.c (_initialize_gdbarch): Add declaration.
17037 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17038 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17039 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17040 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17041 * go-lang.c (_initialize_go_language): Add declaration.
17042 * go32-nat.c (_initialize_go32_nat): Add declaration.
17043 * guile/guile.c (_initialize_guile): Add declaration.
17044 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17045 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17046 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17047 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17048 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17049 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17050 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17051 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17052 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17053 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17054 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17055 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17056 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17057 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17058 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17059 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17060 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17061 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17062 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17063 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17064 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17065 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17066 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17067 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17068 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17069 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17070 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17071 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17072 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17073 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17074 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17075 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17076 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17077 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17078 * infcall.c (_initialize_infcall): Add declaration.
17079 * infcmd.c (_initialize_infcmd): Add declaration.
17080 * inflow.c (_initialize_inflow): Add declaration.
17081 * infrun.c (_initialize_infrun): Add declaration.
17082 * interps.c (_initialize_interpreter): Add declaration.
17083 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17084 * jit.c (_initialize_jit): Add declaration.
17085 * language.c (_initialize_language): Add declaration.
17086 * linux-fork.c (_initialize_linux_fork): Add declaration.
17087 * linux-nat.c (_initialize_linux_nat): Add declaration.
17088 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17089 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17090 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17091 * m2-lang.c (_initialize_m2_language): Add declaration.
17092 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17093 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17094 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17095 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17096 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17097 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17098 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17099 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17100 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17101 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17102 * machoread.c (_initialize_machoread): Add declaration.
17103 * macrocmd.c (_initialize_macrocmd): Add declaration.
17104 * macroscope.c (_initialize_macroscope): Add declaration.
17105 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17106 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17107 * maint.c (_initialize_maint_cmds): Add declaration.
17108 * mdebugread.c (_initialize_mdebugread): Add declaration.
17109 * memattr.c (_initialize_mem): Add declaration.
17110 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17111 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17112 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17113 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17114 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17115 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17116 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17117 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17118 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17119 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17120 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17121 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17122 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17123 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17124 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17125 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17126 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17127 * mipsread.c (_initialize_mipsread): Add declaration.
17128 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17129 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17130 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17131 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17132 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17133 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17134 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17135 * nto-procfs.c (_initialize_procfs): Add declaration.
17136 * objc-lang.c (_initialize_objc_language): Add declaration.
17137 * observable.c (_initialize_observer): Add declaration.
17138 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17139 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17140 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17141 * osabi.c (_initialize_gdb_osabi): Add declaration.
17142 * osdata.c (_initialize_osdata): Add declaration.
17143 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17144 * parse.c (_initialize_parse): Add declaration.
17145 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17146 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17147 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17148 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17149 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17150 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17151 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17152 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17153 * printcmd.c (_initialize_printcmd): Add declaration.
17154 * probe.c (_initialize_probe): Add declaration.
17155 * proc-api.c (_initialize_proc_api): Add declaration.
17156 * proc-events.c (_initialize_proc_events): Add declaration.
17157 * proc-service.c (_initialize_proc_service): Add declaration.
17158 * procfs.c (_initialize_procfs): Add declaration.
17159 * producer.c (_initialize_producer): Add declaration.
17160 * psymtab.c (_initialize_psymtab): Add declaration.
17161 * python/python.c (_initialize_python): Add declaration.
17162 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17163 * record-btrace.c (_initialize_record_btrace): Add declaration.
17164 * record-full.c (_initialize_record_full): Add declaration.
17165 * record.c (_initialize_record): Add declaration.
17166 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17167 * regcache.c (_initialize_regcache): Add declaration.
17168 * reggroups.c (_initialize_reggroup): Add declaration.
17169 * remote-notif.c (_initialize_notif): Add declaration.
17170 * remote-sim.c (_initialize_remote_sim): Add declaration.
17171 * remote.c (_initialize_remote): Add declaration.
17172 * reverse.c (_initialize_reverse): Add declaration.
17173 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17174 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17175 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17176 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17177 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17178 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17179 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17180 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17182 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17183 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17184 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17185 * rust-exp.y (_initialize_rust_exp): Add declaration.
17186 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17187 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17188 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17189 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17190 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17191 * score-tdep.c (_initialize_score_tdep): Add declaration.
17192 * ser-go32.c (_initialize_ser_dos): Add declaration.
17193 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17194 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17195 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17196 * ser-uds.c (_initialize_ser_socket): Add declaration.
17197 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17198 * serial.c (_initialize_serial): Add declaration.
17199 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17200 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17201 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17202 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17203 * skip.c (_initialize_step_skip): Add declaration.
17204 * sol-thread.c (_initialize_sol_thread): Add declaration.
17205 * solib-aix.c (_initialize_solib_aix): Add declaration.
17206 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17207 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17208 * solib-frv.c (_initialize_frv_solib): Add declaration.
17209 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17210 * solib-target.c (_initialize_solib_target): Add declaration.
17211 * solib.c (_initialize_solib): Add declaration.
17212 * source-cache.c (_initialize_source_cache): Add declaration.
17213 * source.c (_initialize_source): Add declaration.
17214 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17215 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17216 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17217 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17218 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17219 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17220 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17221 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17222 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17223 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17224 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17225 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17226 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17227 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17228 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17229 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17230 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17231 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17232 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17233 * stabsread.c (_initialize_stabsread): Add declaration.
17234 * stack.c (_initialize_stack): Add declaration.
17235 * stap-probe.c (_initialize_stap_probe): Add declaration.
17236 * std-regs.c (_initialize_frame_reg): Add declaration.
17237 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17238 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17239 * symfile.c (_initialize_symfile): Add declaration.
17240 * symmisc.c (_initialize_symmisc): Add declaration.
17241 * symtab.c (_initialize_symtab): Add declaration.
17242 * target.c (_initialize_target): Add declaration.
17243 * target-connection.c (_initialize_target_connection): Add
17245 * target-dcache.c (_initialize_target_dcache): Add declaration.
17246 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17247 * thread.c (_initialize_thread): Add declaration.
17248 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17249 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17250 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17251 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17252 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17253 * tracectf.c (_initialize_ctf): Add declaration.
17254 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17255 * tracefile.c (_initialize_tracefile): Add declaration.
17256 * tracepoint.c (_initialize_tracepoint): Add declaration.
17257 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17258 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17259 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17260 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17261 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17262 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17263 * tui/tui.c (_initialize_tui): Add declaration.
17264 * typeprint.c (_initialize_typeprint): Add declaration.
17265 * ui-style.c (_initialize_ui_style): Add declaration.
17266 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17267 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17268 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17269 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17270 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17271 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17272 * unittests/filtered_iterator-selftests.c
17273 (_initialize_filtered_iterator_selftests): Add declaration.
17274 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17275 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17276 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17277 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17278 * unittests/main-thread-selftests.c
17279 (_initialize_main_thread_selftests): Add declaration.
17280 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17281 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17282 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17283 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17284 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17285 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17286 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17287 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17288 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17289 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17290 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17291 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17292 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17293 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17294 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17296 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17297 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17298 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17299 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17300 * user-regs.c (_initialize_user_regs): Add declaration.
17301 * utils.c (_initialize_utils): Add declaration.
17302 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17303 * valops.c (_initialize_valops): Add declaration.
17304 * valprint.c (_initialize_valprint): Add declaration.
17305 * value.c (_initialize_values): Add declaration.
17306 * varobj.c (_initialize_varobj): Add declaration.
17307 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17308 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17309 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17310 * windows-nat.c (_initialize_windows_nat): Add declaration.
17311 (_initialize_check_for_gdb_ini): Add declaration.
17312 (_initialize_loadable): Add declaration.
17313 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17314 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17315 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17316 * xcoffread.c (_initialize_xcoffread): Add declaration.
17317 * xml-support.c (_initialize_xml_support): Add declaration.
17318 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17319 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17320 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17321 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17323 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17325 * regformats/regdat.sh: Generate declaration for init function.
17327 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17329 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17331 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17332 close_one_inferior>: New methods.
17333 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17334 pass down target to find_inferior_pid.
17335 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17336 Pass down target to find_inferior_ptid.
17337 (gdbsim_target::create_inferior): Pass down target to
17339 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17340 target down to find_inferior_ptid and switch_to_thread.
17341 (gdbsim_target::close): Update to call close_one_inferior.
17342 (struct resume_data): Remove.
17343 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17344 directly, rather than through a void pointer.
17345 (gdbsim_target::resume): Update to call resume_one_inferior.
17347 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17349 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17351 2020-01-12 Pedro Alves <palves@redhat.com>
17353 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17354 directly for the current inferior instead of
17355 discard_all_inferiors.
17356 (discard_all_inferiors): Delete.
17358 2020-01-11 Tom Tromey <tom@tromey.com>
17360 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17361 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17362 deprecated_safe_get_selected_frame.
17364 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17366 * inferior.c (print_inferior): Switch inferior before printing it.
17368 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17369 Pedro Alves <palves@redhat.com>
17371 * progspace-and-thread.c (switch_to_program_space_and_thread):
17372 Assert there's an inferior for PSPACE. Use
17373 switch_to_inferior_no_thread to switch the inferior too.
17374 * progspace.c (program_space::~program_space): Call
17375 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17376 (program_space::free_all_objfiles): Don't call clear_symtab_users
17378 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17380 2020-01-10 Pedro Alves <palves@redhat.com>
17382 * NEWS: Mention multi-target debugging, "info connections", and
17383 "add-inferior -no-connection".
17385 2020-01-10 Pedro Alves <palves@redhat.com>
17387 * infrun.c: Include "target-connection.h".
17388 (check_multi_target_resumption): New.
17389 (proceed): Call it.
17390 * target-connection.c (make_target_connection_string): Make
17392 * target-connection.h (make_target_connection_string): Declare.
17394 2020-01-10 Pedro Alves <palves@redhat.com>
17396 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17397 * inferior.c (uiout_field_connection): New function.
17398 (print_inferior): Add new "connection-id" column.
17399 (add_inferior_command): Show connection number/string of added
17401 * process-stratum-target.h
17402 (process_stratum_target::connection_string): New virtual method.
17403 (process_stratum_target::connection_number): New field.
17404 * remote.c (remote_target::connection_string): New override.
17405 * target-connection.c: New file.
17406 * target-connection.h: New file.
17407 * target.c (decref_target): Remove process_stratum targets from
17408 the connection list.
17409 (target_stack::push): Add process_stratum targets to the
17412 2020-01-10 Pedro Alves <palves@redhat.com>
17415 2016-04-12 Pedro Alves <palves@redhat.com>
17416 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17417 Remove references to name.
17418 * serial.h (struct serial) <name>: Delete.
17420 2020-01-10 Pedro Alves <palves@redhat.com>
17422 * gdbarch-selftests.c (register_to_value_test): Remove "target
17423 already pushed" check.
17425 2020-01-10 Pedro Alves <palves@redhat.com>
17426 John Baldwin <jhb@FreeBSD.org>
17428 * aarch64-linux-nat.c
17429 (aarch64_linux_nat_target::thread_architecture): Adjust.
17430 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17431 (task_command_1): Likewise.
17432 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17433 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17434 (aix_thread_target::store_registers)
17435 (aix_thread_target::thread_alive): Adjust.
17436 * amd64-fbsd-tdep.c: Include "inferior.h".
17437 (amd64fbsd_get_thread_local_address): Pass down target.
17438 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17439 thread's gdbarch instead of target_gdbarch.
17440 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17441 get_last_target_status.
17442 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17443 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17445 (update_inserted_breakpoint_locations): Skip if inferiors with no
17447 (update_global_location_list): When handling moribund locations,
17448 find representative inferior for location's pspace, and use thread
17449 count of its process_stratum target.
17450 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17451 * bsd-uthread.c (bsd_uthread_target::wait): Use
17452 as_process_stratum_target and adjust thread_change_ptid and
17454 (bsd_uthread_target::update_thread_list): Use
17455 as_process_stratum_target and adjust find_thread_ptid,
17456 thread_change_ptid and add_thread calls.
17457 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17458 find_thread_ptid call.
17459 * corelow.c (add_to_thread_list): Adjust add_thread call.
17460 (core_target_open): Adjust add_thread_silent and thread_count
17462 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17463 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17464 * event-top.c (async_disconnect): Pop targets from all inferiors.
17465 * exec.c (add_target_sections): Push exec target on all inferiors
17466 sharing the program space.
17467 (remove_target_sections): Remove the exec target from all
17468 inferiors sharing the program space.
17469 (exec_on_vfork): New.
17470 * exec.h (exec_on_vfork): Declare.
17471 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17473 (fbsd_nat_target::update_thread_list): Adjust.
17474 (fbsd_nat_target::resume): Adjust.
17475 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17477 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17478 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17479 get_thread_arch_regcache call.
17480 * fork-child.c (gdb_startup_inferior): Pass target down to
17481 startup_inferior and set_executing.
17482 * gdbthread.h (struct process_stratum_target): Forward declare.
17483 (add_thread, add_thread_silent, add_thread_with_info)
17484 (in_thread_list): Add process_stratum_target parameter.
17485 (find_thread_ptid(inferior*, ptid_t)): New overload.
17486 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17488 (all_threads()): Delete overload.
17489 (all_threads, all_non_exited_threads): Add process_stratum_target
17491 (all_threads_safe): Use brace initialization.
17492 (thread_count): Add process_stratum_target parameter.
17493 (set_resumed, set_running, set_stop_requested, set_executing)
17494 (threads_are_executing, finish_thread_state): Add
17495 process_stratum_target parameter.
17496 (switch_to_thread): Use is_current_thread.
17497 * i386-fbsd-tdep.c: Include "inferior.h".
17498 (i386fbsd_get_thread_local_address): Pass down target.
17499 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17500 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17501 have_inferiors check.
17502 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17503 (inf_ptrace_target::attach): Adjust.
17504 * infcall.c (run_inferior_call): Adjust.
17505 * infcmd.c (run_command_1): Pass target to
17506 scoped_finish_thread_state.
17507 (proceed_thread_callback): Skip inferiors with no execution.
17508 (continue_command): Rename 'all_threads' local to avoid hiding
17509 'all_threads' function. Adjust get_last_target_status call.
17510 (prepare_one_step): Adjust set_running call.
17511 (signal_command): Use user_visible_resume_target. Compare thread
17512 pointers instead of inferior_ptid.
17513 (info_program_command): Adjust to pass down target.
17514 (attach_command): Mark target's 'thread_executing' flag.
17515 (stop_current_target_threads_ns): New, factored out from ...
17516 (interrupt_target_1): ... this. Switch inferior before making
17519 (struct all_inferiors_iterator, struct all_inferiors_range)
17520 (struct all_inferiors_safe_range)
17521 (struct all_non_exited_inferiors_range): Filter on
17522 process_stratum_target too. Remove explicit.
17523 * inferior.c (inferior::inferior): Push dummy target on target
17525 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17526 Add process_stratum_target parameter, and pass it down.
17527 (have_live_inferiors): Adjust.
17528 (switch_to_inferior_and_push_target): New.
17529 (add_inferior_command, clone_inferior_command): Handle
17530 "-no-connection" parameter. Use
17531 switch_to_inferior_and_push_target.
17532 (_initialize_inferior): Mention "-no-connection" option in
17533 the help of "add-inferior" and "clone-inferior" commands.
17534 * inferior.h: Include "process-stratum-target.h".
17535 (interrupt_target_1): Use bool.
17536 (struct inferior) <push_target, unpush_target, target_is_pushed,
17537 find_target_beneath, top_target, process_target, target_at,
17539 (discard_all_inferiors): Delete.
17540 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17541 (all_inferiors, all_non_exited_inferiors): Add
17542 process_stratum_target parameter.
17543 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17544 (target_last_proc_target): New global.
17545 (follow_fork_inferior): Push target on new inferior. Pass target
17546 to add_thread_silent. Call exec_on_vfork. Handle target's
17548 (follow_fork): Adjust get_last_target_status call. Also consider
17550 (follow_exec): Push target on new inferior.
17551 (struct execution_control_state) <target>: New field.
17552 (user_visible_resume_target): New.
17553 (do_target_resume): Call target_async.
17554 (resume_1): Set target's threads_executing flag. Consider resume
17556 (commit_resume_all_targets): New.
17557 (proceed): Also consider resume target. Skip threads of inferiors
17558 with no execution. Commit resumtion in all targets.
17559 (start_remote): Pass current inferior to wait_for_inferior.
17560 (infrun_thread_stop_requested): Consider target as well. Pass
17561 thread_info pointer to clear_inline_frame_state instead of ptid.
17562 (infrun_thread_thread_exit): Consider target as well.
17563 (random_pending_event_thread): New inferior parameter. Use it.
17564 (do_target_wait): Rename to ...
17565 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17567 (threads_are_resumed_pending_p, do_target_wait): New.
17568 (prepare_for_detach): Adjust calls.
17569 (wait_for_inferior): New inferior parameter. Handle it. Use
17570 do_target_wait_1 instead of do_target_wait.
17571 (fetch_inferior_event): Adjust. Switch to representative
17572 inferior. Pass target down.
17573 (set_last_target_status): Add process_stratum_target parameter.
17574 Save target in global.
17575 (get_last_target_status): Add process_stratum_target parameter and
17577 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17578 (context_switch): Check inferior_ptid == null_ptid before calling
17580 (get_inferior_stop_soon): Pass down target.
17581 (wait_one): Rename to ...
17582 (poll_one_curr_target): ... this.
17583 (struct wait_one_event): New.
17585 (stop_all_threads): Adjust.
17586 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17588 (switch_back_to_stepped_thread): Also consider target.
17589 (print_stop_event): Update.
17590 (normal_stop): Update. Also consider the resume target.
17591 * infrun.h (wait_for_inferior): Remove declaration.
17592 (user_visible_resume_target): New declaration.
17593 (get_last_target_status, set_last_target_status): New
17594 process_stratum_target parameter.
17595 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17596 process_stratum_target parameter, and use it.
17597 (clear_inline_frame_state (thread_info*)): New.
17598 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17599 process_stratum_target parameter.
17600 (clear_inline_frame_state (thread_info*)): Declare.
17601 * linux-fork.c (delete_checkpoint_command): Pass target down to
17603 (checkpoint_command): Adjust.
17604 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17605 instead of just tweaking inferior_ptid.
17606 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17607 (exit_lwp): Pass target down to find_thread_ptid.
17608 (attach_proc_task_lwp_callback): Pass target down to
17609 add_thread/set_running/set_executing.
17610 (linux_nat_target::attach): Pass target down to
17611 thread_change_ptid.
17612 (get_detach_signal): Pass target down to find_thread_ptid.
17613 Consider last target status's target.
17614 (linux_resume_one_lwp_throw, resume_lwp)
17615 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17616 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17617 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17618 (linux_nat_target::async_wait_fd): New.
17619 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17621 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17622 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17623 * linux-thread-db.c (struct thread_db_info::process_target): New
17625 (add_thread_db_info): Save target.
17626 (get_thread_db_info): New process_stratum_target parameter. Also
17628 (delete_thread_db_info): New process_stratum_target parameter.
17630 (thread_from_lwp): Adjust to pass down target.
17631 (thread_db_notice_clone): Pass down target.
17632 (check_thread_db_callback): Pass down target.
17633 (try_thread_db_load_1): Always push the thread_db target.
17634 (try_thread_db_load, record_thread): Pass target down.
17635 (thread_db_target::detach): Pass target down. Always unpush the
17637 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17638 target down. Always unpush the thread_db target.
17639 (find_new_threads_callback, thread_db_find_new_threads_2)
17640 (thread_db_target::update_thread_list): Pass target down.
17641 (thread_db_target::pid_to_str): Pass current inferior down.
17642 (thread_db_target::get_thread_local_address): Pass target down.
17643 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17645 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17646 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17647 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17648 (procfs_init_inferior): Rename to ...
17649 (procfs_target::procfs_init_inferior): ... this and adjust.
17650 (procfs_target::create_inferior, procfs_notice_thread)
17651 (procfs_do_thread_registers): Adjust.
17652 * ppc-fbsd-tdep.c: Include "inferior.h".
17653 (ppcfbsd_get_thread_local_address): Pass down target.
17654 * proc-service.c (ps_xfer_memory): Switch current inferior and
17655 program space as well.
17656 (get_ps_regcache): Pass target down.
17657 * process-stratum-target.c
17658 (process_stratum_target::thread_address_space)
17659 (process_stratum_target::thread_architecture): Pass target down.
17660 * process-stratum-target.h
17661 (process_stratum_target::threads_executing): New field.
17662 (as_process_stratum_target): New.
17663 * ravenscar-thread.c
17664 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17665 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17667 * record-btrace.c (record_btrace_target::info_record): Adjust.
17668 (record_btrace_target::record_method)
17669 (record_btrace_target::record_is_replaying)
17670 (record_btrace_target::fetch_registers)
17671 (get_thread_current_frame_id, record_btrace_target::resume)
17672 (record_btrace_target::wait, record_btrace_target::stop): Pass
17674 * record-full.c (record_full_wait_1): Switch to event thread.
17676 * regcache.c (regcache::regcache)
17677 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17678 process_stratum_target parameter and handle it.
17679 (current_thread_target): New global.
17680 (get_thread_regcache): Add process_stratum_target parameter and
17681 handle it. Switch inferior before calling target method.
17682 (get_thread_regcache): Pass target down.
17683 (get_thread_regcache_for_ptid): Pass target down.
17684 (registers_changed_ptid): Add process_stratum_target parameter and
17686 (registers_changed_thread, registers_changed): Pass target down.
17687 (test_get_thread_arch_aspace_regcache): New.
17688 (current_regcache_test): Define a couple local test_target_ops
17689 instances and use them for testing.
17690 (readwrite_regcache): Pass process_stratum_target parameter.
17691 (cooked_read_test, cooked_write_test): Pass mock_target down.
17692 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17693 (get_thread_arch_aspace_regcache): Add process_stratum_target
17695 (regcache::target): New method.
17696 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17697 (regcache::registers_changed_ptid): Add process_stratum_target
17699 (regcache::m_target): New field.
17700 (registers_changed_ptid): Add process_stratum_target parameter.
17701 * remote.c (remote_state::supports_vCont_probed): New field.
17702 (remote_target::async_wait_fd): New method.
17703 (remote_unpush_and_throw): Add remote_target parameter.
17704 (get_current_remote_target): Adjust.
17705 (remote_target::remote_add_inferior): Push target.
17706 (remote_target::remote_add_thread)
17707 (remote_target::remote_notice_new_inferior)
17708 (get_remote_thread_info): Pass target down.
17709 (remote_target::update_thread_list): Skip threads of inferiors
17710 bound to other targets. (remote_target::close): Don't discard
17711 inferiors. (remote_target::add_current_inferior_and_thread)
17712 (remote_target::process_initial_stop_replies)
17713 (remote_target::start_remote)
17714 (remote_target::remote_serial_quit_handler): Pass down target.
17715 (remote_target::remote_unpush_target): New remote_target
17716 parameter. Unpush the target from all inferiors.
17717 (remote_target::remote_unpush_and_throw): New remote_target
17718 parameter. Pass it down.
17719 (remote_target::open_1): Check whether the current inferior has
17720 execution instead of checking whether any inferior is live. Pass
17722 (remote_target::remote_detach_1): Pass down target. Use
17723 remote_unpush_target.
17724 (extended_remote_target::attach): Pass down target.
17725 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17726 (remote_target::append_resumption): Pass down target.
17727 (remote_target::append_pending_thread_resumptions)
17728 (remote_target::remote_resume_with_hc, remote_target::resume)
17729 (remote_target::commit_resume): Pass down target.
17730 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17731 (remote_target::interrupt_query)
17732 (remote_target::remove_new_fork_children)
17733 (remote_target::check_pending_events_prevent_wildcard_vcont)
17734 (remote_target::remote_parse_stop_reply)
17735 (remote_target::process_stop_reply): Pass down target.
17736 (first_remote_resumed_thread): New remote_target parameter. Pass
17738 (remote_target::wait_as): Pass down target.
17739 (unpush_and_perror): New remote_target parameter. Pass it down.
17740 (remote_target::readchar, remote_target::remote_serial_write)
17741 (remote_target::getpkt_or_notif_sane_1)
17742 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17744 (remote_target::mourn_inferior): Pass down target. Use
17745 remote_unpush_target.
17746 (remote_target::core_of_thread)
17747 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17748 (remote_target::pid_to_exec_file)
17749 (remote_target::thread_handle_to_thread_info): Pass down target.
17750 (remote_target::async_wait_fd): New.
17751 * riscv-fbsd-tdep.c: Include "inferior.h".
17752 (riscv_fbsd_get_thread_local_address): Pass down target.
17753 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17754 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17755 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17757 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17758 * solib-svr4.c (enable_break): Pass down target.
17759 * spu-multiarch.c (parse_spufs_run): Pass down target.
17760 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17761 * target-delegates.c: Regenerate.
17762 * target.c (g_target_stack): Delete.
17763 (current_top_target): Return the current inferior's top target.
17764 (target_has_execution_1): Refer to the passed-in inferior's top
17766 (target_supports_terminal_ours): Check whether the initial
17767 inferior was already created.
17768 (decref_target): New.
17769 (target_stack::push): Incref/decref the target.
17770 (push_target, push_target, unpush_target): Adjust.
17771 (target_stack::unpush): Defref target.
17772 (target_is_pushed): Return bool. Adjust to refer to the current
17773 inferior's target stack.
17774 (dispose_inferior): Delete, and inline parts ...
17775 (target_preopen): ... here. Only dispose of the current inferior.
17776 (target_detach): Hold strong target reference while detaching.
17778 (target_thread_name): Add assertion.
17779 (target_resume): Pass down target.
17780 (target_ops::beneath, find_target_at): Adjust to refer to the
17781 current inferior's target stack.
17782 (get_dummy_target): New.
17783 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17784 has a thread running.
17785 (initialize_targets): Rename to ...
17786 (_initialize_target): ... this.
17787 * target.h: Include "gdbsupport/refcounted-object.h".
17788 (struct target_ops): Inherit refcounted_object.
17789 (target_ops::shortname, target_ops::longname): Make const.
17790 (target_ops::async_wait_fd): New method.
17791 (decref_target): Declare.
17792 (struct target_ops_ref_policy): New.
17793 (target_ops_ref): New typedef.
17794 (get_dummy_target): Declare function.
17795 (target_is_pushed): Return bool.
17796 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17797 (all_matching_threads_iterator::all_matching_threads_iterator):
17798 Handle filter target.
17799 * thread-iter.h (struct all_matching_threads_iterator, struct
17800 all_matching_threads_range, class all_non_exited_threads_range):
17801 Filter by target too. Remove explicit.
17802 * thread.c (threads_executing): Delete.
17803 (inferior_thread): Pass down current inferior.
17804 (clear_thread_inferior_resources): Pass down thread pointer
17806 (add_thread_silent, add_thread_with_info, add_thread): Add
17807 process_stratum_target parameter. Use it for thread and inferior
17809 (is_current_thread): New.
17810 (thread_info::deletable): Use it.
17811 (find_thread_ptid, thread_count, in_thread_list)
17812 (thread_change_ptid, set_resumed, set_running): New
17813 process_stratum_target parameter. Pass it down.
17814 (set_executing): New process_stratum_target parameter. Pass it
17815 down. Adjust reference to 'threads_executing'.
17816 (threads_are_executing): New process_stratum_target parameter.
17817 Adjust reference to 'threads_executing'.
17818 (set_stop_requested, finish_thread_state): New
17819 process_stratum_target parameter. Pass it down.
17820 (switch_to_thread): Also match inferior.
17821 (switch_to_thread): New process_stratum_target parameter. Pass it
17823 (update_threads_executing): Reimplement.
17824 * top.c (quit_force): Pop targets from all inferior.
17825 (gdb_init): Don't call initialize_targets.
17826 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17828 (windows_add_thread, windows_delete_thread): Adjust.
17829 (get_windows_debug_event): Rename to ...
17830 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17831 * tracefile-tfile.c (tfile_target_open): Pass down target.
17832 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17834 (switch_to_thread): Add process_stratum_target parameter.
17835 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17837 (mi_on_resume): Pass target down.
17838 * nat/fork-inferior.c (startup_inferior): Add
17839 process_stratum_target parameter. Pass it down.
17840 * nat/fork-inferior.h (startup_inferior): Add
17841 process_stratum_target parameter.
17842 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17844 2020-01-10 Pedro Alves <palves@redhat.com>
17846 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17847 directly. Instead find the first thread in the thread list and
17848 use switch_to_thread.
17850 2020-01-10 Pedro Alves <palves@redhat.com>
17852 * remote.c (remote_target::remote_add_inferior): Don't bind a
17853 process to the current inferior if the current inferior is already
17854 bound to a process.
17856 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17857 Pedro Alves <palves@redhat.com>
17859 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17860 If no process is specified, return null_ptid instead of
17862 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17863 TARGET_WAITKIND_SIGNALLED with no pid.
17865 2020-01-10 Pedro Alves <palves@redhat.com>
17867 * remote.c (first_remote_resumed_thread): New.
17868 (remote_target::wait_as): Use it as default event_ptid instead of
17871 2020-01-10 Pedro Alves <palves@redhat.com>
17873 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17875 2020-01-10 Pedro Alves <palves@redhat.com>
17877 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17880 2020-01-10 Pedro Alves <palves@redhat.com>
17882 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17883 ptid to get_last_target_status.
17884 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17885 ptid to get_last_target_status.
17886 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17887 get_last_target_status.
17888 (info_program_command): Don't pass a target_waitstatus to
17889 get_last_target_status.
17890 * infrun.c (init_wait_for_inferior): Use
17891 nullify_last_target_wait_ptid.
17892 (get_last_target_status): Handle nullptr arguments.
17893 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17894 (print_stop_event): Don't pass a ptid to get_last_target_status.
17895 (normal_stop): Don't pass a ptid to get_last_target_status.
17896 * infrun.h (get_last_target_status, set_last_target_status): Move
17897 comments here and update.
17898 (nullify_last_target_wait_ptid): Declare.
17899 * linux-fork.c (fork_load_infrun_state): Remove local extern
17900 declaration of nullify_last_target_wait_ptid.
17901 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17902 to get_last_target_status.
17904 2020-01-10 Pedro Alves <palves@redhat.com>
17906 * gdbthread.h (scoped_restore_current_thread)
17907 <dont_restore, restore, m_dont_restore>: Declare.
17908 * thread.c (thread_alive): Add assertion. Return bool.
17909 (switch_to_thread_if_alive): New.
17910 (prune_threads): Switch inferior/thread.
17911 (print_thread_info_1): Switch thread before calling target methods.
17912 (scoped_restore_current_thread::restore): New, factored out from
17914 (scoped_restore_current_thread::~scoped_restore_current_thread):
17916 (scoped_restore_current_thread::scoped_restore_current_thread):
17918 (thread_apply_all_command, thread_select): Use
17919 switch_to_thread_if_alive.
17920 * infrun.c (proceed, restart_threads, handle_signal_stop)
17921 (switch_back_to_stepped_thread): Switch current thread before
17922 calling target methods.
17924 2020-01-10 Pedro Alves <palves@redhat.com>
17926 * inferior.c (switch_to_inferior_no_thread): New function,
17927 factored out from ...
17928 (inferior_command): ... here.
17929 * inferior.h (switch_to_inferior_no_thread): Declare.
17930 * mi/mi-main.c (run_one_inferior): Use
17931 switch_to_inferior_no_thread.
17933 2020-01-10 Pedro Alves <palves@redhat.com>
17935 * infcmd.c (kill_command): Remove dead code.
17937 2020-01-10 Pedro Alves <palves@redhat.com>
17939 * remote.c (remote_target::mourn_inferior): No longer check
17940 whether the target is running.
17942 2020-01-10 Pedro Alves <palves@redhat.com>
17944 * corelow.c (core_target::has_execution): Change parameter type to
17946 * inferior.c (number_of_live_inferiors): Use
17947 inferior::has_execution instead of target_has_execution_1.
17948 * inferior.h (inferior::has_execution): New.
17949 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17950 inferior::has_execution instead of target_has_execution_1.
17951 * process-stratum-target.c
17952 (process_stratum_target::has_execution): Change parameter type to
17953 inferior pointer. Check the inferior's PID instead of
17955 * process-stratum-target.h
17956 (process_stratum_target::has_execution): Change parameter type to
17958 * record-full.c (record_full_core_target::has_execution): Change
17959 parameter type to inferior pointer.
17960 * target.c (target_has_execution_1): Change parameter type to
17962 (target_has_execution_current): Adjust.
17963 * target.h (target_ops::has_execution): Change parameter type to
17965 (target_has_execution_1): Change parameter type to inferior
17966 pointer. Change return type to bool.
17967 * tracefile.h (tracefile_target::has_execution): Change parameter
17968 type to inferior pointer.
17970 2020-01-10 Pedro Alves <palves@redhat.com>
17972 * exceptions.c (print_flush): Remove current_top_target() check.
17974 2020-01-10 Pedro Alves <palves@redhat.com>
17976 * remote.c (show_remote_exec_file): Show the current inferior's
17977 exec-file instead of the command variable's value.
17979 2020-01-10 Pedro Alves <palves@redhat.com>
17981 * record-full.c (record_full_resume_ptid): New global.
17982 (record_full_target::resume): Set it.
17983 (record_full_wait_1): Use record_full_resume_ptid instead of
17986 2020-01-10 Pedro Alves <palves@redhat.com>
17988 * gdbthread.h (scoped_restore_current_thread)
17989 <dont_restore, restore, m_dont_restore>: Declare.
17990 * thread.c (thread_alive): Add assertion. Return bool.
17991 (switch_to_thread_if_alive): New.
17992 (prune_threads): Switch inferior/thread.
17993 (print_thread_info_1): Switch thread before calling target methods.
17994 (scoped_restore_current_thread::restore): New, factored out from
17996 (scoped_restore_current_thread::~scoped_restore_current_thread):
17998 (scoped_restore_current_thread::scoped_restore_current_thread):
18000 (thread_apply_all_command, thread_select): Use
18001 switch_to_thread_if_alive.
18003 2020-01-10 George Barrett <bob@bob131.so>
18005 * stap-probe.c (stap_modify_semaphore): Don't check for null
18007 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
18008 for null semaphores.
18010 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18012 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
18013 all source windows, and maintain horizontal scroll status while
18016 2020-01-09 Tom Tromey <tom@tromey.com>
18019 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
18020 update_source_window, not print_source_lines.
18022 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18024 * tui/tui.c (tui_enable): Register tui hooks after calling
18027 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18029 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
18031 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
18033 * thread.c (print_thread_info_1): Fix indentation.
18035 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18037 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18038 unique_xmalloc_ptr outside the if to always free the demangled name.
18040 2020-01-08 Tom Tromey <tromey@adacore.com>
18042 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18043 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18044 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18045 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18047 (section_offsets): New typedef.
18048 * symtab.c (fixup_section, get_msymbol_address): Update.
18049 * symmisc.c (dump_msymbols): Update.
18050 * symfile.h (relative_addr_info_to_section_offsets)
18051 (symfile_map_offsets_to_segments): Update.
18052 * symfile.c (build_section_addr_info_from_objfile)
18053 (init_objfile_sect_indices): Update.
18054 (struct place_section_arg): Change type of "offsets".
18055 (place_section): Update.
18056 (relative_addr_info_to_section_offsets): Change type of
18057 "section_offsets". Remove "num_sections" parameter.
18058 (default_symfile_offsets, syms_from_objfile_1)
18059 (set_objfile_default_section_offset): Update.
18060 (reread_symbols): No need to preserve section offsets by hand.
18061 (symfile_map_offsets_to_segments): Change type of "offsets".
18062 * stap-probe.c (relocate_address): Update.
18063 * stabsread.h (process_one_symbol): Update.
18064 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18065 (solib_target_relocate_section_addresses): Update.
18066 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18068 * solib-frv.c (frv_relocate_main_executable): Update.
18069 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18070 * solib-aix.c (solib_aix_get_section_offsets): Change return
18072 (solib_aix_solib_create_inferior_hook): Update.
18073 * remote.c (remote_target::get_offsets): Update.
18074 * psymtab.c (find_pc_sect_psymtab): Update.
18075 * psympriv.h (struct partial_symbol) <address, text_low,
18076 text_high>: Update.
18077 * objfiles.h (obj_section_offset): Update.
18078 (struct objfile) <section_offsets>: Change type.
18079 <num_sections>: Remove.
18080 (objfile_relocate): Update.
18081 * objfiles.c (entry_point_address_query): Update
18082 (relocate_one_symbol): Change type of "section_offsets".
18083 (objfile_relocate1, objfile_relocate1): Change type of
18085 (objfile_rebase1): Update.
18086 * mipsread.c (mipscoff_symfile_read): Update.
18087 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18089 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18090 (parse_external, psymtab_to_symtab_1): Update.
18091 * machoread.c (macho_symfile_offsets): Update.
18092 * ia64-tdep.c (ia64_find_unwind_table): Update.
18093 * hppa-tdep.c (read_unwind_info): Update.
18094 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18095 * dwarf2read.c (create_addrmap_from_index)
18096 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18097 (process_psymtab_comp_unit_reader, add_partial_symbol)
18098 (add_partial_subprogram, process_full_comp_unit)
18099 (read_file_scope, read_func_scope, read_lexical_block_scope)
18100 (read_call_site_scope, dwarf2_rnglists_process)
18101 (dwarf2_ranges_process, dwarf2_ranges_read)
18102 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18103 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18105 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18107 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18108 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18109 (process_one_symbol): Change type of "section_offsets".
18110 * ctfread.c (get_objfile_text_range): Update.
18111 * coffread.c (coff_symtab_read, enter_linenos)
18112 (process_coff_symbol): Update.
18113 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18114 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18116 2020-01-08 Tom Tromey <tromey@adacore.com>
18118 * dwarf2read.c (parse_macro_definition): Use std::string.
18119 (parse_macro_definition): Likewise.
18121 2020-01-08 Tom Tromey <tromey@adacore.com>
18123 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18124 (ATTR_ALLOC_CHUNK): Remove.
18126 2020-01-08 Tom Tromey <tromey@adacore.com>
18128 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18130 2020-01-08 Tom Tromey <tromey@adacore.com>
18132 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18133 (dwarf2_compute_name, open_dwo_file): Likewise.
18134 (process_enumeration_scope): Use std::vector.
18135 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18136 (partial_die_info::fixup, dwarf2_start_subfile)
18137 (guess_full_die_structure_name, dwarf2_name): Likewise.
18138 (determine_prefix): Update.
18139 (guess_full_die_structure_name): Make return type const.
18140 (partial_die_full_name): Return unique_xmalloc_ptr.
18141 (DW_FIELD_ALLOC_CHUNK): Remove.
18143 2020-01-07 Tom Tromey <tromey@adacore.com>
18146 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18148 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18150 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18152 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18154 * stack.c (print_frame_info): Move disassemble_next_line code
18155 inside source_print block.
18157 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18159 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18160 gdb/signals.h, as we are now using native signal symbols.
18162 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18164 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18165 overflow by an early check of content vs threshold.
18166 * tui/tui-source.c (tui_source_window::line_is_displayed):
18169 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18171 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18173 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18175 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18176 export table if no section contains it's RVA.
18178 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18180 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18182 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
18184 * source.c (print_source_lines_base): Set last_line_listed.
18186 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18188 * tui/tui-disasm.c: Remove trailing spaces.
18190 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18191 Pedro Alves <palves@redhat.com>
18193 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18194 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18195 (windows_gdb_signal_to_target): New function, uses the above
18196 enumeration to convert GDB internal signal codes to equivalent
18198 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18199 * windows-nat.c: Include "gdb_wait.h".
18200 (get_windows_debug_event): Extract the fatal exception from the
18201 exit status and convert to the equivalent Posix signal number.
18202 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18203 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18204 * gdbsupport/gdb_wait.c: New file, implements
18205 windows_status_to_termsig.
18206 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18207 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18209 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18211 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18214 2020-01-05 Luis Machado <luis.machado@linaro.org>
18216 * aarch64-linux-nat.c
18217 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18218 and bfd_mach_aarch64.
18220 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18222 * ui-file.c (stdio_file::can_emit_style_escape)
18223 (tee_file::can_emit_style_escape): Ensure style is used also on
18224 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18226 * main.c (set_gdb_data_directory): Use file style to output the
18227 warning that the given pathname is not a directory.
18228 * top.c (show_history_filename, gdb_safe_append_history)
18229 (show_gdb_datadir): Use file style.
18231 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18233 * solib-target.c (struct lm_info_target):
18234 Change offsets to be a unique_xmalloc_ptr.
18235 (solib_target_relocate_section_addresses): Update.
18237 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18239 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18241 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18243 * MAINTAINERS (Write After Approval): Add myself.
18245 2020-01-02 Luis Machado <luis.machado@linaro.org>
18247 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18248 Cell BE architecture.
18249 * target.h (struct target_ops) <thread_architecture>: Likewise.
18251 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18253 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18255 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18257 * MAINTAINERS (Write After Approval): Add myself.
18259 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18261 * gdbarch.sh: Update copyright year range of generated files.
18263 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18265 Update copyright year range in all GDB files.
18267 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18269 * copyright.py: Convert to Python 3.
18271 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18273 * copyright.py: Adapt after move of gnulib directory from gdb
18274 directory to toplevel directory.
18276 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18278 * copyright.py (main): Exit if run from the wrong directory.
18280 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18282 * top.c (print_gdb_version): Change copyright year to 2020.
18284 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18286 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18288 For older changes see ChangeLog-2019.
18294 version-control: never