1 2020-12-14 Tom Tromey <tromey@adacore.com>
3 * ada-lang.c (get_var_value): Only consider exact matches.
5 2020-12-14 Tom Tromey <tromey@adacore.com>
7 * dwarf2/read.c (rewrite_array_type): New function.
8 (quirk_ada_thick_pointer_struct): Use rewrite_array_type.
10 2020-12-14 Tom Tromey <tromey@adacore.com>
12 * valarith.c (fixed_point_binop): Call error on division by zero.
14 2020-12-13 Tom Tromey <tom@tromey.com>
16 * gdbtypes.c (safe_parse_type): Make argument const.
17 * value.h (parse_and_eval_type): Make argument const.
18 * eval.c (parse_and_eval_type): Make argument const.
20 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
22 * NEWS: Mention new commands.
23 * target-dcache.c: Add 'cli/cli-cmds.h' include.
24 (maint_flush_dcache_command): New function.
25 (_initialize_target_dcache): Create new 'maint flush dcache'
28 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
30 * NEWS: Mention new commands, and that the old commands are now
32 * cli/cli-cmds.c (maintenanceflushlist): Define.
33 * cli/cli-cmds.h (maintenanceflushlist): Declare.
34 * maint.c (_initialize_maint_cmds): Initialise
36 * regcache.c: Add 'cli/cli-cmds.h' include.
37 (reg_flush_command): Add header comment.
38 (_initialize_regcache): Create new 'maint flush register-cache'
39 command, make 'flushregs' an alias.
40 * symtab.c: Add 'cli/cli-cmds.h' include.
41 (_initialize_symtab): Create new 'maint flush symbol-cache'
42 command, make old command an alias.
44 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
46 * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix
47 result from lookup_cmd_composition_1, use the prefixes from both
48 the command and the alias instead.
49 (lookup_cmd_composition_1): Initial prefix command is the based on
50 the search list being passed in. Simplify the logic for tracking
51 the prefix command. Replace a use of alloca with a local
54 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
56 * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
57 of NULL. Don't print message piece by piece, but sentence at a
58 time to allow internationalisation. Some whitespace cleanup.
60 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
63 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
64 deprecated_cmd_warning.
65 (deprecated_cmd_warning): Take extra parameter, call
66 lookup_cmd_composition_1 and pass new parameter through.
67 (lookup_cmd_composition_1): New function, takes implementation of
68 lookup_cmd_composition but with extra parameter.
69 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
71 * command.h (deprecated_cmd_warning): Add extra parameter to
73 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
75 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
77 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
78 command.h, add extra parameter, and use this to guard giving a
80 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
81 include argument names in declaration, add new argument.
82 * completer.c (complete_line_internal_1): Remove unneeded
83 brackets, pass extra argument to lookup_cmd_1.
85 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
87 * infrun.h (debug_infrun): Make a bool.
88 * infrun.c (debug_infrun): Make a bool.
89 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
92 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
94 * displaced-stepping.h (displaced_debug_printf): Use
95 debug_prefixed_printf_cond.
96 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
97 (dwarf_read_debug_printf_v): Likewise.
98 * infrun.h (infrun_debug_printf): Likewise.
99 * linux-nat.c (linux_nat_debug_printf): Likewise.
101 2020-12-11 Tom Tromey <tom@tromey.com>
103 * p-exp.y (intvar): Remove global.
104 (DOLLAR_VARIABLE): Change type.
106 (exp): Call write_dollar_variable here...
107 (yylex): ... not here.
108 * m2-exp.y (DOLLAR_VARIABLE): Change type.
109 (variable): Call write_dollar_variable here...
110 (yylex): ... not here.
111 * f-exp.y (DOLLAR_VARIABLE): Change type.
112 (exp): Call write_dollar_variable here...
113 (yylex): ... not here.
115 2020-12-11 Tom Tromey <tom@tromey.com>
117 * varobj.c (varobj_create): Update.
118 (install_variable): Return void.
120 2020-12-11 Tom Tromey <tom@tromey.com>
122 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
124 2020-12-11 Tom Tromey <tom@tromey.com>
126 * varobj.c (varobj_clear_saved_item): Remove.
127 (update_dynamic_varobj_children): Update.
128 (varobj::~varobj): Don't call varobj_clear_saved_item.
130 2020-12-11 Tom Tromey <tom@tromey.com>
132 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
133 (update_dynamic_varobj_children, create_child)
134 (create_child_with_value): Update.
135 * varobj-iter.h (struct varobj_item) <value>: Now a
137 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
139 2020-12-11 Tom Tromey <tom@tromey.com>
141 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
142 (varobj_get_iterator): Return unique_ptr.
143 (update_dynamic_varobj_children, install_visualizer)
144 (varobj::~varobj): Update.
145 * python/python-internal.h (py_varobj_get_iterator): Return
147 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
149 2020-12-11 Tom Tromey <tom@tromey.com>
151 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
152 (varobj_clear_saved_item, update_dynamic_varobj_children):
155 2020-12-11 Tom Tromey <tom@tromey.com>
157 * varobj.c (update_dynamic_varobj_children): Update.
158 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
159 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
161 (py_varobj_iter::next): Likewise.
163 2020-12-11 Tom Tromey <tom@tromey.com>
165 * varobj.c (update_dynamic_varobj_children, install_visualizer)
166 (varobj::~varobj): Update.
167 * varobj-iter.h (struct varobj_iter): Change to interface class.
168 (struct varobj_iter_ops): Remove.
169 (varobj_iter_next, varobj_iter_delete): Remove.
170 * python/py-varobj.c (struct py_varobj_iter): Derive from
171 varobj_iter. Add constructor, destructor. Rename members.
172 (py_varobj_iter::~py_varobj_iter): Rename from
174 (py_varobj_iter::next): Rename from py_varobj_iter_next.
175 (py_varobj_iter_ops): Remove.
176 (py_varobj_iter): Rename from py_varobj_iter_ctor.
177 (py_varobj_iter_new): Remove.
178 (py_varobj_get_iterator): Update.
180 2020-12-11 Tom Tromey <tom@tromey.com>
182 * varobj.h (all_root_varobjs): Take a function_view.
183 * varobj.c (all_root_varobjs): Take a function_view.
184 (varobj_invalidate_iter): Remove unused parameter.
185 (varobj_invalidate): Update.
186 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
187 (mi_cmd_var_update_iter): Change parameters.
189 2020-12-11 Tom Tromey <tom@tromey.com>
191 * varobj.c (struct varobj_root) <next>: Remove.
192 (struct vlist): Remove.
193 (rootlist): Now a std::list.
194 (install_variable, uninstall_variable, all_root_varobjs): Update.
196 2020-12-11 Tom Tromey <tom@tromey.com>
198 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
199 (varobj_table): Now htab_t.
200 (varobj_get_handle, install_variable, uninstall_variable):
202 (hash_varobj, eq_varobj_and_string): New functions.
203 (hash_varobj): Update.
205 2020-12-11 Tom Tromey <tom@tromey.com>
207 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
208 * ada-lang.c (check_status_exception): Update.
209 * breakpoint.c (free_bp_location): Remove.
210 (decref_bp_location): Use bp_location_ref_policy.
211 (bpstats::bpstats): Don't call incref_bp_location.
212 (bpstats::~bpstats): Remove.
213 (bpstats::bpstats): Update.
214 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
215 (bp_location::bp_location): Update.
216 (incref_bp_location): Remove.
217 (bkpt_print_it): Update.
218 * breakpoint.h (class bp_location): Derive from
220 (struct bpstats): Remove destructor.
221 <bp_location_at>: Now a bp_location_ref_ptr.
223 (bp_location_ref_ptr): New typedef.
224 (struct bp_location_ref_policy): New.
226 2020-12-11 Tom Tromey <tom@tromey.com>
228 * thread.c (class scoped_inc_dec_ref): Remove.
229 (tp_array_compar_ascending, tp_array_compar_descending): Change
231 (thread_apply_all_command): Use thread_info_ref.
233 2020-12-11 Tom Tromey <tom@tromey.com>
235 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
236 (stop_context::stop_context): Update.
237 (stop_context::~stop_context): Remove.
239 2020-12-11 Tom Tromey <tom@tromey.com>
241 * inferior.c (current_inferior_): Change type.
242 (current_inferior, set_current_inferior, initialize_inferiors):
245 2020-12-11 Tom Tromey <tom@tromey.com>
247 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
250 2020-12-11 Tom Tromey <tromey@adacore.com>
252 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
254 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
255 (read_atcb): Use cpu_id_offset.
257 2020-12-10 Kevin Buettner <kevinb@redhat.com>
259 * ada-lang.c (ada_fold_name): Fix off-by-one error.
261 2020-12-10 Luis Machado <luis.machado@linaro.org>
263 * breakpoint.c (should_be_inserted): Don't output newline.
265 2020-12-10 Luis Machado <luis.machado@linaro.org>
267 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
268 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
269 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
270 * arch/aarch64.h: ... here.
271 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
272 (aarch64_maybe_swab128): New function.
273 (aarch64_sve_regs_copy_to_reg_buf)
274 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
275 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
277 (TF_REG_VALUE_BYTES): New enum value.
278 (trad_frame_value_bytes_p): New function.
279 (trad_frame_set_value_bytes): New function.
280 (trad_frame_set_reg_value_bytes): New function.
281 (trad_frame_get_prev_register): Handle register values saved as bytes.
282 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
283 (struct trad_frame_saved_reg) <data>: New field.
284 (trad_frame_set_value_bytes): New prototype.
285 (trad_frame_value_bytes_p): New prototype.
287 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
289 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
290 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
291 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
293 2020-12-09 Tom Tromey <tromey@adacore.com>
295 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
297 2020-12-09 Tom Tromey <tromey@adacore.com>
299 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
300 and "denominator" to gdb_mpz. Handle block forms.
301 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
302 "denominator" to gdb_mpz.
303 (finish_fixed_point_type): Update.
304 (has_zero_over_zero_small_attribute): Update.
306 2020-12-09 Tom Tromey <tromey@adacore.com>
308 * expprint.c (op_name): Update.
309 * expression.h (enum exp_opcode): Update.
310 * std-operator.def: Add more opcodes.
311 * ada-operator.def, fortran-operator.def: Remove, moving contents
312 into std-operator.def.
314 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
316 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
317 Return {} instead of false.
318 (get_discrete_bounds): Compute high bound only if low bound is
321 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
324 * gdbtypes.c (get_discrete_low_bound): Make non-static.
325 (get_discrete_high_bound): Make non-static.
326 * gdbtypes.h (get_discrete_low_bound): New declaration.
327 (get_discrete_high_bound): New declaration.
328 * valarith.c (value_subscript): Only fetch high bound if
331 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
333 * gdbtypes.c (get_discrete_bounds): Implement with
334 get_discrete_low_bound and get_discrete_high_bound.
335 (get_discrete_low_bound): New.
336 (get_discrete_high_bound): New.
338 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
340 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
342 * gdbtypes.c (get_discrete_bounds): Return bool.
344 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
346 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
347 (ada_value_slice): Adjust.
349 * gdbtypes.c (get_discrete_bounds): Adjust.
350 (discrete_position): Return optional.
351 * gdbtypes.h (discrete_position): Return optional.
353 2020-12-07 Tom Tromey <tromey@adacore.com>
355 * maint.c (_initialize_maint_cmds): Use expression command
356 completer for "maint print type".
358 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
360 * completer.c (complete_explicit_location): Also add keywords
361 that start with '-' to the completion list.
363 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
365 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
366 keyword may be followed by any keyword.
367 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
368 'toklen' in the case for "-force-condition".
370 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
372 * main.c (catch_command_errors): Add a flag parameter; invoke
373 `bpstat_do_actions` if the flag is set.
374 (execute_cmdargs): Update a call to `catch_command_errors`.
376 2020-12-07 Tom de Vries <tdevries@suse.de>
378 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
380 2020-12-06 Tom Tromey <tom@tromey.com>
383 * ada-lang.c (replace_operator_with_call): Rewrite.
385 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
388 * s390-tdep.h (op_bc): Correct BC opcode value.
390 2020-12-06 Joel Brobecker <brobecker@adacore.com>
392 * gmp-utils.h (gdb_mpz::safe_export): New private method.
393 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
394 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
395 (gdb_mpz::safe_export): New method.
396 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
397 Update function description.
398 (check_as_integer_raises_out_of_range_error): New function.
399 (gdb_mpz_as_integer_out_of_range): New function.
400 (_initialize_gmp_utils_selftests): Register
401 gdb_mpz_as_integer_out_of_range as a selftest.
403 2020-12-05 Joel Brobecker <brobecker@adacore.com>
405 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
407 (gdb_mpz::write): Likewise.
409 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
411 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
412 number of displaced step buffers.
414 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
416 * displaced-stepping.h (struct displaced_step_buffer): Rename
418 (struct displaced_step_buffers): ... this.
419 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
420 <struct displaced_step_buffer>: New inner class.
422 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
424 (displaced_step_buffers::prepare): ... this, adjust for multiple
426 (displaced_step_buffer::finish): Rename to...
427 (displaced_step_buffers::finish): ... this, adjust for multiple
429 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
430 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
431 adjust for multiple buffers.
432 (displaced_step_buffer::restore_in_ptid): Rename to...
433 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
435 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
436 for num_disp_step_buffers.
437 * linux-tdep.c (struct linux_gdbarch_data)
438 <num_disp_step_buffers>: New field.
439 (struct linux_info) <disp_step_buf>: Rename to...
440 <disp_step_bufs>: ... this, change type to
441 displaced_step_buffers.
442 (linux_displaced_step_prepare): Use
443 linux_gdbarch_data::num_disp_step_buffers to create that number
445 (linux_displaced_step_finish): Adjust.
446 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
447 (linux_displaced_step_restore_all_in_ptid): Adjust.
448 (linux_init_abi): Change supports_displaced_step parameter for
449 num_disp_step_buffers, save it in linux_gdbarch_data.
450 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
451 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
452 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
453 supports_displaced_step parameter for num_disp_step_buffers.
454 (amd64_linux_init_abi): Adjust.
455 (amd64_x32_linux_init_abi): Adjust.
456 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
457 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
458 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
459 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
460 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
461 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
462 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
463 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
464 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
465 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
466 * m68k-linux-tdep.c (m68k_linux_init_abi):
467 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
468 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
469 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
470 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
471 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
472 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
473 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
474 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
475 Change type to displaced_step_buffers.
476 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
477 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
478 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
479 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
480 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
481 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
482 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
484 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
486 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
488 (_initialize_linux_tdep): Register pre-init gdb data instead of
491 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
493 * displaced-stepping.h (struct
494 displaced_step_copy_insn_closure): Adjust comments.
495 (struct displaced_step_inferior_state) <step_thread,
496 step_gdbarch, step_closure, step_original, step_copy,
497 step_saved_copy>: Remove fields.
498 (struct displaced_step_thread_state): New.
499 (struct displaced_step_buffer): New.
500 * displaced-stepping.c (displaced_step_buffer::prepare): New.
501 (write_memory_ptid): Move from infrun.c.
502 (displaced_step_instruction_executed_successfully): New,
503 factored out of displaced_step_finish.
504 (displaced_step_buffer::finish): New.
505 (displaced_step_buffer::copy_insn_closure_by_addr): New.
506 (displaced_step_buffer::restore_in_ptid): New.
507 * gdbarch.sh (displaced_step_location): Remove.
508 (displaced_step_prepare, displaced_step_finish,
509 displaced_step_copy_insn_closure_by_addr,
510 displaced_step_restore_all_in_ptid): New.
511 * gdbarch.c: Re-generate.
512 * gdbarch.h: Re-generate.
513 * gdbthread.h (class thread_info) <displaced_step_state>: New
515 (thread_step_over_chain_remove): New declaration.
516 (thread_step_over_chain_next): New declaration.
517 (thread_step_over_chain_length): New declaration.
518 * thread.c (thread_step_over_chain_remove): Make non-static.
519 (thread_step_over_chain_next): New.
520 (global_thread_step_over_chain_next): Use
521 thread_step_over_chain_next.
522 (thread_step_over_chain_length): New.
523 (global_thread_step_over_chain_enqueue): Add debug print.
524 (global_thread_step_over_chain_remove): Add debug print.
525 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
527 * infrun.c (get_displaced_stepping_state): New.
528 (displaced_step_in_progress_any_inferior): Remove.
529 (displaced_step_in_progress_thread): Adjust.
530 (displaced_step_in_progress): Adjust.
531 (displaced_step_in_progress_any_thread): New.
532 (get_displaced_step_copy_insn_closure_by_addr): Remove.
533 (gdbarch_supports_displaced_stepping): Use
534 gdbarch_displaced_step_prepare_p.
535 (displaced_step_reset): Change parameter from inferior to
537 (displaced_step_prepare_throw): Implement using
538 gdbarch_displaced_step_prepare.
539 (write_memory_ptid): Move to displaced-step.c.
540 (displaced_step_restore): Remove.
541 (displaced_step_finish): Implement using
542 gdbarch_displaced_step_finish.
543 (start_step_over): Allow starting more than one displaced step.
544 (prepare_for_detach): Handle possibly multiple threads doing
546 (handle_inferior_event): Handle possibility that fork event
547 happens while another thread displaced steps.
548 * linux-tdep.h (linux_displaced_step_prepare): New.
549 (linux_displaced_step_finish): New.
550 (linux_displaced_step_copy_insn_closure_by_addr): New.
551 (linux_displaced_step_restore_all_in_ptid): New.
552 (linux_init_abi): Add supports_displaced_step parameter.
553 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
554 (linux_displaced_step_prepare): New.
555 (linux_displaced_step_finish): New.
556 (linux_displaced_step_copy_insn_closure_by_addr): New.
557 (linux_displaced_step_restore_all_in_ptid): New.
558 (linux_init_abi): Add supports_displaced_step parameter,
559 register displaced step methods if true.
560 (_initialize_linux_tdep): Register inferior_execd observer.
561 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
562 supports_displaced_step parameter, adjust call to
563 linux_init_abi. Remove call to
564 set_gdbarch_displaced_step_location.
565 (amd64_linux_init_abi): Adjust call to
566 amd64_linux_init_abi_common.
567 (amd64_x32_linux_init_abi): Likewise.
568 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
569 linux_init_abi. Remove call to
570 set_gdbarch_displaced_step_location.
571 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
572 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
573 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
575 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
576 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
577 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
578 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
579 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
580 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
581 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
582 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
583 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
584 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
585 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
586 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
587 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
588 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
589 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
590 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
591 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
592 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
593 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
594 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
595 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
596 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
597 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
598 linux_init_abi. Remove call to
599 set_gdbarch_displaced_step_location.
600 * arm-tdep.c (arm_pc_is_thumb): Call
601 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
602 get_displaced_step_copy_insn_closure_by_addr.
603 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
604 clear gdbarch methods.
605 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
606 (get_ppc_per_inferior): New function.
607 (ppc_displaced_step_prepare): New function.
608 (ppc_displaced_step_finish): New function.
609 (ppc_displaced_step_restore_all_in_ptid): New function.
610 (rs6000_gdbarch_init): Register new gdbarch methods.
611 * s390-tdep.c (s390_gdbarch_init): Don't call
612 set_gdbarch_displaced_step_location, set new gdbarch methods.
614 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
616 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
617 * aarch64-tdep.h: Include displaced-stepping.h.
618 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
620 (displaced_step_copy_insn_closure_up): Move here.
621 (struct buf_displaced_step_copy_insn_closure): Move here.
622 (struct displaced_step_inferior_state): Move here.
623 (debug_displaced): Move here.
624 (displaced_debug_printf_1): Move here.
625 (displaced_debug_printf): Move here.
626 * displaced-stepping.c: New file.
627 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
628 * gdbarch.h: Re-generate.
629 * inferior.h: Include displaced-stepping.h.
630 * infrun.h (debug_displaced): Move to displaced-stepping.h.
631 (displaced_debug_printf_1): Likewise.
632 (displaced_debug_printf): Likewise.
633 (struct displaced_step_copy_insn_closure): Likewise.
634 (displaced_step_copy_insn_closure_up): Likewise.
635 (struct buf_displaced_step_copy_insn_closure): Likewise.
636 (struct displaced_step_inferior_state): Likewise.
637 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
638 (displaced_debug_printf_1): Likewise.
639 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
641 (_initialize_infrun): Don't register "set/show debug displaced".
643 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
645 * linux-tdep.c (get_linux_inferior_data): Add inferior
647 (linux_vsyscall_range): Pass current inferior.
649 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
651 * infrun.c (displaced_step_prepare_throw): Change return type to
652 displaced_step_prepare_status.
653 (displaced_step_prepare): Likewise.
654 (displaced_step_finish): Change return type to
655 displaced_step_finish_status.
657 (stop_all_threads): Adjust.
658 * displaced-stepping.h: New file.
660 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
662 * infrun.c (displaced_step_fixup): Rename to...
663 (displaced_step_finish): ... this, update all callers.
665 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
667 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
668 (get_displaced_step_copy_insn_closure_by_addr): ... this.
670 (displaced_step_closure): Rename to...
671 (displaced_step_copy_insn_closure): ... this. Update all users.
672 (displaced_step_closure_up): Rename to...
673 (displaced_step_copy_insn_closure_up). ... this. Update all
675 (buf_displaced_step_closure): Rename to...
676 (buf_displaced_step_copy_insn_closure): ... this. Update all
678 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
679 (get_displaced_step_copy_insn_closure_by_addr): ... this.
681 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
682 (aarch64_displaced_step_copy_insn_closure): ... this. Update
684 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
685 (amd64_displaced_step_copy_insn_closure): ... this. Update all
687 * arm-tdep.h (arm_displaced_step_closure): Rename to...
688 (arm_displaced_step_copy_insn_closure): ... this. Update all
690 * i386-tdep.h (i386_displaced_step_closure): Rename to...
691 (i386_displaced_step_copy_insn_closure): ... this. Update all
693 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
694 (ppc_displaced_step_copy_insn_closure): ... this. Update all
696 * s390-tdep.c (s390_displaced_step_closure): Rename to...
697 (s390_displaced_step_copy_insn_closure): ... this. Update all
699 * gdbarch.h: Re-generate.
700 * gdbarch.c: Re-generate.
702 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
704 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
705 (global_thread_step_over_chain_enqueue): ... this. Update all
707 (thread_step_over_chain_remove): Rename to...
708 (global_thread_step_over_chain_remove): ... this. Update all
710 (thread_step_over_chain_next): Rename to...
711 (global_thread_step_over_chain_next): ... this. Update all
713 * infrun.h (step_over_queue_head): Rename to...
714 (global_thread_step_over_chain_head): ... this. Update all
716 * infrun.c (step_over_queue_head): Rename to...
717 (global_thread_step_over_chain_head): ... this. Update all
719 * thread.c (step_over_chain_remove): Rename to...
720 (thread_step_over_chain_remove): ... this. Update all users.
721 (thread_step_over_chain_next): Rename to...
722 (global_thread_step_over_chain_next): ... this. Update all
724 (thread_step_over_chain_enqueue): Rename to...
725 (global_thread_step_over_chain_enqueue): ... this. Update all
727 (thread_step_over_chain_remove): Rename to...
728 (global_thread_step_over_chain_remove): ... this. Update all
731 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
733 * infrun.c (get_displaced_stepping_state): Remove, change
734 callers to access the field directly.
736 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
738 * infrun.c (handle_inferior_event): Restore displaced step
739 buffer bytes in child process when handling fork, even if fork
740 happened in another thread than the displaced-stepping one.
742 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
744 * infrun.c (infrun_inferior_execd): New function.
745 (_initialize_infrun): Attach inferior_execd observer.
747 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
749 * observable.h (inferior_execd): Declare new observable.
750 * observable.c (inferior_execd): Declare new observable.
751 * infrun.c (follow_exec): Notify inferior_execd observer.
752 * jit.c (jit_inferior_created_hook): Make static.
753 (_initialize_jit): Register inferior_execd observer.
754 * jit.h (jit_inferior_created_hook): Remove declaration.
755 * solib.c (_initialize_solib): Register inferior_execd observer.
757 2020-12-04 Tom de Vries <tdevries@suse.de>
760 * completer.c (completion_tracker::build_completion_result): Don't
761 access match_list[0][-1].
763 2020-12-04 Tom Tromey <tromey@adacore.com>
765 * linespec.c (struct linespec_token): Rename; remove typedef.
766 * guile/scm-block.c (struct block_smob): Remove typedef.
767 (struct block_syms_progress_smob): Likewise.
768 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
769 * guile/scm-symtab.c (symtab_smob): Remove typedef.
770 (struct sal_smob): Remove typedef.
771 * guile/scm-param.c (struct param_smob): Remove typedef.
772 * guile/scm-progspace.c (struct pspace_smob): Rename.
773 * guile/scm-objfile.c (struct objfile_smob): Rename.
774 * guile/scm-iterator.c (struct iterator_smob): Rename.
775 * guile/scm-frame.c (struct frame_smob): Rename.
776 * guile/scm-arch.c (struct arch_smob): Rename.
777 * guile/scm-type.c (struct field_smob): Remove typedef.
778 (struct type_smob): Rename.
779 * guile/scm-cmd.c (struct command_smob): Remove typedef.
780 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
781 * guile/scm-value.c (struct value_smob): Remove typedef.
782 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
783 * guile/guile-internal.h (struct scheme_variable)
784 (struct scheme_function, struct scheme_integer_constant)
785 (struct gdb_smob, struct chained_gdb_smob)
786 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
787 (objfile_smob, pspace_smob, type_smob): Remove typedef.
788 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
789 (struct pretty_printer_worker_smob): Remove typedef.
790 * guile/scm-exception.c (struct exception_smob): Remove typedef.
791 * python/py-block.c (struct block_object): Remove typedef.
792 (block_syms_iterator_object): Update.
794 (block_syms_iterator_object): Remove typedef.
795 * python/py-inferior.c (struct membuf_object): Remove typedef.
796 * python/py-symtab.c (struct symtab_object): Remove typedef.
797 (set_symtab): Update.
798 (sal_object): Remove typedef.
800 * python/py-frame.c (frame_object): Remove typedef.
801 * python/py-record-btrace.c (struct btpy_list_object): Remove
803 * python/py-arch.c (struct arch_object): Remove typedef.
804 * python/py-linetable.c (struct linetable_entry_object)
805 (linetable_object, struct ltpy_iterator_object): Remove typedef.
806 * python/py-events.h (eventregistry_object): Remove typedef.
807 (struct events_object): Remove typedef.
808 * python/python-internal.h (gdbpy_breakpoint_object): Remove
810 (thread_object): Remove typedef.
811 * python/py-progspace.c (pspace_object): Remove typedef.
812 * python/py-value.c (struct value_object): Remove typedef.
813 * python/py-record.h (recpy_record_object): Remove typedef.
814 (struct recpy_element_object): Remove typedef.
815 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
816 * python/py-objfile.c (objfile_object): Remove typedef.
817 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
818 * python/py-type.c (type_object): Remove typedef.
819 (typy_iterator_object): Update.
821 (field_object): Remove typedef.
822 (typy_iterator_object): Remove typedef.
823 * python/py-registers.c (register_descriptor_iterator_object):
825 (struct register_descriptor_object)
826 (struct reggroup_iterator_object, struct reggroup_object): Remove
828 * python/py-record.c (recpy_gap_object): Remove typedef.
829 * python/py-symbol.c (symbol_object): Remove typedef.
830 (set_symbol): Update.
831 * python/py-event.h (event_object): Remove typedef.
832 * python/py-param.c (parmpy_object): Remove typedef.
833 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
834 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
835 (unwind_info_object, struct cached_frame_info): Likewise.
837 2020-12-04 Tom Tromey <tromey@adacore.com>
839 * value.c (value_internal_function_name): Make return type const.
840 * value.h (value_internal_function_name): Make return type const.
842 2020-12-04 Luis Machado <luis.machado@linaro.org>
844 * aarch64-tdep.c (submask, bit, bits): Remove.
845 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
846 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
847 (aarch64_decode_cb, aarch64_decode_tb)
848 (aarch64_decode_ldr_literal): Use sbits to extract a signed
850 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
852 2020-12-04 Tom de Vries <tdevries@suse.de>
855 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
857 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
860 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
861 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
863 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
865 * arch/riscv.c: Include 'rv32e-xregs.c'.
866 (riscv_create_target_description): Update to handle rv32e.
867 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
869 <operator==>: Update to account for new field.
871 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
872 * features/riscv/rv32e-xregs.c: Generated.
873 * features/riscv/rv32e-xregs.xml: New file.
874 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
876 (riscv_debug_infcall): Likewise.
877 (riscv_debug_unwinder): Likewise.
878 (riscv_debug_gdbarch): Likewise.
879 (enum riscv_register_required_status): Delete.
880 (struct riscv_register_feature): Add constructor, delete default
881 constructor, copy, and assign constructors.
882 (struct riscv_register_feature::register_info) <required>: Delete.
883 <check>: Update comment and arguments.
884 (struct riscv_register_feature) <name>: Change to member function.
885 <prefer_first_name>: Delete.
886 <tdesc_feature>: New member function.
887 <registers>: Rename to...
888 <m_registers>: ...this.
889 <m_feature_name>: New member variable.
890 (riscv_register_feature::register_info::check): Update arguments.
891 (riscv_xreg_feature): Rewrite as class, create a single static
892 instance of the class.
893 (riscv_freg_feature): Likewise.
894 (riscv_virtual_feature): Likewise.
895 (riscv_csr_feature): Likewise.
896 (riscv_create_csr_aliases): Has become a member function inside
897 riscv_csr_feature class.
898 (riscv_abi_embedded): New function definition.
899 (riscv_register_name): Adjust to use new feature objects.
900 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
901 and adjust available argument registers.
902 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
903 (riscv_check_tdesc_feature): Delete.
904 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
905 (riscv_gdbarch_init): Delete target description checking code, and
906 instead call to the new feature objects to perform the checks.
907 Reorder handling of no abi information case, allows small code
909 (_initialize_riscv_tdep): Remove call, this is now done in the
910 riscv_csr_feature constructor.
911 * riscv-tdep.h (riscv_abi_embedded): Declare.
913 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
915 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
918 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
920 * riscv-tdep.c (riscv_is_unknown_csr): New function,
921 implementation moved from riscv_register_reggroup_p.
922 (riscv_register_reggroup_p): Update group handling for unknown
925 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
927 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
928 (dwarf2_get_dwz_file): Convert 'filename' to a
929 std::string. Use dwz_search_other_debugdirs to search for DWZ
930 files in the debug-file-directories provided by the user as well.
932 2020-12-01 Tom Tromey <tom@tromey.com>
934 * parse.c (expr_builder::expr_builder): Initialize expout.
935 (expr_builder::release): Use expression::resize.
936 (expression::expression, expression::~expression)
937 (expression::resize): New methods.
938 (write_exp_elt): Use expression::resize.
939 (prefixify_expression): Update.
940 (increase_expout_size): Use expression::resize.
941 * expression.h (struct expression): Add constructor, destructor.
942 <resize>: New method.
943 (expression_up): Change type.
945 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
946 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
947 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
950 2020-11-30 Tom de Vries <tdevries@suse.de>
953 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
954 is_reference parameter.
955 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
957 2020-11-30 Tom Tromey <tom@tromey.com>
959 * rust-lang.c (rust_op_name): Remove.
960 (exp_descriptor_rust): Update.
961 * parser-defs.h (op_name_standard): Don't declare.
962 (struct exp_descriptor) <op_name>: Remove.
963 * parse.c (exp_descriptor_standard): Update.
964 * opencl-lang.c (exp_descriptor_opencl): Update.
965 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
966 * f-lang.c (op_name_f): Remove.
967 (f_language::exp_descriptor_tab): Update.
968 * expression.h (op_name): Update.
969 * expprint.c (op_name): Rewrite.
970 (op_name_standard): Remove.
971 (dump_raw_expression, dump_subexp): Update.
972 * c-lang.c (exp_descriptor_c): Update.
973 * ax-gdb.c (gen_expr): Update.
974 * ada-lang.c (ada_op_name): Remove.
975 (ada_exp_descriptor): Update.
977 2020-11-30 Tom Tromey <tom@tromey.com>
979 * eval.c (init_array_element): Remove.
980 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
982 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
985 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
986 static locator win info.
988 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
990 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
993 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
995 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
996 is always initialized.
998 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
999 * MAINTAINERS (Write After Approval): Add myself.
1001 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1003 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1004 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
1006 2020-11-25 Tom Tromey <tom@tromey.com>
1008 * eval.c (evaluate_subexp_standard): Remove unnecessary
1011 2020-11-25 Tom Tromey <tom@tromey.com>
1013 * d-lang.c: Include parser-defs.h.
1014 * rust-lang.c: Include parser-defs.h.
1015 * c-lang.h: Do not include parser-defs.h.
1017 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1019 * regcache.h (struct cached_reg): Remove typedef.
1021 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1023 * README: Fix the URL of the MPFR library.
1025 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1027 * README: Document the --with-libgmp-prefix configure option.
1029 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1031 * NEWS: Add entry documenting support for DWARF-based fixed
1034 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1036 * NEWS: Document that building GDB now requires GMP.
1038 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1040 * typeprint.c (print_type_scalar): Add handling of
1041 TYPE_CODE_FIXED_POINT.
1043 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1045 * valarith.c (fixed_point_binop): Replace the
1046 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
1049 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1051 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
1052 replacing fixed_point_scaling_factor. All callers updated
1053 throughout this project.
1054 (fixed_point_scaling_factor): Delete declaration.
1055 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
1056 fixed_point_scaling_factor. Adjust implementation accordingly.
1058 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1060 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1061 replacing the fixed_point_type_base_type function. All callers
1062 updated throughout this project.
1063 (fixed_point_type_base_type): Remove declaration.
1064 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1065 fixed_point_type_base_type. Adjust implementation accordingly.
1067 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1069 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1071 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1072 (TYPE_FIXED_POINT_INFO): Delete macro.
1073 (allocate_fixed_point_type_info): Change return type to void.
1074 * gdbtypes.c (copy_type_recursive): Replace the use of
1075 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1076 (fixed_point_scaling_factor): Likewise.
1077 (allocate_fixed_point_type_info): Change return type to void.
1078 Adjust implementation accordingly.
1079 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1080 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1082 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1084 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1085 into one single gdb::array_view parameter.
1086 (gdb_mpz::write): Likewise.
1087 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1088 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1089 into one single gdb::array_view parameter.
1090 Adjust implementation accordingly.
1091 (gdb_mpz::write): Likewise.
1092 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1093 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1094 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1096 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1098 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1099 Change return type to std::string. Update all callers.
1100 * gmp-utils.c (gmp_string_printf): Likewise.
1102 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1104 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1105 instead of mpq_set_ui to initialize our GMP rational.
1107 2020-11-23 Tom de Vries <tdevries@suse.de>
1109 * debuginfod-support.c (debuginfod_source_query)
1110 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1112 2020-11-21 Tom Tromey <tom@tromey.com>
1114 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1116 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1118 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1120 (gdb_mpz_write_all_from_small): Likewise.
1122 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1124 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1127 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1129 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1130 ctf_arc_open_by_name.
1132 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1134 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1135 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1137 2020-11-20 Pedro Alves <pedro@palves.net>
1139 * language.c (language_arch_info::lookup_primitive_type): Use
1140 gdb::function_view instead of gdb::function.
1141 (template language_lookup_primitive_type): Rename to ...
1142 (language_lookup_primitive_type_1): ... this, and make static.
1143 (language_lookup_primitive_type(const struct language_defn *,
1144 struct gdbarch *, const char *): Make non-template.
1145 (language_lookup_primitive_type(const struct language_defn *,
1146 struct gdbarch *, std::function<bool (struct type *)>): Make
1147 non-template and use gdb::function_view.
1148 * language.h (language_arch_info::lookup_primitive_type): Use
1149 gdb::function_view instead of std::function.
1150 (language_lookup_primitive_type): No longer template.
1151 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1152 lambda instead of a std::function.
1154 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1157 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1160 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1162 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1164 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1166 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1167 in `loop_cb` parameter.
1168 * gdbarch.c: Re-generate.
1169 * gdbarch.h: Re-generate.
1170 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1172 * arch-utils.h (default_read_core_file_mappings): Likewise.
1173 * corelow.c (core_target::build_file_mappings): Likewise.
1174 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1175 (linux_core_info_proc_mappings): Likewise.
1177 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1179 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1180 * NEWS: Mention new options.
1181 * f-array-walker.h: New file.
1182 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1183 (repack_array_slices): New static global.
1184 (show_repack_array_slices): New function.
1185 (fortran_array_slicing_debug): New static global.
1186 (show_fortran_array_slicing_debug): New function.
1187 (value_f90_subarray): Delete.
1188 (skip_undetermined_arglist): Delete.
1189 (class fortran_array_repacker_base_impl): New class.
1190 (class fortran_lazy_array_repacker_impl): New class.
1191 (class fortran_array_repacker_impl): New class.
1192 (fortran_value_subarray): Complete rewrite.
1193 (set_fortran_list): New static global.
1194 (show_fortran_list): Likewise.
1195 (_initialize_f_language): Register new commands.
1196 (fortran_adjust_dynamic_array_base_address_hack): New function.
1197 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1199 * f-valprint.c: Include 'f-array-walker.h'.
1200 (class fortran_array_printer_impl): New class.
1201 (f77_print_array_1): Delete.
1202 (f77_print_array): Delete.
1203 (fortran_print_array): New.
1204 (f_value_print_inner): Update to call fortran_print_array.
1205 * gdbtypes.c: Include 'f-lang.h'.
1206 (resolve_dynamic_type_internal): Call
1207 fortran_adjust_dynamic_array_base_address_hack.
1209 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1211 * breakpoint.c (struct watch_options): New struct.
1212 (watch_option_defs): New static global.
1213 (make_watch_options_def_group): New function.
1214 (watch_maybe_just_location): Convert option parsing.
1215 (watch_command_completer): New function.
1216 (_initialize_breakpoint): Build help text using options mechanism.
1218 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1220 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1221 (watch_command_1): Update parameter types. Convert locals to
1223 (watch_command_wrapper): Change parameter type.
1224 (watch_maybe_just_location): Change locals to bool.
1225 (rwatch_command_wrapper): Update parameter type.
1226 (awatch_command_wrapper): Update parameter type.
1227 * breakpoint.h (watch_command_wrapper): Change parameter type.
1228 (rwatch_command_wrapper): Update parameter type.
1229 (awatch_command_wrapper): Update parameter type.
1230 * eval.c (fetch_subexp_value): Change parameter type.
1231 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1233 * value.h (fetch_subexp_value): Change parameter type in
1236 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1238 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1241 2020-11-18 Keith Seitz <keiths@redhat.com>
1243 * linux-tdep.c (dump_note_entry_p): Return true instead of
1244 checking `filename'.
1246 2020-11-18 Tom de Vries <tdevries@suse.de>
1248 * debuginfod-support.c (debuginfod_source_query)
1249 (debuginfod_debuginfo_query): Also do early exit if
1250 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1252 2020-11-18 Tom de Vries <tdevries@suse.de>
1254 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1257 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1259 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1260 callers. Move doc here.
1261 * gdbtypes.c (get_array_bounds): Return bool
1263 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1265 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1267 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1268 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1269 case to the default.
1271 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1273 * printcmd.c: Include 'safe-ctype.c'.
1274 (skip_over_slash_fmt): New function.
1275 (print_command_completer): Call skip_over_slash_fmt.
1276 (display_and_x_command_completer): New function.
1277 (_initialize_printcmd): Add command completion for 'x' and
1280 2020-11-16 Pedro Alves <pedro@palves.net>
1282 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1283 (get_prev_frame_always_1): ... to here.
1284 * inline-frame.c (inline_frame_this_id): Mention
1285 get_prev_frame_always_1 in comment.
1287 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1289 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1291 (value_less): Add fixed-point handling.
1293 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1295 * eval.c (binop_promote): Add fixed-point type handling.
1296 * valarith.c (fixed_point_binop): New function.
1297 (scalar_binop): Add fixed-point type handling.
1298 (value_neg): Add fixed-point type handling.
1299 * valops.c (value_cast_to_fixed_point): New function.
1300 (value_cast): Add fixed-point type handling.
1302 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1304 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1306 * c-typeprint.c (c_type_print_varspec_prefix)
1307 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1308 TYPE_CODE_FIXED_POINT handling.
1309 * p-typeprint.c (pascal_type_print_varspec_prefix)
1310 (pascal_type_print_varspec_suffix): Likewise.
1311 * typeprint.c (print_type_fixed_point): New function.
1312 * typeprint.h (print_type_fixed_point): Add declaration.
1314 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1316 * printcmd.c (print_scalar_formatted): Add fixed-point type
1317 handling when options->format is set.
1319 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1321 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1322 * dwarf2/read.c (get_dwarf2_rational_constant)
1323 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1324 (has_zero_over_zero_small_attribute): New functions.
1325 read_base_type, set_die_type): Add fixed-point type handling.
1326 * gdb-gdb.py.in: Add fixed-point type handling.
1327 * gdbtypes.c: #include "gmp-utils.h".
1328 (create_range_type, set_type_code): Add fixed-point type handling.
1329 (init_fixed_point_type): New function.
1330 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1331 (print_fixed_point_type_info): New function.
1332 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1334 (fixed_point_type_storage): New typedef.
1335 (fixed_point_objfile_key): New static global.
1336 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1337 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1339 * gdbtypes.h: #include "gmp-utils.h".
1340 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1341 (union type_specific) <fixed_point_info>: New field.
1342 (struct fixed_point_type_info): New struct.
1343 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1344 (init_fixed_point_type, is_fixed_point_type)
1345 (fixed_point_type_base_type, fixed_point_scaling_factor)
1346 (allocate_fixed_point_type_info): Add declarations.
1347 * valprint.c (generic_val_print_fixed_point): New function.
1348 (generic_value_print): Add fixed-point type handling.
1349 * value.c (value_as_address, unpack_long): Add fixed-point type
1352 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1354 * utils.h (uinteger_pow): Add declaration.
1355 * utils.c (uinteger_pow): Moved here (without changes)...
1356 * valarith.c (uinteger_pow): ... from here.
1358 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1360 * gmp-utils.h, gmp-utils.c: New file.
1361 * unittests/gmp-utils-selftests.c: New file.
1362 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1363 unittests/gmp-utils-selftests.c.
1364 (COMMON_SFILES) Add gmp-utils.c.
1365 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1367 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1369 * configure.ac: Generate an error if a usable GMP library
1371 * configure: Regenerate.
1373 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1375 * configure.ac: Add support for --with-libgmp-prefix.
1376 * Makefile.in (LIBGMP): New variable.
1377 (CLIBS): Include $(LIBGMP).
1378 * configure, config.in: Regenerate
1380 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1383 * f-exp.y (COMPLETE): New token.
1384 (exp): Two new rules for tab-completion.
1385 (saw_name_at_eof): New static global.
1386 (last_was_structop): Likewise.
1387 (yylex): Set new variables, and return COMPLETE token at the end
1388 of the input stream in some cases.
1390 2020-11-14 Tom Tromey <tom@tromey.com>
1392 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1394 2020-11-14 Tom Tromey <tom@tromey.com>
1396 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1398 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1400 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1402 2020-11-13 Tom Tromey <tom@tromey.com>
1404 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1405 (convert_escape, parse_one_string): Constify.
1407 2020-11-13 Keith Seitz <keiths@redhat.com>
1409 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1410 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1411 outside of ELF segments" warning for debugin
1413 2020-11-13 Keith Seitz <keiths@redhat.com>
1416 * elfread.c (elf_symfile_segments): Output a BFD file name
1417 for the "Loadable section ... outside of ELF segments" warning.
1419 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1422 * arm-tdep.c (class arm_instruction_reader): New.
1423 (target_arm_instruction_reader): New.
1424 (arm_analyze_prologue): Add instruction reader parameter and use
1425 it. Use arm_expand_immediate.
1426 (class target_arm_instruction_reader): Adjust.
1427 (arm_skip_prologue): Adjust.
1428 (arm_expand_immediate): New.
1429 (arm_scan_prologue): Adjust.
1430 (arm_analyze_prologue_test): New.
1431 (class test_arm_instruction_reader): New.
1433 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1435 * f-lang.c (fortran_argument_convert): Add declaration. Add
1436 header comment, taken from f-lang.h. Make static.
1437 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1438 (fortran_argument_convert): Delete declaration.
1440 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1442 * ada-exp.y (find_primitive_type): Make parameter const.
1443 * ada-lang.c (enum ada_primitive_types): Delete.
1444 (ada_language::language_arch_info): Update.
1445 * c-lang.c (enum c_primitive_types): Delete.
1446 (c_language_arch_info): Update.
1447 (enum cplus_primitive_types): Delete.
1448 (cplus_language::language_arch_info): Update.
1449 * d-lang.c (enum d_primitive_types): Delete.
1450 (d_language::language_arch_info): Update.
1451 * f-lang.c (enum f_primitive_types): Delete.
1452 (f_language::language_arch_info): Update.
1453 * go-lang.c (enum go_primitive_types): Delete.
1454 (go_language::language_arch_info): Update.
1455 * language.c (auto_or_unknown_language::language_arch_info):
1457 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1458 (language_string_char_type): Add header comment, call function in
1460 (language_bool_type): Likewise
1461 (language_arch_info::bool_type): Define.
1462 (language_lookup_primitive_type_1): Delete.
1463 (language_lookup_primitive_type): Rewrite as a templated function
1464 to call function in language_arch_info, then instantiate twice.
1465 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1466 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1467 (language_arch_info::lookup_primitive_type): Define twice with
1468 different signatures.
1469 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1470 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1471 member function in language_arch_info.
1472 * language.h (language_arch_info): Complete rewrite.
1473 (language_lookup_primitive_type): Make templated.
1474 * m2-lang.c (enum m2_primitive_types): Delete.
1475 (m2_language::language_arch_info): Update.
1476 * opencl-lang.c (OCL_P_TYPE): Delete.
1477 (enum opencl_primitive_types): Delete.
1478 (opencl_type_data): Delete.
1479 (builtin_opencl_type): Delete.
1480 (lookup_opencl_vector_type): Update.
1481 (opencl_language::language_arch_info): Update, lots of content
1483 (build_opencl_types): ...here. This function is now deleted.
1484 (_initialize_opencl_language): Delete.
1485 * p-lang.c (enum pascal_primitive_types): Delete.
1486 (pascal_language::language_arch_info): Update.
1487 * rust-lang.c (enum rust_primitive_types): Delete.
1488 (rust_language::language_arch_info): Update.
1490 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1492 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1495 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1497 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1500 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1502 * dwarf2/read.c (dwarf_read_debug_printf,
1503 dwarf_read_debug_printf_v): New macros, use throughout the file.
1505 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1508 * arc-linux-tdep.c (collect_register): Populate "eret" by
1509 "pc" value from the regcache when asked for "pc" value.
1511 2020-11-12 Tom Tromey <tom@tromey.com>
1514 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1517 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1519 * features/Makefile (XMLTOC): Add rx.xml.
1520 (FEATURE_XMLFILES): Remove rx.xml.
1521 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1522 * features/rx.c: Regenerate.
1523 * features/rx.xml: Wrap in `target` tags, and reindent.
1524 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1526 (maint_print_c_tdesc_opt_def): New typedef.
1527 (maint_print_c_tdesc_opt_defs): New static global.
1528 (make_maint_print_c_tdesc_options_def_group): New function.
1529 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1530 print single feature C file for target descriptions containing a
1532 (maint_print_c_tdesc_cmd_completer): New function.
1533 (_initialize_target_descriptions): Update call to register command
1534 completer, and include command line flag in help text.
1536 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1538 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1540 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1543 2020-11-10 Tom Tromey <tom@tromey.com>
1545 * value.h (internalvar_name): Update.
1546 * value.c (internalvar_name): Make return type const.
1548 2020-11-10 Tom Tromey <tom@tromey.com>
1550 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1551 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1554 2020-11-10 Tom Tromey <tom@tromey.com>
1556 * objc-lang.h (value_nsstring): Update.
1557 * objc-lang.c (value_nsstring): Make "ptr" const.
1559 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1561 * expprint.c (print_subexp_funcall): Increment expression position
1562 after reading argument count.
1563 * f-lang.c (print_subexp_f): Skip over opcode before calling
1565 (dump_subexp_body_f): Likewise.
1567 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1570 * configure: Regenerate.
1571 * configure.ac: Check for python modules ctypes instead of
1574 2020-11-06 Pedro Alves <pedro@palves.net>
1576 * macroexp.c (struct macro_buffer): Split in two classes. Add
1578 (struct shared_macro_buffer): New, factored out from struct
1580 (struct growable_macro_buffer): New, factored out from struct
1582 (set_token, get_comment, get_identifier, get_pp_number)
1583 (get_character_constant, get_string_literal, get_punctuator)
1584 (get_next_token_for_substitution): Constify parameters.
1585 (substitute_args): Constify locals.
1587 2020-11-05 Tom Tromey <tom@tromey.com>
1589 * dwarf2/read.c (read_cutu_die_from_dwo)
1590 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1591 (build_type_psymtabs_1): Update.
1592 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1594 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1595 Don't read section. Add assert.
1597 2020-11-04 Tom Tromey <tromey@adacore.com>
1599 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1601 2020-11-04 Tom Tromey <tromey@adacore.com>
1603 * ada-typeprint.c (ada_print_type): Handle __T types.
1605 2020-11-04 Tom Tromey <tromey@adacore.com>
1607 * dwarf2/read.c (add_partial_symbol, process_die):
1608 Handle DW_TAG_array_type.
1609 (is_type_tag_for_partial): Add "lang" parameter.
1610 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1612 2020-11-04 Tom Tromey <tromey@adacore.com>
1614 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1616 2020-11-04 Tom Tromey <tromey@adacore.com>
1618 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1621 2020-11-04 Tom Tromey <tromey@adacore.com>
1623 * gdbtypes.c (update_static_array_size): Handle bit stride.
1625 2020-11-04 Tom Tromey <tromey@adacore.com>
1627 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1629 2020-11-04 Tom Tromey <tromey@adacore.com>
1631 * ada-lang.c (ada_is_any_packed_array_type): New function.
1632 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1634 2020-11-04 Tom Tromey <tromey@adacore.com>
1636 * dwarf2/read.c (recognize_bound_expression)
1637 (quirk_ada_thick_pointer): New functions.
1638 (read_array_type): Call quirk_ada_thick_pointer.
1639 (set_die_type): Add "skip_data_location" parameter.
1640 (quirk_ada_thick_pointer): New function.
1641 (process_structure_scope): Call quirk_ada_thick_pointer.
1642 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1643 (decode_packed_array_bitsize): Handle thick pointers without
1645 (ada_is_gnat_encoded_packed_array_type): Rename from
1646 ada_is_packed_array_type.
1647 (ada_is_constrained_packed_array_type): Update.
1648 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1649 (ada_value_print_1): Use ada_get_decoded_value.
1651 2020-11-04 Tom Tromey <tromey@adacore.com>
1653 * ada-lang.c (recursively_update_array_bitsize): New function.
1654 (decode_constrained_packed_array_type): Call it.
1656 2020-11-04 Tom Tromey <tromey@adacore.com>
1658 * ada-lang.c (to_fixed_array_type): Error if
1659 decode_constrained_packed_array_type returns NULL.
1661 2020-11-04 Tom Tromey <tromey@adacore.com>
1663 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1665 2020-11-02 Tom Tromey <tromey@adacore.com>
1667 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1668 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1669 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1670 * amd64-ravenscar-thread.c: New file.
1671 * amd64-ravenscar-thread.h: New file.
1672 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1673 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1675 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1677 * main.c (execute_cmdargs): New function.
1678 (captured_main_1): Make use of execute_cmdargs.
1680 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1682 * NEWS: Mention changes to config file search path.
1685 2020-11-02 Tom Tromey <tromey@adacore.com>
1687 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1688 (python_GdbModuleDef): Move earlier. Now static.
1689 (do_start_initialization): Consolidate some IS_PY3K blocks.
1691 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1693 * aarch64-linux-tdep.c: Fix indentation.
1694 * aarch64-ravenscar-thread.c: Fix indentation.
1695 * aarch64-tdep.c: Fix indentation.
1696 * aarch64-tdep.h: Fix indentation.
1697 * ada-lang.c: Fix indentation.
1698 * ada-lang.h: Fix indentation.
1699 * ada-tasks.c: Fix indentation.
1700 * ada-typeprint.c: Fix indentation.
1701 * ada-valprint.c: Fix indentation.
1702 * ada-varobj.c: Fix indentation.
1703 * addrmap.c: Fix indentation.
1704 * addrmap.h: Fix indentation.
1705 * agent.c: Fix indentation.
1706 * aix-thread.c: Fix indentation.
1707 * alpha-bsd-nat.c: Fix indentation.
1708 * alpha-linux-tdep.c: Fix indentation.
1709 * alpha-mdebug-tdep.c: Fix indentation.
1710 * alpha-nbsd-tdep.c: Fix indentation.
1711 * alpha-obsd-tdep.c: Fix indentation.
1712 * alpha-tdep.c: Fix indentation.
1713 * amd64-bsd-nat.c: Fix indentation.
1714 * amd64-darwin-tdep.c: Fix indentation.
1715 * amd64-linux-nat.c: Fix indentation.
1716 * amd64-linux-tdep.c: Fix indentation.
1717 * amd64-nat.c: Fix indentation.
1718 * amd64-obsd-tdep.c: Fix indentation.
1719 * amd64-tdep.c: Fix indentation.
1720 * amd64-windows-tdep.c: Fix indentation.
1721 * annotate.c: Fix indentation.
1722 * arc-tdep.c: Fix indentation.
1723 * arch-utils.c: Fix indentation.
1724 * arch/arm-get-next-pcs.c: Fix indentation.
1725 * arch/arm.c: Fix indentation.
1726 * arm-linux-nat.c: Fix indentation.
1727 * arm-linux-tdep.c: Fix indentation.
1728 * arm-nbsd-tdep.c: Fix indentation.
1729 * arm-pikeos-tdep.c: Fix indentation.
1730 * arm-tdep.c: Fix indentation.
1731 * arm-tdep.h: Fix indentation.
1732 * arm-wince-tdep.c: Fix indentation.
1733 * auto-load.c: Fix indentation.
1734 * auxv.c: Fix indentation.
1735 * avr-tdep.c: Fix indentation.
1736 * ax-gdb.c: Fix indentation.
1737 * ax-general.c: Fix indentation.
1738 * bfin-linux-tdep.c: Fix indentation.
1739 * block.c: Fix indentation.
1740 * block.h: Fix indentation.
1741 * blockframe.c: Fix indentation.
1742 * bpf-tdep.c: Fix indentation.
1743 * break-catch-sig.c: Fix indentation.
1744 * break-catch-syscall.c: Fix indentation.
1745 * break-catch-throw.c: Fix indentation.
1746 * breakpoint.c: Fix indentation.
1747 * breakpoint.h: Fix indentation.
1748 * bsd-uthread.c: Fix indentation.
1749 * btrace.c: Fix indentation.
1750 * build-id.c: Fix indentation.
1751 * buildsym-legacy.h: Fix indentation.
1752 * buildsym.c: Fix indentation.
1753 * c-typeprint.c: Fix indentation.
1754 * c-valprint.c: Fix indentation.
1755 * c-varobj.c: Fix indentation.
1756 * charset.c: Fix indentation.
1757 * cli/cli-cmds.c: Fix indentation.
1758 * cli/cli-decode.c: Fix indentation.
1759 * cli/cli-decode.h: Fix indentation.
1760 * cli/cli-script.c: Fix indentation.
1761 * cli/cli-setshow.c: Fix indentation.
1762 * coff-pe-read.c: Fix indentation.
1763 * coffread.c: Fix indentation.
1764 * compile/compile-cplus-types.c: Fix indentation.
1765 * compile/compile-object-load.c: Fix indentation.
1766 * compile/compile-object-run.c: Fix indentation.
1767 * completer.c: Fix indentation.
1768 * corefile.c: Fix indentation.
1769 * corelow.c: Fix indentation.
1770 * cp-abi.h: Fix indentation.
1771 * cp-namespace.c: Fix indentation.
1772 * cp-support.c: Fix indentation.
1773 * cp-valprint.c: Fix indentation.
1774 * cris-linux-tdep.c: Fix indentation.
1775 * cris-tdep.c: Fix indentation.
1776 * darwin-nat-info.c: Fix indentation.
1777 * darwin-nat.c: Fix indentation.
1778 * darwin-nat.h: Fix indentation.
1779 * dbxread.c: Fix indentation.
1780 * dcache.c: Fix indentation.
1781 * disasm.c: Fix indentation.
1782 * dtrace-probe.c: Fix indentation.
1783 * dwarf2/abbrev.c: Fix indentation.
1784 * dwarf2/attribute.c: Fix indentation.
1785 * dwarf2/expr.c: Fix indentation.
1786 * dwarf2/frame.c: Fix indentation.
1787 * dwarf2/index-cache.c: Fix indentation.
1788 * dwarf2/index-write.c: Fix indentation.
1789 * dwarf2/line-header.c: Fix indentation.
1790 * dwarf2/loc.c: Fix indentation.
1791 * dwarf2/macro.c: Fix indentation.
1792 * dwarf2/read.c: Fix indentation.
1793 * dwarf2/read.h: Fix indentation.
1794 * elfread.c: Fix indentation.
1795 * eval.c: Fix indentation.
1796 * event-top.c: Fix indentation.
1797 * exec.c: Fix indentation.
1798 * exec.h: Fix indentation.
1799 * expprint.c: Fix indentation.
1800 * f-lang.c: Fix indentation.
1801 * f-typeprint.c: Fix indentation.
1802 * f-valprint.c: Fix indentation.
1803 * fbsd-nat.c: Fix indentation.
1804 * fbsd-tdep.c: Fix indentation.
1805 * findvar.c: Fix indentation.
1806 * fork-child.c: Fix indentation.
1807 * frame-unwind.c: Fix indentation.
1808 * frame-unwind.h: Fix indentation.
1809 * frame.c: Fix indentation.
1810 * frv-linux-tdep.c: Fix indentation.
1811 * frv-tdep.c: Fix indentation.
1812 * frv-tdep.h: Fix indentation.
1813 * ft32-tdep.c: Fix indentation.
1814 * gcore.c: Fix indentation.
1815 * gdb_bfd.c: Fix indentation.
1816 * gdbarch.sh: Fix indentation.
1817 * gdbarch.c: Re-generate
1818 * gdbarch.h: Re-generate.
1819 * gdbcore.h: Fix indentation.
1820 * gdbthread.h: Fix indentation.
1821 * gdbtypes.c: Fix indentation.
1822 * gdbtypes.h: Fix indentation.
1823 * glibc-tdep.c: Fix indentation.
1824 * gnu-nat.c: Fix indentation.
1825 * gnu-nat.h: Fix indentation.
1826 * gnu-v2-abi.c: Fix indentation.
1827 * gnu-v3-abi.c: Fix indentation.
1828 * go32-nat.c: Fix indentation.
1829 * guile/guile-internal.h: Fix indentation.
1830 * guile/scm-cmd.c: Fix indentation.
1831 * guile/scm-frame.c: Fix indentation.
1832 * guile/scm-iterator.c: Fix indentation.
1833 * guile/scm-math.c: Fix indentation.
1834 * guile/scm-ports.c: Fix indentation.
1835 * guile/scm-pretty-print.c: Fix indentation.
1836 * guile/scm-value.c: Fix indentation.
1837 * h8300-tdep.c: Fix indentation.
1838 * hppa-linux-nat.c: Fix indentation.
1839 * hppa-linux-tdep.c: Fix indentation.
1840 * hppa-nbsd-nat.c: Fix indentation.
1841 * hppa-nbsd-tdep.c: Fix indentation.
1842 * hppa-obsd-nat.c: Fix indentation.
1843 * hppa-tdep.c: Fix indentation.
1844 * hppa-tdep.h: Fix indentation.
1845 * i386-bsd-nat.c: Fix indentation.
1846 * i386-darwin-nat.c: Fix indentation.
1847 * i386-darwin-tdep.c: Fix indentation.
1848 * i386-dicos-tdep.c: Fix indentation.
1849 * i386-gnu-nat.c: Fix indentation.
1850 * i386-linux-nat.c: Fix indentation.
1851 * i386-linux-tdep.c: Fix indentation.
1852 * i386-nto-tdep.c: Fix indentation.
1853 * i386-obsd-tdep.c: Fix indentation.
1854 * i386-sol2-nat.c: Fix indentation.
1855 * i386-tdep.c: Fix indentation.
1856 * i386-tdep.h: Fix indentation.
1857 * i386-windows-tdep.c: Fix indentation.
1858 * i387-tdep.c: Fix indentation.
1859 * i387-tdep.h: Fix indentation.
1860 * ia64-libunwind-tdep.c: Fix indentation.
1861 * ia64-libunwind-tdep.h: Fix indentation.
1862 * ia64-linux-nat.c: Fix indentation.
1863 * ia64-linux-tdep.c: Fix indentation.
1864 * ia64-tdep.c: Fix indentation.
1865 * ia64-tdep.h: Fix indentation.
1866 * ia64-vms-tdep.c: Fix indentation.
1867 * infcall.c: Fix indentation.
1868 * infcmd.c: Fix indentation.
1869 * inferior.c: Fix indentation.
1870 * infrun.c: Fix indentation.
1871 * iq2000-tdep.c: Fix indentation.
1872 * language.c: Fix indentation.
1873 * linespec.c: Fix indentation.
1874 * linux-fork.c: Fix indentation.
1875 * linux-nat.c: Fix indentation.
1876 * linux-tdep.c: Fix indentation.
1877 * linux-thread-db.c: Fix indentation.
1878 * lm32-tdep.c: Fix indentation.
1879 * m2-lang.c: Fix indentation.
1880 * m2-typeprint.c: Fix indentation.
1881 * m2-valprint.c: Fix indentation.
1882 * m32c-tdep.c: Fix indentation.
1883 * m32r-linux-tdep.c: Fix indentation.
1884 * m32r-tdep.c: Fix indentation.
1885 * m68hc11-tdep.c: Fix indentation.
1886 * m68k-bsd-nat.c: Fix indentation.
1887 * m68k-linux-nat.c: Fix indentation.
1888 * m68k-linux-tdep.c: Fix indentation.
1889 * m68k-tdep.c: Fix indentation.
1890 * machoread.c: Fix indentation.
1891 * macrocmd.c: Fix indentation.
1892 * macroexp.c: Fix indentation.
1893 * macroscope.c: Fix indentation.
1894 * macrotab.c: Fix indentation.
1895 * macrotab.h: Fix indentation.
1896 * main.c: Fix indentation.
1897 * mdebugread.c: Fix indentation.
1898 * mep-tdep.c: Fix indentation.
1899 * mi/mi-cmd-catch.c: Fix indentation.
1900 * mi/mi-cmd-disas.c: Fix indentation.
1901 * mi/mi-cmd-env.c: Fix indentation.
1902 * mi/mi-cmd-stack.c: Fix indentation.
1903 * mi/mi-cmd-var.c: Fix indentation.
1904 * mi/mi-cmds.c: Fix indentation.
1905 * mi/mi-main.c: Fix indentation.
1906 * mi/mi-parse.c: Fix indentation.
1907 * microblaze-tdep.c: Fix indentation.
1908 * minidebug.c: Fix indentation.
1909 * minsyms.c: Fix indentation.
1910 * mips-linux-nat.c: Fix indentation.
1911 * mips-linux-tdep.c: Fix indentation.
1912 * mips-nbsd-tdep.c: Fix indentation.
1913 * mips-tdep.c: Fix indentation.
1914 * mn10300-linux-tdep.c: Fix indentation.
1915 * mn10300-tdep.c: Fix indentation.
1916 * moxie-tdep.c: Fix indentation.
1917 * msp430-tdep.c: Fix indentation.
1918 * namespace.h: Fix indentation.
1919 * nat/fork-inferior.c: Fix indentation.
1920 * nat/gdb_ptrace.h: Fix indentation.
1921 * nat/linux-namespaces.c: Fix indentation.
1922 * nat/linux-osdata.c: Fix indentation.
1923 * nat/netbsd-nat.c: Fix indentation.
1924 * nat/x86-dregs.c: Fix indentation.
1925 * nbsd-nat.c: Fix indentation.
1926 * nbsd-tdep.c: Fix indentation.
1927 * nios2-linux-tdep.c: Fix indentation.
1928 * nios2-tdep.c: Fix indentation.
1929 * nto-procfs.c: Fix indentation.
1930 * nto-tdep.c: Fix indentation.
1931 * objfiles.c: Fix indentation.
1932 * objfiles.h: Fix indentation.
1933 * opencl-lang.c: Fix indentation.
1934 * or1k-tdep.c: Fix indentation.
1935 * osabi.c: Fix indentation.
1936 * osabi.h: Fix indentation.
1937 * osdata.c: Fix indentation.
1938 * p-lang.c: Fix indentation.
1939 * p-typeprint.c: Fix indentation.
1940 * p-valprint.c: Fix indentation.
1941 * parse.c: Fix indentation.
1942 * ppc-linux-nat.c: Fix indentation.
1943 * ppc-linux-tdep.c: Fix indentation.
1944 * ppc-nbsd-nat.c: Fix indentation.
1945 * ppc-nbsd-tdep.c: Fix indentation.
1946 * ppc-obsd-nat.c: Fix indentation.
1947 * ppc-ravenscar-thread.c: Fix indentation.
1948 * ppc-sysv-tdep.c: Fix indentation.
1949 * ppc64-tdep.c: Fix indentation.
1950 * printcmd.c: Fix indentation.
1951 * proc-api.c: Fix indentation.
1952 * producer.c: Fix indentation.
1953 * producer.h: Fix indentation.
1954 * prologue-value.c: Fix indentation.
1955 * prologue-value.h: Fix indentation.
1956 * psymtab.c: Fix indentation.
1957 * python/py-arch.c: Fix indentation.
1958 * python/py-bpevent.c: Fix indentation.
1959 * python/py-event.c: Fix indentation.
1960 * python/py-event.h: Fix indentation.
1961 * python/py-finishbreakpoint.c: Fix indentation.
1962 * python/py-frame.c: Fix indentation.
1963 * python/py-framefilter.c: Fix indentation.
1964 * python/py-inferior.c: Fix indentation.
1965 * python/py-infthread.c: Fix indentation.
1966 * python/py-objfile.c: Fix indentation.
1967 * python/py-prettyprint.c: Fix indentation.
1968 * python/py-registers.c: Fix indentation.
1969 * python/py-signalevent.c: Fix indentation.
1970 * python/py-stopevent.c: Fix indentation.
1971 * python/py-stopevent.h: Fix indentation.
1972 * python/py-threadevent.c: Fix indentation.
1973 * python/py-tui.c: Fix indentation.
1974 * python/py-unwind.c: Fix indentation.
1975 * python/py-value.c: Fix indentation.
1976 * python/py-xmethods.c: Fix indentation.
1977 * python/python-internal.h: Fix indentation.
1978 * python/python.c: Fix indentation.
1979 * ravenscar-thread.c: Fix indentation.
1980 * record-btrace.c: Fix indentation.
1981 * record-full.c: Fix indentation.
1982 * record.c: Fix indentation.
1983 * reggroups.c: Fix indentation.
1984 * regset.h: Fix indentation.
1985 * remote-fileio.c: Fix indentation.
1986 * remote.c: Fix indentation.
1987 * reverse.c: Fix indentation.
1988 * riscv-linux-tdep.c: Fix indentation.
1989 * riscv-ravenscar-thread.c: Fix indentation.
1990 * riscv-tdep.c: Fix indentation.
1991 * rl78-tdep.c: Fix indentation.
1992 * rs6000-aix-tdep.c: Fix indentation.
1993 * rs6000-lynx178-tdep.c: Fix indentation.
1994 * rs6000-nat.c: Fix indentation.
1995 * rs6000-tdep.c: Fix indentation.
1996 * rust-lang.c: Fix indentation.
1997 * rx-tdep.c: Fix indentation.
1998 * s12z-tdep.c: Fix indentation.
1999 * s390-linux-tdep.c: Fix indentation.
2000 * score-tdep.c: Fix indentation.
2001 * ser-base.c: Fix indentation.
2002 * ser-mingw.c: Fix indentation.
2003 * ser-uds.c: Fix indentation.
2004 * ser-unix.c: Fix indentation.
2005 * serial.c: Fix indentation.
2006 * sh-linux-tdep.c: Fix indentation.
2007 * sh-nbsd-tdep.c: Fix indentation.
2008 * sh-tdep.c: Fix indentation.
2009 * skip.c: Fix indentation.
2010 * sol-thread.c: Fix indentation.
2011 * solib-aix.c: Fix indentation.
2012 * solib-darwin.c: Fix indentation.
2013 * solib-frv.c: Fix indentation.
2014 * solib-svr4.c: Fix indentation.
2015 * solib.c: Fix indentation.
2016 * source.c: Fix indentation.
2017 * sparc-linux-tdep.c: Fix indentation.
2018 * sparc-nbsd-tdep.c: Fix indentation.
2019 * sparc-obsd-tdep.c: Fix indentation.
2020 * sparc-ravenscar-thread.c: Fix indentation.
2021 * sparc-tdep.c: Fix indentation.
2022 * sparc64-linux-tdep.c: Fix indentation.
2023 * sparc64-nbsd-tdep.c: Fix indentation.
2024 * sparc64-obsd-tdep.c: Fix indentation.
2025 * sparc64-tdep.c: Fix indentation.
2026 * stabsread.c: Fix indentation.
2027 * stack.c: Fix indentation.
2028 * stap-probe.c: Fix indentation.
2029 * stubs/ia64vms-stub.c: Fix indentation.
2030 * stubs/m32r-stub.c: Fix indentation.
2031 * stubs/m68k-stub.c: Fix indentation.
2032 * stubs/sh-stub.c: Fix indentation.
2033 * stubs/sparc-stub.c: Fix indentation.
2034 * symfile-mem.c: Fix indentation.
2035 * symfile.c: Fix indentation.
2036 * symfile.h: Fix indentation.
2037 * symmisc.c: Fix indentation.
2038 * symtab.c: Fix indentation.
2039 * symtab.h: Fix indentation.
2040 * target-float.c: Fix indentation.
2041 * target.c: Fix indentation.
2042 * target.h: Fix indentation.
2043 * tic6x-tdep.c: Fix indentation.
2044 * tilegx-linux-tdep.c: Fix indentation.
2045 * tilegx-tdep.c: Fix indentation.
2046 * top.c: Fix indentation.
2047 * tracefile-tfile.c: Fix indentation.
2048 * tracepoint.c: Fix indentation.
2049 * tui/tui-disasm.c: Fix indentation.
2050 * tui/tui-io.c: Fix indentation.
2051 * tui/tui-regs.c: Fix indentation.
2052 * tui/tui-stack.c: Fix indentation.
2053 * tui/tui-win.c: Fix indentation.
2054 * tui/tui-winsource.c: Fix indentation.
2055 * tui/tui.c: Fix indentation.
2056 * typeprint.c: Fix indentation.
2057 * ui-out.h: Fix indentation.
2058 * unittests/copy_bitwise-selftests.c: Fix indentation.
2059 * unittests/memory-map-selftests.c: Fix indentation.
2060 * utils.c: Fix indentation.
2061 * v850-tdep.c: Fix indentation.
2062 * valarith.c: Fix indentation.
2063 * valops.c: Fix indentation.
2064 * valprint.c: Fix indentation.
2065 * valprint.h: Fix indentation.
2066 * value.c: Fix indentation.
2067 * value.h: Fix indentation.
2068 * varobj.c: Fix indentation.
2069 * vax-tdep.c: Fix indentation.
2070 * windows-nat.c: Fix indentation.
2071 * windows-tdep.c: Fix indentation.
2072 * xcoffread.c: Fix indentation.
2073 * xml-syscall.c: Fix indentation.
2074 * xml-tdesc.c: Fix indentation.
2075 * xstormy16-tdep.c: Fix indentation.
2076 * xtensa-config.c: Fix indentation.
2077 * xtensa-linux-nat.c: Fix indentation.
2078 * xtensa-linux-tdep.c: Fix indentation.
2079 * xtensa-tdep.c: Fix indentation.
2081 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2082 Craig Blackmore <craig.blackmore@embecosm.com>
2084 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2085 as an unsigned value.
2087 2020-11-01 Tom Tromey <tom@tromey.com>
2089 * dbxread.c (dbx_end_psymtab): Update.
2090 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2091 (build_type_psymtabs_reader): Update.
2092 * xcoffread.c (xcoff_end_psymtab): Update.
2093 * ctfread.c (scan_partial_symbols): Update.
2094 * psymtab.c (sort_pst_symbols): Remove.
2095 (partial_symtab::end): Rename from end_psymtab_common. Inline
2097 * psympriv.h (struct partial_symtab) <end>: New method.
2098 (end_psymtab_common): Don't declare.
2100 2020-11-01 Tom Tromey <tom@tromey.com>
2102 * symmisc.c (count_psyms): New function.
2103 (print_objfile_statistics): Use it.
2104 * psymtab.c (append_psymbol_to_list): Remove.
2105 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2106 * objfiles.h (struct objstats) <n_psyms>: Remove.
2108 2020-11-01 Tom Tromey <tom@tromey.com>
2110 * dbxread.c (dbx_end_psymtab): Update.
2111 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2112 (build_type_psymtabs_reader): Update.
2113 * xcoffread.c (xcoff_end_psymtab): Update.
2114 * ctfread.c (scan_partial_symbols): Update.
2115 * psympriv.h (end_psymtab_common): Update.
2116 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2117 (sort_pst_symbols): Likewise.
2119 2020-11-01 Tom Tromey <tom@tromey.com>
2121 * dbxread.c (dbx_symfile_read): Update.
2122 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2123 * xcoffread.c (xcoff_initial_scan): Update.
2124 * psympriv.h (init_psymbol_list): Don't declare.
2125 * psymtab.c (init_psymbol_list): Remove.
2127 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2129 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2130 gnat_encoded_fixed_type_info. Update all callers.
2132 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2134 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2137 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2139 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2140 cast_from_fixed. Update all callers.
2141 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2143 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2145 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2147 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2148 to print_gnat_encoded_fixed_point_type.
2149 * ada-valprint.c: Likewise.
2151 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2153 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2154 (debug_prefixed_printf): Add check of debug_displaced flag.
2155 * linux-nat.c (linux_nat_debug_printf): Add check of
2156 debug_linux_nat flag.
2158 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2160 * infrun.c (infrun_debug_printf_1): Remove.
2161 (displaced_debug_printf_1): Remove.
2162 (stop_all_threads): Use debug_prefixed_printf.
2163 * infrun.h (infrun_debug_printf_1): Remove.
2164 (infrun_debug_printf): Use debug_prefixed_printf.
2165 (displaced_debug_printf_1): Remove.
2166 (displaced_debug_printf): Use debug_prefixed_printf.
2167 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2168 (linux_nat_debug_printf): Use debug_prefixed_printf.
2170 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2172 * configure: Re-generate.
2173 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2176 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2178 * configure: Re-generate.
2180 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2182 * configure: Re-generate.
2184 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2186 * configure: Re-generate.
2188 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2190 * configure: Re-generate.
2192 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2194 * acinclude.m4: Modernize.
2195 * configure: Re-generate.
2197 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2199 * configure.ac: Modernize.
2200 * configure: Re-generate.
2202 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2204 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2205 * configure: Re-generate.
2206 * configure.ac: Remove AM_PROG_CC_STDC.
2208 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2210 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2211 AC_CANONICAL_SYSTEM.
2212 * configure: Re-generate.
2214 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
2216 * infrun.h (displaced_debug_printf): New macro. Replace
2217 displaced debug prints throughout to use it.
2218 (displaced_debug_printf_1): New declaration.
2219 (displaced_step_dump_bytes): Return string, remove ui_file
2220 parameter, update all callers.
2221 * infrun.c (displaced_debug_printf_1): New function.
2222 (displaced_step_dump_bytes): Return string, remove ui_file
2225 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2227 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2229 2020-10-30 Tom Tromey <tromey@adacore.com>
2231 * Makefile.in (stamp-init): Depend on config.status.
2233 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2235 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2237 2020-10-30 Pedro Alves <pedro@palves.net>
2239 * thread.c (lookup_selected_frame): Move ...
2240 * frame.c (lookup_selected_frame): ... here.
2242 2020-10-30 Pedro Alves <pedro@palves.net>
2244 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2246 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2247 Use save_selected_frame. Save language as well.
2248 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2249 Use restore_selected_frame, and restore language as well.
2250 (selected_frame_id, selected_frame_level): New.
2251 (selected_frame): Update comments.
2252 (save_selected_frame, restore_selected_frame): New.
2253 (get_selected_frame): Use lookup_selected_frame.
2254 (get_selected_frame_if_set): Delete.
2255 (select_frame): Record selected_frame_level and selected_frame_id.
2256 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2258 (get_selected_frame): Make 'message' parameter optional.
2259 (get_selected_frame_if_set): Delete declaration.
2260 (select_frame): Update comments.
2261 (save_selected_frame, restore_selected_frame)
2262 (lookup_selected_frame): Declare.
2263 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2264 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2266 (save_infcall_control_state): Use save_selected_frame.
2267 (restore_selected_frame): Delete.
2268 (restore_infcall_control_state): Use restore_selected_frame.
2269 * stack.c (select_frame_command_core, frame_command_core): Use
2271 * thread.c (restore_selected_frame): Rename to ...
2272 (lookup_selected_frame): ... this and make extern. Select the
2273 current frame if the frame level is -1.
2274 (scoped_restore_current_thread::restore): Also restore the
2276 (scoped_restore_current_thread::~scoped_restore_current_thread):
2278 (scoped_restore_current_thread::scoped_restore_current_thread):
2279 Save the language as well. Use save_selected_frame.
2281 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2283 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2285 * gdbarch.h: Re-generate.
2287 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2289 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2291 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2293 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2295 * arch-utils.c (default_displaced_step_hw_singlestep):
2297 * arch-utils.h (default_displaced_step_hw_singlestep):
2299 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2301 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2303 * gdbarch.c: Re-generate.
2304 * gdbarch.h: Re-generate.
2305 * infrun.c (resume_1): Adjust.
2307 2020-10-29 Tom Tromey <tom@tromey.com>
2309 * progspace.c (program_space::~program_space): Don't call
2312 2020-10-29 Tom Tromey <tom@tromey.com>
2314 * exec.c (exec_target::close): Don't change current program
2317 2020-10-29 Tom Tromey <tom@tromey.com>
2319 * symfile.c (add_symbol_file_command): Update.
2320 * exec.c (program_space::add_target_sections): Rename.
2321 * symfile-mem.c (symbol_file_add_from_memory): Update.
2322 * progspace.h (struct program_space) <add_target_sections>:
2323 Declare new overload.
2324 * exec.h (add_target_sections_of_objfile): Don't declare.
2326 2020-10-29 Tom Tromey <tom@tromey.com>
2328 * solib.c (solib_map_sections): Update.
2329 * exec.c (program_space::add_target_sections): Now a method.
2330 (exec_file_attach): Update.
2331 * exec.h (add_target_sections): Don't declare.
2332 * progspace.h (struct program_space) <add_target_sections>:
2335 2020-10-29 Tom Tromey <tom@tromey.com>
2337 * progspace.h (struct program_space) <remove_target_sections>:
2339 * exec.c (program_space::remove_target_sections): Now a method.
2340 * exec.h (remove_target_sections): Don't declare.
2342 2020-10-29 Tom Tromey <tom@tromey.com>
2344 * inferior.c (delete_inferior): Update.
2345 * progspace.c (program_space::empty): Rename from
2346 program_space_empty_p. Return bool.
2347 * progspace.h (struct program_space) <empty>: New method.
2348 (program_space_empty_p): Don't declare.
2350 2020-10-29 Tom Tromey <tom@tromey.com>
2352 * progspace.c (program_space::~program_space): Don't call
2353 clear_program_space_solib_cache.
2354 (program_space::clear_solib_cache): Rename from
2356 * solib.c (handle_solib_event): Update.
2357 * progspace.h (struct program_space) <clear_solib_cache>: New
2359 (clear_program_space_solib_cache): Don't declare.
2361 2020-10-29 Tom Tromey <tom@tromey.com>
2363 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2364 * target.c (info_target_command): Update.
2365 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2366 (symbol_file_clear, reread_symbols): Update.
2367 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2368 * stabsread.c (scan_file_globals): Update.
2369 * solib.c (update_solib_list): Update.
2370 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2371 (svr4_fetch_objfile_link_map, enable_break)
2372 (svr4_relocate_main_executable)
2373 (svr4_iterate_over_objfiles_in_search_order): Update.
2374 * solib-frv.c (lm_base, enable_break)
2375 (frv_relocate_main_executable): Update.
2376 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2377 (frv_fetch_objfile_link_map): Update.
2378 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2379 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2380 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2381 * remote.c (remote_target::get_offsets): Update.
2382 (remote_target::start_remote)
2383 (extended_remote_target::post_attach): Update.
2384 * objfiles.c (entry_point_address_query): Update.
2385 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2386 * minsyms.c (get_symbol_leading_char): Update.
2387 * frame.c (inside_main_func): Update.
2388 * progspace.h (symfile_objfile): Remove macro.
2390 2020-10-29 Tom Tromey <tom@tromey.com>
2392 * exec.c (exec_file_attach): Update.
2393 * progspace.c (program_space::exec_close): Update.
2394 * progspace.h (struct program_space) <ebfd>: Now a
2396 <set_exec_bfd>: Change argument type.
2399 2020-10-29 Tom Tromey <tom@tromey.com>
2401 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2402 * symfile.c (reread_symbols): Update.
2403 * symfile-mem.c (add_symbol_file_from_memory_command)
2404 (add_vsyscall_page): Update.
2405 * source-cache.c (source_cache::get_plain_source_lines): Update.
2406 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2407 (svr4_current_sos_direct, svr4_exec_displacement)
2408 (svr4_relocate_main_executable): Update.
2409 (svr4_iterate_over_objfiles_in_search_order): Update.
2410 * solib-frv.c (enable_break2, enable_break): Update.
2411 * solib-dsbt.c (lm_base, enable_break): Update.
2412 * solib-darwin.c (find_program_interpreter)
2413 (darwin_solib_create_inferior_hook): Update.
2414 * sol-thread.c (rw_common, ps_pdmodel): Update.
2415 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2416 * remote.c (compare_sections_command)
2417 (remote_target::trace_set_readonly_regions): Update.
2418 * remote-sim.c (get_sim_inferior_data)
2419 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2420 (gdbsim_target_open, gdbsim_target::files_info): Update.
2421 * exec.h (exec_bfd): Remove macro.
2422 * progspace.c (initialize_progspace): Update.
2423 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2425 * nto-procfs.c (nto_procfs_target::post_attach)
2426 (nto_procfs_target::create_inferior): Update.
2427 * maint.c (maintenance_info_sections): Update.
2428 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2430 * infcmd.c (post_create_inferior): Update.
2431 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2432 (objfile_find_memory_regions): Update.
2433 * exec.c (validate_exec_file, exec_file_attach)
2434 (exec_read_partial_read_only, print_section_info): Update.
2435 * corelow.c (core_target_open): Update.
2436 * corefile.c (reopen_exec_file, validate_files): Update.
2437 * arm-tdep.c (gdb_print_insn_arm): Update.
2438 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2439 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2442 2020-10-29 Tom Tromey <tom@tromey.com>
2444 * progspace.h (current_target_sections): Remove macro.
2445 * solib-svr4.c (scan_dyntag): Update.
2446 * solib-dsbt.c (scan_dyntag): Update.
2447 * exec.c (exec_target::close): Update.
2448 (add_target_sections, add_target_sections_of_objfile)
2449 (remove_target_sections, exec_target::get_section_table)
2450 (exec_target::files_info, set_section_command)
2451 (exec_set_section_address, exec_target::has_memory)
2452 (exec_target::has_memory): Update.
2454 2020-10-29 Tom Tromey <tom@tromey.com>
2456 * source-cache.c (source_cache::get_plain_source_lines): Use
2457 current_program_space.
2458 * corefile.c (reopen_exec_file): Use current_program_space.
2459 * exec.c (exec_file_attach): Use current_program_space.
2460 * exec.h (exec_bfd_mtime): Remove.
2462 2020-10-29 Tom Tromey <tom@tromey.com>
2464 * gcore.c (default_gcore_mach): Remove.
2465 (create_gcore_bfd): Update.
2467 2020-10-29 Tom Tromey <tom@tromey.com>
2469 * progspace.c (program_space::exec_close): New method, from
2470 exec_close in exec.c.
2471 * exec.c (exec_close): Move to progspace.c.
2472 (exec_target::close, exec_file_attach): Update.
2473 * progspace.h (struct program_space) <exec_close>: Declare
2476 2020-10-29 Tom Tromey <tom@tromey.com>
2478 * progspace.h (struct program_space) <exec_filename>: Rename from
2479 pspace_exec_filename. Now a unique_xmalloc_ptr.
2480 * inferior.c (print_selected_inferior): Update.
2481 (print_inferior): Update.
2482 * mi/mi-main.c (print_one_inferior): Update.
2483 * exec.h (exec_filename): Remove macro.
2484 * corefile.c (get_exec_file): Update.
2485 * exec.c (exec_close): Update.
2486 (exec_file_attach): Update.
2487 * progspace.c (clone_program_space): Update.
2488 (print_program_space): Update.
2490 2020-10-29 Tom Tromey <tom@tromey.com>
2492 * target-section.h (struct target_section): Add constructor.
2493 * exec.c (build_section_table, add_target_sections_of_objfile):
2495 * corelow.c (core_target::build_file_mappings): Update.
2497 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2500 * inferior.c (detach_inferior_command): Restore the current thread.
2501 (kill_inferior_command): Ditto.
2503 2020-10-28 Tom de Vries <tdevries@suse.de>
2506 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2507 map, check it in the "best match" loop.
2509 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2511 * m32c-tdep.c: Remove unused includes.
2513 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2515 * xtensa-tdep.c: Remove includes.
2517 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2519 * breakpoint.c (struct condition_command_opts): New struct.
2520 (condition_command_option_defs): New static global.
2521 (make_condition_command_options_def_group): New function.
2522 (condition_completer): Update to consider the '-force' flag.
2523 (condition_command): Use gdb::option for the '-force' flag.
2525 2020-10-27 Tom de Vries <tdevries@suse.de>
2527 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2528 symbols in section check.
2530 2020-10-27 Tom de Vries <tdevries@suse.de>
2532 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2534 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2536 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2537 * breakpoint.c: Update the help text of the 'condition' and 'break'
2539 (set_breakpoint_condition): Take a new bool parameter
2540 to control whether condition definition should be forced even when
2541 the condition expression is invalid in all of the current locations.
2542 (condition_command): Update the call to 'set_breakpoint_condition'.
2543 (find_condition_and_thread): Take the "-force-condition" flag into
2545 * linespec.c (linespec_keywords): Add "-force-condition" as an
2547 (FORCE_KEYWORD_INDEX): New #define.
2548 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2550 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2551 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2552 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2553 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2555 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2557 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2558 * breakpoint.c (set_breakpoint_location_condition): New function.
2559 (set_breakpoint_condition): Disable a breakpoint location if parsing
2560 the condition string gives an error.
2561 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2562 (build_target_condition_list): Ditto.
2563 (build_target_command_list): Ditto.
2564 (build_bpstat_chain): Ditto.
2565 (print_one_breakpoint_location): Ditto.
2566 (print_one_breakpoint): Ditto.
2567 (breakpoint_1): Ditto.
2568 (bp_location::bp_location): Ditto.
2569 (locations_are_equal): Ditto.
2570 (update_breakpoint_locations): Ditto.
2571 (enable_disable_bp_num_loc): Ditto.
2572 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2573 (find_condition_and_thread_for_sals): New static function.
2574 (create_breakpoint): Call find_condition_and_thread_for_sals.
2575 (location_to_sals): Call find_condition_and_thread_for_sals instead
2576 of find_condition_and_thread.
2578 2020-10-26 Tom de Vries <tdevries@suse.de>
2580 * dwarf2/read.c (process_full_comp_unit): Call
2581 dwarf2_find_base_address.
2583 2020-10-26 Tom Tromey <tromey@adacore.com>
2585 * gdbtypes.c (create_range_type): Revert previous patch. Add
2588 2020-10-26 Pedro Alves <pedro@palves.net>
2590 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2591 (my_waitpid): Use gdb::handle_eintr.
2593 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2595 * acinclude.m4: Update ptrace.m4 path.
2596 * ptrace.m4: Moved to gdbsupport.
2598 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2600 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2601 instead of target_gdbarch.
2603 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2605 * jit.c (jit_reader_load_command): Pass current inferior.
2606 (jit_inferior_init): Change parameter type to inferior, use it.
2607 (jit_inferior_created): Remove.
2608 (jit_inferior_created_hook): Pass inferior parameter down.
2609 (_initialize_jit): Use jit_inferior_created_hook instead of
2610 jit_inferior_created.
2611 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2612 * infrun.c (follow_exec): Pass inferior to
2613 jit_inferior_created_hook.
2615 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2617 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2618 parameter and use it.
2619 (thread_db_inferior_created): Pass inferior argument.
2621 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2623 * aix-thread.c (aix_thread_inferior_created): Add inferior
2625 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2626 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2627 * jit.c (jit_inferior_created): Likewise.
2628 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2629 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2630 * observable.h (inferior_created): Likewise.
2631 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2632 * symfile-mem.c (add_vsyscall_page): Likewise.
2633 * infcmd.c (post_create_inferior): Pass inferior argument.
2635 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2639 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2641 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2642 to ada_check_typedef.
2644 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2646 * f-exp.y (f_parse): Rename to...
2647 (f_language::parser): ...this.
2648 * f-lang.c (f_get_encoding): Rename to...
2649 (f_language::get_encoding): ...this.
2650 (f_op_print_tab): Rename to...
2651 (f_language::op_print_tab): ...this.
2652 (exp_descriptor_f): Rename to...
2653 (f_language::exp_descriptor_tab): ...this.
2654 (class f_language): Moved to f-lang.h.
2655 (f_language::language_arch_info): New function, moved out of class
2657 (f_language::search_name_hash): Likewise.
2658 (f_language::lookup_symbol_nonlocal): Likewise.
2659 (f_language::get_symbol_name_matcher_inner): Likewise.
2660 * f-lang.h: Add 'valprint.h' include.
2661 (class f_language): Moved here from f-lang.c.
2662 * f-typeprint.c (f_type_print_args): Delete commented out
2664 (f_print_typedef): Rename to...
2665 (f_language::print_typedef): ...this.
2666 (f_print_type): Rename to...
2667 (f_language::print_type): ...this.
2668 (f_type_print_varspec_prefix): Delete declaration and rename to...
2669 (f_language::f_type_print_varspec_prefix): ...this.
2670 (f_type_print_varspec_suffix): Delete declaration and rename to...
2671 (f_language::f_type_print_varspec_suffix): ...this.
2672 (f_type_print_base): Delete declaration and rename to...
2673 (f_language::f_type_print_base): ...this.
2674 * f-valprint.c (f_value_print_inner): Rename to...
2675 (f_language::value_print_inner): ...this.
2676 * parse.c: Delete 'f-lang.h' include.
2678 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2680 * language.h (language_defn::print_type): Add variable names in
2681 declaration, and update header comment.
2683 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2685 * ada-lang.c (ada_language::demangle): Rename to...
2686 (ada_language::demangle_symbol): ...this.
2687 * c-lang.c (cplus_language::demangle): Rename to...
2688 (cplus_language::demangle_symbol): ...this.
2689 * d-lang.c (d_language::demangle): Rename to...
2690 (d_language::demangle_symbol): ...this.
2691 * f-lang.c (f_language::demangle): Rename to...
2692 (f_language::demangle_symbol): ...this.
2693 * go-lang.c (go_language::demangle): Rename to...
2694 (go_language::demangle_symbol): ...this.
2695 * language.c (language_demangle): Update call to demangle_symbol.
2696 (auto_or_unknown_language::demangle): Rename to...
2697 (auto_or_unknown_language::demangle_symbol): ...this.
2698 * language.h (language_defn::demangle): Rename to...
2699 (language_defn::demangle_symbol): ...this.
2700 * objc-lang.c (objc_language::demangle): Rename to...
2701 (objc_language::demangle_symbol): ...this.
2702 * rust-lang.c (rust_language::demangle): Rename to...
2703 (rust_language::demangle_symbol): ...this.
2705 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2707 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2708 (iterate_over_file_blocks): Replace use of macro with the macros
2711 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2713 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2714 * valprint.c (maybe_print_array_index): Replace use of macro with
2715 the macros definition.
2717 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2719 * ada-lang.c (ada_language::print_array_index): Call value_print
2721 * language.c (language_defn::print_array_index): Likewise.
2722 * language.h (LA_VALUE_PRINT): Delete.
2723 * valprint.c (value_print): Call value_print on the
2724 current_language directly.
2726 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2728 * language.h (LA_PRINT_TYPEDEF): Delete.
2729 * typeprint.c (typedef_print): Call print_typedef directly on the
2730 current_language object.
2732 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2734 * m2-exp.y (m2_parse): Rename to...
2735 (m2_language::parser): ...this. Update function signature.
2736 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2737 (m2_op_print): Rename to...
2738 (m2_language::op_print_tab): ...this, and make const.
2739 (exp_descriptor_modula2): Rename to...
2740 (m2_language::exp_descriptor_modula2): ...this.
2741 (class m2_language): Move to m2-lang.h.
2742 (m2_language::language_arch_info): New function, moved out of
2744 (m2_language::printchar): New function, body from m2_printchar.
2745 (m2_language::printstr): New function, moved out of class
2747 (m2_language::emitchar): Likewise.
2748 * m2-lang.h (m2_parse): Delete declaration.
2749 (m2_print_typedef): Delete declaration.
2750 (m2_value_print_inner): Delete declaration.
2751 (class m2_language): Class declaration moved from m2-lang.c,
2752 larger functions are left in m2-lang.c.
2753 * m2-typeprint.c (m2_print_typedef): Rename to...
2754 (m2_language::print_typedef): ...this, and update function
2756 * m2-valprint.c (m2_value_print_inner): Rename to...
2757 (m2_language::value_print_inner): ...this, replace use of
2758 LA_PRINT_STRING with a direct call to printstr member function,
2759 and update recursive call.
2761 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2763 * language.c (default_is_string_type_p): Delete, implementation
2764 moved into auto_or_unknown_language::is_string_type_p.
2765 (unk_op_print_tab): Moved into
2766 auto_or_unknown_language::opcode_print_table.
2767 (unknown_language_arch_info): Delete, implementation moved into
2768 auto_or_unknown_language::language_arch_info.
2769 (class auto_or_unknown_language): New class, member functions
2770 copied from unknown_language class, with some updates.
2771 (class unknown_language): Most member functions moved into
2772 auto_or_unknown_language class. Inherit from
2773 auto_or_unknown_language class.
2774 (class auto_language): Inherit from auto_or_unknown_language.
2775 Delete most member functions.
2777 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2779 * stabsread.c (read_member_functions): Remove gdb_assert.
2781 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2783 * gdbtypes.c (init_complex_type): Check target type name.
2785 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2787 * target-debug.h (target_debug_print_struct_target_ops_p):
2789 (target_debug_print_async_callback_ftype_p): Remove.
2790 (target_debug_print_struct_trace_state_variable_p): Remove.
2791 (target_debug_print_struct_traceframe_info_p): Remove.
2792 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2793 (target_debug_print_enum_btrace_format): Remove.
2794 (target_debug_print_enum_info_proc_what): Remove.
2795 (target_debug_print_thread_info_pp): Remove.
2797 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2799 * target.h (struct target_ops) <make_corefile_notes>:
2800 Change return type to unique pointer.
2801 * target.c (dummy_make_corefile_notes): Likewise.
2802 * exec.c (struct exec_target) <make_corefile_notes>:
2804 (exec_target::make_corefile_notes): Likewise.
2805 * procfs.c (class procfs_target) <make_corefile_notes>:
2807 (procfs_do_thread_registers): Adjust to unique pointer.
2808 (struct procfs_corefile_thread_data): Add constructor.
2809 <note_data>: Change type to unique pointer.
2810 (procfs_corefile_thread_callback): Adjust to unique pointer.
2811 (procfs_target::make_corefile_notes): Change return type to
2813 * target-delegates.c: Re-generate.
2814 * gcore.c (write_gcore_file_1): Adjust.
2815 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2818 2020-10-22 Tom de Vries <tdevries@suse.de>
2820 * block.c (find_block_in_blockvector): Make sure the returned block
2823 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2826 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2828 (load_cu): Pass existing CU.
2829 (process_imported_unit_die): Likewise.
2830 (follow_die_offset): Likewise.
2832 2020-10-22 Luis Machado <luis.machado@linaro.org>
2834 * corelow.c (core_target::xfer_partial): Also check for an empty
2835 m_core_unavailable_mappings vector.
2837 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2839 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2840 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2841 * f-exp.y (arglist): Allow for a series of subranges.
2842 (subrange): Add cases for subranges with strides.
2843 * f-lang.c (value_f90_subarray): Catch use of array strides and
2845 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2847 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2849 * expprint.c (print_subexp_standard): Change enum range_type to
2850 range_flag and rename variables to match.
2851 (dump_subexp_body_standard): Likewise.
2852 * expression.h (enum range_type): Rename to...
2853 (enum range_flag): ...this.
2854 (range_types): Rename to...
2855 (range_flags): ...this.
2856 * f-lang.c (value_f90_subarray): Change enum range_type to
2857 range_flag and rename variables to match.
2858 * parse.c (operator_length_standard): Likewise.
2859 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2860 range_type to range_flag.
2861 * rust-lang.c (rust_evaluate_funcall): Likewise.
2862 (rust_range): Likewise.
2863 (rust_compute_range): Likewise.
2864 (rust_subscript): Likewise.
2866 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2868 * expprint.c (print_subexp_standard): Update to reflect changes to
2870 (dump_subexp_body_standard): Likewise.
2871 * expression.h (enum range_type): Convert to a bit field enum, and
2872 make the enum unsigned.
2873 * f-exp.y (subrange): Update to reflect changes to enum
2875 * f-lang.c (value_f90_subarray): Likewise.
2876 * parse.c (operator_length_standard): Likewise.
2877 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2878 * rust-lang.c (rust_range): Likewise.
2879 (rust_compute_range): Likewise.
2880 (rust_subscript): Likewise.
2882 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2884 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2885 (displaced_step_in_progress): Fix comment.
2887 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2889 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2890 * gdbarch.c: Re-generate.
2891 * gdbarch.h: Re-generate.
2892 * gcore.c (write_gcore_file_1): Adjust.
2893 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2895 <note_data>: Change type to unique pointer.
2896 <abort_iteration>: Change type to bool.
2897 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2898 (fbsd_collect_thread_registers): Return void, adjust.
2899 (struct fbsd_corefile_thread_data): Add construtor.
2900 <note_data>: Change type to unique pointer.
2901 (fbsd_corefile_thread): Adjust.
2902 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2903 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2904 to unique pointer, adjust.
2905 (struct linux_collect_regset_section_cb_data): Add constructor.
2906 <note_data>: Change type to unique pointer.
2907 <abort_iteration>: Change type to bool.
2908 (linux_collect_thread_registers): Return void, adjust.
2909 (struct linux_corefile_thread_data): Add constructor.
2910 <note_data>: Change type to unique pointer.
2911 (linux_corefile_thread): Adjust.
2912 (linux_make_corefile_notes): Return unique pointer, adjust.
2914 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2916 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2917 * gdbarch.c: Re-generate.
2918 * gdbarch.h: Re-generate.
2919 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2921 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2923 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2924 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2925 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2926 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2928 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2930 * gdbarch.sh: Make generated predicates return bool.
2931 * gdbarch.c: Re-generate.
2932 * gdbarch.h: Re-generate.
2934 2020-10-20 Tom Tromey <tom@tromey.com>
2936 * varobj-iter.h (struct varobj_item): Remove typedef.
2938 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2940 * infrun.c (currently_stepping): Change int to bool
2941 (maybe_software_singlestep): Likewise.
2942 (show_stop_on_solib_events): Likewise.
2943 (stepping_past_nonsteppable_watchpoint): Likewise.
2944 (displaced_step_in_progress_any_inferior): Likewise.
2945 (displaced_step_in_progress_thread): Likewise.
2946 (keep_going_stepped_thread): Likewise.
2947 (thread_still_needs_step_over): Likewise.
2948 (start_step_over): Likewise.
2949 (do_target_resume): Likewise.
2950 (resume_1): Likewise.
2951 (clear_proceed_status): Likewise.
2952 (thread_still_needs_step_over_bp): Likewise.
2953 (proceed): Likewise.
2954 (switch_back_to_stepped_thread): Likewise.
2955 (adjust_pc_after_break): Likewise.
2956 (stepped_in_from): Likewise.
2957 (handle_stop_requested): Likewise.
2958 (handle_syscall_event): Likewise.
2959 (handle_no_resumed): Likewise.
2960 (handle_inferior_event): Likewise.
2961 (finish_step_over): Likewise.
2962 (handle_signal_stop): Likewise.
2963 (process_event_stop_test): Likewise.
2965 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2967 * infrun.c (get_displaced_stepping_state): Fix comment.
2969 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2971 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2973 2020-10-19 Tom Tromey <tromey@adacore.com>
2976 * tui/tui-winsource.h (struct tui_source_window_base)
2977 <refresh_window>: Rename from refresh_pad.
2978 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2979 Rename from refresh_pad.
2980 (tui_source_window_base::show_source_content)
2981 (tui_source_window_base::do_scroll_horizontal): Update.
2983 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2985 * thread.c (_initialize_thread): Fine-tune the help text of
2988 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2990 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2992 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2994 * breakpoint.c (handle_jit_event): Add an argument, change how
2995 `jit_event_handler` is called.
2997 2020-10-17 Tom Tromey <tom@tromey.com>
2999 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
3000 (scan_xcoff_symtab): Update.
3001 * psymtab.h (class psymtab_storage) <global_psymbols,
3002 static_psymbols, current_global_psymbols,
3003 current_static_psymbols>: Remove.
3004 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
3005 (match_partial_symbol, lookup_partial_symbol): Update.
3006 (print_partial_symbols): Change parameters.
3007 (dump_psymtab, recursively_search_psymtabs)
3008 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
3009 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
3011 (end_psymtab_common): Simplify.
3012 (append_psymbol_to_list): Change parameters.
3013 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
3014 (init_psymbol_list): Simplify.
3015 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3016 * psympriv.h (struct partial_symtab) <empty>: New method.
3017 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
3019 <global_psymbols, static_psymbols>: New members.
3020 <add_psymbol>: New methods.
3021 (add_psymbol_to_list): Don't declare.
3022 (psymbol_placement): Move earlier.
3023 * mdebugread.c (parse_partial_symbols): Update.
3024 (handle_psymbol_enumerators): Change parameters.
3025 (mdebug_expand_psymtab): Update.
3026 * dwarf2/read.c (process_psymtab_comp_unit_reader)
3027 (add_partial_symbol): Update.
3028 * dwarf2/index-write.c (write_psymbols): Change parameters.
3029 (write_one_signatured_type): Update.
3030 (recursively_count_psymbols): Update.
3031 (recursively_write_psymbols): Update.
3032 (class debug_names) <recursively_write_psymbols>: Update.
3033 <write_psymbols>: Change parameters.
3034 <write_one_signatured_type>: Update.
3035 * dbxread.c (read_dbx_symtab): Update.
3036 (dbx_end_psymtab): Use partial_symtab::empty.
3037 * ctfread.c (struct ctf_context) <pst>: New member.
3038 (create_partial_symtab): Set it.
3039 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
3040 (scan_partial_symbols): Use the psymtab's context. Update.
3042 2020-10-17 Tom Tromey <tom@tromey.com>
3044 * valprint.c (generic_value_print): Remove comment.
3045 * m2-valprint.c (m2_value_print_inner): Remove comment.
3046 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
3049 2020-10-17 Tom de Vries <tdevries@suse.de>
3052 * source.c (select_source_symtab): Handling sal.symtab == NULL for
3055 2020-10-14 Tom de Vries <tdevries@suse.de>
3058 * solib.c (solib_contains_address_p): Handle
3059 'solib->sections == nullptr'.
3061 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3064 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3065 target can't do async.
3066 * target.c (target_wait): Assert that we don't pass
3067 TARGET_WNOHANG to a target that can't async.
3069 2020-10-13 Kamil Rytarowski <n54@gmx.com>
3071 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3072 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3073 * alpha-bsd-nat.c: Adjust include.
3074 * alpha-bsd-tdep.h: Adjust comment.
3075 * alpha-nbsd-tdep.c: Rename to ...
3076 * alpha-netbsd-tdep.c: ... this, adjust include.
3077 * amd64-nbsd-nat.c: Rename to ...
3078 * amd64-netbsd-nat.c: ... this, adjust include.
3079 * amd64-nbsd-tdep.c: Rename to ...
3080 * amd64-netbsd-tdep.c: ... this, adjust include.
3081 * amd64-tdep.h: Adjust include.
3082 * arm-nbsd-nat.c: Rename to ...
3083 * arm-netbsd-nat.c: ... this, adjust include.
3084 * arm-nbsd-tdep.c: Rename to ...
3085 * arm-netbsd-tdep.c: ... this, adjust include.
3086 * arm-nbsd-tdep.h: Rename to ...
3087 * arm-netbsd-tdep.h: ... this, adjust include.
3088 * configure.nat: Adjust file lists.
3089 * configure.tgt: Likewise.
3090 * hppa-nbsd-nat.c: Rename to ...
3091 * hppa-netbsd-nat.c: ... this, adjust include.
3092 * hppa-nbsd-tdep.c: Rename to ...
3093 * hppa-netbsd-tdep.c: ... this, adjust include.
3094 * i386-nbsd-nat.c: Rename to ...
3095 * i386-netbsd-nat.c: ... this, adjust include.
3096 * i386-nbsd-tdep.c: Rename to ...
3097 * i386-netbsd-tdep.c: ... this, adjust include.
3098 * m68k-bsd-nat.c: Adjust include.
3099 * mips-nbsd-nat.c: Rename to ...
3100 * mips-netbsd-nat.c: ... this, adjust include.
3101 * mips-nbsd-tdep.c: Rename to ...
3102 * mips-netbsd-tdep.c: ... this, adjust include.
3103 * mips-nbsd-tdep.h: Rename to ...
3104 * mips-netbsd-tdep.h: ... this.
3105 * nbsd-nat.c: Rename to ...
3106 * netbsd-nat.c: ... this, adjust include.
3107 * nbsd-nat.h: Rename to ...
3108 * netbsd-nat.h: ... this, adjust include.
3109 * nbsd-tdep.c: Rename to ...
3110 * netbsd-tdep.c: ... this, adjust include.
3111 * nbsd-tdep.h: Rename to ...
3112 * netbsd-tdep.h: ... this.
3113 * ppc-nbsd-nat.c: Rename to ...
3114 * ppc-netbsd-nat.c: ... this, adjust include.
3115 * ppc-nbsd-tdep.c: Rename to ...
3116 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3117 * ppc-nbsd-tdep.h: Rename to ...
3118 * ppc-netbsd-tdep.h: ... this.
3119 * sh-nbsd-nat.c: Rename to ...
3120 * sh-netbsd-nat.c: ... this, adjust include.
3121 * sh-nbsd-tdep.c: Rename to ...
3122 * sh-netbsd-tdep.c: ... this, adjust include.
3123 * sparc-nbsd-nat.c: Rename to ...
3124 * sparc-netbsd-nat.c: ... this.
3125 * sparc-nbsd-tdep.c: Rename to ...
3126 * sparc-netbsd-tdep.c: ... this, adjust include.
3127 * sparc64-nbsd-nat.c: Rename to ...
3128 * sparc64-netbsd-nat.c: ... this.
3129 * sparc64-nbsd-tdep.c: Rename to ...
3130 * sparc64-netbsd-tdep.c: ... this, adjust include.
3131 * sparc64-tdep.h: Adjust comment.
3132 * vax-bsd-nat.c: Adjust include.
3133 * vax-nbsd-tdep.c: Rename to ...
3134 * vax-netbsd-tdep.c: ... this, adjust include.
3136 2020-10-12 Tom Tromey <tom@tromey.com>
3138 * target.h (struct target_ops) <get_section_table>: Update.
3139 (target_get_section_table): Update.
3140 * target.c (target_get_section_table, target_section_by_addr)
3141 (memory_xfer_partial_1): Update.
3142 * target-section.h (target_section_table): Now an alias.
3143 * target-delegates.c: Rebuild.
3144 * target-debug.h (target_debug_print_target_section_table_p):
3145 Rename from target_debug_print_struct_target_section_table_p.
3146 * symfile.c (build_section_addr_info_from_section_table): Update.
3147 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3148 * solib-svr4.c (scan_dyntag): Update.
3149 * solib-dsbt.c (scan_dyntag): Update.
3150 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3152 * record-full.c (record_full_core_target::xfer_partial): Update.
3153 * progspace.h (struct program_space) <target_sections>: Update.
3154 * exec.h (print_section_info): Update.
3155 * exec.c (exec_target::close, build_section_table)
3156 (add_target_sections, add_target_sections_of_objfile)
3157 (remove_target_sections, exec_on_vfork)
3158 (section_table_available_memory)
3159 (section_table_xfer_memory_partial)
3160 (exec_target::get_section_table, exec_target::xfer_partial)
3161 (print_section_info, set_section_command)
3162 (exec_set_section_address, exec_target::has_memory): Update.
3163 * corelow.c (core_target::build_file_mappings)
3164 (core_target::xfer_partial, core_target::info_proc_mappings)
3165 (core_target::info_proc_mappings): Update.
3166 * bfd-target.c (class target_bfd): Update
3168 2020-10-12 Tom Tromey <tom@tromey.com>
3170 * progspace.c (program_space::~program_space): Don't call
3171 clear_section_table.
3172 * exec.h (clear_section_table): Don't declare.
3173 * exec.c (exec_target::close): Update.
3174 (clear_section_table): Remove.
3176 2020-10-12 Tom Tromey <tom@tromey.com>
3178 * exec.c (add_target_sections_of_objfile): Simplify.
3180 2020-10-12 Tom Tromey <tom@tromey.com>
3182 * solib.c (solib_map_sections): Update.
3183 * record-full.c (record_full_core_open_1): Update.
3184 * exec.h (build_section_table): Return a target_section_table.
3185 * exec.c (exec_file_attach): Update.
3186 (build_section_table): Return a target_section_table.
3187 * corelow.c (core_target::core_target): Update.
3188 * bfd-target.c (target_bfd::target_bfd): Update.
3190 2020-10-12 Tom Tromey <tom@tromey.com>
3192 * target.c (target_section_by_addr, memory_xfer_partial_1):
3194 * target-section.h (struct target_section_table): Use
3196 * symfile.h (build_section_addr_info_from_section_table): Take a
3197 target_section_table.
3198 * symfile.c (build_section_addr_info_from_section_table): Take a
3199 target_section_table.
3200 * solist.h (struct so_list) <sections>: Change type.
3201 <sections_end>: Remove.
3202 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3203 (solib_contains_address_p): Update.
3204 * solib-svr4.c (scan_dyntag): Update.
3205 * solib-dsbt.c (scan_dyntag): Update.
3206 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3208 * record-full.c (record_full_core_start, record_full_core_end):
3210 (record_full_core_sections): New global.
3211 (record_full_core_open_1, record_full_core_target::xfer_partial):
3213 * exec.h (build_section_table, section_table_xfer_memory_partial)
3214 (add_target_sections): Take a target_section_table.
3215 * exec.c (exec_file_attach, clear_section_table): Update.
3216 (resize_section_table): Remove.
3217 (build_section_table, add_target_sections): Take a
3218 target_section_table.
3219 (add_target_sections_of_objfile, remove_target_sections)
3220 (exec_on_vfork): Update.
3221 (section_table_available_memory): Take a target_section_table.
3222 (section_table_read_available_memory): Update.
3223 (section_table_xfer_memory_partial): Take a target_section_table.
3224 (print_section_info, set_section_command)
3225 (exec_set_section_address, exec_target::has_memory): Update.
3226 * corelow.c (class core_target) <m_core_section_table,
3227 m_core_file_mappings>: Remove braces.
3228 <~core_target>: Remove.
3229 (core_target::core_target): Update.
3230 (core_target::~core_target): Remove.
3231 (core_target::build_file_mappings)
3232 (core_target::xfer_memory_via_mappings)
3233 (core_target::xfer_partial, core_target::info_proc_mappings):
3235 * bfd-target.c (target_bfd::xfer_partial): Update.
3236 (target_bfd::target_bfd): Update.
3237 (target_bfd::~target_bfd): Remove.
3239 2020-10-12 Tom Tromey <tom@tromey.com>
3241 * target.h (struct target_section, struct target_section_table):
3242 Move to target-section.h.
3243 * target-section.h: New file.
3245 2020-10-12 Pedro Alves <pedro@palves.net>
3248 * valops.c (struct struct_field_searcher): New.
3249 (update_search_result): Rename to ...
3250 (struct_field_searcher::update_result): ... this. Simplify
3251 prototype. Record all found fields.
3252 (do_search_struct_field): Rename to ...
3253 (struct_field_searcher::search): ... this. Simplify prototype.
3254 Maintain stack of visited baseclass path. Call update_result for
3255 fields too. Keep searching fields in baseclasses instead of
3256 stopping at the first found field.
3257 (search_struct_field): Use struct_field_searcher. When looking
3258 for fields, report ambiguous access attempts.
3260 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3262 * frame.c (inside_main_func): Check full symbols as well as
3265 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3267 * ada-lang.c (advance_wild_match): Rewrite the function's
3268 description. Change the type of target0, t0 and t1 to char.
3270 2020-10-09 Tom Tromey <tromey@adacore.com>
3272 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3274 2020-10-09 Tom Tromey <tromey@adacore.com>
3276 * ada-lang.h (ada_encode): Return std::string.
3277 * ada-lang.c (ada_encode_1): Return std::string.
3278 (ada_encode): Likewise.
3279 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3281 * ada-exp.y (block_lookup, write_var_or_type): Update.
3283 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3286 * printcmd.c (print_formatted): Handle void results as
3289 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3291 * arch/aarch32.c (aarch32_create_target_description): Release the
3292 target_desc_up as late as possible.
3293 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3294 * arch/amd64.c (amd64_create_target_description): Likewise.
3295 * arch/arc.c (arc_create_target_description): Return a
3296 target_desc_up, don't release it.
3297 * arch/arc.h (arc_create_target_description): Update declaration.
3298 (arc_lookup_target_description): Move target_desc_up into the
3299 cache, and return a borrowed pointer.
3300 * arch/arm.c (arm_create_target_description): Release the
3301 target_desc_up as late as possible.
3302 * arch/i386.c (i386_create_target_description): Likewise.
3303 * arch/riscv.h (riscv_create_target_description): Update
3304 declaration to match definition.
3305 * arch/tic6x.c (tic6x_create_target_description): Release the
3306 target_desc_up as late as possible.
3308 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3310 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3311 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3313 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3315 * source.c (directory_command): Notify observers that "directories"
3316 parameter has changed.
3318 2020-10-08 Tom Tromey <tom@tromey.com>
3320 * cli/cli-cmds.c (print_disassembly): Style function name and
3321 addresses. Add _() wrappers.
3323 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3325 * NEWS: Mention ARC support in GDBserver.
3327 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3329 * arch/aarch32.c (aarch32_create_target_description): Release
3330 unique_ptr returned from allocate_target_description.
3331 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3332 * arch/amd64.c (amd64_create_target_description): Likewise.
3333 * arch/arc.c (arc_create_target_description): Likewise.
3334 * arch/arm.c (arm_create_target_description): Likewise.
3335 * arch/i386.c (i386_create_target_description): Likewise.
3336 * arch/riscv.c (riscv_create_target_description): Update return
3337 type. Handle allocate_target_description returning a unique_ptr.
3338 (riscv_lookup_target_description): Update to handle unique_ptr.
3339 * arch/tic6x.c (tic6x_create_target_description): Release
3340 unique_ptr returned from allocate_target_description.
3341 * features/microblaze-with-stack-protect.c: Regenerate.
3342 * features/microblaze.c: Regenerate.
3343 * features/mips-dsp-linux.c: Regenerate.
3344 * features/mips-linux.c: Regenerate.
3345 * features/mips64-dsp-linux.c: Regenerate.
3346 * features/mips64-linux.c: Regenerate.
3347 * features/nds32.c: Regenerate.
3348 * features/nios2.c: Regenerate.
3349 * features/or1k.c: Regenerate.
3350 * features/rs6000/powerpc-32.c: Regenerate.
3351 * features/rs6000/powerpc-32l.c: Regenerate.
3352 * features/rs6000/powerpc-403.c: Regenerate.
3353 * features/rs6000/powerpc-403gc.c: Regenerate.
3354 * features/rs6000/powerpc-405.c: Regenerate.
3355 * features/rs6000/powerpc-505.c: Regenerate.
3356 * features/rs6000/powerpc-601.c: Regenerate.
3357 * features/rs6000/powerpc-602.c: Regenerate.
3358 * features/rs6000/powerpc-603.c: Regenerate.
3359 * features/rs6000/powerpc-604.c: Regenerate.
3360 * features/rs6000/powerpc-64.c: Regenerate.
3361 * features/rs6000/powerpc-64l.c: Regenerate.
3362 * features/rs6000/powerpc-7400.c: Regenerate.
3363 * features/rs6000/powerpc-750.c: Regenerate.
3364 * features/rs6000/powerpc-860.c: Regenerate.
3365 * features/rs6000/powerpc-altivec32.c: Regenerate.
3366 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3367 * features/rs6000/powerpc-altivec64.c: Regenerate.
3368 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3369 * features/rs6000/powerpc-e500.c: Regenerate.
3370 * features/rs6000/powerpc-e500l.c: Regenerate.
3371 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3372 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3373 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3374 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3375 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3376 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3377 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3378 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3379 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3380 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3381 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3382 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3383 * features/rs6000/powerpc-vsx32.c: Regenerate.
3384 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3385 * features/rs6000/powerpc-vsx64.c: Regenerate.
3386 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3387 * features/rs6000/rs6000.c: Regenerate.
3388 * features/rx.c: Regenerate.
3389 * features/s390-gs-linux64.c: Regenerate.
3390 * features/s390-linux32.c: Regenerate.
3391 * features/s390-linux32v1.c: Regenerate.
3392 * features/s390-linux32v2.c: Regenerate.
3393 * features/s390-linux64.c: Regenerate.
3394 * features/s390-linux64v1.c: Regenerate.
3395 * features/s390-linux64v2.c: Regenerate.
3396 * features/s390-te-linux64.c: Regenerate.
3397 * features/s390-tevx-linux64.c: Regenerate.
3398 * features/s390-vx-linux64.c: Regenerate.
3399 * features/s390x-gs-linux64.c: Regenerate.
3400 * features/s390x-linux64.c: Regenerate.
3401 * features/s390x-linux64v1.c: Regenerate.
3402 * features/s390x-linux64v2.c: Regenerate.
3403 * features/s390x-te-linux64.c: Regenerate.
3404 * features/s390x-tevx-linux64.c: Regenerate.
3405 * features/s390x-vx-linux64.c: Regenerate.
3406 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3407 from allocate_target_description.
3408 * target-descriptions.c (allocate_target_description): Update
3410 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3411 allocate_target_description.
3413 2020-10-07 Tom Tromey <tromey@adacore.com>
3415 * unittests/search-memory-selftests.c: New file.
3416 * Makefile.in (SELFTESTS_SRCS): Add
3417 unittests/search-memory-selftests.c.
3419 2020-10-07 Tom Tromey <tromey@adacore.com>
3422 * findcmd.c (_initialize_mem_search): Mention that the range is
3425 2020-10-07 Tom Tromey <tromey@adacore.com>
3427 * target.h (simple_search_memory): Don't declare.
3428 * target.c (simple_search_memory): Move to gdbsupport.
3429 (default_search_memory): Update.
3430 * remote.c (remote_target::search_memory): Update.
3432 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3434 * Makefile.in (COMPILE): Add CXXFLAGS.
3435 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3436 (check-headers): Add CXXFLAGS.
3438 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3440 * arc-linux-tdep.h: New file.
3441 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3442 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3443 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3444 arc_linux_gregset, arc_linux_v2_regset,
3445 arc_linux_iterate_over_regset_sections,
3446 arc_linux_core_read_description): Implement.
3447 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3448 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3449 (arc_gdbarch_features_create): Add.
3450 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3452 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3454 * arch/arc.h: Rename "arc_gdbarch_features" to
3455 "arc_arch_features".
3456 * arc-tdep.h: Likewise.
3457 * arc-tdep.c: Likewise.
3459 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3461 * infcmd.c (attach_command): Remove the redundant call to
3462 `clear_proceed_status`.
3464 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3466 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3468 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3470 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3471 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3472 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3474 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3476 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3477 (_initialize_break_catch_sig): Don't allocate array.
3479 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3481 * symtab.c (find_pc_line): Return unmapped addresses when the
3482 requested address is also unmapped.
3484 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3486 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3489 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3491 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3492 type::is_vector instead of TYPE_VECTOR.
3494 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3496 * auto-load.c (auto_load_objfile_script_1): Don't use
3497 debugfile_holder as temporary variable when stripping drive
3500 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3502 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3503 Add TYPE_CODE_COMPLEX.
3504 (amd64_windows_return_value): Fix types returned via XMM0.
3506 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3508 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3509 AArch64/ARM maintainers.
3511 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3513 * NEWS: Mention set/show debug event-loop.
3515 2020-10-02 Tom Tromey <tromey@adacore.com>
3517 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3520 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3522 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3523 * procfs.c (procfs_inferior_created): Remove.
3524 (_initialize_procfs): Don't register procfs_inferior_created.
3526 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3528 * async-event.c (invoke_async_signal_handlers): Add debug
3530 (check_async_event_handlers): Likewise.
3531 * event-top.c (show_debug_event_loop): New function.
3532 (_initialize_event_top): Register "set debug event-loop"
3535 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3537 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3539 * infrun.c: Include gdbsupport/common-debug.h.
3540 * linux-nat.c: Likewise.
3542 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3544 * async-event.h (create_async_signal_handler): Add name
3546 (create_async_event_handler): Likewise.
3547 * async-event.c (struct async_signal_handler) <name>: New field.
3548 (struct async_event_handler) <name>: New field.
3549 (create_async_signal_handler): Assign name.
3550 (create_async_event_handler): Assign name.
3551 * event-top.c (async_init_signals): Pass name when creating
3553 * infrun.c (_initialize_infrun): Likewise.
3554 * record-btrace.c (record_btrace_push_target): Likewise.
3555 * record-full.c (record_full_open): Likewise.
3556 * remote-notif.c (remote_notif_state_allocate): Likewise.
3557 * remote.c (remote_target::open_1): Likewise.
3558 * tui/tui-win.c (tui_initialize_win): Likewise.
3560 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3562 * async-event.c (initialize_async_signal_handlers): Pass name to
3564 * event-top.c (ui_register_input_event_handler): Likewise.
3565 * linux-nat.c (linux_nat_target::async): Likewise.
3566 * run-on-main-thread.c (_initialize_run_on_main_thread):
3568 * ser-base.c (reschedule): Likewise.
3569 (ser_base_async): Likewise.
3570 * tui/tui-io.c: Likewise.
3571 * top.h (struct ui) <num>: New field.
3572 * top.c (highest_ui_num): New variable.
3573 (ui::ui): Initialize num.
3575 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3577 * observable.h <inferior_created>: Remove parameters. Update all
3579 * inferior.h (post_create_inferior): Remove target parameter.
3582 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3584 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3585 and DW_MACRO_undef_strx.
3586 (dwarf_decode_macros): Likewise
3587 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3588 which is the value of DW_AT_str_offsets_base.
3589 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3592 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3594 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3596 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3598 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3599 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3601 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3603 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3605 2020-09-30 Tom de Vries <tdevries@suse.de>
3608 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3610 2020-09-30 Tom Tromey <tromey@adacore.com>
3612 * dwarf2/read.c (handle_variant): Use constant_value.
3614 2020-09-29 Tom Tromey <tom@tromey.com>
3616 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3617 (read_file_scope, dwarf2_get_pc_bounds)
3618 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3619 (read_structure_type, handle_struct_member_die)
3620 (read_enumeration_type, read_array_type, read_set_type)
3621 (read_tag_pointer_type, read_tag_reference_type)
3622 (read_subroutine_type, read_base_type, read_subrange_type)
3623 (read_full_die_1, partial_die_info::read)
3624 (partial_die_info::read, by, new_symbol)
3625 (dwarf2_const_value_data, dwarf2_const_value_attr)
3626 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3627 (prepare_one_comp_unit): Update.
3628 * dwarf2/attribute.h (DW_UNSND): Remove.
3630 2020-09-29 Tom Tromey <tom@tromey.com>
3632 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3633 (read_subroutine_type, partial_die_info::read)
3634 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3635 (dwarf2_add_member_fn): Update.
3636 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3637 * dwarf2/attribute.c (attribute::as_boolean): New method.
3639 2020-09-29 Tom Tromey <tom@tromey.com>
3641 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3642 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3644 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3646 2020-09-29 Tom Tromey <tom@tromey.com>
3648 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3649 the attribute's form.
3651 2020-09-29 Tom Tromey <tom@tromey.com>
3653 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3654 (dwarf2_add_member_fn): Update.
3655 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3656 * dwarf2/attribute.c (attribute::defaulted): New method, from
3657 is_valid_DW_AT_defaulted.
3659 2020-09-29 Tom Tromey <tom@tromey.com>
3661 * dwarf2/read.c (dw2_get_file_names_reader)
3662 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3663 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3664 (dwarf2_symbol_mark_computed): Use as_unsigned.
3665 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3667 <form_is_section_offset>: Update comment.
3669 2020-09-29 Tom Tromey <tom@tromey.com>
3671 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3672 dwarf2_default_access_attribute. Look up attribute.
3673 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3676 2020-09-29 Tom Tromey <tom@tromey.com>
3678 * dwarf2/read.c (skip_one_die): Update.
3679 (read_full_die_1): Change how reprocessing is done.
3680 (partial_die_info::read): Update.
3681 (read_attribute_value): Remove need_reprocess parameter.
3682 (read_attribute): Likewise.
3683 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3686 2020-09-29 Tom Tromey <tom@tromey.com>
3688 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3689 (dwarf2_const_value_attr, dump_die_shallow)
3690 (dwarf2_fetch_constant_bytes): Update.
3691 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3693 <set_address>: New method.
3695 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3696 (attribute::as_string, attribute::as_address): Add assert.
3698 2020-09-29 Tom Tromey <tom@tromey.com>
3700 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3701 (read_attribute_reprocess, read_attribute_value): Update.
3702 (read_attribute): Clear requires_reprocessing.
3703 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3704 form_requires_reprocessing>: New methods.
3705 <string_init>: Clear requires_reprocessing.
3706 <set_unsigned_reprocess>: New method.
3707 <name>: Shrink by one bit.
3708 <requires_reprocessing>: New member.
3709 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3712 2020-09-29 Tom Tromey <tom@tromey.com>
3714 * dwarf2/read.c (read_attribute_value): Update.
3715 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3716 set_unsigned>: New methods.
3717 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3719 2020-09-29 Tom Tromey <tom@tromey.com>
3721 * dwarf2/read.c (get_alignment, read_array_order)
3722 (read_attribute_value, dwarf2_const_value_attr)
3723 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3724 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3728 2020-09-29 Tom Tromey <tom@tromey.com>
3730 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3731 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3733 * dwarf2/attribute.h (struct attribute) <as_signature,
3734 set_signature>: New methods.
3735 (DW_SIGNATURE): Remove.
3737 2020-09-29 Tom Tromey <tom@tromey.com>
3739 * dwarf2/read.c (read_call_site_scope)
3740 (handle_data_member_location, dwarf2_add_member_fn)
3741 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3742 (partial_die_info::read, read_attribute_value)
3743 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3744 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3745 (dwarf2_symbol_mark_computed): Update.
3746 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3749 * dwarf2/attribute.c (attribute::form_is_block): Add
3752 2020-09-29 Tom Tromey <tom@tromey.com>
3754 * dwarf2/read.c (read_cutu_die_from_dwo)
3755 (read_attribute_reprocess, read_attribute_value, read_attribute)
3756 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3757 (dwarf2_fetch_constant_bytes): Update.
3758 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3759 <set_string_noncanonical, set_string_canonical>: New methods.
3760 <string_is_canonical>: Update comment.
3761 <canonical_string_p>: Add assert.
3762 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3763 * dwarf2/attribute.c (attribute::form_is_string): New method.
3764 (attribute::string): Use it.
3766 2020-09-29 Tom Tromey <tom@tromey.com>
3768 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3769 (dump_die_shallow): Use canonical_string_p.
3770 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3773 2020-09-29 Tom Tromey <tom@tromey.com>
3775 * dwarf2/read.c (partial_die_info::read)
3776 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3777 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3778 attribute::as_string.
3780 2020-09-29 Tom Tromey <tom@tromey.com>
3782 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3784 (attribute::string): Don't use DW_STRING.
3785 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3786 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3788 2020-09-29 Tom Tromey <tom@tromey.com>
3790 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3791 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3792 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3793 * dwarf2/attribute.h (struct attribute): Rename methods.
3794 * dwarf2/attribute.c (attribute::as_address): Rename from
3796 (attribute::as_string): Rename from value_as_string.
3798 2020-09-29 Tom Tromey <tom@tromey.com>
3800 * dwarf2/read.c (partial_die_info::read) <case
3801 DW_AT_linkage_name>: Use value_as_string.
3802 (dwarf2_string_attr): Use value_as_string.
3803 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3805 * dwarf2/attribute.c (attribute::value_as_string): New method.
3807 2020-09-29 Pedro Alves <pedro@palves.net>
3809 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3810 defined before using '#pragma GCC diagnostic' instead of checking
3813 2020-09-28 Tom Tromey <tom@tromey.com>
3815 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3816 (handle_signal_stop): Update.
3817 * procfs.c (procfs_target::insert_watchpoint): Update.
3818 * target.h (target_have_steppable_watchpoint): Now a function.
3820 2020-09-28 Tom Tromey <tom@tromey.com>
3822 * infrun.c (set_schedlock_func): Update.
3823 * target.h (target_can_lock_scheduler): Now a function.
3825 2020-09-28 Tom Tromey <tom@tromey.com>
3827 * inferior.h (class inferior) <has_execution>: Update.
3828 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3829 * valops.c (find_function_in_inferior)
3830 (value_allocate_space_in_inferior): Update.
3831 * top.c (kill_or_detach): Update.
3832 * target.c (target_preopen, set_target_permissions): Update.
3833 (target_has_execution_current): Remove.
3834 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3836 * solib.c (update_solib_list, reload_shared_libraries): Update.
3837 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3838 * solib-dsbt.c (enable_break): Update.
3839 * score-tdep.c (score7_fetch_inst): Update.
3840 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3842 * remote.c (remote_target::start_remote)
3843 (remote_target::remote_check_symbols, remote_target::open_1)
3844 (remote_target::remote_detach_1, remote_target::verify_memory)
3845 (remote_target::xfer_partial, remote_target::read_description)
3846 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3847 * record-full.c (record_full_open_1): Update.
3848 * record-btrace.c (record_btrace_target_open): Update.
3849 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3850 (value_nsstring): Update.
3851 * linux-thread-db.c (add_thread_db_info)
3852 (thread_db_find_new_threads_silently, check_thread_db_callback)
3853 (try_thread_db_load_1, record_thread): Update.
3854 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3856 * linux-fork.c (checkpoint_command): Update.
3857 * infrun.c (set_non_stop, set_observer_mode)
3858 (check_multi_target_resumption, for_each_just_stopped_thread)
3859 (maybe_remove_breakpoints, normal_stop)
3860 (class infcall_suspend_state): Update.
3861 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3862 (info_program_command, attach_command): Update.
3863 * infcall.c (call_function_by_hand_dummy): Update.
3864 * inf-loop.c (inferior_event_handler): Update.
3865 * gcore.c (gcore_command, derive_heap_segment): Update.
3866 * exec.c (exec_file_command): Update.
3867 * eval.c (evaluate_subexp): Update.
3868 * compile/compile.c (compile_to_object): Update.
3869 * cli/cli-dump.c (restore_command): Update.
3870 * breakpoint.c (update_watchpoint)
3871 (update_inserted_breakpoint_locations)
3872 (insert_breakpoint_locations, get_bpstat_thread): Update.
3873 * target.h (target_has_execution): Remove macro.
3874 (target_has_execution_current): Don't declare.
3875 (target_has_execution): Rename from target_has_execution_1. Add
3878 2020-09-28 Tom Tromey <tom@tromey.com>
3880 * mi/mi-main.c (exec_reverse_continue)
3881 (mi_cmd_list_target_features): Update.
3882 * infrun.c (set_exec_direction_func): Update.
3883 * target.c (default_execution_direction): Update.
3884 * reverse.c (exec_reverse_once): Update.
3885 * target.h (target_can_execute_reverse): Now a function.
3887 2020-09-28 Tom Tromey <tom@tromey.com>
3889 * tui/tui-regs.c (tui_get_register)
3890 (tui_data_window::show_registers): Update.
3891 * thread.c (scoped_restore_current_thread::restore)
3892 (scoped_restore_current_thread::scoped_restore_current_thread):
3894 * regcache-dump.c (regcache_print): Update.
3895 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3897 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3898 * mep-tdep.c (current_me_module, current_options): Update.
3899 * linux-thread-db.c (thread_db_load): Update.
3900 * infcmd.c (registers_info, info_vector_command)
3901 (info_float_command): Update.
3902 * ia64-tdep.c (ia64_frame_prev_register)
3903 (ia64_sigtramp_frame_prev_register): Update.
3904 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3905 * gcore.c (derive_stack_segment): Update.
3906 * frame.c (get_current_frame, has_stack_frames): Update.
3907 * findvar.c (language_defn::read_var_value): Update.
3908 * arm-tdep.c (arm_pc_is_thumb): Update.
3909 * target.c (target_has_registers): Rename from
3910 target_has_registers_1.
3911 * target.h (target_has_registers): Remove macro.
3912 (target_has_registers): Rename from target_has_registers_1.
3914 2020-09-28 Tom Tromey <tom@tromey.com>
3916 * windows-tdep.c (tlb_make_value): Update.
3917 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3918 * thread.c (scoped_restore_current_thread::restore)
3919 (scoped_restore_current_thread::scoped_restore_current_thread)
3920 (thread_command): Update.
3921 * stack.c (backtrace_command_1, frame_apply_level_command)
3922 (frame_apply_all_command, frame_apply_command): Update.
3923 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3925 * gcore.c (derive_stack_segment): Update.
3926 * frame.c (get_current_frame, has_stack_frames): Update.
3927 * auxv.c (info_auxv_command): Update.
3928 * ada-tasks.c (ada_build_task_list): Update.
3929 * target.c (target_has_stack): Rename from target_has_stack_1.
3930 * target.h (target_has_stack): Remove macro.
3931 (target_has_stack): Rename from target_has_stack_1.
3933 2020-09-28 Tom Tromey <tom@tromey.com>
3935 * target.c (target_has_memory): Rename from target_has_memory_1.
3936 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3937 * thread.c (scoped_restore_current_thread::restore)
3938 (scoped_restore_current_thread::scoped_restore_current_thread):
3940 * frame.c (get_current_frame, has_stack_frames): Update.
3941 * target.h (target_has_memory): Remove macro.
3942 (target_has_memory): Rename from target_has_memory_1.
3944 2020-09-28 Tom Tromey <tom@tromey.com>
3946 * target.c (target_has_all_memory_1): Remove.
3947 * target.h (target_has_all_memory): Remove define.
3948 (target_has_all_memory_1): Don't declare.
3950 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3952 * ser-base.c: Adjust comments formatting.
3954 2020-09-27 Tom Tromey <tom@tromey.com>
3957 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3959 2020-09-27 Tom Tromey <tom@tromey.com>
3962 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3964 2020-09-27 Tom Tromey <tom@tromey.com>
3966 * unittests/tui-selftests.c: Update.
3967 * tui/tui-winsource.h (struct tui_source_window_base)
3968 <extra_margin, show_line_number, refresh_pad>: New methods.
3969 <m_max_length, m_pad>: New members.
3970 (tui_copy_source_line): Update.
3971 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3972 first_col, line_width, ndigits parameters. Add length.
3973 (tui_source_window_base::show_source_line): Write to pad. Line
3975 (tui_source_window_base::refresh_pad): New method.
3976 (tui_source_window_base::show_source_content): Write to pad. Call
3978 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3980 (tui_source_window_base::update_exec_info): Call
3982 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3984 <m_digits>: New member.
3985 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3987 (tui_source_window::show_line_number): New method.
3988 * tui/tui-io.h (tui_puts): Fix comment.
3989 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3992 2020-09-27 Tom Tromey <tom@tromey.com>
3994 * tui/tui-winsource.c
3995 (tui_source_window_base::set_is_exec_point_at): Don't call
3998 2020-09-27 Tom Tromey <tom@tromey.com>
4000 * python/py-tui.c (class tui_py_window) <refresh_window>: New
4003 <cursor_x, cursor_y>: Remove.
4004 <m_inner_window>: New member.
4005 (tui_py_window::rerender): Create inner window.
4006 (tui_py_window::output): Write to inner window.
4008 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
4011 * cli/cli-script.c (execute_control_commands): don't set
4012 instream to nullptr here as this breaks the from_tty argument
4013 to gdb.execute in Python.
4014 (execute_user_command): set instream to nullptr here instead.
4016 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
4018 * infrun.h (infrun_debug_printf): Fix formatting.
4019 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
4021 2020-09-25 Saagar Jha <saagar@saagarjha.com>
4023 * compile/compile-object-load.h (struct munmap_list): Add
4024 explicitly-defined move constructor.
4026 2020-09-24 Tom Tromey <tromey@adacore.com>
4029 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
4031 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
4032 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
4033 (tui_prev_win): Rewrite.
4035 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
4037 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
4038 in WOW64 processes as SIGINT.
4039 * nat/windows-nat.h: Make wow64_process a shared variable.
4040 * windows-nat.c: Remove static wow64_process variable.
4042 2020-09-23 Tom Tromey <tom@tromey.com>
4045 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
4046 offset and bit size.
4047 * printcmd.c (print_scalar_formatted): Handle zero-length
4049 (print_scalar_formatted): Use bit_size_differs_p.
4050 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
4052 (union type_specific): <int_stuff>: New member.
4053 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
4055 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
4056 TYPE_SPECIFIC_FIELD.
4057 (recursive_dump_type, copy_type_recursive): Update.
4058 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4059 DW_AT_data_bit_offset.
4061 2020-09-23 Tom Tromey <tom@tromey.com>
4063 * utils.h (class gdb_argv): Add move operators.
4064 <append>: New methods.
4065 * compile/compile.c (build_argc_argv): Remove.
4066 (compile_args_argc): Remove.
4067 (compile_args_argv): Change type.
4068 (set_compile_args): Simplify.
4069 (append_args): Remove.
4070 (filter_args): Remove argcp parameter.
4071 (get_args): Return gdb_argv. Simplify.
4072 (compile_to_object): Update.
4074 2020-09-23 Tom Tromey <tom@tromey.com>
4076 * compile/compile-object-run.c (do_module_cleanup)
4077 <~do_module_cleanup> :Remove.
4078 (do_module_cleanup): Update.
4079 * compile/compile-object-load.h (struct munmap_list): Add move
4080 assignment operator.
4081 <source_file>: Now a std::string.
4082 <munmap_list>: Rename. No longer a pointer.
4083 * compile/compile-object-load.c (struct setup_sections_data): Add
4085 <setup_one_section>: Declare.
4086 <munmap_list>: Move earlier.
4087 <m_bfd>: New member.
4088 <m_last_size, m_last_section_first, m_last_prot,
4089 m_last_max_alignment>: Rename, add initializers where needed.
4090 (setup_sections_data::setup_one_section): Rename from
4091 setup_sections. Update.
4092 (compile_object_load): Update. Don't use bfd_map_over_sections.
4094 2020-09-23 Tom Tromey <tom@tromey.com>
4096 * compile/compile-object-run.c (struct do_module_cleanup): Add
4097 parameters to constructor. Update destructor.
4098 <source_file, scope, scope_data, out_value_type, out_value_addr,
4099 munmap_list_head, objfile_name_string>: Remove.
4100 <module>: New member.
4101 (do_module_cleanup): Update.
4102 (compile_object_run): Update.
4104 2020-09-23 Tom Tromey <tom@tromey.com>
4106 * compile/compile.c (eval_compile_command): Update.
4107 * compile/compile-object-run.h (compile_object_run): Take a
4109 * compile/compile-object-run.c (compile_object_run): Take a
4111 * compile/compile-object-load.h (struct compile_module): Add
4112 constructor, destructor.
4113 (compile_module_up): New typedef.
4114 (compile_object_load): Return compile_object_up.
4115 * compile/compile-object-load.c (compile_object_load): Return
4118 2020-09-23 Tom Tromey <tom@tromey.com>
4120 * compile/compile-object-run.c (struct do_module_cleanup): Add
4121 constructor, destructor.
4122 <objfile_name_string>: Don't use struct hack.
4123 (do_module_cleanup): Use delete.
4124 (compile_object_run): Use new.
4126 2020-09-23 Tom Tromey <tom@tromey.com>
4128 * compile/compile-cplus-types.c
4129 (compile_cplus_convert_struct_or_union): Use std::vector.
4130 (compile_cplus_convert_func): Likewise.
4131 * compile/compile-c-types.c (convert_func): Use std::vector.
4133 2020-09-21 Tom Tromey <tromey@adacore.com>
4135 * sparc-tdep.c (sparc32_skip_prologue): Use
4136 skip_prologue_using_sal.
4138 2020-09-19 Tom Tromey <tom@tromey.com>
4140 * symfile.c (add_section_size_callback): Remove.
4141 (load_one_section): Rename from load_section_callback. Change
4143 (generic_load): Use foreach.
4145 2020-09-19 Tom Tromey <tom@tromey.com>
4147 * exec.c (add_to_section_table): Remove.
4148 (build_section_table): Use foreach.
4150 2020-09-19 Tom Tromey <tom@tromey.com>
4152 * elfread.c (elf_locate_sections): Change parameters.
4153 (elf_symfile_read): Use foreach.
4155 2020-09-19 Tom Tromey <tom@tromey.com>
4157 * cli/cli-dump.c (struct callback_data): Remove.
4158 (restore_one_section): Rename from restore_section_callback.
4160 (restore_binary_file): Change parameters.
4161 (restore_command): Use foreach.
4163 2020-09-19 Tom Tromey <tom@tromey.com>
4165 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4166 (gcore_copy_callback): Likewise.
4167 (gcore_memory_sections): Use foreach.
4169 2020-09-19 Tom Tromey <tom@tromey.com>
4171 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4172 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4174 (generic_elf_osabi_sniffer): Use foreach.
4175 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4176 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4178 2020-09-19 Tom Tromey <tom@tromey.com>
4180 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4181 (dwarf2_get_dwz_file): Use foreach.
4182 (dwarf2_locate_dwo_sections): Change parameters.
4183 (open_and_init_dwo_file): Use foreach.
4184 (dwarf2_locate_common_dwp_sections): Change parameters.
4185 (open_and_init_dwp_file): Use foreach.
4187 2020-09-19 Tom Tromey <tom@tromey.com>
4189 * symfile.h: (find_lowest_section): Don't declare.
4190 * symfile.c (find_lowest_section): Now static. Change
4192 (struct place_section_arg): Remove.
4193 (place_section): Change parameters.
4194 (addr_info_make_relative): Use foreach.
4195 (symfile_dummy_outputs): Remove.
4196 (default_symfile_relocate): Use foreach.
4198 2020-09-19 Tom Tromey <tom@tromey.com>
4200 * objfiles.c (add_to_objfile_sections): Rename from
4201 add_to_objfile_sections_full.
4202 (add_to_objfile_sections): Remove.
4203 (build_objfile_section_table): Use foreach.
4205 2020-09-19 Tom Tromey <tom@tromey.com>
4207 * stap-probe.c (get_stap_base_address_1): Remove.
4208 (get_stap_base_address): Use foreach.
4210 2020-09-19 Tom Tromey <tom@tromey.com>
4212 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4214 (gdb_bfd_close_or_warn): Use foreach.
4216 2020-09-19 Tom Tromey <tom@tromey.com>
4218 * corelow.c (add_to_thread_list): Change parameters.
4219 (core_target_open): Use foreach.
4221 2020-09-19 Tom Tromey <tom@tromey.com>
4223 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4226 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4228 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4231 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4233 * eval.c: Remove 'f-lang.h' include.
4234 (value_f90_subarray): Moved to f-lang.c.
4235 (eval_call): Renamed to...
4236 (evaluate_subexp_do_call): ...this, is no longer static, header
4237 comment moved into header file.
4238 (evaluate_funcall): Update call to eval_call.
4239 (skip_undetermined_arglist): Moved to f-lang.c.
4240 (fortran_value_subarray): Likewise.
4241 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4242 moved to evaluate_subexp_f.
4243 (calc_f77_array_dims): Moved to f-lang.c
4244 * expprint.c (print_subexp_funcall): New function.
4245 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4246 moved to print_subexp_f, OP_FUNCALL uses new function.
4247 (dump_subexp_body_funcall): New function.
4248 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4249 moved to dump_subexp_f, OP_FUNCALL uses new function.
4250 * expression.h (evaluate_subexp_do_call): Declare.
4251 * f-lang.c (value_f90_subarray): Moved from eval.c.
4252 (skip_undetermined_arglist): Likewise.
4253 (calc_f77_array_dims): Likewise.
4254 (fortran_value_subarray): Likewise.
4255 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4256 (operator_length_f): Likewise.
4257 (print_subexp_f): Likewise.
4258 (dump_subexp_body_f): Likewise.
4259 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4260 declaration of this operation to here.
4261 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4262 support moved to operator_length_f.
4263 * parser-defs.h (dump_subexp_body_funcall): Declare.
4264 (print_subexp_funcall): Declare.
4265 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4266 fortran-operator.def.
4268 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4270 * eval.c (fortran_value_subarray): New function, content is taken
4272 (evaluate_subexp_standard): ...here, in two places. Now arrays
4273 and strings both call the new function.
4274 (calc_f77_array_dims): Add header comment, handle strings.
4276 2020-09-18 Victor Collod <vcollod@nvidia.com>
4279 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4280 (i386_analyze_prologue): Call i386_skip_endbr.
4282 2020-09-18 Tom Tromey <tromey@adacore.com>
4284 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4285 (windows_nat_target::wait): Update.
4286 * target/wait.h (enum target_wait_flag): New. Use
4287 DEF_ENUM_FLAGS_TYPE.
4288 * target/target.h (target_wait): Change type of options.
4289 * target.h (target_options_to_string, default_target_wait):
4291 (struct target_ops) <wait>: Change type of options.
4292 * target.c (target_wait, default_target_wait, do_option): Change
4294 (target_options_to_string): Likewise.
4295 * target-delegates.c: Rebuild.
4296 * target-debug.h (target_debug_print_target_wait_flags): Rename
4297 from target_debug_print_options.
4298 * sol-thread.c (class sol_thread_target) <wait>: Update.
4299 (sol_thread_target::wait): Update.
4300 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4301 (rs6000_nat_target::wait): Update.
4302 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4304 (remote_target::wait_ns, remote_target::wait_as): Change type of
4306 (remote_target::wait): Update.
4307 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4308 (gdbsim_target::wait): Update.
4309 * record-full.c (class record_full_base_target) <wait>: Update.
4310 (record_full_wait_1): Change type of "options".
4311 (record_full_base_target::wait): Update.
4312 * record-btrace.c (class record_btrace_target) <wait>: Update.
4313 (record_btrace_target::wait): Update.
4314 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4316 (ravenscar_thread_target::wait): Update.
4317 * procfs.c (class procfs_target) <wait>: Update.
4318 (procfs_target::wait): Update.
4319 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4320 * obsd-nat.c (obsd_nat_target::wait): Update.
4321 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4322 (nto_procfs_target::wait): Update.
4323 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4324 * nbsd-nat.c (nbsd_wait): Change type of "options".
4325 (nbsd_nat_target::wait): Update.
4326 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4327 (thread_db_target::wait): Update.
4328 * linux-nat.h (class linux_nat_target) <wait>: Update.
4329 * linux-nat.c (linux_nat_target::wait): Update.
4330 (linux_nat_wait_1): Update.
4331 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4333 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4334 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4335 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4336 (go32_nat_target::wait): Update.
4337 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4338 * gnu-nat.c (gnu_nat_target::wait): Update.
4339 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4340 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4341 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4342 * darwin-nat.c (darwin_nat_target::wait): Update.
4343 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4344 (bsd_uthread_target::wait): Update.
4345 * aix-thread.c (class aix_thread_target) <wait>: Update.
4346 (aix_thread_target::wait): Update.
4348 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4350 * compile/compile-object-run.c (create_copied_type_recursive): New
4352 (compile_object_run): Use new function.
4354 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4356 * NEWS: Mention x86_64 Cygwin core file support.
4358 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4360 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4361 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4363 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4365 * windows-tdep.h: Add prototypes.
4366 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4367 (i386_windows_core_pid_to_str): Move and rename ...
4368 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4369 (windows_core_pid_to_str): ... and here.
4370 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4372 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4373 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4374 (amd64_windows_init_abi_common): ... and register.
4376 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4378 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4379 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4381 2020-09-18 Pedro Alves <pedro@palves.net>
4384 * thread.c (thread_find_command): Switch inferior before calling
4387 2020-09-17 Tom Tromey <tromey@adacore.com>
4389 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4390 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4391 (tdesc_arch_data_up): New typedef.
4392 (tdesc_use_registers, tdesc_data_alloc): Update.
4393 (tdesc_data_cleanup): Don't declare.
4394 * target-descriptions.c (tdesc_data_alloc): Return a
4396 (tdesc_arch_data_deleter::operator()): Rename from
4397 tdesc_data_cleanup. Change argument type.
4398 (tdesc_use_registers): Change early_data to an rvalue reference.
4399 (tdesc_use_registers): Don't use delete.
4400 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4401 * s390-tdep.c (s390_gdbarch_init): Update.
4402 * rx-tdep.c (rx_gdbarch_init): Update.
4403 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4404 * riscv-tdep.c (riscv_gdbarch_init): Update.
4405 * or1k-tdep.c (or1k_gdbarch_init): Update.
4406 * nios2-tdep.c (nios2_gdbarch_init): Update.
4407 * nds32-tdep.c (nds32_gdbarch_init): Update.
4408 * mips-tdep.c (mips_gdbarch_init): Update.
4409 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4410 * m68k-tdep.c (m68k_gdbarch_init): Update.
4411 * i386-tdep.c (i386_gdbarch_init): Update.
4412 * arm-tdep.c (arm_gdbarch_init): Update.
4413 * arc-tdep.c (arc_tdesc_init): Update.
4414 (arc_gdbarch_init): Update.
4415 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4417 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4419 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4420 for WOW64 processes.
4422 2020-09-17 Tom Tromey <tom@tromey.com>
4424 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4426 2020-09-17 Tom Tromey <tom@tromey.com>
4428 * value.c (preserve_values): Update.
4429 * python/py-type.c (save_objfile_types): Update.
4430 * guile/scm-type.c (save_objfile_types): Update.
4431 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4432 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4433 * compile/compile-object-run.c (compile_object_run): Update.
4435 2020-09-17 Tom Tromey <tom@tromey.com>
4437 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4439 <m_table>: Now htab_up.
4440 * typeprint.c (typedef_hash_table::recursively_update)
4441 (typedef_hash_table::add_template_parameters)
4442 (typedef_hash_table::typedef_hash_table): Update.
4443 (typedef_hash_table::~typedef_hash_table): Remove.
4444 (typedef_hash_table::typedef_hash_table)
4445 (typedef_hash_table::find_global_typedef)
4446 (typedef_hash_table::find_typedef): Update.
4448 2020-09-17 Tom Tromey <tom@tromey.com>
4450 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4452 2020-09-17 Tom Tromey <tom@tromey.com>
4454 * linespec.c (class decode_compound_collector)
4455 <~decode_compound_collector>: Remove.
4456 <m_unique_syms>: Now htab_up.
4457 (decode_compound_collector::operator ()): Update.
4458 (class symtab_collector) <~symtab_collector>: Remove.
4459 <m_symtab_table>: Now htab_up.
4460 (symtab_collector::operator ()): Update.
4462 2020-09-17 Tom Tromey <tom@tromey.com>
4464 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4465 (filename_seen_cache::clear): Update.
4466 (~filename_seen_cache): Remove.
4467 (filename_seen_cache::seen): Update.
4468 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4470 <~filename_seen_cache>: Remove.
4473 2020-09-17 Tom Tromey <tom@tromey.com>
4475 * completer.c (completion_tracker::discard_completions)
4476 (completion_tracker::~completion_tracker)
4477 (completion_tracker::maybe_add_completion)
4478 (completion_tracker::remove_completion)
4479 (completion_tracker::recompute_lowest_common_denominator)
4480 (completion_tracker::build_completion_result): Update.
4481 * completer.h (class completion_tracker) <have_completions>:
4483 <m_entries_hash>: Now htab_up.
4485 2020-09-17 Tom Tromey <tom@tromey.com>
4487 * breakpoint.c (ambiguous_names_p): Use htab_up.
4489 2020-09-17 Tom Tromey <tom@tromey.com>
4491 * auto-load.c (struct auto_load_pspace_info)
4492 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4493 <loaded_script_files, loaded_script_texts>: Change type to
4495 (~auto_load_pspace_info) Remove.
4496 (init_loaded_scripts_info, maybe_add_script_file)
4497 (maybe_add_script_text, auto_load_info_scripts): Update.
4499 2020-09-17 Tom Tromey <tromey@adacore.com>
4501 * c-exp.y (name_obstack): Now static.
4503 2020-09-17 Chungyi Chi <demonic@csie.io>
4505 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4507 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4509 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4510 (add_solib_catchpoint): Likewise.
4511 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4513 (add_solib_catchpoint): Change int parameter/variable to bool.
4514 (catch_load_or_unload): Likewise.
4515 (init_catchpoint): Likewise.
4516 (create_fork_vfork_event_catchpoint): Likewise.
4517 (catch_fork_command_1): Likewise.
4518 (catch_exec_command_1): Likewise.
4520 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4522 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4523 Change instance_flags to m_instance_flags.
4525 2020-09-16 Tom Tromey <tromey@adacore.com>
4528 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4530 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4532 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4534 (fbsd_nat_target::insert_exec_catchpoint)
4535 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4536 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4537 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4539 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4541 * configure.ac: Remove check for kinfo_getvmmap().
4542 * configure, config.in: Regenerate.
4543 * fbsd-nat.c (fbsd_read_mapping): Remove
4544 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4545 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4546 kinfo_get_vmmap() are always present.
4548 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4550 * fbsd-nat.c: Always include support for
4551 TARGET_OBJECT_SIGNAL_INFO.
4553 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4555 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4556 sysctl and remove procfs fallback.
4558 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4560 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4561 * fbsd-nat.h: Likewise.
4563 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4565 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4568 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4570 * ada-lang.c (ada_language_data): Delete.
4571 (ada_language): Remove references to ada_language_data.
4572 * c-lang.c (c_language_data): Delete.
4573 (c_language): Remove references to c_language_data.
4574 (cplus_language_data): Delete.
4575 (cplus_language): Remove references to cplus_language_data.
4576 (asm_language_data): Delete.
4577 (asm_language): Remove references to asm_language_data.
4578 (minimal_language_data): Delete.
4579 (minimal_language): Remove references to minimal_language_data.
4580 * d-lang.c (d_language_data): Delete.
4581 (d_language): Remove references to d_language_data.
4582 * f-lang.c (f_language_data): Delete.
4583 (f_language): Remove references to f_language_data.
4584 * go-lang.c (go_language_data): Delete.
4585 (go_language): Remove references to go_language_data.
4586 * language.c (unknown_language_data): Delete.
4587 (unknown_language): Remove references to unknown_language_data.
4588 (auto_language_data): Delete.
4589 (auto_language): Remove references to auto_language_data.
4590 * language.h (language_data): Delete struct.
4591 (language_defn): No longer inherit from language_data.
4592 * m2-lang.c (m2_language_data): Delete.
4593 (m2_language): Remove references to m2_language_data.
4594 * objc-lang.c (objc_language_data): Delete.
4595 (objc_language): Remove references to objc_language_data.
4596 * opencl-lang.c (opencl_language_data): Delete.
4597 (opencl_language): Remove references to opencl_language_data.
4598 * p-lang.c (pascal_language_data): Delete.
4599 (pascal_language): Remove references to pascal_language_data.
4600 * rust-lang.c (rust_language_data): Delete.
4601 (rust_language): Remove references to rust_language_data.
4603 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4605 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4607 (ada_language::opcode_print_table): New member function.
4608 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4609 (c_language::opcode_print_table): New member function.
4610 (cplus_language_data): Remove la_op_print_tab initializer.
4611 (cplus_language::opcode_print_table): New member function.
4612 (asm_language_data): Remove la_op_print_tab initializer.
4613 (asm_language::opcode_print_table): New member function.
4614 (minimal_language_data): Remove la_op_print_tab initializer.
4615 (minimal_language::opcode_print_table): New member function.
4616 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4617 (d_language::opcode_print_table): New member function.
4618 * expprint.c (print_subexp_standard): Update call to
4620 (op_string): Likewise.
4621 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4622 (f_language::opcode_print_table): New member function.
4623 * go-lang.c (go_language_data): Remove la_op_print_tab
4625 (go_language::opcode_print_table): New member function.
4626 * language.c (unknown_language_data): Remove la_op_print_tab
4628 (unknown_language::opcode_print_table): New member function.
4629 (auto_language_data): Remove la_op_print_tab initializer.
4630 (auto_language::opcode_print_table): New member function.
4631 * language.h (language_data): Remove la_op_print_tab field.
4632 (language_defn::opcode_print_table): Declare new member function.
4633 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4635 (m2_language::opcode_print_table): New member function.
4636 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4638 (objc_language::opcode_print_table): New member function.
4639 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4641 (opencl_language::opcode_print_table): New member function.
4642 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4644 (pascal_language::opcode_print_table): New member function.
4645 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4647 (rust_language::opcode_print_table): New member function.
4649 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4651 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4652 (ada_language::expression_ops): New member function.
4653 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4654 (c_language::expression_ops): New member function.
4655 (cplus_language_data): Remove la_exp_desc initializer.
4656 (cplus_language::expression_ops): New member function.
4657 (asm_language_data): Remove la_exp_desc initializer.
4658 (asm_language::expression_ops): New member function.
4659 (minimal_language_data): Remove la_exp_desc initializer.
4660 (minimal_language::expression_ops): New member function.
4661 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4662 (d_language::expression_ops): New member function.
4663 * eval.c (evaluate_subexp): Update call to expression_ops.
4664 * expprint.c (print_subexp): Likewise.
4665 (op_name): Likewise.
4666 (dump_subexp_body): Likewise.
4667 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4668 (f_language::expression_ops): New member function.
4669 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4670 (go_language::expression_ops): New member function.
4671 * language.c (language_defn::expression_ops): New function.
4672 (unknown_language_data): Remove la_exp_desc initializer.
4673 (auto_language_data): Likewise.
4674 * language.h (language_data): Remove la_exp_desc field.
4675 (language_defn::expression_ops): Declare new member function.
4676 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4677 (m2_language::expression_ops): New member function.
4678 * objc-lang.c (objc_language_data): Remove la_exp_desc
4680 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4682 (opencl_language::expression_ops): New member function.
4683 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4684 * parse.c (operator_length): Update call to expression_ops.
4685 (exp_iterate): Likewise.
4686 * rust-lang.c (rust_language_data): Remove la_exp_desc
4688 (ruse_language::expression_ops): New member function.
4690 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4692 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4694 (ada_language::varobj_ops): New member function.
4695 * c-lang.c (c_language_data): Remove la_varobj_ops
4697 (cplus_language_data): Likewise.
4698 (cplus_language::varobj_ops): New member function.
4699 (asm_language_data): Remove la_varobj_ops initializer.
4700 (minimal_language_data): Likewise.
4701 * d-lang.c (d_language_data): Likewise.
4702 * f-lang.c (f_language_data): Likewise.
4703 * go-lang.c (go_language_data): Likewise.
4704 * language.c (language_defn::varobj_ops): New function.
4705 (unknown_language_data): Remove la_varobj_ops
4707 (auto_language_data): Likewise.
4708 * language.h (language_data): Remove la_varobj_ops field.
4709 (language_defn::varobj_ops): Declare new member function.
4710 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4711 * objc-lang.c (objc_language_data): Likewise.
4712 * opencl-lang.c (opencl_language_data): Likewise.
4713 * p-lang.c (pascal_language_data): Likewise.
4714 * rust-lang.c (rust_language_data): Likewise.
4715 * varobj.c (varobj_create): Update call to varobj_ops.
4716 * varobj.h (default_varobj_ops): Delete define.
4718 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4720 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4722 * c-lang.c (c_language_data): Likewise.
4723 (c_language::macro_expansion): New member function.
4724 (cplus_language_data): Likewise.
4725 (cplus_language::macro_expansion): New member function.
4726 (asm_language_data): Likewise.
4727 (asm_language::macro_expansion): New member function.
4728 (minimal_language_data): Likewise.
4729 (minimal_language::macro_expansion): New member function.
4730 * d-lang.c (d_language_data): Remove la_macro_expansion
4732 * f-lang.c (f_language_data): Likewise.
4733 * go-lang.c (go_language_data): Likewise.
4734 * language.c (unknown_language_data): Likewise.
4735 (auto_language_data): Likewise.
4736 * language.h (language_data): Remove la_macro_expansion field.
4737 (language_defn::macro_expansion): New member function.
4738 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4740 * objc-lang.c (objc_language_data): Likewise.
4741 (objc_language::macro_expansion): New member function.
4742 * opencl-lang.c (opencl_language_data): Likewise.
4743 (opencl_language::macro_expansion): New member function.
4744 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4746 * rust-lang.c (rust_language_data): Likewise.
4747 * symtab.c (default_collect_symbol_completion_matches_break_on):
4748 Update call to macro_expansion.
4750 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4752 * ada-lang.c (ada_language_data): Remove la_array_ordering
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 * dwarf2/read.c (read_array_order): Update for call to
4761 * f-lang.c (f_language_data): Remove la_array_ordering
4763 (f_language::array_ordering): New member function.
4764 * go-lang.c (go_language_data): Remove la_array_ordering
4766 * language.c (unknown_language_data): Likewise.
4767 (auto_language_data): Likewise.
4768 * language.h (language_data): Delete la_array_ordering field.
4769 (language_defn::array_ordering): New member function.
4770 * m2-lang.c (m2_language_data): Remove la_array_ordering
4772 * objc-lang.c (objc_language_data): Likewise.
4773 * opencl-lang.c (opencl_language_data): Likewise.
4774 * p-lang.c (pascal_language_data): Likewise.
4775 * rust-lang.c (rust_language_data): Likewise.
4777 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4779 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4781 * c-lang.c (c_language_data): Likewise.
4782 (cplus_language_data): Likewise.
4783 (asm_language_data): Likewise.
4784 (minimal_language_data): Likewise.
4785 * d-lang.c (d_language_data): Likewise.
4786 * f-lang.c (f_language_data): Likewise.
4787 (f_language::case_sensitivity): New member function.
4788 * go-lang.c (go_language_data): Remove la_case_sensitivity
4790 * language.c (enum case_mode): Moved here from language.h.
4791 (case_mode): Make static.
4792 (show_case_command): Update for case_sensitivity being a method.
4793 (set_case_command): Likewise.
4794 (set_range_case): Likewise.
4795 (unknown_language_data): Remove la_case_sensitivity initializer.
4796 (auto_language_data): Likewise.
4797 * language.h (case_mode): Delete, move enum declaration to
4799 (language_data): Delete la_case_sensitivity field.
4800 (language_defn::case_sensitivity): New member function.
4801 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4803 * objc-lang.c (objc_language_data): Likewise.
4804 * opencl-lang.c (opencl_language_data): Likewise.
4805 * p-lang.c (pascal_language_data): Likewise.
4806 * rust-lang.c (rust_language_data): Likewise.
4808 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4810 * ada-lang.c (ada_language_data): Remove la_range_check
4812 * c-lang.c (c_language_data): Likewise.
4813 (cplus_language_data): Likewise.
4814 (asm_language_data): Likewise.
4815 (minimal_language_data): Likewise.
4816 * d-lang.c (d_language_data): Likewise.
4817 * f-lang.c (f_language_data): Likewise.
4818 (f_language::range_checking_on_by_default): New member function.
4819 * go-lang.c (go_language_data): Remove la_range_check initializer.
4820 * language.c (enum range_mode): Moved here from language.h.
4821 (range_mode): Made static.
4822 (show_range_command): Update to use
4823 range_checking_on_by_default.
4824 (set_range_command): Likewise.
4825 (set_range_case): Likewise.
4826 (unknown_language_data): Remove la_range_check initializer.
4827 (auto_language_data): Likewise.
4828 * language.h (range_mode): Delete. Enum definition moved to
4830 (language_data): Remove la_range_check field.
4831 (language_defn::range_checking_on_by_default): New member
4833 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4834 (m2_language::range_checking_on_by_default): New member function.
4835 * objc-lang.c (objc_language_data): Remove la_range_check
4837 * opencl-lang.c (opencl_language_data): Likewise.
4838 * p-lang.c (pascal_language_data): Likewise.
4839 (pascal_language::range_checking_on_by_default): New member
4841 * rust-lang.c (rust_language_data): Remove la_range_check
4843 (rust_language::range_checking_on_by_default): New member
4846 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4848 * dwarf2/read.c (dwarf2_physname): Remove special case for
4850 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4853 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4855 * ada-lang.c (ada_language_data): Remove
4856 la_store_sym_names_in_linkage_form_p initializer.
4857 (ada_language::store_sym_names_in_linkage_form_p): New member
4859 * c-lang.c (c_language_data): Remove
4860 la_store_sym_names_in_linkage_form_p initializer.
4861 (c_language::store_sym_names_in_linkage_form_p): New member
4863 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4865 (asm_language_data): Likewise.
4866 (asm_language::store_sym_names_in_linkage_form_p): New member
4868 (minimal_language_data): Remove
4869 la_store_sym_names_in_linkage_form_p initializer.
4870 (minimal_language::store_sym_names_in_linkage_form_p): New member
4872 * d-lang.c (d_language_data): Remove
4873 la_store_sym_names_in_linkage_form_p initializer.
4874 * dwarf2/read.c (dwarf2_physname): Update call to
4875 store_sym_names_in_linkage_form_p.
4876 * f-lang.c (f_language_data): Remove
4877 la_store_sym_names_in_linkage_form_p initializer.
4878 * go-lang.c (go_language_data): Remove
4879 la_store_sym_names_in_linkage_form_p initializer.
4880 * language.c (unknown_language_data): Remove
4881 la_store_sym_names_in_linkage_form_p initializer.
4882 (unknown_language::store_sym_names_in_linkage_form_p): New member
4884 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4886 (auto_language::store_sym_names_in_linkage_form_p): New member
4888 * language.h (language_data): Remove
4889 la_store_sym_names_in_linkage_form_p member variable.
4890 (language_defn::store_sym_names_in_linkage_form_p): New member
4892 * m2-lang.c (m2_language_data): Remove
4893 la_store_sym_names_in_linkage_form_p initializer.
4894 * objc-lang.c (objc_language_data): Likewise.
4895 * opencl-lang.c (opencl_language_data): Likewise.
4896 * p-lang.c (pascal_language_data): Likewise.
4897 * rust-lang.c (rust_language_data): Likewise.
4899 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4901 * ada-lang.c (ada_language_data): Remove string_lower_bound
4903 * c-lang.c (c_language_data): Likewise.
4904 (cplus_language_data): Likewise.
4905 (asm_language_data): Likewise.
4906 (minimal_language_data): Likewise.
4907 * d-lang.c (d_language_data): Likewise.
4908 * f-lang.c (f_language_data): Likewise.
4909 * go-lang.c (go_language_data): Likewise.
4910 * language.c (unknown_language_data): Likewise.
4911 (auto_language_data): Likewise.
4912 * language.h (language_data): Remove string_lower_bound field.
4913 (language_defn::string_lower_bound): New member function.
4914 * m2-lang.c (m2_language_data): Remove string_lower_bound
4916 (m2_language::string_lower_bound): New member function.
4917 * objc-lang.c (objc_language_data): Remove string_lower_bound
4919 * opencl-lang.c (opencl_language_data): Likewise.
4920 * p-lang.c (pascal_language_data): Likewise.
4921 * rust-lang.c (rust_language_data): Likewise.
4922 * valops.c (value_cstring): Update call to string_lower_bound.
4923 (value_string): Likewise.
4924 * value.c (allocate_repeated_value): Likewise.
4926 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4928 * valops.c (value_repeat): Fix incorrect argument name in comment.
4930 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4932 * ada-lang.c (ada_language_data): Remove c_style_arrays
4934 (ada_language::c_style_arrays_p): New member fuction.
4935 * c-lang.c (c_language_data): Remove c_style_arrays
4937 (cplus_language_data): Likewise.
4938 (asm_language_data): Likewise.
4939 (minimal_language_data): Likewise.
4940 * d-lang.c (d_language_data): Likewise.
4941 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4942 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4943 (f_language::c_style_arrays_p): New member function.
4944 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4945 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4946 * language.c (unknown_language_data): Remove c_style_arrays
4948 (auto_language_data): Likewise.
4949 * language.h (language_data): Remove c_style_arrays field.
4950 (language_defn::c_style_arrays_p): New member function.
4951 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4952 (m2_language::c_style_arrays_p): New member function.
4953 * objc-lang.c (objc_language_data): Remove c_style_arrays
4955 * opencl-lang.c (opencl_language_data): Likewise.
4956 * p-lang.c (pascal_language_data): Likewise.
4957 * rust-lang.c (rust_language_data): Likewise.
4958 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4959 and update local variable to a bool.
4960 * valops.c (value_cast): Update call to c_style_arrays_p.
4961 (value_array): Likewise.
4962 * value.c (coerce_array): Likewise.
4964 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4966 * ada-lang.c (ada_language_data): Remove la_language initializer.
4967 * c-lang.c (c_language_data): Likewise.
4968 (cplus_language_data): Likewise.
4969 (asm_language_data): Likewise.
4970 (minimal_language_data): Likewise.
4971 * d-lang.c (d_language_data): Likewise.
4972 * f-lang.c (f_language_data): Likewise.
4973 * go-lang.c (go_language_data): Likewise.
4974 * language.c (unknown_language_data): Likewise.
4975 (auto_language_data): Likewise.
4976 * language.h (language_data): Remove la_language field.
4977 (language_defn::language_defn): Initialise la_language field.
4978 (language_defn::la_language): New member variable.
4979 * m2-lang.c (m2_language_data): Remove la_language field.
4980 * objc-lang.c (objc_language_data): Likewise.
4981 * opencl-lang.c (opencl_language_data): Likewise.
4982 * p-lang.c (pascal_language_data): Likewise.
4983 * rust-lang.c (rust_language_data): Likewise.
4985 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4987 * ada-lang.c (ada_extensions): Delete, moved into
4988 ada_language::filename_extensions.
4989 (ada_language_data): Remove la_filename_extensions initializer.
4990 (ada_language::filename_extensions): New member function.
4991 * c-lang.c (c_extensions): Delete, moved into
4992 c_language::filename_extensions.
4993 (c_language_data): Remove la_filename_extensions initializer.
4994 (c_language::filename_extensions): New member function.
4995 (cplus_extensions): Delete, moved into
4996 cplus_language::filename_extensions.
4997 (cplus_language_data): Remove la_filename_extensions initializer.
4998 (cplus_language::filename_extensions): New member function.
4999 (asm_extensions): Delete, moved into
5000 asm_language::filename_extensions.
5001 (asm_language_data): Remove la_filename_extensions initializer.
5002 (asm_language::filename_extensions): New member function.
5003 (minimal_language_data): Remove la_filename_extensions
5005 * d-lang.c (d_extensions): Delete, moved into
5006 d_language::filename_extensions.
5007 (d_language_data): Remove la_filename_extensions initializer.
5008 (d_language::filename_extensions): New member function.
5009 * f-lang.c (f_extensions): Delete, moved into
5010 f_language::filename_extensions.
5011 (f_language_data): Remove la_filename_extensions initializer.
5012 (f_language::filename_extensions): New member function.
5013 * go-lang.c (go_language_data): Remove la_filename_extensions
5015 * language.c (add_set_language_command): Update now that
5016 filename_extensions returns a vector.
5017 (unknown_language_data): Remove la_filename_extensions
5019 (auto_language_data): Likewise.
5020 * language.h (language_data): Remove la_filename_extensions field.
5021 (language_defn::filename_extensions): New member function.
5022 * m2-lang.c (m2_language_data): Remove la_filename_extensions
5024 * objc-lang.c (objc_extensions): Delete, moved into
5025 objc_language::filename_extensions.
5026 (objc_language_data): Remove la_filename_extensions initializer.
5027 (objc_language::filename_extensions): New member function.
5028 * opencl-lang.c (opencl_language_data): Remove
5029 la_filename_extensions initializer.
5030 * p-lang.c (pascal_extensions): Delete, moved into
5031 pascal_language::filename_extensions.
5032 (pascal_language_data): Remove la_filename_extensions initializer.
5033 (pascal_language::filename_extensions): New member function.
5034 * rust-lang.c (rust_extensions): Delete, moved into
5035 rust_language::filename_extensions.
5036 (rust_language_data): Remove la_filename_extensions initializer.
5037 (rust_language::filename_extensions): New member function.
5038 * symfile.c (add_filename_language): Add new assert.
5040 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5042 * ada-lang.c (ada_language_data): Remove la_name and
5043 la_natural_name initializers.
5044 (ada_language::name): New member function.
5045 (ada_language::natural_name): New member function.
5046 * c-lang.c (c_language_data): Remove la_name and
5047 la_natural_name initializers.
5048 (c_language::name): New member function.
5049 (c_language::natural_name): New member function.
5050 (cplus_language_data): Remove la_name and
5051 la_natural_name initializers.
5052 (cplus_language::name): New member function.
5053 (cplus_language::natural_name): New member function.
5054 (asm_language_data): Remove la_name and
5055 la_natural_name initializers.
5056 (asm_language::name): New member function.
5057 (asm_language::natural_name): New member function.
5058 (minimal_language_data): Remove la_name and
5059 la_natural_name initializers.
5060 (minimal_language::name): New member function.
5061 (minimal_language::natural_name): New member function.
5062 * compile/compile.c (compile_to_object): Update call to
5063 lanugage_defn::name.
5064 * d-lang.c (d_language_data): Remove la_name and
5065 la_natural_name initializers.
5066 (d_language::name): New member function.
5067 (d_language::natural_name): New member function.
5068 * expprint.c (print_subexp_standard): Update call to
5069 language_defn::name.
5070 (dump_raw_expression): Likewise
5071 (dump_prefix_expression): Likewise.
5072 * f-lang.c (f_language_data): Remove la_name and
5073 la_natural_name initializers.
5074 (f_language::name): New member function.
5075 (f_language::natural_name): New member function.
5076 * go-lang.c (go_language_data): Remove la_name and
5077 la_natural_name initializers.
5078 (go_language::name): New member function.
5079 (go_language::natural_name): New member function.
5080 * language.c (show_language_command): Update call to
5081 language_defn::name.
5082 (set_language_command): Likewise.
5083 (language_enum): Likewise.
5084 (language_str): Likewise.
5085 (add_set_language_command): Likewise, use
5086 language_defn::natural_name in the doc string.
5087 (unknown_language_data): Remove la_name and
5088 la_natural_name initializers.
5089 (unknown_language::name): New member function.
5090 (unknown_language::natural_name): New member function.
5091 (auto_language_data): Remove la_name and
5092 la_natural_name initializers.
5093 (auto_language::name): New member function.
5094 (auto_language::natural_name): New member function.
5095 (language_lookup_primitive_type_as_symbol): Update call to
5096 language_defn::name.
5097 * language.h (language_data): Remove la_name and la_natural_name
5099 (language_defn::name): New member function.
5100 (language_defn::natural_name): New member function.
5101 * m2-lang.c (m2_language_data): Remove la_name and
5102 la_natural_name initializers.
5103 (m2_language::name): New member function.
5104 (m2_language::natural_name): New member function.
5105 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5106 language_defn::natural_name.
5107 * objc-lang.c (objc_language_data): Remove la_name and
5108 la_natural_name initializers.
5109 (objc_language::name): New member function.
5110 (objc_language::natural_name): New member function.
5111 * opencl-lang.c (opencl_language_data): Remove la_name and
5112 la_natural_name initializers.
5113 (opencl_language::name): New member function.
5114 (opencl_language::natural_name): New member function.
5115 * p-lang.c (pascal_language_data): Remove la_name and
5116 la_natural_name initializers.
5117 (pascal_language::name): New member function.
5118 (pascal_language::natural_name): New member function.
5119 * rust-lang.c (rust_language_data): Remove la_name and
5120 la_natural_name initializers.
5121 (rust_language::name): New member function.
5122 (rust_language::natural_name): New member function.
5123 * symtab.c (lookup_language_this): Update call to
5124 language_defn::name.
5126 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5128 * ada-lang.c (ada_language_data): Remove la_name_of_this
5130 * ax-gdb.c (gen_expr): Update call to name_of_this.
5131 * c-exp.y (classify_name): Likewise.
5132 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5133 (cplus_language_data): Likewise.
5134 (cplus_language::name_of_this): New member function.
5135 (asm_language_data): Remove la_name_of_this initializer.
5136 (minimal_language_data): Likewise.
5137 * d-lang.c (d_language_data): Likewise.
5138 (d_language::name_of_this): New member function.
5139 * expprint.c (print_subexp_standard): Update call to name_of_this.
5140 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5141 * go-lang.c (go_language_data): Likewise.
5142 * language.c (unknown_language_data): Likewise.
5143 (unknown_language::name_of_this): New member function.
5144 (auto_language_data): Remove la_name_of_this initializer.
5145 (auto_language::name_of_this): New member function.
5146 * language.h (language_data): Delete la_name_of_this member
5148 (language_defn::name_of_this): New member function.
5149 * m2-lang.c (m2_language_data): Remove la_name_of_this
5151 * objc-lang.c (objc_language_data): Likewise.
5152 (objc_language::name_of_this): New member function.
5153 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5155 * p-lang.c (pascal_language_data): Likewise.
5156 (pascal_language::name_of_this): New member function.
5157 * rust-lang.c (rust_language_data): Remove la_name_of_this
5159 * symtab.c (lookup_language_this): Update call to name_of_this.
5160 (lookup_symbol_aux): Likewise.
5161 * valops.c (value_of_this): Likewise.
5163 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5165 * ada-lang.c (ada_language_data): Remove
5166 la_struct_too_deep_ellipsis initializer.
5167 (ada_language::struct_too_deep_ellipsis): New member function.
5168 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5170 (cplus_language_data): Likewise.
5171 (asm_language_data): Likewise.
5172 (minimal_language_data): Likewise.
5173 * cp-valprint.c (cp_print_value): Update call to
5174 struct_too_deep_ellipsis.
5175 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5177 * f-lang.c (f_language_data): Likewise.
5178 (f_language::struct_too_deep_ellipsis): New member function.
5179 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5181 * language.c (unknown_language_data): Likewise.
5182 (auto_language_data): Likewise.
5183 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5185 (language_defn::struct_too_deep_ellipsis): New member function.
5186 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5188 * objc-lang.c (objc_language_data): Likewise.
5189 * opencl-lang.c (opencl_language_data): Likewise.
5190 * p-lang.c (pascal_language_data): Likewise.
5191 * rust-lang.c (rust_language_data): Likewise.
5192 * valprint.c (val_print_check_max_depth): Update call to
5193 struct_too_deep_ellipsis.
5195 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5197 * MAINTAINERS (Write After Approval): Add myself.
5199 2020-09-15 Tom Tromey <tom@tromey.com>
5201 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5204 2020-09-15 Tom Tromey <tom@tromey.com>
5206 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5207 and TYPE_CODE_METHODPTR cases.
5208 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5209 (c_value_print_inner): Update.
5210 * valprint.c (generic_value_print_memberptr): New function, from
5211 c_value_print_memberptr.
5212 (generic_value_print): Use it. Call cplus_print_method_ptr.
5214 2020-09-15 Tom Tromey <tromey@adacore.com>
5216 * python/python-internal.h (PyInt_FromLong): Remove define.
5217 * python/py-value.c (convert_value_from_python): Use
5218 gdb_py_object_from_longest.
5219 * python/py-type.c (typy_get_code): Use
5220 gdb_py_object_from_longest.
5221 * python/py-symtab.c (salpy_get_line): Use
5222 gdb_py_object_from_longest.
5223 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5224 gdb_py_object_from_longest.
5225 * python/py-record.c (recpy_gap_reason_code): Use
5226 gdb_py_object_from_longest.
5227 * python/py-record-btrace.c (recpy_bt_insn_size)
5228 (recpy_bt_func_level, btpy_list_count): Use
5229 gdb_py_object_from_longest.
5230 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5231 gdb_py_object_from_longest. Fix error handling.
5232 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5233 gdb_py_object_from_longest.
5234 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5235 gdb_py_object_from_longest.
5236 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5237 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5238 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5240 2020-09-15 Tom Tromey <tromey@adacore.com>
5242 * python/python.c (gdbpy_parameter_value): Use
5243 gdb_py_object_from_ulongest.
5245 2020-09-15 Tom Tromey <tromey@adacore.com>
5247 * python/py-infevents.c (create_register_changed_event_object):
5248 Use gdb_py_object_from_longest.
5249 * python/py-exitedevent.c (create_exited_event_object): Use
5250 gdb_py_object_from_longest.
5252 2020-09-15 Tom Tromey <tromey@adacore.com>
5254 * python/python.c (gdbpy_parameter_value): Use
5255 gdb_py_object_from_longest.
5256 * python/py-type.c (convert_field, typy_range): Use
5257 gdb_py_object_from_longest.
5258 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5259 gdb_py_object_from_longest.
5260 * python/py-lazy-string.c (stpy_get_length): Use
5261 gdb_py_object_from_longest.
5262 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5263 gdb_py_object_from_longest.
5264 * python/py-infevents.c (create_memory_changed_event_object): Use
5265 gdb_py_object_from_longest.
5266 * python/py-inferior.c (infpy_get_num): Use
5267 gdb_py_object_from_longest.
5268 (infpy_get_pid): Likewise.
5270 2020-09-15 Tom Tromey <tromey@adacore.com>
5272 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5274 * python/py-value.c (valpy_long): Use
5275 gdb_py_object_from_ulongest.
5276 * python/py-symtab.c (salpy_get_pc): Use
5277 gdb_py_object_from_ulongest.
5278 (salpy_get_last): Likewise.
5279 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5280 gdb_py_object_from_ulongest.
5281 * python/py-lazy-string.c (stpy_get_address): Use
5282 gdb_py_object_from_ulongest.
5283 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5284 * python/py-arch.c (archpy_disassemble): Use
5285 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5288 2020-09-15 Tom Tromey <tromey@adacore.com>
5290 * python/python-internal.h (gdb_py_long_from_longest): Remove
5292 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5293 * python/py-type.c (convert_field, typy_get_sizeof): Use
5294 gdb_py_object_from_longest.
5295 * python/py-record-btrace.c (btpy_list_index): Use
5296 gdb_py_object_from_longest.
5298 2020-09-15 Tom Tromey <tromey@adacore.com>
5300 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5301 * python/py-record.c (recpy_element_number): Use
5302 gdb_py_object_from_longest.
5303 (recpy_gap_number): Likewise.
5305 2020-09-15 Tom Tromey <tromey@adacore.com>
5307 * top.c (ui::ui): Update.
5308 (highest_ui_num): Remove.
5309 * top.h (struct ui) <num>: Remove.
5311 2020-09-15 Tom Tromey <tromey@adacore.com>
5313 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5314 * ui-style.c (ansi_regex_text): Now array.
5315 * rust-exp.y (number_regex_text): Now array.
5316 * linespec.c (linespec_quote_characters): Now array.
5317 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5320 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5322 * debuginfod-support.c (debuginfod_client_deleter): New.
5323 (debuginfod_client_up): New.
5324 (debuginfod_init): Return debuginfod_client_up.
5325 (debuginfod_source_query): Adjust.
5326 (debuginfod_debuginfo_query): Adjust.
5328 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5330 * debuginfod-support.c (debuginfod_source_query): Use
5331 make_unique_xstrdup.
5333 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5335 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5336 with `type::instance_flags`.
5338 2020-09-14 Michael Mullin <masmullin@gmail.com>
5340 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5341 Remove baton parameter.
5343 2020-09-14 Pedro Alves <pedro@palves.net>
5345 * Makefile.in (SELFTESTS_SRCS): Add
5346 unittests/enum-flags-selftests.c.
5347 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5348 btrace_function_flags instead of enum btrace_function_flag.
5349 * compile/compile-c-types.c (convert_qualified): Use
5351 * compile/compile-cplus-symbols.c (convert_one_symbol)
5352 (convert_symbol_bmsym):
5353 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5354 (compile_cplus_convert_struct_or_union_methods)
5355 (compile_cplus_instance::convert_qualified_base):
5356 * go-exp.y (parse_string_or_char): Add cast to int.
5357 * unittests/enum-flags-selftests.c: New file.
5358 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5359 type to btrace_thread_flags from btrace_thread_flag.
5360 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5361 local's type to btrace_thread_flags from btrace_thread_flag. Add
5364 2020-09-14 Pedro Alves <pedro@palves.net>
5366 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5367 * gdbtypes.c (address_space_name_to_int): Rename to ...
5368 (address_space_name_to_type_instance_flags): ... this.
5369 (address_space_int_to_name): Rename to ...
5370 (address_space_type_instance_flags_to_name): ... this.
5371 * gdbtypes.h (address_space_name_to_int): Rename to ...
5372 (address_space_name_to_type_instance_flags): ... this.
5373 (address_space_int_to_name): Rename to ...
5374 (address_space_type_instance_flags_to_name): ... this.
5375 * type-stack.c (type_stack::insert): Adjust to rename.
5376 * type-stack.h (type_stack::insert): Likewise.
5378 2020-09-14 Pedro Alves <pedro@palves.net>
5379 Andrew Burgess <andrew.burgess@embecosm.com>
5381 * avr-tdep.c (avr_address_class_type_flags): Return
5382 type_instance_flags.
5383 (avr_address_class_type_flags_to_name): Take a
5384 type_instance_flags.
5385 (avr_address_class_name_to_type_flags): Return bool and take a
5386 type_instance_flags.
5387 * d-lang.c (build_d_types): Use type::set_instance_flags.
5388 * ft32-tdep.c (ft32_address_class_type_flags): Return
5389 type_instance_flags.
5390 (ft32_address_class_type_flags_to_name): Take a
5391 type_instance_flags.
5392 (ft32_address_class_name_to_type_flags): Return bool and take a
5393 type_instance_flags.
5394 (ft32_gdbarch_init): Use type::set_instance_flags.
5395 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5396 * gdbarch.h, gdbarch.c: Regenerate.
5397 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5398 (address_class_name_to_type_flags): Use type_instance_flags and
5400 * gdbtypes.c (address_space_name_to_int)
5401 (address_space_int_to_name, make_qualified_type): Use
5402 type_instance_flags.
5403 (make_qualified_type): Use type_instance_flags and
5404 type::set_instance_flags.
5405 (make_type_with_address_space, make_cv_type, make_vector_type)
5406 (check_typedef): Use type_instance_flags.
5407 (recursive_dump_type): Cast type_instance_flags to unsigned for
5409 (copy_type_recursive): Use type::set_instance_flags.
5410 (gdbtypes_post_init): Use type::set_instance_flags.
5411 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5412 <m_instance_flags>: ... this.
5413 <instance_flags, set_instance_flags>: New methods.
5414 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5415 (SET_TYPE_INSTANCE_FLAGS): New.
5416 (address_space_name_to_int, address_space_int_to_name)
5417 (make_type_with_address_space): Pass flags using
5418 type_instance_flags instead of int.
5419 * stabsread.c (cleanup_undefined_types_noname): Use
5420 type::set_instance_flags.
5421 * s390-tdep.c (s390_address_class_type_flags): Return
5422 type_instance_flags.
5423 (s390_address_class_type_flags_to_name): Take a
5424 type_instance_flags.
5425 (s390_address_class_name_to_type_flags): Return bool and take a
5426 type_instance_flags.
5427 * type-stack.c (type_stack::follow_types): Use
5428 type_instance_flags.
5429 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5431 2020-09-14 Tom Tromey <tromey@adacore.com>
5433 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5434 * x86-tdep.c (x86_is_thunk_register_name)
5435 (x86_in_indirect_branch_thunk): Update.
5436 * sparc64-tdep.c (sparc64_fpu_register_names)
5437 (sparc64_cp0_register_names, sparc64_register_names)
5438 (sparc64_pseudo_register_names): Now const.
5439 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5440 cp0_registers_num>: Now const.
5441 * sparc-tdep.c (sparc_core_register_names)
5442 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5443 (sparc32_pseudo_register_names): Now const.
5444 (validate_tdesc_registers): Update.
5445 * rust-lang.c (rust_extensions): Now const.
5446 * p-lang.c (p_extensions): Now const.
5447 * objc-lang.c (objc_extensions): Now const.
5448 * nto-tdep.c (nto_thread_state_str): Now const.
5449 * moxie-tdep.c (moxie_register_names): Now const.
5450 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5452 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5453 (mips_linux_reg_names): Now const.
5454 (mips_gdbarch_init): Update.
5455 * microblaze-tdep.c (microblaze_register_names): Now const.
5456 * m68k-tdep.c (m68k_register_names): Now const.
5457 * m32r-tdep.c (m32r_register_names): Now const.
5458 * ia64-tdep.c (ia64_register_names): Now const.
5459 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5460 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5461 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5462 ymm_avx512_register_names, pkeys_register_names>: Now const.
5463 * i386-tdep.c (i386_register_names, i386_zmm_names)
5464 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5465 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5466 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5467 * f-lang.c (f_extensions): Now const.
5468 * d-lang.c (d_extensions): Now const.
5469 * csky-tdep.c (csky_register_names): Now const.
5470 * charset.c (default_charset_names, charset_enum): Now const.
5471 (_initialize_charset): Update.
5472 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5474 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5475 (bsd_uthread_solib_loaded): Update.
5476 (bsd_uthread_state): Now const.
5477 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5478 (amd64_ymm_avx512_names, amd64_ymmh_names)
5479 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5480 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5481 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5482 (amd64_dword_names): Now const.
5483 * agent.c (can_use_agent_enum): Now const.
5484 * ada-tasks.c (task_states, long_task_states): Now const.
5485 * ada-lang.c (known_runtime_file_name_patterns)
5486 (known_auxiliary_function_name_patterns, attribute_names)
5487 (standard_exc, ada_extensions): Now const.
5489 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5491 * bcache.h (struct bcache) <bcache>: Remove constructor.
5492 <m_hash_function, m_compare_function>: Remove.
5493 <~bcache>: Make virtual.
5494 <compare>: Remove static method, introduce virtual method.
5495 <default_hash>: Remove.
5496 <hash>: New virtual method.
5497 * bcache.c (bcache::expand_hash_table): Update.
5498 (bcache::insert): Update.
5499 (bcache::hash): New.
5500 (bcache::compare): Update comment and parameter names.
5501 * gdbtypes.c (types_deeply_equal): Update.
5502 * psymtab.h (struct psymbol_bcache): New struct.
5503 (class psymtab_storage) <psymtab_storage>: Make default.
5504 <psymbol_cache>: Change type to psymbol_bcache.
5505 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5506 (psymbol_hash): Change to...
5507 (psymbol_bcache::hash): ... this.
5508 (psymbol_compare): Change to...
5509 (psymbol_bcache::compare): ... this.
5511 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5513 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5514 checking for initial lwp.
5516 2020-09-14 Tom Tromey <tromey@adacore.com>
5518 * m68k-tdep.c (m68k_extract_return_value): Use
5519 pointer_result_regnum.
5520 (m68k_store_return_value): Likewise.
5521 (m68k_reg_struct_return_p): Handle vectors and arrays.
5522 (m68k_return_value): Handle arrays.
5523 (m68k_svr4_return_value): Fix single-element aggregate handling.
5524 Handle long double. Adjust for embedded ABI.
5525 (m68k_svr4_init_abi): Set pointer_result_regnum.
5526 (m68k_embedded_init_abi): New function.
5527 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5528 (m68k_osabi_sniffer): New function.
5529 (_initialize_m68k_tdep): Register osabi sniffer.
5530 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5533 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5535 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5536 with gdb::unique_xmalloc_ptr<char>.
5538 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5540 * xml-support.h (xml_fetch_another): Change type to be a
5542 (xml_process_xincludes): Remove baton parameter.
5543 (xml_fetch_content_from_file): Change baton parameter to
5545 * xml-support.c (struct xinclude_parsing_data)
5546 <xinclude_parsing_data>: Remove baton parameter.
5547 <fetcher_baton>: Remove.
5548 (xinclude_start_include): Adjust.
5549 (xml_process_xincludes): Adjust.
5550 (xml_fetch_content_from_file): Replace baton parameter with
5552 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5553 (xml_init_syscalls_info): Use a lambda.
5554 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5555 (file_read_description_xml): Use a lambda.
5556 (fetch_available_features_from_target): Change baton parameter
5558 (target_read_description_xml): Use a lambda.
5559 (target_fetch_description_xml): Use a lambda.
5560 (string_read_description_xml): Update.
5562 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5564 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5565 uses with type::endianity_is_not_default.
5567 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5569 * gdbtypes.h (struct type) <endianity_is_not_default,
5570 set_endianity_is_not_default>: New methods.
5571 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5572 type::endianity_is_not_default, change all write call sites to
5573 use type::set_endianity_is_not_default.
5575 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5577 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5578 uses with type::is_fixed_instance.
5580 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5582 * gdbtypes.h (struct type) <is_fixed_instance,
5583 set_is_fixed_instance>: New methods.
5584 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5585 write call sites to use type::set_is_fixed_instance.
5587 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5589 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5590 uses with type::is_gnu_ifunc.
5592 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5594 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5595 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5596 use type::set_is_gnu_ifunc.
5598 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5600 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5601 uses with type::stub_is_supported.
5603 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5605 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5606 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5607 use type::set_stub_is_supported.
5609 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5611 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5612 uses with type::is_vector.
5614 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5616 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5617 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5618 use type::set_is_vector.
5620 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5622 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5623 uses with type::has_varargs.
5625 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5627 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5628 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5629 use type::set_has_varargs.
5631 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5633 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5634 uses with type::is_prototyped.
5636 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5638 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5640 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5641 call sites to use type::set_is_prototyped.
5643 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5645 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5646 uses with type::target_is_stub.
5648 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5650 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5652 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5653 sites to use type::set_target_is_stub.
5655 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5657 * gdbtypes.h (TYPE_STUB): Remove, replace all
5658 uses with type::is_stub.
5660 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5662 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5663 (TYPE_STUB): Use type::is_stub, change all write call sites to
5664 use type::set_is_stub.
5666 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5668 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5669 type::has_no_signedness.
5671 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5673 * gdbtypes.h (struct type) <has_no_signedness,
5674 set_has_no_signedness>: New methods.
5675 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5676 call sites to use type::set_has_no_signedness.
5678 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5680 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5683 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5685 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5687 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5688 sites to use type::set_is_unsigned.
5690 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5691 Adam Renquinha <arenquinha@cimeq.qc.ca>
5693 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5694 pointer and stack frame offset when unwinding.
5696 2020-09-13 Pedro Alves <pedro@palves.net>
5698 * NEWS: Document "-break-insert --qualified".
5699 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5701 2020-09-13 Pedro Alves <pedro@palves.net>
5703 * linespec.c (classify_mtype, compare_msyms): Delete.
5704 (search_minsyms_for_name): Remove classification logic. Instead
5705 filter out trampoline symbols if we also found an external
5706 function of the same name.
5708 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5710 * NEWS: Create a new section for the next release branch.
5711 Rename the section of the current branch, now that it has
5714 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5716 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5717 * version.in: Bump version to 11.0.50.DATE-git.
5719 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5721 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5723 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5724 Felix Willgerodt <Felix.Willgerodt@intel.com>
5726 * gdbarch.sh: Added bfloat16 type.
5727 * gdbarch.c: Regenerated.
5728 * gdbarch.h: Regenerated.
5729 * gdbtypes.c (floatformats_bfloat16): New struct.
5730 (gdbtypes_post_init): Add builtin_bfloat16.
5731 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5732 (floatformats_bfloat16): New struct.
5733 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5734 (i386_ymm_type): Add field "v16_bfloat16"
5735 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5736 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5737 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5738 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5739 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5740 * features/i386/64bit-avx512.c: Regenerated.
5741 * features/i386/64bit-sse.xml: Add bfloat16 type.
5742 * features/i386/64bit-sse.c: Regenerated.
5744 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5746 * i386-tdep.c (i386_zmm_type): Fix field names.
5747 (i386_ymm_type): Fix field names.
5749 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5751 * breakpoint.c: Fix typo in the help message of the
5752 "set breakpoint condition-evaluation" command.
5754 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5756 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5757 * (nbsd_nat_target::pid_to_exec_file)
5758 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5759 (nbsd_nat_target::post_startup_inferior)
5760 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5761 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5762 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5763 * (nbsd_thread_lister): Remove.
5765 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5767 * fork-inferior.c (startup_inferior): Avoid double free.
5769 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5771 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5772 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5774 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5776 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5777 * netbsd-nat.c: Include <sys/ptrace.h>.
5778 * (netbsd_nat::enable_proc_events): Add.
5780 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5782 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5783 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5784 (netbsd_nat::for_each_thread): Add.
5785 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5786 "gdbsupport/common-debug.h".
5787 * (netbsd_nat::netbsd_thread_lister)
5788 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5789 (netbsd_nat::for_each_thread): Add.
5791 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5793 * netbsd-nat.h: Include <unistd.h>.
5794 * (netbsd_nat::pid_to_exec_file): Add.
5795 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5796 * (netbsd_nat::pid_to_exec_file) Add.
5798 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5800 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5802 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5804 * netbsd-nat.h: New file.
5805 * netbsd-nat.c: Likewise.
5807 2020-09-09 Tom Tromey <tromey@adacore.com>
5809 * ada-lang.c (remove_extra_symbols): Do not increment when
5812 2020-09-08 Tom Tromey <tromey@adacore.com>
5814 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5816 2020-09-08 Tom Tromey <tromey@adacore.com>
5819 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5820 (gdb_bfd_init_data): New function.
5821 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5823 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5825 * infrun.c (fetch_inferior_event): Use
5826 `switch_to_target_no_thread` to switch the target.
5828 2020-09-06 Tom Tromey <tom@tromey.com>
5830 * symfile.h (dwarf2_free_objfile): Don't declare.
5832 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5834 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5835 to match 16 byte real/complex type generated by Flang compiler.
5837 2020-09-03 Tom de Vries <tdevries@suse.de>
5840 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5841 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5843 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5845 * maint.c (index_digits): New function.
5846 (struct maint_print_section_data): Remove.
5847 (print_bfd_section_info): Remove print_data parameter, add arg
5849 (print_objfile_section_info): Likewise.
5850 (print_bfd_section_info_maybe_relocated): Likewise (plus
5852 (maintenance_info_sections): Adjust calls.
5854 2020-09-02 Tom Tromey <tromey@adacore.com>
5856 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5858 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5860 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5862 * bcache.h (struct bcache) <insert>: Change type of `added` to
5864 * bcache.c (bcache::insert): Likewise.
5865 * gdbtypes.c (check_types_worklist): Adjust.
5866 * psymtab.c (add_psymbol_to_bcache): Adjust.
5868 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5870 * corelow.c (unordered_set): Include.
5871 (class core_target): Add field 'm_core_unavailable_mappings'.
5872 (core_target::build_file_mappings): Print only one warning
5873 per inaccessible file. Add unavailable/broken mappings
5874 to m_core_unavailable_mappings.
5875 (core_target::xfer_partial): Call...
5876 (core_target::xfer_memory_via_mappings): New method.
5878 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5880 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5883 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5885 * dwarf2/read.c (struct field_info): Fix indentation.
5887 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5889 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5890 ordering in comment.
5891 * frame.c (frame_id_eq): Fix indentation.
5893 2020-08-31 Scott Linder <scott@scottlinder.com>
5894 Simon Marchi <simon.marchi@efficios.com>
5896 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5897 inline frame ids in outer frame.
5899 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5901 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5902 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5903 (outer_frame_id): Use FID_STACK_OUTER instead of
5905 (frame_id_p): Don't check for outer_frame_id.
5907 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5909 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5910 regnum/frame in value. Call allocate_value_lazy.
5911 * frame.c (frame_unwind_register_value): Use
5912 val_print_not_saved.
5914 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5916 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5918 2020-08-29 Pedro Alves <pedro@palves.net>
5920 * progspace.c (print_program_space): Use all_inferiors. Switch to
5921 the inferior before calling target_pid_to_str.
5923 2020-08-28 Tom Tromey <tom@tromey.com>
5925 * xcoffread.c (xcoff_end_psymtab): Update comment.
5926 * dbxread.c (dbx_end_psymtab): Update comment.
5928 2020-08-28 Tom de Vries <tdevries@suse.de>
5931 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5933 (create_breakpoint): Same.
5934 (base_breakpoint_decode_location): Same.
5935 (bkpt_create_sals_from_location): Same.
5936 (bkpt_decode_location): Same.
5937 (bkpt_probe_create_sals_from_location): Same.
5938 (bkpt_probe_decode_location): Same.
5939 (tracepoint_create_sals_from_location): Same.
5940 (tracepoint_decode_location): Same.
5941 (tracepoint_probe_decode_location): Same.
5942 (strace_marker_create_sals_from_location): Same.
5943 (strace_marker_decode_location): Same.
5944 (create_sals_from_location_default): Same.
5945 (decode_location_default): Same.
5946 * breakpoint.h (struct breakpoint_ops): Same.
5947 (create_breakpoint): Same.
5948 * linespec.h (decode_line_full): Same.
5949 * linespec.c (decode_line_full): Same. Throw error if
5950 result.size () == 0.
5952 2020-08-27 Pedro Alves <pedro@palves.net>
5955 * breakpoint.c (until_break_fsm) <location_breakpoint,
5956 caller_breakpoint>: Delete fields.
5957 <breakpoints>: New field.
5958 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5959 two individual breakpoints.
5960 (until_break_fsm::should_stop): Loop over breakpoints in the
5962 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5964 (until_break_command): Handle location expanding into multiple
5967 2020-08-27 Pedro Alves <pedro@palves.net>
5970 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5971 bp_until breakpoints user-specified locations. Update intro
5974 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5976 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5977 gdb_bfd_sections): New.
5978 * maint.c (print_bfd_section_info): Change param type to
5979 maint_print_section_data.
5980 (print_objfile_section_info): Likewise.
5981 (print_bfd_section_info_maybe_relocated): Likewise.
5982 (maintenance_info_sections): Use gdb_bfd_sections.
5984 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5986 * MAINTAINERS: Add ARC target and maintainer.
5988 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5990 * configure.tgt: ARC support for GNU/Linux.
5991 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5992 * arc-linux-tdep.c: New file.
5993 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5994 * arc-tdep.c (arc_write_pc): Use it.
5996 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5998 * arc-tdep.c (arc_check_for_hardware_loop): New.
5999 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
6001 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6003 * arc-tdep.h: Include "gdbarch.h".
6005 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6008 (arc_gdbarch_features): New class to stir the selection of target XML.
6009 (arc_create_target_description): Use FEATURES to choose XML target.
6010 (arc_lookup_target_description): Use arc_create_target_description
6011 to create _new_ target descriptions or return the already created
6012 ones if the FEATURES is the same.
6013 * arch/arc.c: Implementation of prototypes described above.
6014 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
6015 (arc_gdbarch_features_init): Initialize the FEATURES struct.
6016 * arc-tdep.c (*_feature_name): Make feature names consistent.
6017 (arc_register_feature): A new struct to hold information about
6018 registers of a particular target/feature.
6019 (arc_check_tdesc_feature): Check if XML provides registers in
6020 compliance with ARC_REGISTER_FEATURE structs.
6021 (arc_update_acc_reg_names): Add aliases for r58 and r59.
6022 (determine_*_reg_feature_set): Which feature name to look for.
6023 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
6024 (mach_type_to_arc_isa): Convert from a set of binutils machine types
6025 to expected ISA enums to be used in arc_gdbarch_features structs.
6026 * features/Makefile (FEATURE_XMLFILES): Add new files.
6027 * gdb/features/arc/v1-aux.c: New file.
6028 * gdb/features/arc/v1-aux.xml: Likewise.
6029 * gdb/features/arc/v1-core.c: Likewise.
6030 * gdb/features/arc/v1-core.xml: Likewise.
6031 * gdb/features/arc/v2-aux.c: Likewise.
6032 * gdb/features/arc/v2-aux.xml: Likewise.
6033 * gdb/features/arc/v2-core.c: Likewise.
6034 * gdb/features/arc/v2-core.xml: Likewise.
6035 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
6037 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
6038 Andrew Burgess <andrew.burgess@embecosm.com>
6041 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
6042 an assert. Remove single element array indexing pattern as the
6043 MULTI_SUBSCRIPT support will handle this case too.
6045 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
6047 * value.h (valprint_check_validity): Move declaration from
6049 * valprint.h (valprint_check_validity): ... to here.
6051 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6053 * debug.h: New file.
6054 * debug.c (debug_prefixed_vprintf): New function.
6055 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6056 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
6058 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6060 * infrun.h (infrun_debug_printf_1): New function declaration.
6061 (infrun_debug_printf): New macro.
6062 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6064 (infrun_debug_printf): New function.
6065 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6066 (handle_jit_event): Likewise.
6068 2020-08-21 Mark Wielaard <mark@klomp.org>
6070 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6072 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
6074 * frame.c (enum class frame_id_status): New.
6075 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6076 (fprintf_frame): Update.
6077 (compute_frame_id): Set frame id status to "computing" on entry.
6078 Set it back to "not_computed" on failure and to "computed" on
6080 (get_frame_id): Assert the frame id is not being computed.
6081 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6082 (create_new_frame): Likewise.
6083 (frame_cleanup_after_sniffer): Update assert.
6085 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6087 * regcache.c (pid_ptid_regcache_map): New type.
6088 (target_ptid_regcache_map): Remove.
6089 (target_pid_ptid_regcache_map): New type.
6090 (regcaches): Change type to target_pid_ptid_regcache_map.
6091 (get_thread_arch_aspace_regcache): Update.
6092 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6094 (regcaches_size): Update.
6095 (regcache_count): Update.
6096 (registers_changed_ptid_target_pid_test): New.
6097 (_initialize_regcache): Register new test.
6099 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6101 * regcache.c (regcache_count): New.
6102 (struct regcache_test_data): New.
6103 (regcache_test_data_up): New.
6104 (populate_regcaches_for_test): New.
6105 (regcaches_test): Remove.
6106 (get_thread_arch_aspace_regcache_test): New.
6107 (registers_changed_ptid_all_test): New.
6108 (registers_changed_ptid_target_test): New.
6109 (registers_changed_ptid_target_ptid_test): New.
6110 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6111 (_initialize_regcache): Register new tests.
6113 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6115 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6116 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6117 gdbarch and aspace parameter. Use current inferior's aspace.
6118 Validate regcache's arch value.
6119 (regcaches_test): Update.
6121 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6123 * regcache.c (regcaches_test): Call registers_changed.
6125 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6127 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6129 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6131 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6132 to find the end of prologue for flang compiled binaries.
6133 * arm-tdep.c (arm_skip_prologue): Likewise.
6134 * i386-tdep.c (i386_skip_prologue): Likewise.
6135 * producer.c (producer_is_llvm): New function.
6136 (producer_parsing_tests): Added new tests for clang/flang.
6137 * producer.h (producer_is_llvm): New declaration.
6139 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
6141 * linux-nat.c (linux_nat_debug_printf): New function.
6142 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6144 2020-08-18 Aaron Merey <amerey@redhat.com>
6146 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6147 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6148 (CLIBS): Add DEBUGINFOD_LIBS.
6150 2020-08-17 Sergei Trofimovich <siarheit@google.com>
6152 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6155 2020-08-17 Tom Tromey <tromey@adacore.com>
6157 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6158 ada_get_decoded_value returns NULL.
6160 2020-08-17 Tom Tromey <tromey@adacore.com>
6162 * python/py-inferior.c (infpy_search_memory): Use
6163 gdb_py_object_from_ulongest.
6164 * python/py-infevents.c (create_inferior_call_event_object)
6165 (create_memory_changed_event_object): Use
6166 gdb_py_object_from_ulongest.
6167 * python/py-linetable.c (ltpy_entry_get_pc): Use
6168 gdb_py_object_from_ulongest.
6170 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6172 * loc.c (class symbol_needs_eval_context): Fix indentation.
6174 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6176 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6179 2020-08-17 Tom de Vries <tdevries@suse.de>
6182 * gdbtypes.c (dump_dynamic_prop): New function.
6183 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6185 2020-08-15 Tom de Vries <tdevries@suse.de>
6188 * stack.c (print_frame_args): Temporarily set the selected
6189 frame to FRAME while printing the frame's arguments.
6191 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6193 PR breakpoints/26385
6194 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6195 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6197 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6199 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6200 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6201 and >= to check return value instead of == -1 and != -1.
6203 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6205 * utils.h (class gdb_argv) <as_array_view>: New method.
6206 * utils.c (gdb_argv_as_array_view_test): New.
6207 (_initialize_utils): Register selftest.
6208 * maint.c (maintenance_selftest): Use the new method.
6210 2020-08-13 Kamil Rytarowski <n54@gmx.com>
6212 * target.h (supports_dumpcore, dumpcore): New
6213 function declarations.
6214 * target.c (supports_dumpcore, dumpcore): New
6216 * target-delegates.c: Rebuild.
6217 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6218 and target_dumpcore ().
6220 2020-08-13 Aaron Merey <amerey@redhat.com>
6222 * debuginfod-support.c: Replace global variables with user_data.
6224 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6226 * maint.c (maintenance_selftest): Split args and pass array_view
6229 2020-08-12 Luis Machado <luis.machado@linaro.org>
6231 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6233 Use %s and pulongest to print the length.
6235 2020-08-12 Pedro Alves <palves@redhat.com>
6237 * NEWS: Move "Multi-target debugging support" item to the
6238 "Changes since GDB 9" section.
6240 2020-08-12 Pedro Alves <palves@redhat.com>
6243 * progspace.c (program_space::remove_objfile): Invalidate the
6246 2020-08-11 Tom de Vries <tdevries@suse.de>
6248 * MAINTAINERS: Mark ms1 as deleted.
6250 2020-08-10 Luis Machado <luis.machado@linaro.org>
6254 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6256 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6257 movz/str/stur/stp skipping behavior.
6259 2020-08-10 Luis Machado <luis.machado@linaro.org>
6261 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6262 struct user_sve_header instead of struct sve_context.
6264 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6266 * read.h (dwarf2_fetch_die_loc_sect_off,
6267 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6268 `void *` parameter with function_view.
6269 * read.c (dwarf2_fetch_die_loc_sect_off,
6270 dwarf2_fetch_die_loc_cu_off): Likewise.
6271 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6272 (per_cu_dwarf_call): Adjust.
6273 (get_frame_address_in_block_wrapper): Remove.
6274 (indirect_synthetic_pointer): Adjust.
6275 (get_ax_pc): Remove.
6276 (dwarf2_compile_expr_to_ax): Adjust.
6278 2020-08-08 Tom de Vries <tdevries@suse.de>
6281 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6283 * regcache.c (get_thread_arch_aspace_regcache): Same.
6285 2020-08-07 Tom Tromey <tromey@adacore.com>
6287 * ravenscar-thread.c
6288 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6290 (ravenscar_thread_target::wait): Check
6291 runtime_initialized.
6292 (ravenscar_thread_target::prepare_to_store)
6293 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6294 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6295 (ravenscar_thread_target::stopped_by_watchpoint)
6296 (ravenscar_thread_target::stopped_data_address)
6297 (ravenscar_thread_target::core_of_thread): Use
6298 scoped_restore_current_thread and
6299 set_base_thread_from_ravenscar_task.
6301 2020-08-07 Tom Tromey <tromey@adacore.com>
6303 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6305 2020-08-07 Tom Tromey <tromey@adacore.com>
6307 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6308 update_inferior_ptid before update_thread_list.
6309 (temporarily_change_regcache_ptid): New class.
6310 (ravenscar_thread_target::fetch_registers)
6311 (ravenscar_thread_target::store_registers)
6312 (ravenscar_thread_target::prepare_to_store): Use base thread when
6313 forwarding operation.
6315 2020-08-07 Tom Tromey <tromey@adacore.com>
6317 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6320 2020-08-07 Tom Tromey <tromey@adacore.com>
6322 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6324 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6326 (ravenscar_thread_target::add_thread): Rename from
6327 ravenscar_add_thread.
6328 (ravenscar_thread_target::update_thread_list): Use a lambda.
6329 (ravenscar_thread_target::xfer_partial): New method.
6331 2020-08-07 Tom Tromey <tromey@adacore.com>
6333 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6335 (iterate_over_live_ada_tasks): Change type of argument.
6336 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6339 2020-08-07 Tom Tromey <tromey@adacore.com>
6341 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6343 (ravenscar_thread_target::extra_thread_info): Remove.
6344 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6345 defer to target beneath for non-Ravenscar threads.
6347 2020-08-07 Tom Tromey <tromey@adacore.com>
6349 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6350 get_base_thread_from_ravenscar_task>: Now methods.
6351 <m_cpu_map>: New member.
6352 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6353 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6354 (ravenscar_thread_target::task_is_currently_active): Update.
6355 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6357 (ravenscar_thread_target::add_active_thread): Put initial thread
6360 2020-08-07 Tom Tromey <tromey@adacore.com>
6362 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6365 2020-08-07 Tom Tromey <tromey@adacore.com>
6367 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6368 runtime_initialized.
6370 2020-08-07 Tom Tromey <tromey@adacore.com>
6372 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6374 (ravenscar_thread_target::add_active_thread): Now public.
6375 (ravenscar_inferior_created): Call add_active_thread after pushing
6378 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6380 * regcache.c (ptid_regcache_map): New type.
6381 (target_ptid_regcache_map): New type.
6382 (regcaches): Change type to target_ptid_regcache_map.
6383 (get_thread_arch_aspace_regcache): Update to regcaches' new
6385 (regcache_thread_ptid_changed): Likewise.
6386 (registers_changed_ptid): Likewise.
6387 (regcaches_size): Likewise.
6388 (regcaches_test): Update.
6389 (regcache_thread_ptid_changed): Update.
6390 * regcache.h (regcache_up): New type.
6391 * gdbsupport/ptid.h (hash_ptid): New struct.
6393 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6395 * observable.h (thread_ptid_changed): Add parameter
6396 `process_stratum_target *`.
6397 * infrun.c (infrun_thread_ptid_changed): Add parameter
6398 `process_stratum_target *` and use it.
6399 (selftests): New namespace.
6400 (infrun_thread_ptid_changed): New function.
6401 (_initialize_infrun): Register selftest.
6402 * regcache.c (regcache_thread_ptid_changed): Add parameter
6403 `process_stratum_target *` and use it.
6404 (regcache_thread_ptid_changed): New function.
6405 (_initialize_regcache): Register selftest.
6406 * thread.c (thread_change_ptid): Pass target to
6407 thread_ptid_changed observable.
6409 2020-08-06 Caroline Tice <cmtice@google.com>
6411 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6412 (struct dwp_sections): Update field comments. Add loclists and
6414 (struct virtual_v2_dwo_sections): Rename struct to
6415 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6416 size & offset fields for loclists and rnglists.
6417 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6418 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6419 skipping dummy type units.
6420 (create_dwp_hash_table): Update the large comment above the function to
6421 discuss Version 5 DWP files as well, with references. Update all the
6422 version checks in the function to check for version 5 as well. Add new
6423 section at the end to create dwp hash table for version 5.
6424 (create_dwp_v2_section): Rename function to
6425 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6426 Add V5 to error message text.
6427 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6428 into calls to create_dwp_v2_or_v5_section.
6429 (create_dwo_unit_in_dwp_v5): New function.
6430 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6431 check for version2; add else clause to handle version 5.
6432 (open_and_init_dwo_file): Add code to check dwarf version & only call
6433 create_debug_types_hash_table (with sections.types) if version is not 5;
6434 else call create_debug_type_hash_table, with sections.info.
6435 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6437 (dwarf2_locate_v5_dwp_sections): New function.
6438 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6439 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6441 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6443 * regcache.h (class regcache): Remove friend
6444 registers_changed_ptid.
6445 <regcache_thread_ptid_changed>: Remove.
6446 <regcaches>: Remove.
6447 * regcache.c (regcache::regcaches): Rename to...
6448 (regcaches): ... this. Make static.
6449 (get_thread_arch_aspace_regcache): Update.
6450 (regcache::regcache_thread_ptid_changed): Rename to...
6451 (regcache_thread_ptid_changed): ... this. Update.
6452 (class regcache_access): Remove.
6453 (regcaches_test): Update.
6454 (_initialize_regcache): Update.
6455 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6458 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6460 * regcache.h (class regcache) <current_regcache>: Rename to...
6461 <regcaches>: ... this. Move doc here.
6462 * regcache.c (regcache::current_regcache) Rename to...
6463 (regcache::regcaches): ... this. Move doc to header.
6464 (get_thread_arch_aspace_regcache): Update.
6465 (regcache::regcache_thread_ptid_changed): Update.
6466 (registers_changed_ptid): Update.
6467 (class regcache_access) <current_regcache_size>: Rename to...
6468 <regcaches_size>: ... this.
6469 (current_regcache_test): Rename to...
6470 (regcaches_test): ... this.
6471 (_initialize_regcache): Update.
6473 2020-08-06 Victor Collod <vcollod@nvidia.com>
6475 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6477 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6479 * corelow.c (core_target::build_file_mappings): Don't output
6480 null pathname in warning.
6482 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6484 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6485 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6486 gdb.dwarf2/dw2-single-line-discriminators.exp,
6487 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6489 2020-08-05 Tom Tromey <tromey@adacore.com>
6492 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6493 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6494 Fix off-by-one and type size errors in ordinary case.
6496 2020-08-05 Tom de Vries <tdevries@suse.de>
6498 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6499 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6501 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6503 * frame.h (frame_id_p): Return bool.
6504 (frame_id_artificial_p): Return bool.
6505 (frame_id_eq): Return bool.
6506 (has_stack_frames): Return bool.
6507 (get_selected_frame): Fix typo in comment.
6508 (get_frame_pc_if_available): Return bool.
6509 (get_frame_address_in_block_if_available): Return bool.
6510 (get_frame_func_if_available): Return bool.
6511 (read_frame_register_unsigned): Return bool.
6512 (get_frame_register_bytes): Return bool.
6513 (safe_frame_unwind_memory): Return bool.
6514 (deprecated_frame_register_read): Return bool.
6515 (frame_unwinder_is): Return bool.
6516 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6518 <this_id::p>: Likewise.
6520 (frame_stash_add): Return bool.
6521 (get_frame_id): Use bool.
6522 (frame_id_build_special) Use bool.
6523 (frame_id_build_unavailable_stack): Use bool.
6524 (frame_id_build): Use bool.
6525 (frame_id_p): Return bool, use true/false instead of 1/0.
6526 (frame_id_artificial_p): Likewise.
6527 (frame_id_eq): Likewise.
6528 (frame_id_inner): Likewise.
6529 (get_frame_func_if_available): Likewise.
6530 (read_frame_register_unsigned): Likewise.
6531 (deprecated_frame_register_read): Likewise.
6532 (get_frame_register_bytes): Likewise.
6533 (has_stack_frames): Likewise.
6534 (inside_main_func): Likewise.
6535 (inside_entry_func): Likewise.
6536 (get_frame_pc_if_available): Likewise.
6537 (get_frame_address_in_block_if_available): Likewise.
6538 (frame_unwinder_is): Likewise.
6539 (safe_frame_unwind_memory): Likewise.
6540 (frame_unwind_arch): Likewise.
6542 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6544 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6545 type to cached_copy_status.
6546 (fprintf_frame): Adjust.
6547 (get_frame_func_if_available): Adjust.
6548 (frame_cleanup_after_sniffer): Adjust.
6550 2020-08-04 Mark Wielaard <mark@klomp.org>
6552 * MAINTAINERS (Write After Approval): Update email address.
6554 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6556 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6557 dynamic_prop::const_val.
6559 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6561 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6564 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6566 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6568 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6570 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6572 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6573 Jose E. Marchesi <jose.marchesi@oracle.com>
6575 * configure.tgt: Add entry for bpf-*-*.
6576 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6577 (ALLDEPFILES): Add bpf-tdep.c.
6578 * bpf-tdep.c: New file.
6579 * MAINTAINERS: Add bpf target and maintainer.
6580 * NEWS: Mention the support for the new target.
6582 2020-08-04 Tom de Vries <tdevries@suse.de>
6585 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6588 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6590 * syscalls/freebsd.xml: Regenerate.
6592 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6594 * syscalls/update-freebsd.sh: Fix usage and year range.
6596 2020-08-03 Tom de Vries <tdevries@suse.de>
6599 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6600 DW_LNE_lo_user/DW_LNE_hi_user range.
6602 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6605 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6608 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6610 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6612 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6614 * breakpoint.c (set_breakpoint_condition): Update the condition
6615 expressions after checking that the input condition string parses
6616 successfully and does not contain junk at the end.
6618 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6620 * breakpoint.c (set_breakpoint_condition): Update the
6621 condition string after parsing the new condition successfully.
6623 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6625 * proc-api.c (_STRUCTURED_PROC): Don't define.
6626 * proc-events.c: Likewise.
6627 * proc-flags.c: Likewise.
6628 * proc-why.c: Likewise.
6629 * procfs.c: Likewise.
6631 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6632 * configure, config.in: Regenerate.
6634 2020-07-30 Tom de Vries <tdevries@suse.de>
6637 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6638 m_red/m_green/m_blue in a union.
6640 2020-07-29 Tom de Vries <tdevries@suse.de>
6643 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6645 2020-07-28 Tom Tromey <tromey@adacore.com>
6648 * symtab.h (find_pc_partial_function_sym): Declare.
6649 * cli/cli-cmds.c (disassemble_command): Use
6650 find_pc_partial_function_sym. Check asm_demangle.
6651 * blockframe.c (cache_pc_function_sym): New global.
6652 (cache_pc_function_name): Remove.
6653 (clear_pc_function_cache): Update.
6654 (find_pc_partial_function_sym): New function, from
6655 find_pc_partial_function.
6656 (find_pc_partial_function): Rewrite using
6657 find_pc_partial_function_sym.
6659 2020-07-28 Tom Tromey <tromey@adacore.com>
6661 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6664 2020-07-28 Tom Tromey <tromey@adacore.com>
6666 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6667 <DW_OP_GNU_variable_value>: Cast to address type.
6669 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6671 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6672 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6673 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6674 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6675 (nbsd_get_siginfo_type): New.
6676 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6677 (_initialize_nbsd_tdep): New.
6679 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6682 * configure: Regenerated.
6684 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6687 * configure: Regenerated.
6689 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6691 * python/py-frame.c: Remove 'user-regs.h' include.
6692 (frapy_read_register): Rewrite to make use of
6693 gdbpy_parse_register_id.
6694 * python/py-registers.c (gdbpy_parse_register_id): New function,
6695 moved here from python/py-unwind.c. Updated the return type, and
6696 also accepts register descriptor objects.
6697 * python/py-unwind.c: Remove 'user-regs.h' include.
6698 (pyuw_parse_register_id): Moved to python/py-registers.c.
6699 (unwind_infopy_add_saved_register): Update to use
6700 gdbpy_parse_register_id.
6701 (pending_framepy_read_register): Likewise.
6702 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6704 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6706 * python/py-registers.c: Add 'user-regs.h' include.
6707 (register_descriptor_iter_find): New function.
6708 (register_descriptor_iterator_object_methods): New static global
6710 (register_descriptor_iterator_object_type): Add pointer to methods
6713 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6715 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6716 for all architectures on FreeBSD 11.3 and later.
6718 2020-07-27 Tom Tromey <tromey@adacore.com>
6720 * gcore.h (load_corefile): Don't declare.
6722 2020-07-27 Tom de Vries <tdevries@suse.de>
6724 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6725 * config.in: Regenerate.
6726 * configure: Regenerate.
6728 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6730 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6731 ws2tcpip.h. When checking whether socklen_t type is defined, use
6732 ws2tcpip.h if it is available and sys/socket.h isn't.
6733 * configure: Regenerate.
6734 * config.in: Regenerate.
6736 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6740 * valops.c (value_ind): Pass address to
6741 readjust_indirect_value_type.
6742 * value.c (readjust_indirect_value_type): Make parameter
6743 non-const, and add extra address parameter. Resolve original type
6745 * value.h (readjust_indirect_value_type): Update function
6746 signature and comment.
6748 2020-07-25 Tom de Vries <tdevries@suse.de>
6751 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6754 2020-07-24 Aaron Merey <amerey@redhat.com>
6756 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6757 * configure: Rebuild.
6759 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6762 * corelow.c (_initialize_corelow): Add period to help text
6763 for "maintenance print core-file-backed-mappings".
6765 2020-07-23 Pedro Alves <pedro@palves.net>
6767 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6768 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6770 * frame.c (frame_cache_generation, get_frame_cache_generation):
6772 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6773 (get_prev_frame_if_no_cycle): On exception, don't touch
6774 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6775 * frame.h (get_frame_cache_generation): Declare.
6777 2020-07-23 Tom de Vries <tdevries@suse.de>
6780 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6781 New default constructor.
6783 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6785 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6786 exclude non-statement entries.
6788 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6790 * NEWS (New commands): Mention new command
6791 "maintenance print core-file-backed-mappings".
6793 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6795 * corelow.c (gdbcmd.h): Include.
6796 (core_target::info_proc_mappings): New method.
6797 (get_current_core_target): New function.
6798 (maintenance_print_core_file_backed_mappings): New function.
6799 (_initialize_corelow): Add core-file-backed-mappings to
6800 "maint print" commands.
6802 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6804 * linux-tdep.c (dump_note_entry_p): New function.
6805 (linux_dump_mapping_p_ftype): New typedef.
6806 (linux_find_memory_regions_full): Add new parameter,
6807 should_dump_mapping_p.
6808 (linux_find_memory_regions): Adjust call to
6809 linux_find_memory_regions_full.
6810 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6811 call to linux_find_memory_regions_full.
6813 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6815 * corelow.c (solist.h, unordered_map): Include.
6816 (class core_target): Add field m_core_file_mappings and
6817 method build_file_mappings.
6818 (core_target::core_target): Call build_file_mappings.
6819 (core_target::~core_target): Free memory associated with
6820 m_core_file_mappings.
6821 (core_target::build_file_mappings): New method.
6822 (core_target::xfer_partial): Use m_core_file_mappings
6823 for memory transfers.
6824 * linux-tdep.c (linux_read_core_file_mappings): New
6826 (linux_core_info_proc_mappings): Rewrite to use
6827 linux_read_core_file_mappings.
6828 (linux_init_abi): Register linux_read_core_file_mappings.
6830 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6832 * arch-utils.c (default_read_core_file_mappings): New function.
6833 * arch-utils.c (default_read_core_file_mappings): Declare.
6834 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6835 * gdbarch.h, gdbarch.c: Regenerate.
6837 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6840 * corelow.c (core_target:xfer_partial): Revise
6841 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6842 case after first checking the stratum beneath the core
6844 (has_all_memory): Return true.
6845 * target.c (raw_memory_xfer_partial): Revise comment
6846 regarding use of has_all_memory.
6848 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6850 * exec.h (section_table_xfer_memory): Revise declaration,
6851 replacing section name parameter with an optional callback
6853 * exec.c (section_table_xfer_memory): Likewise.
6854 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6855 of section_table_xfer_memory.
6857 2020-07-22 Tom Tromey <tromey@adacore.com>
6859 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6860 lookup_symbol_search_name.
6862 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6864 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6865 redundant local variable.
6866 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6867 reference, not pointer, update code accordingly.
6869 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6870 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6872 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6873 * jit.c (jit_breakpoint_re_set_internal): Use the
6874 `skip_jit_symbol_lookup` field.
6876 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6877 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6879 * jit.c (jit_read_descriptor): Define the descriptor address once,
6881 (jit_breakpoint_deleted): Move the declaration of the loop variable
6882 `iter` into the loop header.
6883 (jit_breakpoint_re_set_internal): Move the declaration of the local
6884 variable `objf_data` to the first point of definition.
6885 (jit_event_handler): Move the declaration of local variables
6886 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6887 Rename `objf` to `jited`.
6889 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6891 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6893 * jit.c (get_jiter_objfile_data): Update.
6895 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6896 Simon Marchi <simon.marchi@polymtl.ca>
6898 * jit.c (struct jit_program_space_data): Remove.
6899 (jit_program_space_key): Remove.
6900 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6902 (get_jit_program_space_data): Remove.
6903 (jit_breakpoint_deleted): Iterate on all of the program space's
6905 (jit_inferior_init): Likewise.
6906 (jit_breakpoint_re_set_internal): Likewise. Also change return
6908 (jit_breakpoint_re_set): Pass current_program_space to
6909 jit_breakpoint_re_set_internal.
6911 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6913 * jit.h (struct jiter_objfile_data) <cached_code_address,
6914 jit_breakpoint>: Move to here from ...
6915 * jit.c (jit_program_space_data): ... here.
6916 (jiter_objfile_data::~jiter_objfile_data): Update.
6917 (jit_breakpoint_deleted): Update.
6918 (jit_breakpoint_re_set_internal): Update.
6920 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6922 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6924 (jit_read_descriptor): Remove NULL check.
6925 (jit_event_handler): Add an assertion.
6927 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6929 * jit.h (struct jit_objfile_data): Split into...
6930 (struct jiter_objfile_data): ... this ...
6931 (struct jited_objfile_data): ... and this.
6932 * objfiles.h (struct objfile) <jit_data>: Remove.
6933 <jiter_data, jited_data>: New fields.
6934 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6935 (jiter_objfile_data::~jiter_objfile_data): ... this.
6936 (get_jit_objfile_data): Rename to ...
6937 (get_jiter_objfile_data): ... this.
6938 (add_objfile_entry): Update.
6939 (jit_read_descriptor): Use get_jiter_objfile_data.
6940 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6941 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6942 (jit_inferior_exit_hook): Use objfile's jited_data field.
6944 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6946 * jit.h: Forward-declare `struct minimal_symbol`.
6947 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6948 constructor, destructor, and an objfile* field.
6949 * jit.c (jit_objfile_data): Remove.
6950 (struct jit_objfile_data): Migrate from here to jit.h.
6951 (jit_objfile_data::~jit_objfile_data): New destructor
6952 implementation with code moved from free_objfile_data.
6953 (free_objfile_data): Delete.
6954 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6955 (jit_find_objf_with_entry_addr): Ditto.
6956 (jit_inferior_exit_hook): Ditto.
6957 (_initialize_jit): Remove the call to
6958 register_objfile_data_with_cleanup.
6959 * objfiles.h (struct objfile) <jit_data>: New field.
6961 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6963 * jit.h: Forward-declare `struct objfile`.
6964 (jit_event_handler): Add a second parameter, the JITer objfile.
6965 * jit.c (jit_read_descriptor): Change the signature to take the
6966 JITer objfile as an argument instead of the jit_program_space_data.
6967 (jit_inferior_init): Update the call to jit_read_descriptor.
6968 (jit_event_handler): Use the new JITer objfile argument when calling
6969 jit_read_descriptor.
6970 * breakpoint.c (handle_jit_event): Update the call to
6971 jit_event_handler to pass the JITer objfile.
6973 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6975 * gdbarch.c: Regenerate.
6976 * gdbarch.h: Regenerate.
6977 * gdbarch.sh (handle_segmentation_fault): Remove method.
6978 * infrun.c (handle_segmentation_fault): Remove.
6979 (print_signal_received_reason): Remove call to
6980 handle_segmentation_fault.
6982 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6984 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6985 Rename to sparc64_linux_report_signal_info and add siggnal
6987 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6988 instead of sparc64_linux_handle_segmentation_fault.
6990 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6992 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6993 i386_linux_report_signal_info instead of
6994 i386_linux_handle_segmentation_fault.
6995 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6996 to i386_linux_report_signal_info and add siggnal argument.
6997 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6998 of i386_linux_handle_segmentation_fault.
6999 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
7000 to i386_linux_report_signal_info and add siggnal argument.
7002 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7004 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
7007 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7009 * gdbarch.c: Regenerate.
7010 * gdbarch.h: Regenerate.
7011 * gdbarch.sh (report_signal_info): New method.
7012 * infrun.c (print_signal_received_reason): Invoke gdbarch
7013 report_signal_info hook if present.
7015 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7017 * python/py-registers.c : Add 'unordered_map' include.
7018 (gdbpy_new_reggroup): Renamed to...
7019 (gdbpy_get_reggroup): ...this. Update to only create register
7020 group descriptors when needed.
7021 (gdbpy_reggroup_iter_next): Update.
7023 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7025 * python/py-registers.c (gdbpy_register_object_data): New static
7027 (gdbpy_register_object_data_init): New function.
7028 (gdbpy_new_register_descriptor): Renamed to...
7029 (gdbpy_get_register_descriptor): ...this, and update to reuse
7030 existing register descriptors where possible.
7031 (gdbpy_register_descriptor_iter_next): Update.
7032 (gdbpy_initialize_registers): Register new gdbarch data.
7034 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
7036 * linux-nat.c (stopped_pids): Make static.
7038 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
7041 * gdbtypes.c (ada_discrete_type_low_bound,
7042 ada_discrete_type_high_bound): Handle undefined bounds.
7044 2020-07-21 Kamil Rytarowski <n54@gmx.com>
7046 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
7048 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
7051 2020-07-20 John Baldwin <jhb@FreeBSD.org>
7053 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
7054 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
7055 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
7056 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7057 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7060 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7062 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7063 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7064 which are deprecated in Guile 3.0.
7065 * configure.ac (try_guile_versions): Add "guile-3.0".
7066 * configure (try_guile_versions): Regenerate.
7067 * NEWS: Update entry.
7069 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7070 Doug Evans <dje@google.com>
7073 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7074 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7075 USING_GUILE_BEFORE_2_2.
7076 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7077 Change type to 'scm_t_port_type *'.
7078 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7079 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7080 parameter and honor it. Update callers.
7081 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7082 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7084 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7085 USING_GUILE_BEFORE_2_2.
7086 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7087 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7088 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7089 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7090 and 'SCM_PORT_TYPE'.
7091 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7092 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7093 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7094 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7095 [!USING_GUILE_BEFORE_2_2]: New functions.
7096 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7097 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7098 'gdbscm_memory_port_read'.
7099 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7100 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7101 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7103 (ioscm_init_memory_port): Remove.
7104 (ioscm_init_memory_port_stream): New function
7105 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7107 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7108 Return scm_from_uint (0).
7109 (gdbscm_set_memory_port_read_buffer_size_x)
7110 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7111 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7112 Return scm_from_uint (0).
7113 (gdbscm_set_memory_port_write_buffer_size_x)
7114 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7115 * configure.ac (try_guile_versions): Add "guile-2.2".
7116 * configure: Regenerate.
7119 2020-07-18 Tom Tromey <tom@tromey.com>
7121 * linux-nat.c (linux_multi_process): Remove.
7122 (linux_nat_target::supports_multi_process): Return true.
7124 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7126 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7127 (riscv_lookup_target_description): Return pointer out of
7129 * target-descriptions.c (allocate_target_description): Add
7131 (target_desc_deleter::operator()): Likewise.
7132 * target-descriptions.h (struct target_desc_deleter): Moved to
7134 (target_desc_up): Likewise.
7136 2020-07-17 Tom Tromey <tromey@adacore.com>
7138 * linux-nat.c (linux_nat_target::supports_non_stop)
7139 (linux_nat_target::always_non_stop_p): Use "true".
7140 (linux_nat_target::supports_disable_randomization): Use "true" and
7143 2020-07-16 Caroline Tice <cmtice@google.com>
7145 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7146 (RNGLIST_HEADER_SIZE64): New constant definition.
7147 (struct dwop_section_names): Add rnglists_dwo.
7148 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7149 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7150 (struct dwo_sections): Add rnglists field.
7151 (read_attribut_reprocess): Add tag parameter.
7152 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7153 (cu_debug_rnglists_section): New function (decl & definition).
7154 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7155 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7156 die whose range is being checked; get rnglist section from
7157 cu_debug_rnglists_section, to get from either objfile or dwo file as
7158 appropriate. Add cases for DW_RLE_base_addressx,
7159 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7160 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7161 test inside if-condition and updating complaint message.
7162 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7163 dwarf2_rnglists_process.
7164 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7165 dwarf2_ranges_process.
7166 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7167 need_ranges_base and update comment appropriately. Also pass die tag
7168 to dwarf2_ranges_read.
7169 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7170 need_ranges_base and update comment appropriately. Also pass die tag
7171 to dwarf2_ranges_process.
7172 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7173 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7174 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7175 need_ranges_base and update comment appropriately. Also pass die tag
7176 to read_attribute_reprocess and dwarf2_ranges_read.
7177 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7178 and update function comment appropriately.
7179 (read_loclist_index): Call read_loclists_rnglists_header instead of
7180 read_loclist_header.
7181 (read_rnglist_index): New function.
7182 (read_attribute_reprocess): Add tag parameter. Add code for
7183 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7184 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7186 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7188 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7191 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7193 * arch-utils.c (show_architecture): Update formatting of messages.
7195 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7197 * gdbtypes.h (struct type) <bounds>: Handle array and string
7199 * ada-lang.c (assign_aggregate): Use type::bounds on
7201 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7202 * c-varobj.c (c_number_of_children): Likewise.
7203 (c_describe_child): Likewise.
7204 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7205 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7206 (f_type_print_base): Likewise.
7207 * f-valprint.c (f77_array_offset_tbl): Likewise.
7208 (f77_get_upperbound): Likewise.
7209 (f77_print_array_1): Likewise.
7210 * guile/scm-type.c (gdbscm_type_range): Likewise.
7211 * m2-typeprint.c (m2_array): Likewise.
7212 (m2_is_long_set_of_type): Likewise.
7213 * m2-valprint.c (get_long_set_bounds): Likewise.
7214 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7215 * python/py-type.c (typy_range): Likewise.
7216 * rust-lang.c (rust_internal_print_type): Likewise.
7217 * type-stack.c (type_stack::follow_types): Likewise.
7218 * valarith.c (value_subscripted_rvalue): Likewise.
7219 * valops.c (value_cast): Likewise.
7221 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7223 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7224 callers to use the equivalent accessor methods.
7226 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7228 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7229 (struct type) <bit_stride>: New method.
7230 (TYPE_BIT_STRIDE): Remove.
7231 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7233 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7235 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7236 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7237 callers to use the equivalent accessor methods instead.
7239 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7241 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7242 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7243 callers to use the equivalent accessor methods instead.
7245 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7247 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7248 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7249 to use dynamic_prop::kind.
7251 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7253 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7254 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7255 to get the bound property's kind and check against
7258 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7260 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7261 all callers to use type::range_bounds followed by
7262 dynamic_prop::{low,high}.
7264 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7266 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7267 const_val, set_const_val, baton, set_locexpr, set_loclist,
7268 set_addr_offset, variant_parts, set_variant_parts,
7269 original_type, set_original_type>: New methods.
7270 <kind>: Rename to...
7271 <m_kind>: ... this. Update all users to use the new methods
7273 <data>: Rename to...
7274 <m_data>: ... this. Update all users to use the new methods
7277 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7279 * gdbtypes.c (get_discrete_bounds): Return failure if
7280 the range type's bounds are not both defined and constant
7282 (get_array_bounds): Update comment. Remove undefined bound check.
7284 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7286 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7287 the type::bounds method directly.
7289 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7291 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7292 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7293 are used to set the range type's bounds to use set_bounds.
7295 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7297 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7299 2020-07-10 Pedro Alves <pedro@palves.net>
7301 * gdbthread.h (inferior_ref): Define.
7302 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7303 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7305 (scoped_restore_current_thread::restore):
7306 Adjust to gdb::ref_ptr.
7307 (scoped_restore_current_thread::~scoped_restore_current_thread):
7308 Remove manual decref handling.
7309 (scoped_restore_current_thread::scoped_restore_current_thread):
7311 inferior_ref::new_reference/thread_info_ref::new_reference.
7312 Incref the thread before calling get_frame_id instead of after.
7313 Let TARGET_CLOSE_ERROR propagate.
7315 2020-07-10 Pedro Alves <pedro@palves.net>
7317 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7318 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7319 NOT_AVAILABLE_ERROR.
7320 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7321 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7323 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7324 Pedro Alves <pedro@palves.net>
7327 * infrun.c (threads_are_resumed_pending_p): Delete.
7328 (do_target_wait): Remove threads_are_executing and
7329 threads_are_resumed_pending_p checks from the inferior_matches
7330 lambda. Update comments.
7332 2020-07-10 Pedro Alves <pedro@palves.net>
7335 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7338 2020-07-10 Pedro Alves <pedro@palves.net>
7341 * infrun.c (handle_no_resumed): Handle multiple targets.
7343 2020-07-10 Pedro Alves <pedro@palves.net>
7346 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7349 2020-07-10 Pedro Alves <pedro@palves.net>
7352 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7353 threads, not all threads.
7355 2020-07-10 Pedro Alves <pedro@palves.net>
7358 * remote.c (remote_target::open_1): Pass remote target pointer as
7359 data to create_async_event_handler.
7360 (remote_async_inferior_event_handler): Mark async event handler
7361 before returning if the remote target still has either pending
7362 events or unacknowledged notifications.
7364 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7366 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7368 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7371 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7373 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7376 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7378 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7379 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7380 AT_FREEBSD_PS_STRINGS.
7382 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7384 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7385 of debugfile path on Windows.
7387 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7389 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7392 2020-07-08 Tom Tromey <tromey@adacore.com>
7394 * ada-lang.c (ada_exception_message_1): Use read_memory.
7396 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7399 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7400 special handling for inline frames.
7401 * findvar.c (value_of_register_lazy): Skip inline frames when
7402 creating lazy register values.
7403 * frame.c (frame_id_computed_p): Delete definition.
7404 * frame.h (frame_id_computed_p): Delete declaration.
7406 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7408 * NEWS: Mention additions to Python API.
7409 * python/py-arch.c (archpy_register_groups): New function.
7410 (arch_object_methods): Add 'register_groups' method.
7411 * python/py-registers.c (reggroup_iterator_object): New struct.
7412 (reggroup_object): New struct.
7413 (gdbpy_new_reggroup): New function.
7414 (gdbpy_reggroup_to_string): New function.
7415 (gdbpy_reggroup_name): New function.
7416 (gdbpy_reggroup_iter): New function.
7417 (gdbpy_reggroup_iter_next): New function.
7418 (gdbpy_new_reggroup_iterator): New function
7419 (gdbpy_initialize_registers): Register new types.
7420 (reggroup_iterator_object_type): Define new Python type.
7421 (gdbpy_reggroup_getset): New static global.
7422 (reggroup_object_type): Define new Python type.
7423 * python/python-internal.h
7425 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7427 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7428 * python/py-arch.c (archpy_registers): New function.
7429 (arch_object_methods): Add 'registers' method.
7430 * python/py-registers.c: New file.
7431 * python/python-internal.h
7432 (gdbpy_new_register_descriptor_iterator): Declare.
7433 (gdbpy_initialize_registers): Declare.
7434 * python/python.c (do_start_initialization): Call
7435 gdbpy_initialize_registers.
7436 * NEWS: Mention additions to the Python API.
7438 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7440 * NEWS: Mention new Python API method.
7441 * python/py-unwind.c (pending_framepy_architecture): New function.
7442 (pending_frame_object_methods): Add architecture method.
7444 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7446 * gdbarch.c: Regenerate.
7447 * gdbarch.h: Regenerate.
7448 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7449 (gdbarch_data): Use internal_error for the case where
7450 deprecated_set_gdbarch_data was originally needed.
7451 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7452 and use passed in obstack.
7453 (libunwind_frame_set_descr): Should no longer get back NULL from
7455 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7457 * user-regs.c (user_regs_init): Update parameters, and use passed
7459 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7460 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7462 2020-07-06 Tom de Vries <tdevries@suse.de>
7464 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7465 End-Of-Sequence in lte_is_less_than.
7466 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7467 "gdb: Don't reorder line table entries too much when sorting".
7469 2020-07-06 Tom de Vries <tdevries@suse.de>
7472 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7474 2020-07-05 Tom de Vries <tdevries@suse.de>
7477 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7478 std::uncaught_exceptions instead of deprecated
7479 std::uncaught_exception.
7481 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7483 * macroexp.h (macro_stringify): Return
7484 gdb::unique_xmalloc_ptr<char>.
7485 * macroexp.c (macro_stringify): Likewise.
7486 * macrotab.c (fixup_definition): Update.
7488 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7490 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7491 (lex_one_token): Update.
7492 * macroexp.c (struct macro_buffer) <release>: Return
7493 gdb::unique_xmalloc_ptr<char>.
7494 (macro_stringify): Update.
7495 (macro_expand): Update.
7496 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7497 * macroexp.h (macro_expand_next): Likewise.
7499 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7501 * macroexp.h (macro_lookup_ftype): Remove.
7502 (macro_expand, macro_expand_once, macro_expand_next): Remove
7503 lookup function parameters, add scope parameter.
7504 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7505 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7506 * macroscope.h (standard_macro_lookup): Change parameter type
7508 * macroscope.c (standard_macro_lookup): Likewise.
7509 * c-exp.y (lex_one_token): Update.
7510 * macrocmd.c (macro_expand_command): Likewise.
7511 (macro_expand_once_command): Likewise.
7513 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7515 * inf-loop.c (inferior_event_handler): Remove client_data param.
7516 * inf-loop.h (inferior_event_handler): Likewise.
7517 * infcmd.c (step_1): Adjust.
7518 * infrun.c (proceed): Adjust.
7519 (fetch_inferior_event): Remove client_data param.
7520 (infrun_async_inferior_event_handler): Adjust.
7521 * infrun.h (fetch_inferior_event): Remove `void *` param.
7522 * linux-nat.c (handle_target_event): Adjust.
7523 * record-btrace.c (record_btrace_handle_async_inferior_event):
7525 * record-full.c (record_full_async_inferior_event_handler):
7527 * remote.c (remote_async_inferior_event_handler): Adjust.
7529 2020-07-01 Tom Tromey <tom@tromey.com>
7531 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7532 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7534 2020-07-01 Tom Tromey <tom@tromey.com>
7536 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7538 (tui_win_info::make_window): Merge with
7539 tui_gen_win_info::make_window.
7540 (tui_win_info::make_visible): Move from tui_gen_win_info.
7541 * tui/tui-win.c (tui_win_info::max_width): Move from
7543 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7545 <window_factory>: Likewise.
7546 * tui/tui-layout.c (tui_win_info::resize): Move from
7548 (make_standard_window): Change return type.
7549 (get_locator_window, tui_get_window_by_name): Likewise.
7550 (tui_layout_window::apply): Remove a cast.
7551 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7552 (struct tui_win_info): Merge with tui_gen_win_info.
7553 (struct tui_gen_win_info): Remove.
7555 2020-07-01 Tom Tromey <tom@tromey.com>
7557 * tui/tui-stack.h (struct tui_locator_window): Derive from
7559 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7560 <can_box>: New method.
7562 2020-07-01 Tom Tromey <tom@tromey.com>
7564 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7566 2020-07-01 Tom Tromey <tom@tromey.com>
7568 * tui/tui-regs.c (tui_data_window::display_registers_from)
7569 (tui_data_window::display_registers_from)
7570 (tui_data_window::first_data_item_displayed)
7571 (tui_data_window::delete_data_content_windows): Update.
7572 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7574 (tui_data_window::check_register_values): Update.
7575 (tui_data_item_window::rerender): Add parameters. Update.
7576 (tui_data_item_window::refresh_window): Remove.
7577 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7579 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7581 <refresh_window, max_height, min_height>: Remove.
7582 <rerender>: Add parameters.
7583 <x, y, visible>: New members.
7584 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7585 <m_item_width>: New member.
7587 2020-07-01 Tom Tromey <tom@tromey.com>
7589 * tui/tui-regs.c (tui_data_window::show_register_group)
7590 (tui_data_window::check_register_values): Update.
7591 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7594 2020-07-01 Tom Tromey <tom@tromey.com>
7596 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7599 2020-07-01 Tom Tromey <tom@tromey.com>
7601 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7602 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7604 2020-07-01 Tom Tromey <tom@tromey.com>
7606 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7607 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7608 (struct tui_line_or_address): Move from tui-data.h.
7609 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7610 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7611 (tui_cmd_window, tui_source_window_base, tui_source_window)
7612 (tui_disasm_window): Don't declare.
7613 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7615 (SINGLE_KEY): Move to tui-stack.c.
7617 2020-07-01 Tom Tromey <tom@tromey.com>
7619 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7621 * tui/tui-regs.c (class tab_expansion_file): New.
7622 (tab_expansion_file::write): New method.
7623 (tui_register_format): Change return type. Use
7625 (tui_get_register, tui_data_window::display_registers_from)
7626 (tui_data_item_window::rerender): Update.
7627 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7628 * tui/tui-io.c (tui_expand_tabs): Remove.
7630 2020-07-01 Tom Tromey <tom@tromey.com>
7632 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7634 2020-07-01 Fangrui Song <maskray@google.com>
7636 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7638 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7640 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7641 forms for DW_AT_associated and DW_AT_allocated attributes,
7642 which is already checked in function attr_to_dynamic_prop.
7644 2020-06-30 Tom Tromey <tromey@adacore.com>
7646 * dwarf2/read.c (quirk_rust_enum): Correctly call
7647 alloc_rust_variant for default-less enum.
7649 2020-06-30 Tom Tromey <tromey@adacore.com>
7652 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7655 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7657 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7658 * gdbarch.h: Re-generate.
7660 2020-06-28 Tom Tromey <tom@tromey.com>
7662 * command.h (cmd_types): Remove.
7663 (cmd_type): Don't declare.
7664 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7666 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7667 * cli/cli-decode.c (cmd_type): Remove.
7669 2020-06-27 Pedro Alves <palves@redhat.com>
7671 * fork-child.c (prefork_hook): Adjust.
7672 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7674 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7675 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7676 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7677 Remove declarations.
7678 (struct inferior) <set_tty, tty>: New methods.
7679 (struct inferior) <terminal>: Rename to ...
7680 (struct inferior) <m_terminal>: ... this and make private.
7681 * main.c (captured_main_1): Adjust.
7682 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7683 (mi_cmd_inferior_tty_show): Adjust.
7684 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7685 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7687 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7689 * configure.ac: Add --enable-libctf: handle --disable-static
7691 * acinclude.m4: sinclude ../config/enable.m4.
7692 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7693 (LIBCTF): Substitute in.
7694 (CTF_DEPS): New, likewise.
7695 (CLIBS): libctf needs symbols from libbfd: move earlier.
7696 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7698 * ctfread.c: Surround in ENABLE_LIBCTF.
7699 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7700 * configure: Regenerate.
7701 * config.in: Likewise.
7703 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7705 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7707 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7709 * inferior.h (struct inferior) <terminal>: Change type to
7710 gdb::unique_xmalloc_ptr<char>.
7711 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7712 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7713 field, adjust to unique pointer.
7714 (get_inferior_io_terminal): Adjust to unique pointer.
7716 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7718 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7719 registers, not just the known core set of registers.
7721 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7723 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7724 fflags, frm, and fcsr registers.
7725 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7727 (riscv_tdesc_unknown_reg): New function.
7728 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7729 tdesc_use_registers.
7730 * riscv-tdep.h (struct gdbarch_tdep): Add
7731 unknown_csrs_first_regnum, unknown_csrs_count,
7732 duplicate_fflags_regnum, duplicate_frm_regnum, and
7733 duplicate_fcsr_regnum fields.
7735 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7737 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7738 callback, use the callback (when not null) to help number unknown
7740 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7741 (tdesc_use_registers): Add extra parameter to declaration.
7743 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7745 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7747 (class riscv_pending_register_alias): Likewise.
7748 (riscv_register_feature::register_info): Change 'required_p' field
7749 to 'required', and change its type. Add 'check' member function.
7750 (riscv_register_feature::register_info::check): Define new member
7752 (riscv_xreg_feature): Change initialisation of 'required' field.
7753 (riscv_freg_feature): Likewise.
7754 (riscv_virtual_feature): Likewise.
7755 (riscv_csr_feature): Likewise.
7756 (riscv_check_tdesc_feature): Take extra parameter, the csr
7757 tdesc_feature, rewrite the function to use the new
7758 riscv_register_feature::register_info::check function.
7759 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7761 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7763 * features/Makefile: Remove all references to the deleted files
7765 * features/riscv/32bit-csr.c: Deleted.
7766 * features/riscv/32bit-csr.xml: Deleted.
7767 * features/riscv/64bit-csr.c: Deleted.
7768 * features/riscv/64bit-csr.xml: Deleted.
7769 * features/riscv/rebuild-csr-xml.sh: Deleted.
7771 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7773 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7774 whitespace error for declaration of names member variable.
7775 (struct riscv_register_feature): Add new prefer_first_name member
7776 variable, and fix whitespace error in declaration of registers.
7777 (riscv_xreg_feature): Initialize prefer_first_name field.
7778 (riscv_freg_feature): Likewise.
7779 (riscv_virtual_feature): Likewise.
7780 (riscv_csr_feature): Likewise.
7781 (riscv_register_name): Expand on comments. Remove register name
7782 modifications for CSR and virtual registers.
7784 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7786 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7789 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7791 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7793 (class riscv_pending_register_alias): New class.
7794 (riscv_check_tdesc_feature): Take vector of pending aliases and
7795 populate it as appropriate.
7796 (riscv_setup_register_aliases): Delete.
7797 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7798 to riscv_check_tdesc_feature in all cases. Use the vector to
7799 create the register aliases.
7801 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7803 * sol2-tdep.c (sol2_static_transform_name): Remove.
7804 (sol2_init_abi): Don't register it.
7805 * gdbarch.sh (static_transform_name): Remove.
7806 * gdbarch.c, gdbarch.h: Regenerate.
7808 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7809 gdbarch_static_transform_name.
7810 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7811 * stabsread.c (define_symbol) <'X'>: Remove.
7812 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7815 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7816 <'S'>: Remove call to gdbarch_static_transform_name.
7818 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7820 * procfs.c (procfs_pre_trace): New function.
7821 (procfs_target::create_inferior): Pass it to fork_inferior.
7823 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7825 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7826 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7827 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7828 sol2-tdep.o, sparc-sol2-tdep.o.
7829 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7830 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7831 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7832 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7834 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7836 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7837 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7839 Remove calls to set_gdbarch_skip_solib_resolver,
7840 set_gdbarch_core_pid_to_str.
7841 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7842 (i386_sol2_static_transform_name): Remove.
7843 (i386_sol2_init_abi): Call sol2_init_abi.
7844 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7845 set_gdbarch_static_transform_name,
7846 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7847 Use sol2_sigtramp_p.
7848 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7849 (sol2_sigtramp_p): New function.
7850 (sol2_static_transform_name): New function.
7851 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7852 (sol2_init_abi): New function.
7853 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7854 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7855 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7856 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7857 (sparc_sol2_static_transform_name): Remove.
7858 (sparc32_sol2_init_abi): Call sol2_init_abi.
7859 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7860 set_gdbarch_static_transform_name,
7861 set_gdbarch_skip_solib_resolver,
7862 set_gdbarch_core_pid_to_str.
7863 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7864 (sparc_sol2_static_transform_name): Remove
7865 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7866 call sol2_sigtramp_p.
7867 (sparc64_sol2_init_abi): Call sol2_init_abi.
7868 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7869 set_gdbarch_static_transform_name,
7870 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7872 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7874 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7875 * exec.c (validate_exec_file): If from_tty, set both
7876 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7877 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7878 and from_tty, unconditionally ask a confirmation.
7880 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7882 * target-descriptions.c (tdesc_architecture_name): Protect against
7883 NULL pointer dereference.
7884 (maint_print_xml_tdesc_cmd): New function.
7885 (_initialize_target_descriptions): Register new 'maint print
7886 xml-tdesc' command and give it the filename completer.
7887 * NEWS: Mention new 'maint print xml-tdesc' command.
7889 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7891 * target-descriptions.c (class tdesc_compatible_info): New class.
7892 (struct target_desc): Change type of compatible vector.
7893 (tdesc_compatible_p): Update for change in type of
7894 target_desc::compatible.
7895 (tdesc_compatible_info_list): New function.
7896 (tdesc_compatible_info_arch_name): New function.
7897 (tdesc_add_compatible): Update for change in type of
7898 target_desc::compatible.
7899 (print_c_tdesc::visit_pre): Likewise.
7901 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7903 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7904 whitespace to underscore.
7905 (maint_print_c_tdesc_cmd): Use fake filename for target
7906 descriptions that came from the target.
7907 (_initialize_target_descriptions): Add filename command completion
7908 for 'maint print c-tdesc'.
7910 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7912 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7915 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7917 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7919 (dwarf2_find_location_expression): Likewise.
7920 (call_site_parameter_matches): Likewise.
7921 (dwarf2_compile_expr_to_ax): Likewise.
7922 (disassemble_dwarf_expression): Likewise.
7923 (loclist_describe_location): Likewise.
7925 2020-06-23 Pedro Alves <palves@redhat.com>
7927 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7928 progspace-and-thread.h. Include scoped-mock-context.h instead.
7929 (register_to_value_test): Use scoped_mock_context.
7930 * regcache.c: Include "scoped-mock-context.h".
7931 (cooked_read_test): Don't error out if a target is already pushed.
7932 Use scoped_mock_context. Adjust.
7933 * scoped-mock-context.h: New file.
7935 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7937 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7939 (ada_language::is_string_type_p): New member function.
7940 * c-lang.c (c_language_data): Delete la_is_string_type_p
7942 (cplus_language_data): Likewise.
7943 (asm_language_data): Likewise.
7944 (minimal_language_data): Likewise.
7945 * d-lang.c (d_language_data): Likewise.
7946 * f-lang.c (f_is_string_type_p): Delete function, implementation
7947 moved to f_language::is_string_type_p.
7948 (f_language_data): Delete la_is_string_type_p initializer.
7949 (f_language::is_string_type_p): New member function,
7950 implementation from f_is_string_type_p.
7951 * go-lang.c (go_is_string_type_p): Delete function, implementation
7952 moved to go_language::is_string_type_p.
7953 (go_language_data): Delete la_is_string_type_p initializer.
7954 (go_language::is_string_type_p): New member function,
7955 implementation from go_is_string_type_p.
7956 * language.c (language_defn::is_string_type_p): Define new member
7958 (default_is_string_type_p): Make static, add comment copied from
7960 (unknown_language_data): Delete la_is_string_type_p initializer.
7961 (unknown_language::is_string_type_p): New member function.
7962 (auto_language_data): Delete la_is_string_type_p initializer.
7963 (auto_language::is_string_type_p): New member function.
7964 * language.h (language_data): Delete la_is_string_type_p field.
7965 (language_defn::is_string_type_p): Declare new function.
7966 (default_is_string_type_p): Delete desclaration, move comment to
7968 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7969 moved to m2_language::is_string_type_p.
7970 (m2_language_data): Delete la_is_string_type_p initializer.
7971 (m2_language::is_string_type_p): New member function,
7972 implementation from m2_is_string_type_p.
7973 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7975 * opencl-lang.c (opencl_language_data): Likewise.
7976 * p-lang.c (pascal_is_string_type_p): Delete function,
7977 implementation moved to pascal_language::is_string_type_p.
7978 (pascal_language_data): Delete la_is_string_type_p initializer.
7979 (pascal_language::is_string_type_p): New member function,
7980 implementation from pascal_is_string_type_p.
7981 * rust-lang.c (rust_is_string_type_p): Delete function,
7982 implementation moved to rust_language::is_string_type_p.
7983 (rust_language_data): Delete la_is_string_type_p initializer.
7984 (rust_language::is_string_type_p): New member function,
7985 implementation from rust_is_string_type_p.
7986 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7989 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7991 * ada-lang.c (ada_language_data): Delete la_print_typedef
7993 (ada_language::print_typedef): New member function.
7994 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7995 (cplus_language_data): Likewise.
7996 (asm_language_data): Likewise.
7997 (minimal_language_data): Likewise.
7998 * d-lang.c (d_language_data): Likewise.
7999 * f-lang.c (f_language_data): Likewise.
8000 (f_language::print_typedef): New member function.
8001 * go-lang.c (go_language_data): Delete la_print_typedef
8003 * language.c (language_defn::print_typedef): Define member
8005 (unknown_language_data): Delete la_print_typedef initializer.
8006 (unknown_language::print_typedef): New member function.
8007 (auto_language_data): Delete la_print_typedef initializer.
8008 (auto_language::print_typedef): New member function.
8009 * language.h (language_data): Delete la_print_typedef field.
8010 (language_defn::print_typedef): Declare new member function.
8011 (LA_PRINT_TYPEDEF): Update call to print_typedef.
8012 (default_print_typedef): Delete declaration.
8013 * m2-lang.c (m2_language_data): Delete la_print_typedef
8015 (m2_language::print_typedef): New member function.
8016 * objc-lang.c (objc_language_data): Delete la_print_typedef
8018 * opencl-lang.c (opencl_language_data): Likewise.
8019 * p-lang.c (pascal_language_data): Likewise.
8020 (pascal_language::print_typedef): New member function.
8021 * rust-lang.c (rust_print_typedef): Delete function,
8022 implementation moved to rust_language::print_typedef.
8023 (rust_language): Delete la_print_typedef initializer.
8024 (rust_language::print_typedef): New member function,
8025 implementation from rust_print_typedef.
8026 * typeprint.c (default_print_typedef): Delete.
8028 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8030 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
8031 (ada_language::printstr): New member function.
8032 * c-lang.c (c_language_data): Delete la_printstr initializer.
8033 (cplus_language_data): Likewise.
8034 (asm_language_data): Likewise.
8035 (minimal_language_data): Likewise.
8036 * d-lang.c (d_language_data): Likewise.
8037 * f-lang.c (f_printstr): Rename to f_language::printstr.
8038 (f_language_data): Delete la_printstr initializer.
8039 (f_language::printstr): New member function, implementation from
8041 * go-lang.c (go_language_data): Delete la_printstr initializer.
8042 * language.c (language_defn::printstr): Define new member
8044 (unk_lang_printstr): Delete.
8045 (unknown_language_data): Delete la_printstr initializer.
8046 (unknown_language::printstr): New member function.
8047 (auto_language_data): Delete la_printstr initializer.
8048 (auto_language::printstr): New member function.
8049 * language.h (language_data): Delete la_printstr field.
8050 (language_defn::printstr): Declare new member function.
8051 (LA_PRINT_STRING): Update call to printstr.
8052 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
8053 (m2_language_data): Delete la_printstr initializer.
8054 (m2_language::printstr): New member function, implementation from
8056 * objc-lang.c (objc_language_data): Delete la_printstr
8058 * opencl-lang.c (opencl_language_data): Likewise.
8059 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8060 (pascal_language_data): Delete la_printstr initializer.
8061 (pascal_language::printstr): New member function, implementation
8062 from pascal_printstr.
8063 * p-lang.h (pascal_printstr): Delete declaration.
8064 * rust-lang.c (rust_printstr): Update header comment.
8065 (rust_language_data): Delete la_printstr initializer.
8066 (rust_language::printstr): New member function.
8068 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8070 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8071 (ada_language::printchar): New member function.
8072 * c-lang.c (c_language_data): Delete la_printchar initializer.
8073 (cplus_language_data): Likewise.
8074 (asm_language_data): Likewise.
8075 (minimal_language_data): Likewise.
8076 * d-lang.c (d_language_data): Likewise.
8077 * f-lang.c (f_printchar): Rename to f_language::printchar.
8078 (f_language_data): Delete la_printchar initializer.
8079 (f_language::printchar): New member function, implementation from
8081 * go-lang.c (go_language_data): Delete la_printchar initializer.
8082 * language.c (unk_lang_printchar): Delete.
8083 (language_defn::printchar): Define new member function.
8084 (unknown_language_data): Delete la_printchar initializer.
8085 (unknown_language::printchar): New member function.
8086 (auto_language_data): Delete la_printchar initializer.
8087 (auto_language::printchar): New member function.
8088 * language.h (language_data): Delete la_printchar field.
8089 (language_defn::printchar): Declare new member function.
8090 (LA_PRINT_CHAR): Update call to printchar.
8091 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8092 (m2_language::printchar): New member function.
8093 * objc-lang.c (objc_language_data): Delete la_printchar
8095 * opencl-lang.c (opencl_language_data): Likewise.
8096 * p-lang.c (pascal_language_data): Delete la_printchar
8098 (pascal_language::printchar): New member function.
8099 * rust-lang.c (rust_printchar): Rename to
8100 rust_language::printchar.
8101 (rust_language_data): Delete la_printchar initializer.
8102 (rust_language::printchar): New member function, implementation
8103 from rust_printchar.
8105 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8107 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8108 (ada_language_data): Delete la_emitchar initializer.
8109 (ada_language::emitchar): New member function, implementation from
8111 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8112 (cplus_language_data): Likewise.
8113 (asm_language_data): Likewise.
8114 (minimal_language_data): Likewise.
8115 * d-lang.c (d_language_data): Likewise.
8116 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8117 (f_language_data): Delete la_emitchar initializer.
8118 (f_language::emitchar): New member function, implementation from
8120 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8121 * language.c (unk_lang_emit_char): Delete.
8122 (language_defn::emitchar): New member function definition.
8123 (unknown_language_data): Delete la_emitchar initializer.
8124 (unknown_language::emitchar): New member function.
8125 (auto_language_data): Delete la_emitchar initializer.
8126 (auto_language::emitchar): New member function.
8127 * language.h (language_data): Delete la_emitchar field.
8128 (language_defn::emitchar): New member field declaration.
8129 (LA_EMIT_CHAR): Update call to emitchar.
8130 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8131 (m2_language_data): Delete la_emitchar initializer.
8132 (m2_language::emitchar): New member function, implementation from
8134 * objc-lang.c (objc_language_data): Delete la_emitchar
8136 * opencl-lang.c (opencl_language_data): Likewise.
8137 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8138 (pascal_language_data): Delete la_emitchar initializer.
8139 (pascal_language::emitchar): New member function, implementation
8140 from pascal_emit_char.
8141 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8142 (rust_language_data): Delete la_emitchar initializer.
8143 (rust_language::emitchar): New member function, implementation
8146 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8148 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8149 (ada_language_data): Delete la_post_parser initializer.
8150 (ada_language::post_parser): New member function.
8151 * c-lang.c (c_language_data): Delete la_post_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 * f-lang.c (f_language_data): Likewise.
8157 * go-lang.c (go_language_data): Likewise.
8158 * language.c (unknown_language_data): Likewise.
8159 (auto_language_data): Likewise.
8160 * language.h (language_data): Delete la_post_parser field.
8161 (language_defn::post_parser): New member function.
8162 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8163 * objc-lang.c (objc_language_data): Likewise.
8164 * opencl-lang.c (opencl_language_data): Likewise.
8165 * p-lang.c (pascal_language_data): Likewise.
8166 * parse.c (parse_exp_in_context): Update call to post_parser.
8167 (null_post_parser): Delete definition.
8168 * parser-defs.h (null_post_parser): Delete declaration.
8169 * rust-lang.c (rust_language_data): Delete la_post_parser
8172 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8174 * ada-lang.c (parse): Rename to ada_language::parser.
8175 (ada_language_data): Delete la_parser initializer.
8176 (ada_language::parser): New member function, implementation from
8178 * c-lang.c (c_language_data): Delete la_parser initializer.
8179 (cplus_language_data): Likewise.
8180 (asm_language_data): Likewise.
8181 (minimal_language_data): Likewise.
8182 * d-lang.c (d_language_data): Likewise.
8183 (d_language::parser): New member function.
8184 * f-lang.c (f_language_data): Delete la_parser initializer.
8185 (f_language::parser): New member function.
8186 * go-lang.c (go_language_data): Delete la_parser initializer.
8187 (go_language::parser): New member function.
8188 * language.c (unk_lang_parser): Delete.
8189 (language_defn::parser): Define new member function.
8190 (unknown_language_data): Delete la_parser initializer.
8191 (unknown_language::parser): New member function.
8192 (auto_language_data): Delete la_parser initializer.
8193 (auto_language::parser): New member function.
8194 * language.h (language_data): Delete la_parser field.
8195 (language_defn::parser): Declare new member function.
8196 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8197 (m2_language::parser): New member function.
8198 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8199 * opencl-lang.c (opencl_language_data): Likewise.
8200 * p-lang.c (pascal_language_data): Likewise.
8201 (pascal_language::parser): New member function.
8202 * parse.c (parse_exp_in_context): Update call to parser.
8203 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8204 (rust_language::parser): New member function.
8206 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8208 * top.c (print_gdb_configuration): Print --with-python-libdir
8209 configuration value.
8211 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8213 * NEWS: Mention change to the alias command.
8215 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8217 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8218 (alias_command_completer)
8219 (make_alias_options_def_group): New functions.
8220 (alias_opts, alias_option_defs): New struct and array.
8221 (alias_usage_error): Update usage.
8222 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8223 Use option framework.
8224 (_initialize_cli_cmds): Update alias command help.
8225 Update aliases command help.
8227 Add NULL for new default_args lookup_cmd argument.
8228 (valid_command_p): Rename to validate_aliased_command.
8229 Add NULL for new default_args lookup_cmd argument. Verify that the
8230 aliased_command has no default args.
8231 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8232 (lookup_cmd_1, lookup_cmd): New argument default_args.
8234 Add NULL for new default_args lookup_cmd argument.
8235 (print_help_for_command): Show default args under the layout
8236 alias some_alias = some_aliased_cmd some_alias_default_arg.
8237 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8238 xfree default_args in destructor.
8239 * cli/cli-script.c (process_next_line, do_define_command):
8240 Add NULL for new default_args lookup_cmd argument.
8241 * command.h: Declare new default_args argument in lookup_cmd
8243 * completer.c (complete_line_internal_1):
8244 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8245 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8246 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8248 * infcmd.c (_initialize_infcmd): Likewise.
8249 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8250 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8251 * python/py-param.c (add_setshow_generic): Likewise.
8252 * remote.c (_initialize_remote): Likewise.
8253 * top.c (execute_command): Prepend default_args if command has some.
8255 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8256 * tracepoint.c (validate_actionline, encode_actions_1):
8257 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8259 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8261 * jit.c (jit_read_descriptor): Use bool as the return type.
8262 (jit_breakpoint_re_set_internal): Use bool as the return type.
8263 Invert the return value logic; return true if the jit breakpoint
8264 has been successfully initialized.
8265 (jit_inferior_init): Update the call to
8266 jit_breakpoint_re_set_internal.
8268 2020-06-22 Pedro Alves <palves@redhat.com>
8271 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8272 Use the current inferior instead. Don't return
8273 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8275 * sol-thread.c (sol_thread_target::wait): Don't reference
8277 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8278 (sol_update_thread_list_callback): Use the current inferior's pid
8279 instead of inferior_ptid.
8281 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8283 * procfs.c: Cleanup many comments.
8285 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8286 (AFTER_WATCHFLAG): Replace by value.
8288 (MAIN_PROC_NAME_FORMAT): Inline ...
8289 (create_procinfo): ... here.
8291 (procfs_debug_inferior): Remove SYS_exec handling.
8292 (syscall_is_exec): Likewise.
8293 (procfs_set_exec_trap): Likewise.
8295 (syscall_is_lwp_exit): Inline in callers.
8296 (syscall_is_exit): Likewise.
8297 (syscall_is_exec): Likewise.
8298 (syscall_is_lwp_create): Likewise.
8300 (invalidate_cache): Remove #if 0 code.
8302 (make_signal_thread_runnable): Remove.
8303 (procfs_target::resume): Remove #if 0 code.
8305 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8308 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8310 (procfs_target::create_inferior): ... here.
8312 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8314 * exec.c (validate_exec_file): Ensure the build-id is up to
8315 date by calling reopen_exec_file (that checks file timestamp
8316 to decide to re-read the file).
8318 2020-06-18 Pedro Alves <palves@redhat.com>
8321 * gdbthread.h (delete_thread, delete_thread_silent)
8322 (find_thread_ptid): Update comments.
8323 * thread.c (current_thread_): New global.
8324 (is_current_thread): Move higher, and reimplement.
8325 (inferior_thread): Reimplement.
8326 (set_thread_exited): Use bool. Add assertions.
8327 (add_thread_silent): Simplify thread-reuse handling by always
8328 calling delete_thread.
8329 (delete_thread): Remove intro comment.
8330 (find_thread_ptid): Skip exited threads.
8331 (switch_to_thread_no_regs): Write to current_thread_.
8332 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8333 INFERIOR_PTID. Clear current_thread_.
8335 2020-06-18 Pedro Alves <palves@redhat.com>
8337 * aix-thread.c (pd_update): Use switch_to_thread.
8339 2020-06-18 Pedro Alves <palves@redhat.com>
8341 * ravenscar-thread.c (ravenscar_thread_target): Update.
8342 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8343 (ravenscar_thread_target::add_active_thread): ... this. Don't
8344 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8345 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8347 2020-06-18 Pedro Alves <palves@redhat.com>
8349 * nat/windows-nat.c (current_windows_thread): Remove.
8350 * nat/windows-nat.h (current_windows_thread): Remove.
8351 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8353 (display_selectors): Adjust to fetch the current
8354 windows_thread_info based on inferior_ptid.
8355 (fake_create_process): No longer write to current_windows_thread.
8356 (windows_nat_target::get_windows_debug_event):
8357 Don't set inferior_ptid or current_windows_thread.
8358 (windows_nat_target::wait): Adjust to not rely on
8359 current_windows_thread.
8360 (do_initial_windows_stuff): Now a method of windows_nat_target.
8361 Switch to the last_ptid thread.
8362 (windows_nat_target::attach): Adjust.
8363 (windows_nat_target::detach): Use switch_to_no_thread instead of
8364 writing to inferior_ptid directly.
8365 (windows_nat_target::create_inferior): Adjust.
8367 2020-06-18 Pedro Alves <palves@redhat.com>
8369 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8371 2020-06-18 Pedro Alves <palves@redhat.com>
8373 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8374 after creating it, instead of writing to inferior_ptid. Don't
8375 write to inferior_ptid.
8377 2020-06-18 Pedro Alves <palves@redhat.com>
8379 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8381 2020-06-18 Pedro Alves <palves@redhat.com>
8383 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8384 it, instead of writing to inferior_ptid.
8386 2020-06-18 Pedro Alves <palves@redhat.com>
8388 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8391 2020-06-18 Pedro Alves <palves@redhat.com>
8393 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8394 instead of writing to inferior_ptid directly.
8396 2020-06-18 Pedro Alves <palves@redhat.com>
8398 * corelow.c (core_target::close): Use switch_to_no_thread instead
8399 of writing to inferior_ptid directly.
8400 (add_to_thread_list, core_target_open): Use switch_to_thread
8401 instead of writing to inferior_ptid directly.
8403 2020-06-18 Pedro Alves <palves@redhat.com>
8405 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8407 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8409 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8410 inferior_ptid directly.
8411 (darwin_nat_target::init_thread_list): Switch to thread, instead
8412 of writing to inferior_ptid.
8413 (darwin_nat_target::attach): Don't write to inferior_ptid.
8414 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8416 2020-06-18 Pedro Alves <palves@redhat.com>
8418 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8420 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8421 Instead use switch_to_thread.
8422 (gnu_nat_target::detach): Use switch_to_no_thread
8423 instead of writing to inferior_ptid directly. Used passed-in
8424 inferior instead of looking up the inferior by pid.
8426 2020-06-18 Pedro Alves <palves@redhat.com>
8428 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8431 2020-06-18 Pedro Alves <palves@redhat.com>
8433 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8435 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8437 (nto_procfs_target::detach): Avoid referencing
8438 inferior_ptid. Use switch_to_no_thread instead of writing to
8439 inferior_ptid directly.
8440 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8441 instead of writing to inferior_ptid directly.
8442 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8445 2020-06-18 Pedro Alves <palves@redhat.com>
8447 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8448 after creating it, instead of writing to inferior_ptid.
8449 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8450 to inferior_ptid directly.
8451 (gdbsim_target::wait): Don't write to inferior_ptid.
8453 2020-06-18 Pedro Alves <palves@redhat.com>
8455 * remote.c (remote_target::remote_notice_new_inferior): Use
8456 switch_to_thread instead of writing to inferior_ptid directly.
8457 (remote_target::add_current_inferior_and_thread): Use
8458 switch_to_no_thread instead of writing to inferior_ptid directly.
8459 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8460 and switch_to_thread instead of using set_current_inferior or
8461 writing to inferior_ptid directly.
8463 2020-06-18 Pedro Alves <palves@redhat.com>
8465 * tracectf.c (ctf_target_open): Switch to added thread instead of
8466 writing to inferior_ptid directly.
8467 (ctf_target::close): Use switch_to_no_thread instead of writing to
8468 inferior_ptid directly.
8470 2020-06-18 Pedro Alves <palves@redhat.com>
8472 * tracefile-tfile.c (tfile_target_open): Don't write to
8473 inferior_ptid directly, instead switch to added thread.
8474 (tfile_target::close): Use switch_to_no_thread instead of writing
8475 to inferior_ptid directly.
8477 2020-06-18 Pedro Alves <palves@redhat.com>
8479 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8480 (procfs_target::detach): Use switch_to_no_thread
8481 instead of writing to inferior_ptid directly.
8482 (do_attach): Change return type to void. Switch to the added
8484 (procfs_target::create_inferior): Switch to the added thread.
8485 (procfs_do_thread_registers): Don't write to inferior_ptid.
8487 2020-06-18 Pedro Alves <palves@redhat.com>
8489 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8490 of writing to inferior_ptid.
8491 (scoped_restore_exited_inferior): Delete.
8492 (handle_vfork_child_exec_or_exit): Simplify using
8493 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8494 instead of writing to inferior_ptid.
8495 (THREAD_STOPPED_BY): Delete.
8496 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8497 (thread_stopped_by_hw_breakpoint): Delete.
8498 (save_waitstatus): Use
8499 scoped_restore_current_thread+switch_to_thread, and call
8500 target_stopped_by_watchpoint instead of
8501 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8502 instead of thread_stopped_by_sw_breakpoint, and
8503 target_stopped_by_hw_breakpoint instead of
8504 thread_stopped_by_hw_breakpoint.
8505 (handle_inferior_event)
8506 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8507 inferior_ptid directly, nor
8508 set_current_inferior/set_current_program_space. Use
8509 switch_to_thread / switch_to_inferior_no_thread instead.
8511 2020-06-18 Pedro Alves <palves@redhat.com>
8513 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8514 instead of writing to inferior_ptid.
8516 2020-06-18 Pedro Alves <palves@redhat.com>
8518 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8520 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8521 to the added thread.
8522 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8523 instead of writing to inferior_ptid.
8525 2020-06-18 Pedro Alves <palves@redhat.com>
8527 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8528 (register_to_value_test): Mock a program_space too. Heap-allocate
8529 the address space. Don't write to inferior_ptid. Use
8530 switch_to_thread instead.
8532 2020-06-18 Pedro Alves <palves@redhat.com>
8534 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8536 (find_signalled_thread()): New, factored out from
8537 linux_make_corefile_notes and adjusted to handle exited threads.
8538 (linux_make_corefile_notes): Adjust to use the new
8539 find_signalled_thread.
8541 2020-06-18 Pedro Alves <palves@redhat.com>
8543 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8544 of saving/restoring inferior_ptid.
8546 2020-06-17 Tom Tromey <tom@tromey.com>
8548 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8549 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8551 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8553 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8555 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8558 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8560 * regformats/reg-arm.dat: Remove.
8561 * regformats/reg-bfin.dat: Remove.
8562 * regformats/reg-cris.dat: Remove.
8563 * regformats/reg-crisv32.dat: Remove.
8564 * regformats/reg-m32r.dat: Remove.
8565 * regformats/reg-tilegx.dat: Remove.
8566 * regformats/reg-tilegx32.dat: Remove.
8568 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8570 * features/Makefile (WHICH): Remove arm files.
8571 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8572 * regformats/arm/arm-with-neon.dat: Remove.
8573 * regformats/arm/arm-with-vfpv2.dat: Remove.
8574 * regformats/arm/arm-with-vfpv3.dat: Remove.
8576 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8578 * features/Makefile (XMLTOC): Remove rx.xml.
8580 2020-06-17 Pedro Alves <palves@redhat.com>
8582 * gdbthread.h (thread_control_state) <trap_expected> Update
8585 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8587 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8588 ada_language::lookup_symbol_nonlocal.
8589 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8590 (ada_language::lookup_symbol_nonlocal): New member function,
8591 implementation from ada_lookup_symbol_nonlocal.
8592 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8594 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8596 (cplus_language::lookup_symbol_nonlocal): New member function.
8597 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8598 (minimal_language_data) Likewise.
8599 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8600 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8602 (d_language::lookup_symbol_nonlocal): New member function.
8603 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8605 (f_language::lookup_symbol_nonlocal): New member function.
8606 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8608 * language.c (unknown_language_data): Likewise.
8609 (auto_language_data): Likewise.
8610 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8612 (language_defn::lookup_symbol_nonlocal): New member function.
8613 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8615 * objc-lang.c (objc_language_data): Likewise.
8616 * opencl-lang.c (opencl_language_data): Likewise.
8617 * p-lang.c (pascal_language_data): Likewise.
8618 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8619 rust_language::lookup_symbol_nonlocal.
8620 (rust_language_data): Delete la_lookup_symbol_nonlocal
8622 (rust_language::lookup_symbol_nonlocal): New member function,
8623 implementation from rust_lookup_symbol_nonlocal.
8624 * symtab.c (lookup_symbol_aux): Update call to
8625 lookup_symbol_nonlocal.
8626 (basic_lookup_symbol_nonlocal): Rename to...
8627 (language_defn::lookup_symbol_nonlocal): ...this, and update
8628 header comment. Remove language_defn parameter, and replace with
8630 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8632 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8634 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8636 (ada_language::value_print_inner): New member function.
8637 * c-lang.c (c_language_data): Delete la_value_print_inner
8639 (cplus_language_data): Likewise.
8640 (asm_language_data): Likewise.
8641 (minimal_language_data): Likewise.
8642 * d-lang.c (d_language_data): Likewise.
8643 (d_language::value_print_inner): New member function.
8644 * f-lang.c (f_language_data): Delete la_value_print_inner
8646 (f_language::value_print_inner): New member function.
8647 * f-lang.h (f_value_print_innner): Rename to...
8648 (f_value_print_inner): ...this (note spelling of 'inner').
8649 * f-valprint.c (f_value_print_innner): Rename to...
8650 (f_value_print_inner): ...this (note spelling of 'inner').
8651 * go-lang.c (go_language_data): Delete la_value_print_inner
8653 (go_language::value_print_inner): New member function.
8654 * language.c (language_defn::value_print_inner): Define new member
8656 (unk_lang_value_print_inner): Delete.
8657 (unknown_language_data): Delete la_value_print_inner initializer.
8658 (unknown_language::value_print_inner): New member function.
8659 (auto_language_data): Delete la_value_print_inner initializer.
8660 (auto_language::value_print_inner): New member function.
8661 * language.h (language_data): Delete la_value_print_inner field.
8662 (language_defn::value_print_inner): Delcare new member function.
8663 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8665 (m2_language::value_print_inner): New member function.
8666 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8668 * opencl-lang.c (opencl_language_data): Likewise.
8669 * p-lang.c (pascal_language_data): Likewise.
8670 (pascal_language::value_print_inner): New member function.
8671 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8673 (rust_language::value_print_inner): New member function.
8674 * valprint.c (do_val_print): Update call to value_print_inner.
8676 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8678 * ada-lang.c (ada_language_data): Delete la_value_print
8680 (ada_language::value_print): New member function.
8681 * c-lang.c (c_language_data): Delete la_value_print initializer.
8682 (cplus_language_data): Likewise.
8683 (asm_language_data): Likewise.
8684 (minimal_language_data): Likewise.
8685 * d-lang.c (d_language_data): Likewise.
8686 * f-lang.c (f_language_data): Likewise.
8687 * go-lang.c (go_language_data): Likewise.
8688 * language.c (unk_lang_value_print): Delete.
8689 (language_defn::value_print): Define new member function.
8690 (unknown_language_data): Delete la_value_print initializer.
8691 (unknown_language::value_print): New member function.
8692 (auto_language_data): Delete la_value_print initializer.
8693 (auto_language::value_print): New member function.
8694 * language.h (language_data): Delete la_value_print field.
8695 (language_defn::value_print): Declare new member function.
8696 (LA_VALUE_PRINT): Update call to value_print.
8697 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8698 * objc-lang.c (objc_language_data): Likewise.
8699 * opencl-lang.c (opencl_language_data): Likewise.
8700 * p-lang.c (pascal_language_data): Likewise.
8701 (pascal_language::value_print): New member function.
8702 * rust-lang.c (rust_language_data): Delete la_value_print
8705 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8707 * ada-lang.c (ada_watch_location_expression): Rename to
8708 ada_language::watch_location_expression.
8709 (ada_language_data): Delete la_watch_location_expression
8711 (ada_language::watch_location_expression): New member function,
8712 implementation from ada_watch_location_expression.
8713 * breakpoint.c (watch_command_1): Update call to
8714 watch_location_expression.
8715 * c-lang.c (c_watch_location_expression): Rename to
8716 language_defn::watch_location_expression.
8717 (c_language_data): Delete la_watch_location_expression
8719 (cplus_language_data): Likewise.
8720 (asm_language_data): Likewise.
8721 (minimal_language_data): Likewise.
8722 * c-lang.h (c_watch_location_expression): Delete declaration.
8723 * d-lang.c (d_language_data): Delete la_watch_location_expression
8725 * f-lang.c (f_language_data): Likewise.
8726 * go-lang.c (go_language_data): Likewise.
8727 * language.c (language_defn::watch_location_expression): Member
8728 function implementation from c_watch_location_expression.
8729 (unknown_language_data): Delete la_watch_location_expression
8731 (auto_language_data): Likewise.
8732 * language.h (language_data): Delete la_watch_location_expression
8734 (language_defn::watch_location_expression): Declare new member
8736 * m2-lang.c (m2_language_data): Delete
8737 la_watch_location_expression initializer.
8738 * objc-lang.c (objc_language_data): Likewise.
8739 * opencl-lang.c (opencl_language_data): Likewise.
8740 * p-lang.c (pascal_language_data): Likewise.
8741 * rust-lang.c (rust_watch_location_expression): Rename to
8742 rust_language::watch_location_expression.
8743 (rust_language_data): Delete la_watch_location_expression
8745 (rust_language::watch_location_expression): New member function,
8746 implementation from rust_watch_location_expression.
8748 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8750 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8751 ada_language::collect_symbol_completion_matches.
8752 (ada_language_data): Delete la_collect_symbol_completion_matches
8754 (ada_language::collect_symbol_completion_matches): New member
8755 function, implementation from
8756 ada_collect_symbol_completion_matches.
8757 * c-lang.c (c_language_data): Delete
8758 la_collect_symbol_completion_matches initializer.
8759 (cplus_language_data): Likewise.
8760 (asm_language_data): Likewise.
8761 (minimal_language_data): Likewise.
8762 * d-lang.c (d_language_data): Likewise.
8763 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8764 f_language::collect_symbol_completion_matches.
8765 (f_language_data): Delete la_collect_symbol_completion_matches
8767 (f_language::collect_symbol_completion_matches) New member
8768 function, implementation from f_collect_symbol_completion_matches.
8769 * go-lang.c (go_language_data): Delete
8770 la_collect_symbol_completion_matches initializer.
8771 * language.c (unknown_language_data): Likewise.
8772 (auto_language_data): Likewise.
8773 * language.h (language_data): Delete
8774 la_collect_symbol_completion_matches field.
8775 (language_defn::collect_symbol_completion_matches): New member
8777 * m2-lang.c (m2_language_data): Delete
8778 la_collect_symbol_completion_matches initializer.
8779 * objc-lang.c (objc_language_data): Likewise.
8780 * opencl-lang.c (opencl_language_data): Likewise.
8781 * p-lang.c (pascal_language_data): Likewise.
8782 * rust-lang.c (rust_language_data): Likewise.
8783 * symtab.c (default_collect_symbol_completion_matches): Delete.
8784 (collect_symbol_completion_matches): Update call to
8785 collect_symbol_completion_matches.
8786 (collect_symbol_completion_matches_type): Likewise.
8787 * symtab.h (default_collect_symbol_completion_matches): Delete
8790 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8792 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8793 (ada_language_data): Delete la_word_break_characters initializer.
8794 (ada_language::word_break_characters): New member function.
8795 * c-lang.c (c_language_data): Delete la_word_break_characters
8797 (cplus_language_data): Likewise.
8798 (asm_language_data): Likewise.
8799 (minimal_language_data): Likewise.
8800 * completer.c: Update global comment.
8801 (advance_to_expression_complete_word_point): Update call to
8802 word_break_characters.
8803 (complete_files_symbols): Likewise.
8804 (complete_line_internal_1): Likewise.
8805 (default_completer_handle_brkchars): Likewise.
8806 (skip_quoted_chars): Likewise.
8807 * d-lang.c (d_language_data): Delete la_word_break_characters
8809 * f-lang.c (f_word_break_characters): Delete.
8810 (f_language_data): Delete la_word_break_characters initializer.
8811 (f_language::word_break_characters): New member function.
8812 * go-lang.c (go_language_data): Delete la_word_break_characters
8814 * language.c (unknown_language_data): Likewise.
8815 (auto_language_data): Likewise.
8816 * language.h (default_word_break_characters): Move declaration to
8817 earlier in the file.
8818 (language_data): Delete la_word_break_characters field.
8819 (language_defn::word_break_characters): New member function.
8820 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8822 * objc-lang.c (objc_language_data): Likewise.
8823 * opencl-lang.c (opencl_language_data): Likewise.
8824 * p-lang.c (pascal_language_data): Likewise.
8825 * rust-lang.c (rust_language_data): Likewise.
8827 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8829 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8830 (ada_language_data): Delete la_get_symbol_name_matcher
8832 (language_defn::get_symbol_name_matcher_inner): New member
8834 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8836 (cplus_language_data): Likewise.
8837 (cplus_language::get_symbol_name_matcher_inner): New member
8839 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8840 (minimal_language_data): Likewise.
8841 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8842 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8844 * dictionary.c (iter_match_first_hashed): Update call to
8845 get_symbol_name_matcher.
8846 (iter_match_next_hashed): Likewise.
8847 (iter_match_next_linear): Likewise.
8848 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8849 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8851 (f_language::get_symbol_name_matcher_inner): New member function.
8852 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8854 * language.c (default_symbol_name_matcher): Update header comment,
8856 (language_defn::get_symbol_name_matcher): New definition.
8857 (language_defn::get_symbol_name_matcher_inner): Likewise.
8858 (get_symbol_name_matcher): Delete.
8859 (unknown_language_data): Delete la_get_symbol_name_matcher
8861 (auto_language_data): Likewise.
8862 * language.h (language_data): Delete la_get_symbol_name_matcher
8864 (language_defn::get_symbol_name_matcher): New member function.
8865 (language_defn::get_symbol_name_matcher_inner): Likewise.
8866 (default_symbol_name_matcher): Delete declaration.
8867 * linespec.c (find_methods): Update call to
8868 get_symbol_name_matcher.
8869 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8871 * minsyms.c (lookup_minimal_symbol): Update call to
8872 get_symbol_name_matcher.
8873 (iterate_over_minimal_symbols): Likewise.
8874 * objc-lang.c (objc_language_data): Delete
8875 la_get_symbol_name_matcher initializer.
8876 * opencl-lang.c (opencl_language_data): Likewise.
8877 * p-lang.c (pascal_language_data): Likewise.
8878 * psymtab.c (psymbol_name_matches): Update call to
8879 get_symbol_name_matcher.
8880 * rust-lang.c (rust_language_data): Delete
8881 la_get_symbol_name_matcher initializer.
8882 * symtab.c (symbol_matches_search_name): Update call to
8883 get_symbol_name_matcher.
8884 (compare_symbol_name): Likewise.
8886 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8888 * ada-lang.c (ada_language_data): Delete la_compute_program
8890 * c-lang.c (c_language_data): Likewise.
8891 (c_language::compute_program): New member function.
8892 (cplus_language_data): Delete la_compute_program initializer.
8893 (cplus_language::compute_program): New member function.
8894 (asm_language_data): Delete la_compute_program initializer.
8895 (minimal_language_data): Likewise.
8896 * c-lang.h (c_compute_program): Update comment.
8897 (cplus_compute_program): Likewise.
8898 * compile/compile-c-support.c (c_compute_program): Likewise.
8899 (cplus_compute_program): Likewise.
8900 * compile/compile.c (compile_to_object): Update call to
8902 * d-lang.c (d_language_data): Delete la_compute_program
8904 * f-lang.c (f_language_data): Likewise.
8905 * go-lang.c (go_language_data): Likewise.
8906 * language.c (unknown_language_data): Likewise.
8907 (auto_language_data): Likewise.
8908 * language.h (language_data): Delete la_compute_program field.
8909 (language_defn::compute_program): New member function.
8910 * m2-lang.c (m2_language_data): Delete la_compute_program
8912 * objc-lang.c (objc_language_data): Likewise.
8913 * opencl-lang.c (opencl_language_data): Likewise.
8914 * p-lang.c (pascal_language_data): Likewise.
8915 * rust-lang.c (rust_language_data): Likewise.
8917 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8919 * ada-lang.c (ada_language_data) Delete
8920 la_class_name_from_physname initializer.
8921 * c-lang.c (c_language_data): Likewise.
8922 (cplus_language_data): Likewise.
8923 (cplus_language::class_name_from_physname): New member function.
8924 (asm_language_data): Delete la_class_name_from_physname
8926 (minimal_language_data): Likewise.
8927 * d-lang.c (d_language_data): Likewise.
8928 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8929 method on language_defn class.
8930 (guess_full_die_structure_name): Likewise.
8931 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8933 * go-lang.c (go_language_data): Likewise.
8934 * language.c (language_class_name_from_physname): Delete.
8935 (unk_lang_class_name): Delete.
8936 (unknown_language_data): Delete la_class_name_from_physname
8938 (auto_language_data): Likewise.
8939 * language.h (language_data): Delete la_class_name_from_physname
8941 (language_defn::class_name_from_physname): New function.
8942 (language_class_name_from_physname): Delete declaration.
8943 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8945 * objc-lang.c (objc_language_data): Likewise.
8946 * opencl-lang.c (opencl_language_data): Likewise.
8947 * p-lang.c (pascal_language_data): Likewise.
8948 * rust-lang.c (rust_language_data): Likewise.
8950 2020-06-16 Tom Tromey <tom@tromey.com>
8952 * tui/tui-data.h (STATUS_NAME): New macro.
8953 * tui/tui-layout.c (tui_remove_some_windows)
8954 (initialize_known_windows, tui_register_window)
8955 (tui_layout_split::remove_windows, initialize_layouts)
8956 (tui_new_layout_command): Don't use hard-coded window names.
8958 2020-06-16 Tom Tromey <tom@tromey.com>
8961 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8962 tui_initialize_readline. Only run once. Call rl_initialize.
8963 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8964 tui_initialize_readline.
8965 * tui/tui-io.c (tui_setup_io): Call
8966 tui_ensure_readline_initialized.
8967 * tui/tui-interp.c (tui_interp::init): Update.
8969 2020-06-16 Tom Tromey <tom@tromey.com>
8971 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8972 Also preserve the status window.
8974 2020-06-16 Tom Tromey <tom@tromey.com>
8976 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8977 where m_window==nullptr.
8979 2020-06-15 Tom Tromey <tromey@adacore.com>
8981 * windows-nat.c (windows_nat::handle_output_debug_string):
8983 (windows_nat::handle_ms_vc_exception): Update.
8984 * target.h (target_read_string): Change API.
8985 * target.c (target_read_string): Change API.
8986 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8988 * solib-frv.c (frv_current_sos): Update.
8989 * solib-dsbt.c (dsbt_current_sos): Update.
8990 * solib-darwin.c (darwin_current_sos): Update.
8991 * linux-thread-db.c (inferior_has_bug): Update.
8992 * expprint.c (print_subexp_standard): Update.
8993 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8994 (ada_exception_message_1): Update.
8996 2020-06-15 Tom Tromey <tromey@adacore.com>
8998 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
9000 2020-06-15 Tom Tromey <tromey@adacore.com>
9002 * valprint.c (read_string): Update comment.
9003 * target.c (MIN): Remove.
9004 (target_read_string): Rewrite.
9006 2020-06-15 Tom Tromey <tromey@adacore.com>
9008 * corefile.c (read_memory_string): Remove.
9009 * ada-valprint.c (ada_value_print_ptr): Update.
9010 * ada-lang.h (ada_tag_name): Change return type.
9011 * ada-lang.c (type_from_tag): Update.
9012 (ada_tag_name_from_tsd): Change return type. Use
9014 (ada_tag_name): Likewise.
9015 * gdbcore.h (read_memory_string): Don't declare.
9017 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
9019 * symtab.c (rbreak_command): Ignore Windows drive colon.
9021 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
9023 * NEWS: Mention removed GDBserver host support.
9025 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
9027 * features/riscv/rebuild-csr-xml.sh: Updated.
9029 2020-06-11 Tom Tromey <tom@tromey.com>
9032 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
9034 2020-06-09 Jonny Grant <jg@jguk.org>
9035 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
9037 * main.c (captured_main_1): Don't print new line after help.
9038 (print_gdb_help): add mailing list and IRC channel information
9039 to --help. Add new lines between items in the footer. Remove
9040 quotes around bug url.
9042 2020-06-11 Keith Seitz <keiths@redhat.com>
9045 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
9046 Resolve typedefs for type length calculations.
9048 2020-06-10 Tom de Vries <tdevries@suse.de>
9051 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
9052 (write_psymbols): Enable .gdb_index for ada.
9053 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
9056 2020-06-10 Tom de Vries <tdevries@suse.de>
9058 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9059 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9060 namei" instead of "const char *name" argument.
9061 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9062 dw2_symtab_iter_init.
9064 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9066 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9067 to use type::field and field::type instead.
9069 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9071 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9072 to use field::type instead.
9074 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9076 * gdbtypes.h (struct field) <type, set_type>: New methods.
9077 Rename `type` field to...
9078 <m_type>: ... this. Change references throughout to use type or
9080 (FIELD_TYPE): Use field::type. Change call sites that modify
9081 the field's type to use field::set_type instead.
9083 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9085 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9086 to use type::index_type instead.
9088 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9090 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9092 (TYPE_INDEX_TYPE): Use type::index_type.
9093 * gdbtypes.c (create_array_type_with_stride): Likewise.
9095 2020-06-07 Tom Tromey <tom@tromey.com>
9097 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9099 (generic_value_print): Update.
9101 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9103 Revert commit 982a38f60b0.
9104 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9106 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9108 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9109 avoid use after free.
9111 2020-06-05 Tom de Vries <tdevries@suse.de>
9115 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
9117 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9119 (dwarf2_read_debug_names): Likewise.
9120 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9121 object when re-using a per_bfd object with an index.
9123 2020-06-03 Tom de Vries <tdevries@suse.de>
9126 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9128 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9131 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9133 * ada-lang.c (ada_language_data): Delete skip_trampoline
9135 * c-lang.c (c_language_data): Likewise.
9136 (cplus_language_data): Likewise.
9137 (cplus_language::skip_trampoline): New member function.
9138 (asm_language_data): Delete skip_trampoline initializer.
9139 (minimal_language_data): Likewise.
9140 * d-lang.c (d_language_data): Likewise.
9141 * f-lang.c (f_language_data): Likewise.
9142 * go-lang.c (go_language_data): Likewise.
9143 * language.c (unk_lang_trampoline): Delete function.
9144 (skip_language_trampoline): Update.
9145 (unknown_language_data): Delete skip_trampoline initializer.
9146 (auto_language_data): Likewise.
9147 * language.h (language_data): Delete skip_trampoline field.
9148 (language_defn::skip_trampoline): New function.
9149 * m2-lang.c (m2_language_data): Delete skip_trampoline
9151 * objc-lang.c (objc_skip_trampoline): Delete function, move
9152 implementation to objc_language::skip_trampoline.
9153 (objc_language_data): Delete skip_trampoline initializer.
9154 (objc_language::skip_trampoline): New member function with
9155 implementation from objc_skip_trampoline.
9156 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9158 * p-lang.c (pascal_language_data): Likewise.
9159 * rust-lang.c (rust_language_data): Likewise.
9161 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9163 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9164 (ada_language::demangle): New member function.
9165 * c-lang.c (c_language_data): Delete la_demangle initializer.
9166 (cplus_language_data): Delete la_demangle initializer.
9167 (cplus_language::demangle): New member function.
9168 (asm_language_data): Delete la_demangle initializer.
9169 (minimal_language_data): Delete la_demangle initializer.
9170 * d-lang.c (d_language_data): Delete la_demangle initializer.
9171 (d_language::demangle): New member function.
9172 * f-lang.c (f_language_data): Delete la_demangle initializer.
9173 (f_language::demangle): New member function.
9174 * go-lang.c (go_language_data): Delete la_demangle initializer.
9175 (go_language::demangle): New member function.
9176 * language.c (language_demangle): Update.
9177 (unk_lang_demangle): Delete.
9178 (unknown_language_data): Delete la_demangle initializer.
9179 (unknown_language::demangle): New member function.
9180 (auto_language_data): Delete la_demangle initializer.
9181 (auto_language::demangle): New member function.
9182 * language.h (language_data): Delete la_demangle field.
9183 (language_defn::demangle): New function.
9184 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9185 * objc-lang.c (objc_language_data): Delete la_demangle
9187 (objc_language::demangle): New member function.
9188 * opencl-lang.c (opencl_language_data): Delete la_demangle
9190 * p-lang.c (pascal_language_data): Likewise.
9191 * rust-lang.c (rust_language_data): Likewise.
9192 (rust_language::demangle): New member function.
9194 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9196 * ada-lang.c (ada_language_data): Delete la_print_type
9198 (ada_language::print_type): New member function.
9199 * c-lang.c (c_language_data): Delete la_print_type initializer.
9200 (c_language::print_type): New member function.
9201 (cplus_language_data): Delete la_print_type initializer.
9202 (cplus_language::print_type): New member function.
9203 (asm_language_data): Delete la_print_type initializer.
9204 (asm_language::print_type): New member function.
9205 (minimal_language_data): Delete la_print_type initializer.
9206 (minimal_language::print_type): New member function.
9207 * d-lang.c (d_language_data): Delete la_print_type initializer.
9208 (d_language::print_type): New member function.
9209 * f-lang.c (f_language_data): Delete la_print_type initializer.
9210 (f_language::print_type): New member function.
9211 * go-lang.c (go_language_data): Delete la_print_type initializer.
9212 (go_language::print_type): New member function.
9213 * language.c (unk_lang_print_type): Delete.
9214 (unknown_language_data): Delete la_print_type initializer.
9215 (unknown_language::print_type): New member function.
9216 (auto_language_data): Delete la_print_type initializer.
9217 (auto_language::print_type): New member function.
9218 * language.h (language_data): Delete la_print_type field.
9219 (language_defn::print_type): New function.
9220 (LA_PRINT_TYPE): Update.
9221 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9222 (m2_language::print_type): New member function.
9223 * objc-lang.c (objc_language_data): Delete la_print_type
9225 (objc_language::print_type): New member function.
9226 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9227 to opencl_language::print_type.
9228 (opencl_language_data): Delete la_print_type initializer.
9229 (opencl_language::print_type): New member function, implementation
9230 from opencl_print_type.
9231 * p-lang.c (pascal_language_data): Delete la_print_type
9233 (pascal_language::print_type): New member function.
9234 * rust-lang.c (rust_print_type): Delete, implementation moved to
9235 rust_language::print_type.
9236 (rust_language_data): Delete la_print_type initializer.
9237 (rust_language::print_type): New member function, implementation
9238 from rust_print_type.
9240 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9242 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9243 implementation moves to...
9244 (ada_language::sniff_from_mangled_name): ...here. Update return
9246 (ada_language_data): Delete la_sniff_from_mangled_name
9248 * c-lang.c (c_language_data): Likewise.
9249 (cplus_language_data): Likewise.
9250 (cplus_language::sniff_from_mangled_name): New member function,
9251 implementation taken from gdb_sniff_from_mangled_name.
9252 (asm_language_data): Delete la_sniff_from_mangled_name
9254 (minimal_language_data): Likewise.
9255 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9256 implementation moves to cplus_language::sniff_from_mangled_name.
9257 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9258 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9260 (d_language::sniff_from_mangled_name): ...here.
9261 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9262 * f-lang.c (f_language_data): Likewise.
9263 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9265 (go_language::sniff_from_mangled_name): ...here.
9266 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9267 * language.c (language_sniff_from_mangled_name): Delete.
9268 (unknown_language_data): Delete la_sniff_from_mangled_name
9270 (auto_language_data): Likewise.
9271 * language.h (language_data): Delete la_sniff_from_mangled_name
9273 (language_defn::sniff_from_mangled_name): New function.
9274 (language_sniff_from_mangled_name): Delete declaration.
9275 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9277 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9278 implementation moves to...
9279 (objc_language::sniff_from_mangled_name): ...here.
9280 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9281 * opencl-lang.c (opencl_language_data): Likewise.
9282 * p-lang.c (pascal_language_data): Likewise.
9283 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9284 implementation moves to...
9285 (rust_language::sniff_from_mangled_name): ...here.
9286 (rust_language_data): Delete la_sniff_from_mangled_name
9288 * symtab.c (symbol_find_demangled_name): Call
9289 sniff_from_mangled_name member function.
9291 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9293 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9295 * c-lang.c (c_language_data): Likewise.
9296 (cplus_language_data): Likewise.
9297 (cplus_language::search_name_hash): New member function.
9298 (asm_language_data): Delete la_search_name_hash initializer.
9299 (minimal_language_data): Likewise.
9300 * d-lang.c (d_language_data): Likewise.
9301 * dictionary.c (default_search_name_hash): Rename to...
9302 (language_defn::search_name_hash): ...this.
9303 * f-lang.c (f_language_data): Likewise.
9304 (f_language::search_name_hash): New member function.
9305 * go-lang.c (go_language_data): Delete la_search_name_hash
9307 * language.c (unknown_language_data): Likewise.
9308 (auto_language_data): Likewise.
9309 * language.h (struct language_data): Delete la_search_name_hash
9311 (language_defn::search_name_hash): Declare new member function.
9312 (default_search_name_hash): Delete declaration.
9313 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9315 * objc-lang.c (objc_language_data): Likewise.
9316 * opencl-lang.c (opencl_language_data): Likewise.
9317 * p-lang.c (pascal_language_data): Likewise.
9318 * rust-lang.c (rust_language_data): Likewise.
9319 * symtab.c (search_name_hash): Update call.
9321 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9323 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9325 * c-lang.c (class compile_instance): Declare.
9326 (c_language_data): Delete la_get_compile_instance initializer.
9327 (c_language::get_compile_instance): New member function.
9328 (cplus_language_data): Delete la_get_compile_instance initializer.
9329 (cplus_language::get_compile_instance): New member function.
9330 (asm_language_data): Delete la_get_compile_instance initializer.
9331 (minimal_language_data): Likewise.
9332 * c-lang.h (c_get_compile_context): Update comment.
9333 (cplus_get_compile_context): Update comment.
9334 * compile/compile.c (compile_to_object): Update calls, don't rely
9335 on function pointer being NULL.
9336 * d-lang.c (d_language_data): Delete la_get_compile_instance
9338 * f-lang.c (f_language_data): Likewise.
9339 * go-lang.c (go_language_data): Likewise.
9340 * language.c (unknown_language_data): Likewise.
9341 (auto_language_data): Likewise.
9342 * language.h (language_data): Delete la_get_compile_instance field.
9343 (language_defn::get_compile_instance): New member function.
9344 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
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_add_all_symbols): Update comment.
9354 (ada_iterate_over_symbols): Delete, move implementation to...
9355 (ada_language::iterate_over_symbols): ...here, a new member
9356 function, rewrite to use range based for loop.
9357 (ada_language_data): Delete la_iterate_over_symbols initializer.
9358 * c-lang.c (c_language_data): Likewise.
9359 (cplus_language_data): Likewise.
9360 (asm_language_data): Likewise.
9361 (minimal_language_data): Likewise.
9362 * d-lang.c (d_language_data): Likewise.
9363 * f-lang.c (f_language_data): Likewise.
9364 * go-lang.c (go_language_data): Likewise.
9365 * language.c (unknown_language_data): Likewise.
9366 (auto_language_data): Likewise.
9367 * language.h (language_data): Delete la_iterate_over_symbols field.
9368 (language_defn::iterate_over_symbols): New member function.
9369 (LA_ITERATE_OVER_SYMBOLS): Update.
9370 * linespec.c (iterate_over_all_matching_symtabs): Update.
9371 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9373 * objc-lang.c (objc_language_data): Likewise.
9374 * opencl-lang.c (opencl_language_data): Likewise.
9375 * p-lang.c (pascal_language_data): Likewise.
9376 * rust-lang.c (rust_language_data): Likewise.
9378 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9380 * ada-lang.c (ada_language_data): Delete
9381 la_lookup_transparent_type initializer.
9382 * c-lang.c (c_language_data): Likewise.
9383 (cplus_language_data): Likewise.
9384 (cplus_language::lookup_transparent_type): New member function.
9385 (asm_language_data): Delete la_lookup_transparent_type
9387 (minimal_language_data): Likewise.
9388 * d-lang.c (d_language_data): Likewise.
9389 * f-lang.c (f_language_data): Likewise.
9390 * go-lang.c (go_language_data): Likewise.
9391 * language.c (unknown_language_data): Likewise.
9392 (auto_language_data): Likewise.
9393 * language.h (struct language_data): Delete
9394 la_lookup_transparent_type field.
9395 (language_defn::lookup_transparent_type): New member function.
9396 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9398 * objc-lang.c (objc_language_data): Likewise.
9399 * opencl-lang.c (opencl_language_data): Likewise.
9400 * p-lang.c (pascal_language_data): Likewise.
9401 * rust-lang.c (rust_language_data): Likewise.
9402 * symtab.c (symbol_matches_domain): Update call.
9404 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9406 * ada-lang.c (ada_language_arch_info): Delete function, move
9407 implementation to...
9408 (ada_language::language_arch_info): ...here, a new member
9410 (ada_language_data): Delete la_language_arch_info.
9411 * c-lang.c (c_language_data): Likewise.
9412 (c_language::language_arch_info): New member function.
9413 (cplus_language_arch_info): Delete function, move
9414 implementation to...
9415 (cplus_language::language_arch_info): ...here, a new member
9417 (cplus_language_data): Delete la_language_arch_info.
9418 (asm_language_data): Likewise.
9419 (asm_language::language_arch_info): New member function.
9420 (minimal_language_data): Delete la_language_arch_info.
9421 (minimal_language::language_arch_info): New member function.
9422 * d-lang.c (d_language_arch_info): Delete function, move
9423 implementation to...
9424 (d_language::language_arch_info): ...here, a new member
9426 (d_language_data): Delete la_language_arch_info.
9427 * f-lang.c (f_language_arch_info): Delete function, move
9428 implementation to...
9429 (f_language::language_arch_info): ...here, a new member
9431 (f_language_data): Delete la_language_arch_info.
9432 * go-lang.c (go_language_arch_info): Delete function, move
9433 implementation to...
9434 (go_language::language_arch_info): ...here, a new member
9436 (go_language_data): Delete la_language_arch_info.
9437 * language.c (unknown_language_data): Likewise.
9438 (unknown_language::language_arch_info): New member function.
9439 (auto_language_data): Delete la_language_arch_info.
9440 (auto_language::language_arch_info): New member function.
9441 (language_gdbarch_post_init): Update call to
9442 la_language_arch_info.
9443 * language.h (language_data): Delete la_language_arch_info
9445 (language_defn::language_arch_info): New function.
9446 * m2-lang.c (m2_language_arch_info): Delete function, move
9447 implementation to...
9448 (m2_language::language_arch_info): ...here, a new member
9450 (m2_language_data): Delete la_language_arch_info.
9451 * objc-lang.c (objc_language_arch_info): Delete function, move
9452 implementation to...
9453 (objc_language::language_arch_info): ...here, a new member
9455 (objc_language_data): Delete la_language_arch_info.
9456 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9457 implementation to...
9458 (opencl_language::language_arch_info): ...here, a new member
9460 (opencl_language_data): Delete la_language_arch_info.
9461 * p-lang.c (pascal_language_arch_info): Delete function, move
9462 implementation to...
9463 (pascal_language::language_arch_info): ...here, a new member
9465 (pascal_language_data): Delete la_language_arch_info.
9466 * rust-lang.c (rust_language_arch_info): Delete function, move
9467 implementation to...
9468 (rust_language::language_arch_info): ...here, a new member
9470 (rust_language_data): Delete la_language_arch_info.
9472 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9474 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9476 * c-lang.c (c_language_data): Likewise.
9477 (cplus_language_data): Likewise.
9478 (cplus_language::pass_by_reference_info): New method.
9479 (asm_language_data): Delete la_pass_by_reference initializer.
9480 (minimal_language_data): Likewise.
9481 * cp-abi.c (cp_pass_by_reference): Remove use of
9482 default_pass_by_reference.
9483 * d-lang.c (d_language_data): Likewise.
9484 * f-lang.c (f_language_data): Likewise.
9485 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9486 default_pass_by_reference.
9487 * go-lang.c (go_language_data): Likewise.
9488 * language.c (language_pass_by_reference): Update.
9489 (default_pass_by_reference): Delete.
9490 (unknown_language_data): Delete la_pass_by_reference
9492 (auto_language_data): Likewise.
9493 * language.h (struct language_data): Delete la_pass_by_reference
9495 (language_defn::pass_by_reference_info): New member function.
9496 (default_pass_by_reference): Delete declaration.
9497 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9499 * objc-lang.c (objc_language_data): Likewise.
9500 * opencl-lang.c (opencl_language_data): Likewise.
9501 * p-lang.c (pascal_language_data): Likewise.
9502 * rust-lang.c (rust_language_data): Likewise.
9504 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9506 * ada-lang.c (ada_read_var_value): Delete function, move
9507 implementation to...
9508 (ada_language::read_var_value): ...here.
9509 (ada_language_data): Delete la_read_var_value initializer.
9510 * c-lang.c (c_language_data): Likewise.
9511 (cplus_language_data): Likewise.
9512 (minimal_language_data): Likewise.
9513 * d-lang.c (d_language_data): Likewise.
9514 * f-lang.c (f_language_data): Likewise.
9515 * findvar.c (default_read_var_value): Rename to...
9516 (language_defn::read_var_value): ...this.
9517 * findvar.c (read_var_value): Update header comment, and change to
9518 call member function instead of function pointer.
9519 * go-lang.c (go_language_data): Likewise.
9520 * language.c (unknown_language_data): Delete la_read_var_value
9522 (auto_language_data): Likewise.
9523 * language.h (struct language_data): Delete la_read_var_value
9525 (language_defn::read_var_value): New member function.
9526 (default_read_var_value): Delete declaration.
9527 * m2-lang.c (m2_language_data): Delete la_read_var_value
9529 * objc-lang.c (objc_language_data): Likewise.
9530 * opencl-lang.c (opencl_language_data): Likewise.
9531 * p-lang.c (pascal_language_data): Likewise.
9532 * rust-lang.c (rust_language_data): Likewise.
9533 * value.h (default_read_var_value): Delete declaration.
9535 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9537 * ada-lang.c (ada_print_array_index): Delete function, move
9538 implementation to...
9539 (ada_language::print_array_index): ...here.
9540 (ada_language_data): Delete la_print_array_index initializer.
9541 * c-lang.c (c_language_data): Likewise.
9542 (cplus_language_data): Likewise.
9543 (minimal_language_data): Likewise.
9544 * d-lang.c (d_language_data): Likewise.
9545 * f-lang.c (f_language_data): Likewise.
9546 * go-lang.c (go_language_data): Likewise.
9547 * language.c (default_print_array_index): Delete function, move
9548 implementation to...
9549 (language_defn::print_array_index): ...here.
9550 (unknown_language_data): Delete la_print_array_index initializer.
9551 (auto_language_data): Likewise.
9552 * language.h (struct language_data): Delete la_print_array_index
9554 (language_defn::print_array_index): New member function.
9555 (LA_PRINT_ARRAY_INDEX): Update.
9556 (default_print_array_index): Delete declaration.
9557 * m2-lang.c (m2_language_data): Delete la_print_array_index
9559 * objc-lang.c (objc_language_data): Likewise.
9560 * opencl-lang.c (opencl_language_data): Likewise.
9561 * p-lang.c (pascal_language_data): Likewise.
9562 * rust-lang.c (rust_language_data): Likewise.
9564 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9566 * gdb/ada-lang.c (ada_language_defn): Convert to...
9567 (ada_language_data): ...this.
9568 (class ada_language): New class.
9569 (ada_language_defn): New static global.
9570 * gdb/c-lang.c (c_language_defn): Convert to...
9571 (c_language_data): ...this.
9572 (class c_language): New class.
9573 (c_language_defn): New static global.
9574 (cplus_language_defn): Convert to...
9575 (cplus_language_data): ...this.
9576 (class cplus_language): New class.
9577 (cplus_language_defn): New static global.
9578 (asm_language_defn): Convert to...
9579 (asm_language_data): ...this.
9580 (class asm_language): New class.
9581 (asm_language_defn): New static global.
9582 (minimal_language_defn): Convert to...
9583 (minimal_language_data): ...this.
9584 (class minimal_language): New class.
9585 (minimal_language_defn): New static global.
9586 * gdb/d-lang.c (d_language_defn): Convert to...
9587 (d_language_data): ...this.
9588 (class d_language): New class.
9589 (d_language_defn): New static global.
9590 * gdb/f-lang.c (f_language_defn): Convert to...
9591 (f_language_data): ...this.
9592 (class f_language): New class.
9593 (f_language_defn): New static global.
9594 * gdb/go-lang.c (go_language_defn): Convert to...
9595 (go_language_data): ...this.
9596 (class go_language): New class.
9597 (go_language_defn): New static global.
9598 * gdb/language.c (unknown_language_defn): Remove declaration.
9599 (current_language): Initialize to nullptr, real initialization is
9600 moved to _initialize_language.
9601 (languages): Delete global.
9602 (language_defn::languages): Define.
9603 (set_language_command): Use language_defn::languages.
9604 (set_language): Likewise.
9605 (range_error): Likewise.
9606 (language_enum): Likewise.
9607 (language_def): Likewise.
9608 (add_set_language_command): Use language_def::languages for the
9609 language list, and language_def to lookup language pointers.
9610 (skip_language_trampoline): Use language_defn::languages.
9611 (unknown_language_defn): Convert to...
9612 (unknown_language_data): ...this.
9613 (class unknown_language): New class.
9614 (unknown_language_defn): New static global.
9615 (auto_language_defn): Convert to...
9616 (auto_language_data): ...this.
9617 (class auto_language): New class.
9618 (auto_language_defn): New static global.
9619 (language_gdbarch_post_init): Use language_defn::languages.
9620 (_initialize_language): Initialize current_language.
9621 * gdb/language.h (struct language_defn): Rename to...
9622 (struct language_data): ...this.
9623 (struct language_defn): New.
9624 (auto_language_defn): Delete.
9625 (unknown_language_defn): Delete.
9626 (minimal_language_defn): Delete.
9627 (ada_language_defn): Delete.
9628 (asm_language_defn): Delete.
9629 (c_language_defn): Delete.
9630 (cplus_language_defn): Delete.
9631 (d_language_defn): Delete.
9632 (f_language_defn): Delete.
9633 (go_language_defn): Delete.
9634 (m2_language_defn): Delete.
9635 (objc_language_defn): Delete.
9636 (opencl_language_defn): Delete.
9637 (pascal_language_defn): Delete.
9638 (rust_language_defn): Delete.
9639 * gdb/m2-lang.c (m2_language_defn): Convert to...
9640 (m2_language_data): ...this.
9641 (class m2_language): New class.
9642 (m2_language_defn): New static global.
9643 * gdb/objc-lang.c (objc_language_defn): Convert to...
9644 (objc_language_data): ...this.
9645 (class objc_language): New class.
9646 (objc_language_defn): New static global.
9647 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9648 (opencl_language_data): ...this.
9649 (class opencl_language): New class.
9650 (opencl_language_defn): New static global.
9651 * gdb/p-lang.c (pascal_language_defn): Convert to...
9652 (pascal_language_data): ...this.
9653 (class pascal_language): New class.
9654 (pascal_language_defn): New static global.
9655 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9656 language pointer, update comment format.
9657 * gdb/rust-lang.c (rust_language_defn): Convert to...
9658 (rust_language_data): ...this.
9659 (class rust_language): New class.
9660 (rust_language_defn): New static global.
9662 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9664 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9666 <m_stmt_at_address>: New member variable.
9667 (lnp_state_machine::record_line): Don't record some lines, update
9668 tracking of is_stmt at the same address.
9669 (lnp_state_machine::lnp_state_machine): Initialise new member
9672 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9674 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9675 "-include gnu-nat-mig.h".
9676 * gnu-nat-mig.h: New file.
9677 * gnu-nat.c: Include "gnu-nat-mig.h".
9678 (exc_server, msg_reply_server, notify_server,
9679 process_reply_server): Remove declarations.
9681 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9683 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9684 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9685 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9686 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9687 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9688 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9689 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9690 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9691 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9692 to gnu_nat_target class.
9693 * gnu-nat.c: Likewise.
9694 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9695 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9696 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9698 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9699 instead of `gnu_target'.
9701 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9703 * i386-gnu-tdep.c: Include "gdbcore.h"
9704 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9705 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9706 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9707 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9708 i386_gnu_sigcontext_addr): New functions
9709 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9710 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9713 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9715 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9716 before fork_inferior call. Avoid calling it if target_is_pushed returns
9719 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9721 * gnu-nat.h (gnu_target): New variable declaration.
9722 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9724 * gnu-nat.c (gnu_target): New variable.
9725 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9726 add_thread_silent, and add_thread calls.
9727 (gnu_nat_target::create_inferior): Pass gnu_target to
9728 add_thread_silent, thread_change_ptid call.
9729 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9732 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9734 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9735 (gnu_nat_target::find_memory_regions): Remove unused
9736 `old_address' variable.
9738 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9740 * gnu-nat.c: Include "gdbarch.h".
9742 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9744 * reply_mig_hack.awk (Error return): Cast function through
9745 void *, to bypass compiler function call check.
9747 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9749 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9750 $(srcdir)/reply_mig_hack.awk.
9752 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9754 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9756 2020-05-30 Jonny Grant <jg@jguk.org>
9758 * configure.ac (ACX_BUGURL): change bug URL to https.
9760 2020-05-30 Pedro Alves <palves@redhat.com>
9762 * cp-support.c (replace_typedefs_template): New.
9763 (replace_typedefs_qualified_name): Handle
9764 DEMANGLE_COMPONENT_TEMPLATE.
9766 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9768 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9769 dwarf2/index-cache.h, dwarf2/index-write.c,
9770 dwarf2/index-write.h, dwarf2/line-header.c,
9771 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9772 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9773 variables and fields from `dwarf2_per_objfile` to just
9774 `per_objfile` throughout.
9776 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9778 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9779 <push_dwarf_reg_entry_value>: Add comment.
9781 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9782 Keith Seitz <keiths@redhat.com>
9784 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9785 instead of PyEval_ReleaseLock.
9786 (class gdbpy_gil): Move to earlier in file.
9787 (finalize_python): Set gdb_python_initialized.
9788 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9789 when not initialized.
9791 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9793 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9794 <push_dwarf_reg_entry_value>: Remove assert. Override
9795 per_objfile with caller_per_objfile.
9797 2020-05-28 Tom de Vries <tdevries@suse.de>
9799 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9800 PR gold/15646 workaround to symbol kind "type".
9802 2020-05-27 Tom Tromey <tromey@adacore.com>
9804 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9806 2020-05-27 Tom Tromey <tromey@adacore.com>
9808 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9809 Use htab_find_with_hash.
9810 <add_abbrev>: Remove "abbrev_number" parameter.
9811 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9812 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9813 (hash_abbrev): Add comment.
9814 (abbrev_table::lookup_abbrev): Move to header file.
9815 (abbrev_table::read): Update.
9817 2020-05-27 Tom Tromey <tromey@adacore.com>
9819 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9821 <canonical_name>: New member.
9822 <raw_name>: Rename from "name".
9823 (partial_die_info): Initialize canonical_name.
9824 (scan_partial_symbols): Check raw_name.
9825 (partial_die_parent_scope, partial_die_full_name)
9826 (add_partial_symbol, add_partial_subprogram)
9827 (add_partial_enumeration, load_partial_dies): Use "name" method.
9828 (partial_die_info::name): New method.
9829 (partial_die_info::read, guess_partial_die_structure_name)
9830 (partial_die_info::fixup): Update.
9832 2020-05-27 Tom Tromey <tromey@adacore.com>
9834 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9835 <get_ref_die_offset>: Inline.
9836 <get_ref_die_offset_complaint>: New method.
9837 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9838 (attribute::get_ref_die_offset_complaint): Rename from
9839 get_ref_die_offset. Just issue complaint.
9841 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9843 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9845 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9847 * exec.c (exec_file_attach): Use errno value of first openp failure.
9849 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9851 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9852 Don't close thread handle.
9854 2020-05-27 Tom Tromey <tom@tromey.com>
9855 Simon Marchi <simon.marchi@efficios.com>
9857 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9859 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9861 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9862 dwarf2_per_bfd_objfile_data_key>: New globals.
9863 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9864 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9865 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9867 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9868 short-circuit when sharing.
9869 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9870 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9872 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9874 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9876 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9877 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9879 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9881 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9882 build_name_components, find_name_components_bounds>:
9883 Add per_objfile parameter.
9884 (struct mapped_index) <symbol_name_at>: Likewise.
9885 (struct mapped_debug_names): Remove constructor.
9886 <dwarf2_per_objfile>: Remove field.
9887 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9888 (mapped_index_base::find_name_components_bounds,
9889 mapped_index_base::build_name_components,
9890 dw2_expand_symtabs_matching_symbol): Likewise.
9891 (class mock_mapped_index) <symbol_name_at>: Likewise.
9892 (check_match): Likewise.
9893 (check_find_bounds_finds): Likewise.
9894 (test_mapped_index_find_name_component_bounds): Update.
9895 (CHECK_MATCH): Update.
9896 (dw2_expand_symtabs_matching): Update.
9897 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9898 per_objfile parameter.
9899 <find_vec_in_debug_names>: Likewise.
9900 <m_per_objfile>: New field.
9901 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9903 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9904 (dw2_debug_names_iterator::next): Update.
9905 (dw2_debug_names_lookup_symbol): Update.
9906 (dw2_debug_names_expand_symtabs_for_function): Update.
9907 (dw2_debug_names_map_matching_symbols): Update.
9908 (dw2_debug_names_expand_symtabs_matching): Update.
9909 (dwarf2_read_debug_names): Update.
9911 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9913 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9914 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9915 move to dwarf2_per_objfile.
9916 <read_in_chain>: Remove.
9917 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9918 remove_all_cus, age_comp_units>: New methods.
9919 <m_dwarf2_cus>: New member.
9920 (struct dwarf2_per_cu_data) <cu>: Remove.
9921 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9922 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9923 moved to methods of dwarf2_per_objfile.
9924 (dwarf2_clear_marks): Remove.
9925 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9926 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9927 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9928 (dwarf2_per_objfile::remove_all_cus): New.
9929 (class free_cached_comp_units) <~free_cached_comp_units>:
9932 (dw2_do_instantiate_symtab): Adjust.
9933 (fill_in_sig_entry_from_dwo_entry): Adjust.
9934 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9935 (cutu_reader::cutu_reader): Likewise.
9936 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9937 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9938 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9939 and dwarf2_per_objfile::age_comp_units.
9940 (load_partial_comp_unit): Update.
9941 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9942 (process_queue): Likewise.
9943 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9945 (dwarf2_read_addr_index): Likewise.
9946 (follow_die_offset): Likewise.
9947 (dwarf2_fetch_die_loc_sect_off): Likewise.
9948 (dwarf2_fetch_constant_bytes): Likewise.
9949 (dwarf2_fetch_die_type_sect_off): Likewise.
9950 (follow_die_sig_1): Likewise.
9951 (load_full_type_unit): Likewise.
9952 (read_signatured_type): Likewise.
9953 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9954 (dwarf2_cu::~dwarf2_cu): Remove.
9955 (dwarf2_per_objfile::get_cu): New.
9956 (dwarf2_per_objfile::set_cu): New.
9957 (age_cached_comp_units): Rename to...
9958 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9959 to std::unordered_map.
9960 (free_one_cached_comp_unit): Rename to...
9961 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9962 to std::unordered_map.
9963 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9964 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9965 a dwarf2_per_objfile in data.
9966 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9967 (dwarf2_clear_marks): Remove.
9969 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9971 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9972 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9973 (init_tu_and_read_dwo_dies): Likewise.
9974 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9975 (cutu_reader::cutu_reader): Likewise.
9976 (load_partial_comp_unit): Likewise.
9977 (process_psymtab_comp_unit): Update.
9978 (build_type_psymtabs_1): Update.
9979 (process_skeletonless_type_unit): Update.
9980 (load_full_comp_unit): Update.
9981 (find_partial_die): Update.
9982 (dwarf2_read_addr_index): Update.
9983 (read_signatured_type): Update.
9985 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9987 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9988 m_header_read_in>: New fields.
9989 <get_header>: New method.
9990 * dwarf2/read.c (per_cu_header_read_in): Remove.
9991 (dwarf2_per_cu_data::get_header): New.
9992 (dwarf2_per_cu_data::addr_size): Update.
9993 (dwarf2_per_cu_data::offset_size): Update.
9994 (dwarf2_per_cu_data::ref_addr_size): Update.
9996 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9998 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9999 (dw2_do_instantiate_symtab): Update.
10000 (queue_and_load_all_dwo_tus): Change parameter from
10001 dwarf2_per_cu_data to dwarf2_cu.
10002 (dwarf2_fetch_die_loc_sect_off): Update.
10003 (dwarf2_fetch_constant_bytes): Update.
10004 (dwarf2_fetch_die_type_sect_off): Update.
10006 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10008 * dwarf2/read.c (process_full_comp_unit,
10009 process_full_type_unit): Remove per_cu, per_objfile paramters.
10010 Add dwarf2_cu parameter.
10011 (process_queue): Update.
10013 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10015 * dwarf2/read.c (create_cu_from_index_list): Replace
10016 dwarf2_per_objfile parameter with dwarf2_per_bfd.
10017 (create_cus_from_index_list): Likewise.
10018 (create_cus_from_index): Likewise.
10019 (create_signatured_type_table_from_index): Likewise.
10020 (create_cus_from_debug_names_list): Likewise.
10021 (create_cus_from_debug_names): Likewise.
10022 (dwarf2_read_gdb_index): Update.
10023 (dwarf2_read_debug_names): Update.
10025 2020-05-27 Tom Tromey <tom@tromey.com>
10026 Simon Marchi <simon.marchi@efficios.com>
10028 * dwarf2/read.h (struct dwarf2_per_objfile)
10029 <get_type_for_signatured_type, set_type_for_signatured_type>:
10031 <m_type_map>: New member.
10032 (struct signatured_type) <type>: Remove.
10034 (dwarf2_per_objfile::get_type_for_signatured_type,
10035 dwarf2_per_objfile::set_type_for_signatured_type): New.
10036 (get_signatured_type): Use new methods.
10038 2020-05-27 Tom Tromey <tom@tromey.com>
10039 Simon Marchi <simon.marchi@efficios.com>
10041 * dwarf2/read.h (struct type_unit_group_unshareable): New.
10042 (struct dwarf2_per_objfile) <type_units>: New member.
10043 <get_type_unit_group_unshareable>: New method.
10044 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
10045 num_symtabs, symtabs>: Remove; move to
10046 type_unit_group_unshareable.
10047 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
10048 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
10049 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
10051 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10053 * dwarf2/read.h (struct dwarf2_per_cu_data):
10054 <dwarf2_per_objfile>: Remove.
10055 * dwarf2/read.c (create_cu_from_index_list): Don't assign
10056 dwarf2_per_objfile.
10057 (create_signatured_type_table_from_index): Likewise.
10058 (create_signatured_type_table_from_debug_names): Likewise.
10059 (create_debug_type_hash_table): Likewise.
10060 (fill_in_sig_entry_from_dwo_entry): Likewise.
10061 (create_type_unit_group): Likewise.
10062 (read_comp_units_from_section): Likewise.
10063 (create_cus_hash_table): Likewise.
10065 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10067 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10068 dwarf2_per_cu_data::dwarf2_per_objfile.
10069 (compute_compunit_symtab_includes): Likewise.
10070 (dwarf2_cu::start_symtab): Likewise.
10072 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10074 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10076 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10077 (read_namespace_alias): Update.
10078 (lookup_die_type): Update.
10079 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10080 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10082 (disassemble_dwarf_expression): Update.
10084 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10086 * dwarf2/read.h (struct dwarf2_queue_item): Add
10087 dwarf2_per_objfile parameter, assign new parameter.
10088 <per_objfile>: New field.
10089 * dwarf2/read.c (free_one_cached_comp_unit): Add
10090 dwarf2_per_objfile parameter.
10091 (queue_comp_unit): Likewise.
10092 (dw2_do_instantiate_symtab): Update.
10093 (process_psymtab_comp_unit): Update.
10094 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10095 (process_imported_unit_die): Update.
10096 (queue_and_load_dwo_tu): Update.
10097 (follow_die_offset): Update.
10098 (follow_die_sig_1): Update.
10100 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10102 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10103 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10104 (read_call_site_scope): Assign per_objfile.
10105 (dwarf2_per_cu_data::objfile): Remove.
10106 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10107 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10108 dwarf2_per_objfile parameter.
10109 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10110 dwarf2_per_objfile parameter.
10111 (dwarf_expr_reg_to_entry_parameter): Add output
10112 dwarf2_per_objfile parameter.
10113 (locexpr_get_frame_base): Update.
10114 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10115 <push_dwarf_reg_entry_value>: Update.
10116 <call_site_to_target_addr>: Update.
10117 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10119 (value_of_dwarf_reg_entry): Update.
10120 (rw_pieced_value): Update.
10121 (indirect_synthetic_pointer): Update.
10122 (dwarf2_evaluate_property): Update.
10123 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10125 (locexpr_read_variable): Update.
10126 (locexpr_get_symbol_read_needs): Update.
10127 (loclist_read_variable): Update.
10129 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10131 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10132 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10133 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10135 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10136 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10137 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10139 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10140 sect_variable_value): Add dwarf2_per_objfile parameter.
10141 (class dwarf_evaluate_loc_desc) <dwarf_call,
10142 dwarf_variable_value>: Update.
10143 (fetch_const_value_from_synthetic_pointer): Add
10144 dwarf2_per_objfile parameter.
10145 (fetch_const_value_from_synthetic_pointer): Update.
10146 (coerced_pieced_ref): Update.
10147 (class symbol_needs_eval_context) <dwarf_call,
10148 dwarf_variable_value>: Update.
10149 (dwarf2_compile_expr_to_ax): Update.
10151 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10153 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10155 (dwarf2_evaluate_loc_desc_full): Update.
10157 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10159 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10161 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10162 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10163 dwarf2_per_objfile parameter.
10164 (decode_debug_loc_dwo_addresses): Likewise.
10165 (dwarf2_find_location_expression): Update.
10166 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10167 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10169 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10171 (locexpr_describe_location_1): Likewise.
10172 (locexpr_describe_location): Update.
10174 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10176 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10178 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10179 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10180 (dwarf2_compile_property_to_c): Update.
10181 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10182 use text offset from objfile.
10183 (locexpr_tracepoint_var_ref): Update.
10184 (locexpr_generate_c_location): Update.
10185 (loclist_describe_location): Update.
10186 (loclist_tracepoint_var_ref): Update.
10187 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10188 dwarf2_per_objfile parameter.
10189 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10190 use text offset from objfile.
10191 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10193 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10195 * dwarf2/expr.h (struct dwarf_expr_context)
10196 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10198 <per_objfile>: New member.
10199 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10200 dwarf2_per_objfile parameter. Don't set offset, set
10202 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10203 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10204 a dwarf2_per_objfile object instead of an offset.
10205 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10207 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10208 to dwarf2_expr_executor constructor. Don't set offset.
10209 (dwarf2_fetch_cfa_info): Update.
10210 (struct dwarf2_frame_cache) <text_offset>: Remove.
10211 <per_objfile>: New field.
10212 (dwarf2_frame_cache): Update.
10213 (dwarf2_frame_prev_register): Update.
10214 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10215 <dwarf_evaluate_loc_desc>: Add constructor.
10216 (dwarf2_evaluate_loc_desc_full): Update.
10217 (dwarf2_locexpr_baton_eval): Update.
10218 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10220 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10222 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10224 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10225 addr_sized_int_type>: Move to dwarf2_cu.
10226 <int_type>: Move to dwarf2_per_objfile.
10227 (struct dwarf2_per_objfile) <int_type>: Move here.
10228 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10229 addr_sized_int_type>: Move here.
10230 (read_func_scope): Update.
10231 (read_array_type): Update.
10232 (read_tag_string_type): Update.
10233 (attr_to_dynamic_prop): Update.
10234 (dwarf2_per_cu_data::int_type): Rename to...
10235 (dwarf2_per_objfile::int_type): ... this.
10236 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10237 (dwarf2_cu::addr_sized_int_type): ... this.
10238 (read_subrange_type): Update.
10239 (dwarf2_per_cu_data::addr_type): Rename to...
10240 (dwarf2_cu::addr_type): ... this.
10241 (set_die_type): Update.
10243 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10245 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10246 data through per_cu->cu.
10248 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10250 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10251 dwarf2_per_cu_data parameter fo dwarf2_cu.
10252 (lookup_dwo_type_unit): Likewise.
10253 (read_cutu_die_from_dwo): Likewise.
10254 (lookup_dwo_unit): Likewise.
10255 (open_and_init_dwo_file): Likewise.
10256 (lookup_dwo_cutu): Likewise.
10257 (lookup_dwo_comp_unit): Likewise.
10258 (lookup_dwo_type_unit): Likewise.
10259 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10260 (cutu_reader::cutu_reader): Update.
10262 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10264 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10266 (process_full_type_unit): Likewise.
10267 (process_queue): Update.
10269 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10271 * dwarf2/read.c (recursively_compute_inclusions): Add
10272 dwarf2_per_objfile parameter.
10273 (compute_compunit_symtab_includes): Likewise.
10274 (process_cu_includes): Update.
10276 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10278 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10280 (create_type_unit_group): Update.
10281 (process_psymtab_comp_unit_reader): Update.
10282 (build_type_psymtabs_reader): Update.
10284 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10286 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10287 object through m_this_cu->cu.
10289 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10291 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10292 the info parameter.
10293 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10295 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10297 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10298 per_objfile parameter.
10299 (load_full_type_unit): Add per_objfile parameter.
10300 (read_signatured_type): Likewise.
10301 (load_full_comp_unit): Likewise.
10302 (load_cu): Likewise.
10303 (dw2_do_instantiate_symtab): Likewise.
10304 (dw2_get_file_names): Likewise.
10305 (dw2_map_symtabs_matching_filename): Update.
10306 (dw_expand_symtabs_matching_file_matcher): Update.
10307 (dw2_map_symbol_filenames): Update.
10308 (process_psymtab_comp_unit): Add per_objfile parameter.
10309 (build_type_psymtabs_1): Update.
10310 (process_skeletonless_type_unit): Update.
10311 (dwarf2_build_psymtabs_hard): Update.
10312 (load_partial_comp_unit): Add per_objfile parameter.
10313 (scan_partial_symbols): Update.
10314 (load_full_comp_unit): Add per_objfile parameter.
10315 (process_imported_unit_die): Update.
10316 (create_cus_hash_table): Update.
10317 (find_partial_die): Update.
10318 (dwarf2_read_addr_index): Update.
10319 (follow_die_offset): Update.
10320 (dwarf2_fetch_die_loc_sect_off): Update.
10321 (dwarf2_fetch_constant_bytes): Update.
10322 (dwarf2_fetch_die_type_sect_off): Update.
10323 (follow_die_sig_1): Update.
10324 (load_full_type_unit): Add per_objfile parameter.
10325 (read_signatured_type): Likewise.
10327 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10329 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10332 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10334 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10335 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10336 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10338 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10339 (create_cus_from_index): Update.
10340 (dwarf2_read_gdb_index): Update.
10341 (create_cus_from_debug_names): Update.
10342 (dwarf2_read_debug_names): Update.
10343 (get_abbrev_section_for_cu): Update.
10344 (create_all_comp_units): Update.
10345 (read_attribute_value): Update.
10346 (get_debug_line_section): Update.
10347 * dwarf2/index-cache.c (index_cache::store): Update.
10348 * dwarf2/index-write.c (save_gdb_index_command): Update.
10349 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10351 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10353 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10355 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10356 dwarf2_per_cu_data::per_bfd.
10357 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10358 (create_type_unit_group): Likewise.
10359 (queue_comp_unit): Remove reference to
10360 per_cu->dwarf2_per_objfile.
10361 (maybe_queue_comp_unit): Likewise.
10362 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10363 (create_cus_hash_table): Assign new field.
10365 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10367 * dwarf2/read.c: Replace
10368 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10369 dwarf2_cu->per_objfile throughout.
10371 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10373 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10374 parameter, don't use per_cu->dwarf2_per_objfile.
10375 (dw2_instantiate_symtab): Likewise.
10376 (dw2_find_last_source_symtab): Update.
10377 (dw2_map_expand_apply): Update.
10378 (dw2_lookup_symbol): Update.
10379 (dw2_expand_symtabs_for_function): Update.
10380 (dw2_expand_all_symtabs): Update.
10381 (dw2_expand_symtabs_with_fullname): Update.
10382 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10383 don't use per_cu->dwarf2_per_objfile.
10384 (dw2_expand_marked_cus): Update.
10385 (dw2_find_pc_sect_compunit_symtab): Update.
10386 (dw2_debug_names_lookup_symbol): Update.
10387 (dw2_debug_names_expand_symtabs_for_function): Update.
10388 (dw2_debug_names_map_matching_symbols): Update.
10389 (dwarf2_psymtab::expand_psymtab): Update.
10391 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10393 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10394 <per_objfile>: New member.
10395 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10396 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10398 (cutu_reader::cutu_reader): Update.
10399 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10401 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10403 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10404 struct dwarf2_per_objfile.
10405 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10407 * dwarf2/read.c (set_die_type): Update.
10408 (get_die_type_at_offset): Update.
10410 2020-05-27 Tom Tromey <tom@tromey.com>
10411 Simon Marchi <simon.marchi@efficios.com>
10413 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10415 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10416 get_symtab, set_symtab>: New methods.
10417 <m_symtabs>: New field.
10418 (struct dwarf2_psymtab): Derive from partial_symtab.
10419 <readin_p, get_compunit_symtab>: Declare methods.
10420 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10421 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10423 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10424 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10425 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10426 (dw2_symtab_iter_next, dw2_print_stats)
10427 (dw2_expand_symtabs_with_fullname)
10428 (dw2_expand_symtabs_matching_one)
10429 (dw_expand_symtabs_matching_file_matcher)
10430 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10431 (dw2_debug_names_iterator::next)
10432 (dw2_debug_names_map_matching_symbols)
10433 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10434 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10435 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10437 (get_compunit_symtab, process_full_comp_unit)
10438 (process_full_type_unit): Update.
10439 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10441 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10443 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10444 then introduce a new dwarf2_per_objfile type.
10445 <read_line_string>: Move to the new dwarf2_per_objfile type.
10446 <objfile>: Likewise.
10447 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10448 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10449 dwarf2_per_objfile->per_bfd.
10450 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10451 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10452 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10453 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10454 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10455 (dwarf2_per_objfile::locate_sections): Rename to...
10456 (dwarf2_per_bfd::locate_sections): ... this.
10457 (dwarf2_per_objfile::get_cutu): Rename to...
10458 (dwarf2_per_bfd::get_cutu): ... this.
10459 (dwarf2_per_objfile::get_cu): Rename to...
10460 (dwarf2_per_bfd::get_cu): ... this.
10461 (dwarf2_per_objfile::get_tu): Rename to...
10462 (dwarf2_per_bfd::get_tu): ... this.
10463 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10464 (dwarf2_per_bfd::allocate_per_cu): ... this.
10465 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10466 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10467 (get_gdb_index_contents_ftype): Change parameter from
10468 dwarf2_per_objfile to dwarf2_per_bfd.
10469 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10470 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10472 2020-05-27 Tom Tromey <tom@tromey.com>
10473 Simon Marchi <simon.marchi@efficios.com>
10475 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10476 (allocate_piece_closure): Set "per_objfile" member.
10477 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10478 (locexpr_describe_location, loclist_describe_location): Use new
10480 * dwarf2/read.c (read_call_site_scope)
10481 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10482 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10483 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10484 handle_data_member_location): Set per_objfile member.
10485 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10487 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10489 2020-05-27 Tom Tromey <tom@tromey.com>
10491 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10492 allocate_signatured_type>: Declare new methods.
10493 <m_num_psymtabs>: New member.
10494 (struct dwarf2_per_cu_data) <index>: New member.
10495 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10496 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10497 (create_cu_from_index_list): Use allocate_per_cu.
10498 (create_signatured_type_table_from_index)
10499 (create_signatured_type_table_from_debug_names)
10500 (create_debug_type_hash_table, add_type_unit)
10501 (read_comp_units_from_section): Use allocate_signatured_type.
10503 2020-05-27 Tom Tromey <tom@tromey.com>
10505 * psymtab.c (partial_map_expand_apply)
10506 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10507 (psym_lookup_global_symbol_language)
10508 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10509 (psym_print_stats, psym_expand_symtabs_for_function)
10510 (psym_map_symbol_filenames, psym_map_matching_symbols)
10511 (psym_expand_symtabs_matching)
10512 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10513 (maintenance_check_psymtabs): Update.
10514 * psympriv.h (struct partial_symtab) <readin_p,
10515 get_compunit_symtab>: Add objfile parameter.
10516 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10518 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10519 get_compunit_symtab>: Likewise.
10520 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10522 2020-05-27 Tom Tromey <tom@tromey.com>
10524 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10526 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10527 (create_cu_from_index_list)
10528 (create_signatured_type_table_from_index)
10529 (create_signatured_type_table_from_debug_names)
10530 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10531 (dwarf2_create_include_psymtab)
10532 (create_debug_type_hash_table, add_type_unit)
10533 (create_type_unit_group, read_comp_units_from_section)
10534 (dwarf2_compute_name, create_cus_hash_table)
10535 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10536 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10538 (dw2_get_real_path): Likewise. Change argument to
10539 dwarf2_per_objfile.
10541 2020-05-27 Luis Machado <luis.machado@linaro.org>
10544 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10545 for ldrd (immediate).
10547 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10549 * command.h: Add comment giving the name of class_tui.
10550 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10551 create the fake command for the help for class_tui.
10553 2020-05-26 Tom Tromey <tromey@adacore.com>
10555 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10556 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10557 (val_atr): New function.
10558 (value_val_atr): Use it.
10559 * ada-valprint.c (print_optional_low_bound): Change low bound
10560 handling for enums.
10561 (val_print_packed_array_elements): Don't call discrete_position.
10562 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10563 discrete_position for enum types.
10564 * language.c (default_print_array_index): Change type.
10565 * language.h (struct language_defn) <la_print_array_index>: Add
10566 index_type parameter, change type of index_value.
10567 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10568 (default_print_array_index): Update.
10569 * valprint.c (maybe_print_array_index): Don't call
10570 value_from_longest. Update.
10571 (value_print_array_elements): Don't call discrete_position.
10573 2020-05-26 Tom Tromey <tromey@adacore.com>
10575 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10576 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10578 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10581 * avr-tdep.c (avr_integer_to_address): Return data or code
10582 address accordingly to the second 'type' argument of the
10585 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10587 * infcmd.c, inferior.h: (construct_inferior_arguments):
10588 Moved function from here to gdbsupport/common-inferior.{h,cc}
10590 2020-05-23 Tom Tromey <tom@tromey.com>
10592 Revert commit eca1f90c:
10593 * NEWS: Remove entry for completion styling.
10594 * completer.c (_rl_completion_prefix_display_length): Move
10596 (gdb_fnprint): Revert.
10597 (gdb_display_match_list_1): Likewise.
10598 * cli/cli-style.c (completion_prefix_style)
10599 (completion_difference_style, completion_suffix_style): Remove.
10600 (_initialize_cli_style): Revert.
10601 * cli/cli-style.h (completion_prefix_style)
10602 (completion_difference_style, completion_suffix_style): Don't
10605 2020-05-24 Pedro Alves <palves@redhat.com>
10607 * symtab.c (completion_list_add_name): Return boolean indication
10608 of whether the symbol matched.
10609 (completion_list_add_symbol): Don't try to remove C++ aliases if
10610 the symbol didn't match in the first place.
10611 * symtab.h (completion_list_add_name): Return bool.
10613 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10615 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10618 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10622 2020-05-23 Tom Tromey <tom@tromey.com>
10624 * NEWS: Add entry for completion styling.
10625 * completer.c (_rl_completion_prefix_display_length): Move
10626 declaration earlier.
10627 (gdb_fnprint): Use completion_style.
10628 (gdb_display_match_list_1): Likewise.
10629 * cli/cli-style.c (completion_prefix_style)
10630 (completion_difference_style, completion_suffix_style): New
10632 (_initialize_cli_style): Register new globals.
10633 * cli/cli-style.h (completion_prefix_style)
10634 (completion_difference_style, completion_suffix_style): Declare.
10636 2020-05-23 Pedro Alves <palves@redhat.com>
10638 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10639 (parse_escape): Use ISDIGIT instead of isdigit.
10640 (puts_debug): Use gdb_isprint instead of isprint.
10641 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10642 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10643 ISSPACE instead of isspace.
10644 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10645 instead of isspace.
10646 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10647 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10648 instead of isxdigit and ISDIGIT instead of isdigit.
10650 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10652 * gdbtypes.h (struct type) <field>: New method.
10653 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10656 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10658 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10659 (TYPE_FIELDS): Use type::fields. Change all call sites that
10660 modify the propery to use type::set_fields instead.
10662 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10664 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10665 type::num_fields instead.
10667 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10669 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10671 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10672 that modify the number of fields to use type::set_num_fields
10675 2020-05-22 Tom Tromey <tromey@adacore.com>
10677 * compile/compile-object-load.h (munmap_list_free): Don't
10680 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10682 * annotate.c (annotate_source_line): Update return type, add call
10683 to update current symtab and line.
10684 * annotate.h (annotate_source_line): Update return type, and
10685 extend header comment.
10686 * source.c (info_line_command): Check annotation_level before
10687 calling annotate_source_line.
10688 * stack.c (print_frame_info): If calling annotate_source_line
10689 returns true, then don't print any other source line information.
10691 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10693 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10695 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10697 * coffread.c (patch_type): Remove NULL check before xfree.
10698 * corefile.c (set_gnutarget): Likewise.
10699 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10700 * exec.c (build_section_table): Likewise.
10701 * remote.c (remote_target::pass_signals): Likewise.
10702 * utils.c (n_spaces): Likewise.
10703 * cli/cli-script.c (document_command): Likewise.
10704 * i386-windows-tdep.c (core_process_module_section): Likewise.
10705 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10707 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10709 * symfile.c (reread_symbols): Clear objfile's section_offsets
10710 vector and section indices, re-compute them by calling
10713 2020-05-20 Tom Tromey <tromey@adacore.com>
10715 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10716 (desc_one_bound, desc_index_type): Compute field name.
10718 2020-05-20 Tom de Vries <tdevries@suse.de>
10721 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10723 2020-05-20 Alan Modra <amodra@gmail.com>
10726 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10728 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10729 passed to bfd_set_filename.
10730 * symfile-mem.c (add_vsyscall_page): Likewise for string
10731 passed to symbol_file_add_from_memory.
10732 (symbol_file_add_from_memory): Make name param a const char* and
10735 2020-05-20 Alan Modra <amodra@gmail.com>
10737 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10738 rather than accessing bfd->filename directly.
10739 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10740 and use bfd_section_name.
10741 * dwarf2/frame.c (decode_frame_entry): Likewise.
10742 * exec.c (exec_set_section_address): Likewise.
10743 * solib-aix.c (solib_aix_bfd_open): Likewise.
10744 * stap-probe.c (get_stap_base_address): Likewise.
10745 * symfile.c (reread_symbols): Likewise.
10747 2020-05-19 Tom Tromey <tromey@adacore.com>
10749 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10751 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10753 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10755 2020-05-19 Pedro Alves <palves@redhat.com>
10757 * NEWS (set exec-file-mismatch): Adjust entry.
10758 * exec.c: Include "build-id.h".
10759 (validate_exec_file): Try to match build IDs instead of filenames.
10760 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10761 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10762 and pass down 'warn_if_slow'.
10763 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10764 gdb_bfd_open_closure to pass it down.
10765 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10767 2020-05-19 Pedro Alves <palves@redhat.com>
10769 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10770 * target.c (target_fileio_open_1): Rename to target_fileio_open
10771 and make extern. Use bool.
10772 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10773 (target_fileio_read_alloc_1): Adjust.
10774 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10775 (target_fileio_open_warn_if_slow): Delete declaration.
10777 2020-05-19 Pedro Alves <palves@redhat.com>
10779 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10780 Adjust all callers.
10782 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10784 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10785 whether disp is negative.
10787 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10789 * symfile.h (struct symfile_segment_data)
10790 <~symfile_segment_data>: Remove.
10791 <segment_info>: Change to std::vector.
10792 * symfile.c (default_symfile_segments): Update.
10793 * elfread.c (elf_symfile_segments): Update.
10795 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10797 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10799 <segment_bases, segment_sizes>: Remove.
10800 * symfile.c (default_symfile_segments): Update.
10801 * elfread.c (elf_symfile_segments): Update.
10802 * remote.c (remote_target::get_offsets): Update.
10803 * solib-target.c (solib_target_relocate_section_addresses):
10806 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10808 * symfile.h (struct symfile_segment_data): Initialize fields.
10809 <~symfile_segment_data>: Add.
10810 (symfile_segment_data_up): New.
10811 (struct sym_fns) <sym_segments>: Return a
10812 symfile_segment_data_up.
10813 (default_symfile_segments): Return a symfile_segment_data_up.
10814 (free_symfile_segment_data): Remove.
10815 (get_symfile_segment_data): Return a symfile_segment_data_up.
10816 * symfile.c (default_symfile_segments): Likewise.
10817 (get_symfile_segment_data): Likewise.
10818 (free_symfile_segment_data): Remove.
10819 (symfile_find_segment_sections): Update.
10820 * elfread.c (elf_symfile_segments): Return a
10821 symfile_segment_data_up.
10822 * remote.c (remote_target::get_offsets): Update.
10823 * solib-target.c (solib_target_relocate_section_addresses):
10825 * symfile-debug.c (debug_sym_segments): Return a
10826 symfile_segment_data_up.
10828 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10831 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10832 Hardcode register numbers.
10835 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10836 procfs_find_LDT_entry): Remove.
10837 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10838 procfs_find_LDT_entry): Remove.
10839 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10842 2020-05-17 Pedro Alves <palves@redhat.com>
10843 Andrew Burgess <andrew.burgess@embecosm.com>
10844 Keno Fischer <keno@juliacomputing.com>
10847 * breakpoint.c (build_target_condition_list): Update comments.
10848 (build_target_command_list): Update comments and skip matching
10850 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10851 a separate function. Simplify "set breakpoint auto-hw off"
10853 (insert_breakpoints): Update comment.
10854 (tracepoint_locations_match): New parameter. For breakpoints,
10855 compare location types too, if the caller wants to.
10856 (handle_automatic_hardware_breakpoints): New functions.
10857 (bp_location_is_less_than): Also sort by location type and
10858 hardware breakpoint length.
10859 (update_global_location_list): Handle "set breakpoint auto-hw on"
10861 (update_breakpoint_locations): Ask breakpoint_locations_match to
10862 ignore location types.
10864 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10866 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10867 type::name instead.
10869 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10871 * gdbtypes.h (struct type) <name, set_name>: New methods.
10872 (TYPE_CODE): Use type::name. Change all call sites used to set
10873 the name to use type::set_name instead.
10875 2020-05-16 Tom Tromey <tom@tromey.com>
10877 * top.c (quit_force): Update.
10878 * infrun.c (handle_no_resumed): Update.
10879 * top.h (all_uis): New function.
10882 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10884 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10886 2020-05-16 Pedro Alves <palves@redhat.com>
10889 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10891 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10893 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10895 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10896 (sparc64_adi_info): Likewise.
10898 2020-05-15 Tom Tromey <tom@tromey.com>
10900 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10902 (lookup_objfile_from_block): Remove.
10903 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10904 (lookup_global_symbol): Use block_objfile.
10905 * symtab.h (lookup_objfile_from_block): Don't declare.
10906 * printcmd.c (clear_dangling_display_expressions): Use
10908 * parse.c (operator_check_standard): Use block_objfile.
10910 2020-05-15 Tom Tromey <tom@tromey.com>
10912 * language.c (language_alloc_type_symbol): Set
10914 * symtab.c (initialize_objfile_symbol): Remove.
10915 (allocate_symbol): Remove.
10916 (allocate_template_symbol): Remove.
10917 * dwarf2/read.c (fixup_go_packaging): Use "new".
10918 (new_symbol): Use "new".
10919 (read_variable): Don't call initialize_objfile_symbol. Use
10921 (read_func_scope): Use "new".
10922 * xcoffread.c (process_xcoff_symbol): Don't call
10923 initialize_objfile_symbol.
10924 (SYMBOL_DUP): Remove.
10925 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10927 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10928 (allocate_template_symbol): Don't declare.
10929 (struct symbol): Add copy constructor. Change defaults.
10930 * jit.c (finalize_symtab): Use "new".
10931 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10933 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10934 (common_block_end): Use "new".
10935 * mdebugread.c (parse_symbol): Use "new".
10936 (new_symbol): Likewise.
10938 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10940 * NEWS: Mention changes to help and apropos.
10942 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10944 * command.h (enum command_class): Improve comments, document
10945 that class_alias is for user-defined aliases, give the class
10946 name for each class, remove unused class_xdb.
10947 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10948 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10949 by a precise class.
10950 * infcmd.c (_initialize_infcmd): Likewise.
10951 * reverse.c (_initialize_reverse): Likewise.
10952 * stack.c (_initialize_stack): Likewise.
10953 * symfile.c (_initialize_symfile): Likewise.
10954 * tracepoint.c (_initialize_tracepoint): Likewise.
10956 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10958 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10959 when their aliased command is traversed.
10960 (help_cmd): Add fput_command_names_styled call to
10961 output command name and aliases when command has an alias.
10963 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10965 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10966 * cli/cli-decode.c (help_cmd_list): Declare as static,
10967 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10968 a command together with the command.
10969 (fput_command_name_styled, fput_command_names_styled): New functions.
10970 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10971 fput_command_name_styled.
10972 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10973 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10975 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10977 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10978 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10979 * command.h (cmd_show_list): Likewise.
10980 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10981 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10983 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10985 * unittests/command-def-selftests.c (traverse_command_structure):
10986 Verify all commands of a list have the same prefix command and
10987 that only the top cmdlist commands have a null prefix.
10989 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10991 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10992 as prefix, not one of its aliases.
10993 (set_cmd_prefix): Remove.
10994 (do_add_cmd): Centralize the setting of the prefix of a command, when
10995 command is defined after its full chain of prefix commands.
10996 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10997 (add_setshow_cmd_full): Likewise.
10998 (update_prefix_field_of_prefixed_commands): New function.
10999 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
11000 update_prefix_field_of_prefixed_commands.
11001 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
11002 addresses of remote_set_cmdlist and remote_show_cmdlist given
11003 as argument, not the address of an argument.
11004 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
11005 * gdb/remote.c (_initialize_remote): Likewise.
11007 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11009 * cli/cli-cmds.c (alias_command): Check for an existing alias
11010 using lookup_cmd_composition, as valid_command_p is too strict
11011 and forbids aliases that are the prefix of an existing alias
11013 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
11014 command is properly recognised as a valid command.
11016 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11018 * unittests/help-doc-selftests.c: Rename to
11019 unittests/command-def-selftests.c
11020 * unittests/command-def-selftests.c (help_doc_tests): Update some
11022 (command_structure_tests, traverse_command_structure): New namespace
11024 (command_structure_invariants_tests): New function.
11025 (_initialize_command_def_selftests) Renamed from
11026 _initialize_help_doc_selftests, register command_structure_invariants
11029 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11031 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
11032 an alias of 'show'.
11034 2020-05-15 Joel Brobecker <brobecker@adacore.com>
11036 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
11037 ada_is_fixed_point_type. Update all callers.
11038 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
11040 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
11041 Update all callers.
11042 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
11043 print_fixed_point_type. Update all callers.
11044 * ada-valprint.c (ada_value_print_num): Replace call to
11045 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
11047 2020-05-14 Kevin Buettner <kevinb@redhat.com>
11049 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
11051 (cpu_supports_bts): Add CV_AMD case.
11053 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
11054 Simon Marchi <simon.marchi@efficios.com>
11056 * infrun.c (stop_all_threads): Collect multiple wait events at
11059 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11061 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11062 type::code instead.
11064 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11066 * gdbtypes.h (struct type) <code, set_code>: New methods.
11067 (TYPE_CODE): Use type::code. Change all call sites used to set
11068 the code to use type::set_code instead.
11070 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11071 Tom de Vries <tdevries@suse.de>
11072 Pedro Alves <palves@redhat.com>
11075 * infrun.c (stop_all_threads): Do NOT ignore
11076 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11077 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11079 (handle_no_resumed): Remove code handling a live inferior with no
11081 * remote.c (has_single_non_exited_thread): New.
11082 (remote_target::update_thread_list): Do not delete a thread if is
11083 the last thread of the process.
11084 * thread.c (thread_select): Call delete_exited_threads instead of
11087 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11089 * infrun.c (stop_all_threads): Enable/disable thread events of all
11090 targets. Move a debug message denoting the end of the function
11091 into the SCOPED_EXIT block.
11093 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11095 * process-stratum-target.h: Include <set>.
11096 (all_non_exited_process_targets, switch_to_target_no_thread): New
11097 function declarations.
11098 * process-stratum-target.c (all_non_exited_process_targets)
11099 (switch_to_target_no_thread): New function implementations.
11101 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11103 * infrun.c (handle_inferior_event): Extract out a piece of code
11105 (mark_non_executing_threads): ...this new function.
11107 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11109 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11112 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11114 * regcache.c (regcache_read_pc_protected): New function
11115 implementation that returns 0 if the PC cannot read via
11116 'regcache_read_pc'.
11117 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11118 instead of 'regcache_read_pc'.
11119 (keep_going_pass_signal): Ditto.
11121 2020-05-13 Tom Tromey <tromey@adacore.com>
11123 * ada-lang.c (align_value): Remove.
11124 (ada_template_to_fixed_record_type_1): Use align_up.
11126 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11128 * async-event.c: Update the copyright year.
11129 * async-event.h: Update the copyright year.
11131 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
11133 * objfiles.h (is_addr_in_objfile,
11134 shared_objfile_contains_address_p): Return bool.
11135 * objfile.c (is_addr_in_objfile,
11136 shared_objfile_contains_address_p): Return bool.
11138 2020-05-11 Tom Tromey <tromey@adacore.com>
11140 * cli/cli-cmds.c (info_command): Restore.
11141 (_initialize_cli_cmds): Use add_prefix_command for "info".
11142 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11144 2020-05-11 Tom Tromey <tromey@adacore.com>
11146 * ada-lang.c (ada_value_primitive_field): Now public.
11147 * ada-lang.h (ada_value_primitive_field): Declare.
11148 * ada-valprint.c (print_field_values): Use
11149 ada_value_primitive_field for wrapper fields.
11151 2020-05-11 Tom de Vries <tdevries@suse.de>
11153 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11156 2020-05-11 Tom de Vries <tdevries@suse.de>
11159 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11160 with length 0, if not gdb-produced.
11161 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11163 2020-05-09 Tom de Vries <tdevries@suse.de>
11166 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11169 2020-05-09 Tom Tromey <tom@tromey.com>
11171 * top.c (server_command): Now bool.
11172 * top.h (server_command): Now bool.
11174 2020-05-08 Tom Tromey <tromey@adacore.com>
11176 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11177 already being processed.
11179 2020-05-08 Tom Tromey <tom@tromey.com>
11181 * printcmd.c (struct display) <next>: Remove.
11182 <display>: New constructor.
11183 <exp_string>: Now a std::string.
11184 <enabled_p>: Now a bool.
11185 (display_number): Move definition earlier.
11186 (displays): Rename from display_chain. Now a std::vector.
11187 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11188 (display_command): Update.
11189 (do_one_display, disable_display)
11190 (enable_disable_display_command, do_enable_disable_display):
11192 (free_display): Remove.
11193 (clear_displays): Rewrite.
11194 (delete_display): Update.
11195 (map_display_numbers): Use function_view. Remove "data"
11197 (do_delete_display): Remove.
11198 (undisplay_command): Update.
11199 (do_one_display, do_displays, disable_display)
11200 (info_display_command): Update.
11201 (do_enable_disable_display): Remove.
11202 (enable_disable_display_command)
11203 (clear_dangling_display_expressions): Update.
11205 2020-05-08 Tom Tromey <tom@tromey.com>
11207 * symtab.c (set_symbol_cache_size)
11208 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11209 (maintenance_print_symbol_cache_statistics): Update.
11210 * symmisc.c (print_symbol_bcache_statistics)
11211 (print_objfile_statistics, maintenance_print_objfiles)
11212 (maintenance_info_symtabs, maintenance_check_symtabs)
11213 (maintenance_expand_symtabs, maintenance_info_line_tables):
11215 * symfile-debug.c (set_debug_symfile): Update.
11216 * source.c (forget_cached_source_info): Update.
11217 * python/python.c (gdbpy_progspaces): Update.
11218 * psymtab.c (maintenance_info_psymtabs): Update.
11219 * probe.c (parse_probes): Update.
11220 * linespec.c (iterate_over_all_matching_symtabs)
11221 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11222 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11223 * exec.c (exec_target::close): Update.
11224 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11225 * breakpoint.c (print_one_breakpoint_location)
11226 (create_longjmp_master_breakpoint)
11227 (create_std_terminate_master_breakpoint): Update.
11228 * progspace.c (program_spaces): Now a std::vector.
11229 (maybe_new_address_space): Update.
11230 (add_program_space): Remove.
11231 (program_space::program_space): Update.
11232 (remove_program_space): Update.
11233 (number_of_program_spaces): Remove.
11234 (print_program_space, update_address_spaces): Update.
11235 * progspace.h (program_spaces): Change type.
11236 (ALL_PSPACES): Remove.
11237 (number_of_program_spaces): Don't declare.
11238 (struct program_space) <next>: Remove.
11240 2020-05-08 Tom Tromey <tom@tromey.com>
11242 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11243 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11244 (enable_break): Update.
11245 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11246 (frv_fdpic_find_canonical_descriptor): Update.
11247 (frv_fetch_objfile_link_map): Update.
11248 * progspace.c (program_space::free_all_objfiles): Update.
11249 (program_space::solibs): New method.
11250 * progspace.h (struct program_space) <solibs>: New method.
11251 * solist.h (master_so_list): Don't declare.
11252 (ALL_SO_LIBS): Remove.
11253 * solib.h (so_list_head): Remove.
11254 (update_solib_list): Update comment.
11255 * solib.c (master_so_list): Remove.
11256 (solib_used, update_solib_list, solib_add)
11257 (info_sharedlibrary_command, clear_solib)
11258 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11260 2020-05-08 Tom Tromey <tom@tromey.com>
11262 * extension.c (extension_languages): Now a std::array.
11263 (ALL_EXTENSION_LANGUAGES): Remove.
11264 (get_ext_lang_defn, get_ext_lang_of_file)
11265 (eval_ext_lang_from_control_command): Update.
11266 (finish_ext_lang_initialization)
11267 (auto_load_ext_lang_scripts_for_objfile)
11268 (ext_lang_type_printers::ext_lang_type_printers)
11269 (apply_ext_lang_type_printers)
11270 (ext_lang_type_printers::~ext_lang_type_printers)
11271 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11272 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11273 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11274 (get_matching_xmethod_workers, ext_lang_colorize)
11275 (ext_lang_before_prompt): Update.
11276 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11278 2020-05-08 Tom Tromey <tom@tromey.com>
11280 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11282 <swap_string, m_string>: Remove.
11283 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11285 * stabsread.c (define_symbol, read_type): Update.
11286 * linespec.c (find_linespec_symbols): Update.
11287 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11288 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11289 * dbxread.c (read_dbx_symtab): Update.
11290 * cp-support.h (cp_canonicalize_string_full)
11291 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11292 Return unique_xmalloc_ptr.
11293 * cp-support.c (inspect_type): Update.
11294 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11295 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11297 * c-typeprint.c (print_name_maybe_canonical): Update.
11298 * break-catch-throw.c (check_status_exception_catchpoint):
11301 2020-05-08 Tom de Vries <tdevries@suse.de>
11303 * infrun.c (follow_fork): Copy current_line and current_symtab to
11306 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11308 * async-event.c (struct async_signal_handler, struct
11309 async_event_handler): Reformat, remove typedef.
11311 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11313 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11314 access thistype->main_type->dyn_prop_list directly.
11316 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11318 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11319 (remove_dyn_prop): Remove. Update all users to use
11320 type::remove_dyn_prop.
11321 * gdbtypes.c (remove_dyn_prop): Rename to...
11322 (type::remove_dyn_prop): ... this.
11324 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11326 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11327 (add_dyn_prop): Remove. Update all users to use
11328 type::add_dyn_prop.
11329 * gdbtypes.c (add_dyn_prop): Rename to...
11330 (type::add_dyn_prop): ... this.
11332 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11334 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11335 (get_dyn_prop): Remove. Update all users to use
11337 * gdbtypes.c (get_dyn_prop): Rename to...
11338 (type::dyn_prop): ... this.
11340 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11342 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11344 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11346 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11347 instruction, skip it if it's there.
11349 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11351 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11353 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11355 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11356 * gdbtypes.c (recursive_dump_type): Remove use of
11359 2020-05-03 Tom Tromey <tom@tromey.com>
11361 * breakpoint.c (catch_command, tcatch_command): Remove.
11362 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11363 add_show_prefix_cmd.
11364 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11365 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11367 (add_internal_problem_command): Use add_basic_prefix_cmd,
11368 add_show_prefix_cmd.
11369 * mips-tdep.c (set_mipsfpu_command): Remove.
11370 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11371 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11372 (_initialize_index_cache): Use add_basic_prefix_cmd.
11373 * memattr.c (dummy_cmd): Remove.
11374 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11375 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11376 (_initialize_tui_win): Use add_basic_prefix_cmd,
11377 add_show_prefix_cmd.
11378 * cli/cli-logging.c (set_logging_command): Remove.
11379 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11380 add_show_prefix_cmd.
11381 (show_logging_command): Remove.
11382 * target.c (target_command): Remove.
11383 (add_target): Use add_basic_prefix_cmd.
11385 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11387 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11389 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11391 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11394 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11396 * nbsd-nat.c (nbsd_enable_proc_events)
11397 (nbsd_nat_target::post_startup_inferior): Add.
11398 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11399 (nbsd_nat_target::update_thread_list): Rewrite.
11400 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11401 "PTRACE_LWP_CREATE".
11402 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11404 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11406 * stack.c (_initialize_stack): Remove duplicated creation
11407 of "frame" command and "f" alias.
11409 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11412 * gdbtypes.c (check_typedef): Calculate size of array of
11415 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11418 * i386-tdep.c (i386_push_dummy_call): Call
11419 i386_thiscall_push_dummy_call.
11420 (i386_thiscall_push_dummy_call): New function.
11421 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11422 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11423 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11425 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11427 * gdbarch.sh (do_read): Add shellcheck disable directive for
11430 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11432 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11433 "referenced but not assigned" warning.
11435 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11437 * gdbarch.sh: Remove code that sets fallbackdefault.
11439 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11441 * gdbarch.sh: Use shell operators && and || instead of
11444 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11446 * gdbarch.sh: Use $(...) instead of `...`.
11448 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11450 * gdbarch.sh: Use double quotes around variables.
11452 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11454 * gdbarch.sh: Use %s with printf, instead of variables in the
11457 2020-04-29 Tom Tromey <tromey@adacore.com>
11460 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11462 (read_enumeration_type): Call
11463 update_enumeration_type_from_children later. Update comments.
11464 (process_enumeration_scope): Don't create type fields.
11466 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11468 * nbsd-tdep.c: Include "xml-syscall.h".
11469 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11471 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11473 * nbsd-nat.c: Include "sys/wait.h".
11474 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11475 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11476 (nbsd_nat_target::remove_exec_catchpoint)
11477 (nbsd_nat_target::set_syscall_catchpoint): Add.
11478 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11479 (nbsd_nat_target::insert_exec_catchpoint)
11480 (nbsd_nat_target::remove_exec_catchpoint)
11481 (nbsd_nat_target::set_syscall_catchpoint): Add.
11482 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11483 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11484 `nbsd_get_syscall_number'.
11486 2020-04-29 Tom Tromey <tom@tromey.com>
11488 * stack.c (print_block_frame_labels): Remove.
11490 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11493 * ada-valprint.c (val_print_packed_array_elements): Move array
11494 end bracket to new line.
11495 (ada_val_print_string): Remove extra spaces before first array
11497 * c-valprint.c (c_value_print_array): Likewise.
11498 * m2-valprint.c (m2_print_array_contents): Likewise.
11499 (m2_value_print_inner): Likewise.
11500 * p-valprint.c (pascal_value_print_inner): Likewise.
11501 * valprint.c (generic_val_print_array): Likewise.
11502 (value_print_array_elements): Move first array element and array
11503 end bracket to new line.
11505 2020-04-29 Tom de Vries <tdevries@suse.de>
11508 * linespec.c (find_method): Fix ix calculation.
11510 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11512 * syscalls/update-netbsd.sh: New file.
11513 * syscalls/netbsd.xml: Regenerate.
11514 * data-directory/Makefile.in: Register `netbsd.xml' in
11517 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11519 * syscalls/update-freebsd.sh: Add double quotes.
11521 2020-04-28 Tom Tromey <tom@tromey.com>
11524 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11525 (cmdpy_init): Allow class_tui.
11527 2020-04-28 Mark Williams <mark@myosotissp.com>
11530 * dwarf2read.c: Add missing assingments to list_in_scope when
11531 start_symtab was already called.
11533 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11536 * dwarf2/read.c (offset_map_type): Use
11537 gdb:hash_enum<sect_offset> as hash function.
11539 2020-04-28 Tom de Vries <tdevries@suse.de>
11541 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11542 with DW_AT_signature.
11544 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11546 * configure.ac: Remove check for fs_base/gs_base in
11548 * configure: Re-generate.
11549 * config.in: Re-generate.
11550 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11551 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11552 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11554 2020-04-27 Luis Machado <luis.machado@linaro.org>
11556 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11557 problematic inline frame unwinding situation.
11558 * frame.c (frame_id_computed_p): New function.
11559 * frame.h (frame_id_computed_p): New prototype.
11561 2020-04-26 Tom Tromey <tom@tromey.com>
11563 * command.h (enum command_class) <class_pseudo>: Remove.
11565 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11567 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11570 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11572 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11573 `PT_GET_PROCESS_STATE' block.
11575 2020-04-24 Tom Tromey <tom@tromey.com>
11577 * symtab.h (symbol_get_demangled_name): Don't declare.
11578 * symtab.c (symbol_get_demangled_name): Remove.
11579 (general_symbol_info::natural_name)
11580 (general_symbol_info::demangled_name): Update.
11582 2020-04-24 Tom Tromey <tom@tromey.com>
11585 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11587 2020-04-24 Tom Tromey <tom@tromey.com>
11590 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11592 (new_symbol): Likewise.
11593 * compile/compile-object-load.c (get_out_value_type): Use
11594 symbol_matches_search_name.
11596 2020-04-24 Tom Tromey <tom@tromey.com>
11598 * dwarf2/read.c (add_partial_symbol): Do not call
11599 compute_and_set_names.
11601 2020-04-24 Tom Tromey <tom@tromey.com>
11603 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11606 2020-04-24 Tom Tromey <tom@tromey.com>
11608 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11609 (add_psymbol_to_list): New overload. Make old overload call new
11611 * psympriv.h (add_psymbol_to_list): New overload.
11613 2020-04-24 Tom Tromey <tom@tromey.com>
11615 * dwarf2/read.c (partial_die_info::read) <case
11616 DW_AT_linkage_name>: Use value_as_string.
11617 (dwarf2_string_attr): Use value_as_string.
11618 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11620 * dwarf2/attribute.c (attribute::value_as_string): New method.
11622 2020-04-24 Tom Tromey <tom@tromey.com>
11624 * symtab.c (general_symbol_info::natural_name)
11625 (general_symbol_info::demangled_name): Check for language_rust.
11627 2020-04-24 Tom Tromey <tom@tromey.com>
11629 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11630 (dwarf2_physname): ... from here.
11631 (partial_die_info::read): Add Rust "{" hack.
11633 2020-04-24 Tom Tromey <tom@tromey.com>
11635 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11637 (symbol_set_demangled_name): Don't declare.
11638 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11639 symbol_set_demangled_name.
11640 (general_symbol_info::set_language)
11641 (general_symbol_info::compute_and_set_names): Update.
11642 * minsyms.c (minimal_symbol_reader::install): Update.
11643 * dwarf2/read.c (new_symbol): Update.
11645 2020-04-24 Tom Tromey <tromey@adacore.com>
11648 * python/py-type.c (convert_field): Handle
11649 FIELD_LOC_KIND_DWARF_BLOCK.
11650 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11651 (typy_get_dynamic): Nw function.
11652 (type_object_getset): Add "dynamic".
11655 2020-04-24 Tom Tromey <tromey@adacore.com>
11657 * ada-typeprint.c (print_choices, print_variant_part)
11658 (print_record_field_types_dynamic): New functions.
11659 (print_record_field_types): Use print_record_field_types_dynamic.
11661 2020-04-24 Tom Tromey <tromey@adacore.com>
11663 * dwarf2/read.c (handle_data_member_location): New overload.
11664 (dwarf2_add_field): Use it.
11665 (decode_locdesc): Add "computed" parameter. Update comment.
11666 * gdbtypes.c (is_dynamic_type_internal): Also look for
11667 FIELD_LOC_KIND_DWARF_BLOCK.
11668 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11669 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11670 virtual base classes.
11671 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11672 FIELD_LOC_KIND_DWARF_BLOCK.
11674 2020-04-24 Tom Tromey <tromey@adacore.com>
11676 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11677 * gdbtypes.c (is_dynamic_type_internal): Check
11678 TYPE_HAS_DYNAMIC_LENGTH.
11679 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11680 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11682 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11685 2020-04-24 Tom Tromey <tromey@adacore.com>
11687 * dwarf2/read.c (struct variant_field): Rewrite.
11688 (struct variant_part_builder): New.
11689 (struct nextfield): Remove "variant" field. Add "offset".
11690 (struct field_info): Add "current_variant_part" and
11692 (alloc_discriminant_info): Remove.
11693 (alloc_rust_variant): New function.
11694 (quirk_rust_enum): Update.
11695 (dwarf2_add_field): Set "offset" member. Don't handle
11696 DW_TAG_variant_part.
11697 (offset_map_type): New typedef.
11698 (convert_variant_range, create_one_variant)
11699 (create_one_variant_part, create_variant_parts)
11700 (add_variant_property): New functions.
11701 (dwarf2_attach_fields_to_type): Call add_variant_property.
11702 (read_structure_type): Don't handle DW_TAG_variant_part.
11703 (handle_variant_part, handle_variant): New functions.
11704 (handle_struct_member_die): Use them.
11705 (process_structure_scope): Don't handle variant parts.
11706 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11707 (struct discriminant_info): Remove.
11708 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11709 (struct main_type) <flag_discriminated_union>: Remove.
11710 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11711 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11712 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11714 * valops.c (value_union_variant): Remove.
11715 * value.h (value_union_variant): Don't declare.
11717 2020-04-24 Tom Tromey <tromey@adacore.com>
11719 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11720 (ada_value_primitive_packed_val): Update.
11721 * ada-valprint.c (ada_value_print_1): Update.
11722 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11723 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11724 just an address. Use evaluate_for_locexpr_baton.
11725 (dwarf2_evaluate_property): Update.
11726 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11728 * findvar.c (default_read_var_value): Update.
11729 * gdbtypes.c (compute_variant_fields_inner)
11730 (resolve_dynamic_type_internal): Update.
11731 (resolve_dynamic_type): Change type of valaddr parameter.
11732 * gdbtypes.h (resolve_dynamic_type): Update.
11733 * valarith.c (value_subscripted_rvalue): Update.
11734 * value.c (value_from_contents_and_address): Update.
11736 2020-04-24 Tom Tromey <tromey@adacore.com>
11738 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11739 "push_initial_value" parameter.
11740 (dwarf2_evaluate_property): Likewise.
11741 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11743 2020-04-24 Tom Tromey <tromey@adacore.com>
11745 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11746 (variant::matches, compute_variant_fields_recurse)
11747 (compute_variant_fields_inner, compute_variant_fields): New
11749 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11750 Use resolved_type after type is made.
11751 (operator==): Add new cases.
11752 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11753 (struct discriminant_range, struct variant, struct variant_part):
11755 (union dynamic_prop_data) <variant_parts, original_type>: New
11757 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11758 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11760 * value.c (unpack_bits_as_long): Now public.
11761 * value.h (unpack_bits_as_long): Declare.
11763 2020-04-24 Tom Tromey <tromey@adacore.com>
11765 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11766 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11768 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11770 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11772 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11774 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11775 (remove_fork_catchpoint, post_startup_inferior)
11776 (post_attach): Move...
11777 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11778 (remove_fork_catchpoint, post_startup_inferior)
11779 (post_attach): ...here.
11780 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11781 (remove_fork_catchpoint, post_startup_inferior)
11782 (post_attach): Move...
11783 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11784 (remove_fork_catchpoint, post_startup_inferior)
11785 (post_attach): ...here.
11787 2020-04-24 Tom Tromey <tromey@adacore.com>
11789 * nat/windows-nat.h (struct windows_thread_info)
11790 <pc_adjusted>: New member.
11791 * windows-nat.c (windows_fetch_one_register): Check
11793 (windows_nat_target::get_windows_debug_event)
11794 (windows_nat_target::wait): Set pc_adjusted.
11796 2020-04-24 Tom de Vries <tdevries@suse.de>
11798 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11799 Run gdb-add-index inside temp dir.
11801 2020-04-23 Tom Tromey <tromey@adacore.com>
11803 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11806 2020-04-23 Luis Machado <luis.machado@linaro.org>
11808 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11809 get_frame_register instead of gdbarch_unwind_pc.
11811 2020-04-23 Tom de Vries <tdevries@suse.de>
11813 * symtab.c (lookup_global_symbol): Prefer def over decl.
11815 2020-04-23 Tom de Vries <tdevries@suse.de>
11818 * block.c (best_symbol, better_symbol): Promote to external.
11819 * block.h (best_symbol, better_symbol): Declare.
11820 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11823 2020-04-23 Tom Tromey <tromey@adacore.com>
11826 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11827 "const char *", not a "const std::string &".
11828 <name_and_matcher::operator==>: Update.
11829 * unittests/lookup_name_info-selftests.c: Change type of
11832 2020-04-23 Tom Tromey <tom@tromey.com>
11834 * inferior.h (iterate_over_inferiors): Don't declare.
11835 * inferior.c (iterate_over_inferiors): Remove.
11836 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11838 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11839 use iterate_over_inferiors.
11840 (darwin_resume_inferior_it)
11841 (struct resume_inferior_threads_param)
11842 (darwin_resume_inferior_threads_it): Remove.
11843 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11845 2020-04-23 Tom de Vries <tdevries@suse.de>
11847 * blockframe.c (find_pc_partial_function): Use
11848 find_pc_sect_compunit_symtab rather than
11849 objfile->sf->qf->find_pc_sect_compunit_symtab.
11851 2020-04-22 Tom de Vries <tdevries@suse.de>
11854 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11857 2020-04-22 Tom de Vries <tdevries@suse.de>
11860 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11863 2020-04-22 Tom de Vries <tdevries@suse.de>
11866 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11867 CU if already created.
11869 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11871 * infrun.c (displaced_step_fixup): Switch to the event_thread
11872 before calling displaced_step_restore, not after.
11874 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11876 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11877 its inferior is not recorded by us.
11878 (record_btrace_target_open): Replace call to
11879 all_non_exited_threads () with call to current_inferior
11880 ()->non_exited_threads ().
11881 (record_btrace_target::stop_recording): Likewise.
11882 (record_btrace_target::close): Likewise.
11883 (record_btrace_target::wait): Likewise.
11884 (record_btrace_target::record_stop_replaying): Likewise.
11886 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11888 * btrace.c (btrace_enable): Throw an error on double enables and
11889 when enabling recording fails.
11890 (btrace_disable): Throw an error if the thread is not recorded.
11892 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11894 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11895 request if we do not have a thread_info.
11897 2020-04-21 Tom de Vries <tdevries@suse.de>
11901 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11902 exception in get_frame_id.
11904 2020-04-20 Tom Tromey <tromey@adacore.com>
11906 * python/python.c (struct gdbpy_event): Mark move constructor as
11908 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11909 constructor as noexcept.
11910 * completer.h (struct completion_result): Mark move constructor as
11912 * completer.c (completion_result::completion_result): Use
11913 initialization style. Don't call reset_match_list.
11915 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11917 * MAINTAINERS (Write After Approval): Add myself.
11919 2020-04-18 Tom Tromey <tom@tromey.com>
11921 * windows-tdep.c (init_w32_command_list)
11922 (w32_prefix_command_valid): Restore.
11923 (_initialize_windows_tdep): Call init_w32_command_list.
11925 2020-04-18 Tom Tromey <tom@tromey.com>
11927 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11928 * value.c (value_fn_field): Update.
11929 * valops.c (find_function_in_inferior)
11930 (value_allocate_space_in_inferior): Update.
11931 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11933 * tui/tui-source.c (tui_source_window::set_contents): Update.
11934 * symtab.c (lookup_global_or_static_symbol)
11935 (find_function_start_sal_1, skip_prologue_sal)
11936 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11937 * symmisc.c (dump_msymbols, dump_symtab_1)
11938 (maintenance_print_one_line_table): Update.
11939 * symfile.c (init_entry_point_info, section_is_mapped)
11940 (list_overlays_command, simple_read_overlay_table)
11941 (simple_overlay_update_1): Update.
11942 * stap-probe.c (handle_stap_probe): Update.
11943 * stabsread.c (dbx_init_float_type, define_symbol)
11944 (read_one_struct_field, read_enum_type, read_range_type): Update.
11945 * source.c (info_line_command): Update.
11946 * python/python.c (gdbpy_source_objfile_script)
11947 (gdbpy_execute_objfile_script): Update.
11948 * python/py-type.c (save_objfile_types): Update.
11949 * python/py-objfile.c (py_free_objfile): Update.
11950 * python/py-inferior.c (python_new_objfile): Update.
11951 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11952 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11953 (maintenance_check_psymtabs): Update.
11954 * printcmd.c (info_address_command): Update.
11955 * objfiles.h (struct objfile) <arch>: New method, from
11957 (get_objfile_arch): Don't declare.
11958 * objfiles.c (get_objfile_arch): Remove.
11959 (filter_overlapping_sections): Update.
11960 * minsyms.c (msymbol_is_function): Update.
11961 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11962 (output_nondebug_symbol): Update.
11963 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11964 (mdebug_expand_psymtab): Update.
11965 * machoread.c (macho_add_oso_symfile): Update.
11966 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11968 * linux-fork.c (checkpoint_command): Update.
11969 * linespec.c (convert_linespec_to_sals): Update.
11970 * jit.c (finalize_symtab): Update.
11971 * infrun.c (insert_exception_resume_from_probe): Update.
11972 * ia64-tdep.c (ia64_find_unwind_table): Update.
11973 * hppa-tdep.c (internalize_unwinds): Update.
11974 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11976 * gcore.c (call_target_sbrk): Update.
11977 * elfread.c (record_minimal_symbol, elf_symtab_read)
11978 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11979 (elf_gnu_ifunc_resolve_by_got): Update.
11980 * dwarf2/read.c (create_addrmap_from_index)
11981 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11982 (read_debug_names_from_section)
11983 (process_psymtab_comp_unit_reader, add_partial_symbol)
11984 (add_partial_subprogram, process_full_comp_unit)
11985 (read_file_scope, read_func_scope, read_lexical_block_scope)
11986 (read_call_site_scope, dwarf2_ranges_read)
11987 (dwarf2_record_block_ranges, dwarf2_add_field)
11988 (mark_common_block_symbol_computed, read_tag_pointer_type)
11989 (read_tag_string_type, dwarf2_init_float_type)
11990 (dwarf2_init_complex_target_type, read_base_type)
11991 (partial_die_info::read, partial_die_info::read)
11992 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11993 (dwarf2_fetch_die_loc_sect_off): Update.
11994 * dwarf2/loc.c (dwarf2_find_location_expression)
11995 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11996 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11997 (dwarf2_loc_desc_get_symbol_read_needs)
11998 (locexpr_describe_location_piece, locexpr_describe_location_1)
11999 (loclist_describe_location): Update.
12000 * dwarf2/index-write.c (write_debug_names): Update.
12001 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
12002 * dtrace-probe.c (dtrace_process_dof): Update.
12003 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
12004 (process_one_symbol): Update.
12005 * ctfread.c (ctf_init_float_type, read_base_type): Update.
12006 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
12007 (coff_read_enum_type): Update.
12008 * cli/cli-cmds.c (edit_command, list_command): Update.
12009 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
12010 * breakpoint.c (create_overlay_event_breakpoint)
12011 (create_longjmp_master_breakpoint)
12012 (create_std_terminate_master_breakpoint)
12013 (create_exception_master_breakpoint, get_sal_arch): Update.
12014 * block.c (block_gdbarch): Update.
12015 * annotate.c (annotate_source_line): Update.
12017 2020-04-17 Tom Tromey <tromey@adacore.com>
12019 * auto-load.c (show_auto_load_cmd): Remove.
12020 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
12021 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
12022 (maintenance_print_arc_command): Remove.
12023 * tui/tui-win.c (tui_command): Remove.
12024 (tui_get_cmd_list): Use add_basic_prefix_cmd.
12025 * tui/tui-layout.c (tui_layout_command): Remove.
12026 (_initialize_tui_layout): Use add_basic_prefix_cmd.
12027 * python/python.c (user_set_python, user_show_python): Remove.
12028 (_initialize_python): Use add_basic_prefix_cmd,
12029 add_show_prefix_cmd.
12030 * guile/guile.c (set_guile_command, show_guile_command): Remove.
12031 (install_gdb_commands): Use add_basic_prefix_cmd,
12032 add_show_prefix_cmd.
12033 (info_guile_command): Remove.
12034 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
12035 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
12036 add_show_prefix_cmd.
12037 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
12038 Remove do_set and do_show parameters.
12039 * cli/cli-style.c (set_style, show_style): Remove.
12040 (_initialize_cli_style): Use add_basic_prefix_cmd,
12041 add_show_prefix_cmd.
12042 (cli_style_option::add_setshow_commands): Remove do_set and
12043 do_show parameters.
12044 (cli_style_option::add_setshow_commands): Use
12045 add_basic_prefix_cmd, add_show_prefix_cmd.
12046 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
12047 (set_style_name): Remove.
12048 * cli/cli-dump.c (dump_command, append_command): Remove.
12049 (srec_dump_command, ihex_dump_command, verilog_dump_command)
12050 (tekhex_dump_command, binary_dump_command)
12051 (binary_append_command): Remove.
12052 (_initialize_cli_dump): Use add_basic_prefix_cmd.
12053 * windows-tdep.c (w32_prefix_command_valid): Remove global.
12054 (init_w32_command_list): Remove; move into ...
12055 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
12056 * valprint.c (set_print, show_print, set_print_raw)
12057 (show_print_raw): Remove.
12058 (_initialize_valprint): Use add_basic_prefix_cmd,
12059 add_show_prefix_cmd.
12060 * typeprint.c (set_print_type, show_print_type): Remove.
12061 (_initialize_typeprint): Use add_basic_prefix_cmd,
12062 add_show_prefix_cmd.
12063 * record.c (set_record_command, show_record_command): Remove.
12064 (_initialize_record): Use add_basic_prefix_cmd,
12065 add_show_prefix_cmd.
12066 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12067 add_show_prefix_cmd.
12068 (info_command, show_command, set_debug, show_debug): Remove.
12069 * top.h (set_history, show_history): Don't declare.
12070 * top.c (set_history, show_history): Remove.
12071 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12072 (unset_tdesc_cmd): Remove.
12073 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12074 add_show_prefix_cmd.
12075 * symtab.c (info_module_command): Remove.
12076 (_initialize_symtab): Use add_basic_prefix_cmd.
12077 * symfile.c (overlay_command): Remove.
12078 (_initialize_symfile): Use add_basic_prefix_cmd.
12079 * sparc64-tdep.c (info_adi_command): Remove.
12080 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12081 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12082 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12083 add_show_prefix_cmd.
12084 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12085 (_initialize_serial): Use add_basic_prefix_cmd,
12086 add_show_prefix_cmd.
12087 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12088 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12089 add_show_prefix_cmd.
12090 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12091 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12092 add_show_prefix_cmd.
12093 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12094 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12095 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12096 add_show_prefix_cmd.
12097 * remote.c (remote_command, set_remote_cmd): Remove.
12098 (_initialize_remote): Use add_basic_prefix_cmd.
12099 * record-full.c (set_record_full_command)
12100 (show_record_full_command): Remove.
12101 (_initialize_record_full): Use add_basic_prefix_cmd,
12102 add_show_prefix_cmd.
12103 * record-btrace.c (cmd_set_record_btrace)
12104 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12105 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12106 (cmd_show_record_btrace_pt): Remove.
12107 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12108 add_show_prefix_cmd.
12109 * ravenscar-thread.c (set_ravenscar_command)
12110 (show_ravenscar_command): Remove.
12111 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12112 add_show_prefix_cmd.
12113 * mips-tdep.c (show_mips_command, set_mips_command)
12114 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12115 add_show_prefix_cmd.
12116 * maint.c (maintenance_command, maintenance_info_command)
12117 (maintenance_check_command, maintenance_print_command)
12118 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12119 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12120 add_show_prefix_cmd.
12121 (show_per_command_cmd): Remove.
12122 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12124 (maintenance_show_test_settings_cmd): Remove.
12125 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12126 add_show_prefix_cmd.
12127 * maint-test-options.c (maintenance_test_options_command):
12129 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12130 * macrocmd.c (macro_command): Remove
12131 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12132 * language.c (set_check, show_check): Remove.
12133 (_initialize_language): Use add_basic_prefix_cmd,
12134 add_show_prefix_cmd.
12135 * infcmd.c (unset_command): Remove.
12136 (_initialize_infcmd): Use add_basic_prefix_cmd.
12137 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12138 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12139 add_show_prefix_cmd.
12140 * go32-nat.c (go32_info_dos_command): Remove.
12141 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12142 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12143 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12144 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12145 (_initialize_frame): Use add_basic_prefix_cmd,
12146 add_show_prefix_cmd.
12147 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12148 (_initialize_dcache): Use add_basic_prefix_cmd,
12149 add_show_prefix_cmd.
12150 * cp-support.c (maint_cplus_command): Remove.
12151 (_initialize_cp_support): Use add_basic_prefix_cmd.
12152 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12153 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12154 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12155 add_basic_prefix_cmd, add_show_prefix_cmd.
12156 * breakpoint.c (save_command): Remove.
12157 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12158 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12159 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12160 add_show_prefix_cmd.
12161 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12162 (set_ada_command, show_ada_command): Remove.
12163 (_initialize_ada_language): Use add_basic_prefix_cmd,
12164 add_show_prefix_cmd.
12165 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12167 2020-04-16 Kamil Rytarowski <n54@gmx.com>
12169 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12170 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12172 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12174 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12177 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12179 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12180 import table is not at beginning of .idata section.
12182 2020-04-16 Pedro Alves <palves@redhat.com>
12184 * inferior.c (delete_inferior): Use delete operator directly
12185 instead of delete_program_space.
12186 * progspace.c (add_program_space): New, factored out from
12187 program_space::program_space.
12188 (remove_program_space): New, factored out from
12189 delete_program_space.
12190 (program_space::program_space): Remove intro comment. Rewrite.
12191 (program_space::~program_space): Remove intro comment. Call
12192 remove_program_space.
12193 (delete_program_space): Delete.
12194 * progspace.h (program_space::program_space): Make explicit. Move
12195 intro comment here, adjusted.
12196 (program_space::~program_space): Move intro comment here,
12198 (delete_program_space): Remove.
12200 2020-04-16 Tom Tromey <tromey@adacore.com>
12202 * windows-nat.c (windows_nat::handle_access_violation): New
12204 * nat/windows-nat.h (handle_access_violation): Declare.
12205 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12206 windows-nat.c. Call handle_access_violation.
12208 2020-04-16 Tom de Vries <tdevries@suse.de>
12211 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12212 CUs without psymtab.
12214 2020-04-16 Kevin Buettner <kevinb@redhat.com>
12216 * python/python.c (do_start_initialization): Don't call
12217 PyEval_InitThreads for Python 3.9 and beyond.
12219 2020-04-15 Kamil Rytarowski <n54@gmx.com>
12221 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12223 (obsd_nat_target::wait): Likewise.
12225 2020-04-15 Tom Tromey <tromey@adacore.com>
12227 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12228 (DEBUG_EXCEPT): Use debug_printf.
12230 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12232 * completer.c (class completion_tracker::completion_hash_entry)
12233 <hash_name>: New member function.
12234 (completion_tracker::discard_completions): New callback to hash a
12235 completion_hash_entry, pass this to htab_create_alloc.
12237 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12239 * windows-nat.c (windows_make_so): Warn rather than stopping with
12240 an error if realpath() fails.
12242 2020-04-14 Kamil Rytarowski <n54@gmx.com>
12244 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12245 (nbsd_nat_target::info_proc): Add do_status.
12247 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12248 Tom de Vries <tdevries@suse.de>
12251 * psympriv.h (struct partial_symtab::read_symtab)
12252 (struct partial_symtab::expand_psymtab)
12253 (struct partial_symtab::read_dependencies): Update comments.
12254 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12255 read_symtab for includer.
12256 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12257 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12258 (struct dwarf2_include_psymtab::m_readin): Remove.
12259 (struct dwarf2_include_psymtab::includer): New member function.
12260 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12262 2020-04-14 Tom de Vries <tdevries@suse.de>
12265 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12266 with NULL symbol_matcher and lookup_name.
12267 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12269 * dwarf2/read.c (dw2_expand_symtabs_matching)
12270 (dw2_debug_names_expand_symtabs_matching): Same.
12271 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12272 Make lookup_name a pointer. Update comment.
12273 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12274 lookup_name being a pointer.
12275 * symfile.c (expand_symtabs_matching): Same.
12276 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12277 * linespec.c (iterate_over_all_matching_symtabs): Same.
12279 2020-04-13 Tom Tromey <tom@tromey.com>
12281 * run-on-main-thread.c: Update include.
12282 * unittests/main-thread-selftests.c: Update include.
12283 * tui/tui-win.c: Update include.
12284 * tui/tui-io.c: Update include.
12285 * tui/tui-interp.c: Update include.
12286 * tui/tui-hooks.c: Update include.
12287 * top.h: Update include.
12288 * top.c: Update include.
12289 * ser-base.c: Update include.
12290 * remote.c: Update include.
12291 * remote-notif.c: Update include.
12292 * remote-fileio.c: Update include.
12293 * record-full.c: Update include.
12294 * record-btrace.c: Update include.
12295 * python/python.c: Update include.
12296 * posix-hdep.c: Update include.
12297 * mingw-hdep.c: Update include.
12298 * mi/mi-main.c: Update include.
12299 * mi/mi-interp.c: Update include.
12300 * main.c: Update include.
12301 * linux-nat.c: Update include.
12302 * interps.c: Update include.
12303 * infrun.c: Update include.
12304 * inf-loop.c: Update include.
12305 * event-top.c: Update include.
12306 * event-loop.c: Move to ../gdbsupport/.
12307 * event-loop.h: Move to ../gdbsupport/.
12308 * async-event.h: Update include.
12309 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12311 2020-04-13 Tom Tromey <tom@tromey.com>
12313 * tui/tui-win.c: Include async-event.h.
12314 * remote.c: Include async-event.h.
12315 * remote-notif.c: Include async-event.h.
12316 * record-full.c: Include async-event.h.
12317 * record-btrace.c: Include async-event.h.
12318 * infrun.c: Include async-event.h.
12319 * event-top.c: Include async-event.h.
12320 * event-loop.h: Move some declarations to async-event.h.
12321 * event-loop.c: Don't include ser-event.h or top.h. Move some
12322 code to async-event.c.
12323 * async-event.h: New file.
12324 * async-event.c: New file.
12325 * Makefile.in (COMMON_SFILES): Add async-event.c.
12326 (HFILES_NO_SRCDIR): Add async-event.h.
12328 2020-04-13 Tom Tromey <tom@tromey.com>
12330 * utils.c (flush_streams): New function.
12331 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12333 2020-04-13 Tom Tromey <tom@tromey.com>
12335 * event-loop.c (handle_file_event): Use warning, not
12338 2020-04-13 Tom Tromey <tom@tromey.com>
12340 * event-loop.c: Include <chrono>.
12342 2020-04-13 Tom Tromey <tom@tromey.com>
12344 * gdb_select.h: Move to ../gdbsupport/.
12345 * event-loop.c: Update include path.
12346 * top.c: Update include path.
12347 * ser-base.c: Update include path.
12348 * ui-file.c: Update include path.
12349 * ser-tcp.c: Update include path.
12350 * guile/scm-ports.c: Update include path.
12351 * posix-hdep.c: Update include path.
12352 * ser-unix.c: Update include path.
12353 * gdb_usleep.c: Update include path.
12354 * mingw-hdep.c: Update include path.
12355 * inflow.c: Update include path.
12356 * infrun.c: Update include path.
12357 * event-top.c: Update include path.
12359 2020-04-13 Tom Tromey <tom@tromey.com>
12361 * configure: Rebuild.
12362 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12364 2020-04-13 Tom Tromey <tom@tromey.com>
12366 * event-loop.h (start_event_loop): Don't declare.
12367 * event-loop.c (start_event_loop): Move...
12368 * main.c (start_event_loop): ...here. Now static.
12370 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12372 * MAINTAINERS: Update my email address.
12374 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12376 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12379 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12381 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12382 (nbsd_nat_target::info_proc): Add do_cmdline.
12384 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12386 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12387 (nbsd_nat_target::info_proc): Add do_cwd.
12389 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12391 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12393 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12395 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12396 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12397 (nbsd_nat_target::info_proc): New functions.
12398 * nbsd-nat.c (kinfo_get_vmmap): New function.
12399 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12400 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12401 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12402 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12404 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12405 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12406 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12407 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12408 (KINFO_VME_FLAG_GROWS_DOWN): New.
12410 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12412 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12415 2020-04-10 Tom Tromey <tromey@adacore.com>
12417 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12419 2020-04-10 Tom Tromey <tromey@adacore.com>
12421 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12422 separate debug files.
12424 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12426 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12428 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12430 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12431 Check for STATUS_WX86_BREAKPOINT.
12432 (windows_nat_target::wait): Same.
12434 2020-04-10 Tom de Vries <tdevries@suse.de>
12437 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12439 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12441 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12442 (Write After Approval): Remove Tom de Vries.
12444 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12447 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12449 * buildsym.c (record_line): Fix undefined behavior and preserve
12452 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12454 * auxv.h (svr4_auxv_parse): New.
12455 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12456 and generic_auxv_parse.
12457 (svr4_auxv_parse): Add.
12458 * obsd-tdep.c: Include "auxv.h".
12459 (obsd_auxv_parse): Remove.
12460 (obsd_init_abi): Remove comment.
12461 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12462 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12463 * nbsd-tdep.c: Include "auxv.h".
12464 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12466 2020-04-08 Tom Tromey <tromey@adacore.com>
12468 * nat/windows-nat.h (last_wait_event): Don't declare.
12469 (wait_for_debug_event): Update comment.
12470 * nat/windows-nat.c (last_wait_event): Now static.
12472 2020-04-08 Tom Tromey <tromey@adacore.com>
12474 * windows-nat.c (wait_for_debug_event): Move to
12476 * nat/windows-nat.h (wait_for_debug_event): Declare.
12477 * nat/windows-nat.c (wait_for_debug_event): Move from
12478 windows-nat.c. No longer static.
12480 2020-04-08 Tom Tromey <tromey@adacore.com>
12482 * windows-nat.c (get_windows_debug_event): Use
12483 fetch_pending_stop.
12484 * nat/windows-nat.h (fetch_pending_stop): Declare.
12485 * nat/windows-nat.c (fetch_pending_stop): New function.
12487 2020-04-08 Tom Tromey <tromey@adacore.com>
12489 * windows-nat.c (windows_continue): Use matching_pending_stop and
12490 continue_last_debug_event.
12491 * nat/windows-nat.h (matching_pending_stop)
12492 (continue_last_debug_event): Declare.
12493 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12494 (matching_pending_stop, continue_last_debug_event): New
12497 2020-04-08 Tom Tromey <tromey@adacore.com>
12499 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12500 (handle_exception_result): Move to nat/windows-nat.h.
12501 (DEBUG_EXCEPTION_SIMPLE): Remove.
12502 (windows_nat::handle_ms_vc_exception): New function.
12503 (handle_exception): Move to nat/windows-nat.c.
12504 (get_windows_debug_event): Update.
12505 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12507 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12508 (handle_exception_result): Move from windows-nat.c.
12509 (handle_exception): Declare.
12510 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12511 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12514 2020-04-08 Tom Tromey <tromey@adacore.com>
12516 * windows-nat.c (exception_count, event_count): Remove.
12517 (handle_exception, get_windows_debug_event)
12518 (do_initial_windows_stuff): Update.
12520 2020-04-08 Tom Tromey <tromey@adacore.com>
12522 * windows-nat.c (windows_nat::handle_load_dll)
12523 (windows_nat::handle_unload_dll): Rename. No longer static.
12524 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12527 2020-04-08 Tom Tromey <tromey@adacore.com>
12529 * complaints.h (stop_whining): Declare at top-level.
12530 (complaint): Don't declare stop_whining.
12532 2020-04-08 Tom Tromey <tromey@adacore.com>
12534 * windows-nat.c (windows_nat::handle_output_debug_string):
12535 Rename. No longer static.
12536 * nat/windows-nat.h (handle_output_debug_string): Declare.
12538 2020-04-08 Tom Tromey <tromey@adacore.com>
12540 * windows-nat.c (current_process_handle, current_process_id)
12541 (main_thread_id, last_sig, current_event, last_wait_event)
12542 (current_windows_thread, desired_stop_thread_id, pending_stops)
12543 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12544 (display_selectors, fake_create_process)
12545 (get_windows_debug_event): Update.
12546 * nat/windows-nat.h (current_process_handle, current_process_id)
12547 (main_thread_id, last_sig, current_event, last_wait_event)
12548 (current_windows_thread, desired_stop_thread_id, pending_stops)
12549 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12550 * nat/windows-nat.c (current_process_handle, current_process_id)
12551 (main_thread_id, last_sig, current_event, last_wait_event)
12552 (current_windows_thread, desired_stop_thread_id, pending_stops)
12553 (siginfo_er): New globals. Move from windows-nat.c.
12555 2020-04-08 Tom Tromey <tromey@adacore.com>
12557 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12558 (handle_load_dll): Update.
12559 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12561 2020-04-08 Tom Tromey <tromey@adacore.com>
12563 * windows-nat.c (enum thread_disposition_type): Move to
12565 (windows_nat::thread_rec): Rename from thread_rec. No longer
12567 (windows_add_thread, windows_nat_target::fetch_registers)
12568 (windows_nat_target::store_registers, handle_exception)
12569 (windows_nat_target::resume, get_windows_debug_event)
12570 (windows_nat_target::get_tib_address)
12571 (windows_nat_target::thread_name)
12572 (windows_nat_target::thread_alive): Update.
12573 * nat/windows-nat.h (enum thread_disposition_type): Move from
12575 (thread_rec): Declare.
12577 2020-04-08 Tom Tromey <tromey@adacore.com>
12579 * windows-nat.c: Add "using namespace".
12580 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12581 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12583 2020-04-08 Tom Tromey <tromey@adacore.com>
12585 * nat/windows-nat.h (struct windows_thread_info): Declare
12587 * nat/windows-nat.c (~windows_thread_info): New.
12589 2020-04-08 Tom Tromey <tromey@adacore.com>
12592 * windows-nat.c (current_event): Update comment.
12593 (last_wait_event, desired_stop_thread_id): New globals.
12594 (struct pending_stop): New.
12595 (pending_stops): New global.
12596 (windows_nat_target) <stopped_by_sw_breakpoint>
12597 <supports_stopped_by_sw_breakpoint>: New methods.
12598 (windows_fetch_one_register): Add assertions. Adjust PC.
12599 (windows_continue): Handle pending stops. Suspend other threads
12600 when stepping. Use last_wait_event
12601 (wait_for_debug_event): New function.
12602 (get_windows_debug_event): Use wait_for_debug_event. Handle
12603 pending stops. Queue spurious stops.
12604 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12605 (windows_nat_target::kill): Use wait_for_debug_event.
12606 * nat/windows-nat.h (struct windows_thread_info)
12607 <stopped_at_software_breakpoint>: New field.
12608 * nat/windows-nat.c (windows_thread_info::resume): Clear
12609 stopped_at_software_breakpoint.
12611 2020-04-08 Tom Tromey <tromey@adacore.com>
12613 * windows-nat.c (enum thread_disposition_type): New.
12614 (thread_rec): Replace "get_context" parameter with "disposition";
12616 (windows_add_thread, windows_nat_target::fetch_registers)
12617 (windows_nat_target::store_registers, handle_exception)
12618 (windows_nat_target::resume, get_windows_debug_event)
12619 (windows_nat_target::get_tib_address)
12620 (windows_nat_target::thread_name)
12621 (windows_nat_target::thread_alive): Update.
12623 2020-04-08 Tom Tromey <tromey@adacore.com>
12625 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12626 (windows_continue): Use windows_continue::resume.
12627 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12628 resume>: Declare new methods.
12629 * nat/windows-nat.c: New file.
12630 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12632 2020-04-08 Tom Tromey <tromey@adacore.com>
12634 * windows-nat.c (windows_add_thread, windows_delete_thread)
12635 (windows_nat_target::fetch_registers)
12636 (windows_nat_target::store_registers, fake_create_process)
12637 (windows_nat_target::resume, windows_nat_target::resume)
12638 (get_windows_debug_event, windows_nat_target::wait)
12639 (windows_nat_target::pid_to_str)
12640 (windows_nat_target::get_tib_address)
12641 (windows_nat_target::get_ada_task_ptid)
12642 (windows_nat_target::thread_name)
12643 (windows_nat_target::thread_alive): Use lwp, not tid.
12645 2020-04-08 Tom Tromey <tromey@adacore.com>
12647 * windows-nat.c (handle_exception)
12648 (windows_nat_target::thread_name): Update.
12649 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12650 <name>: Now unique_xmalloc_ptr.
12652 2020-04-08 Tom Tromey <tromey@adacore.com>
12654 * windows-nat.c (thread_rec)
12655 (windows_nat_target::fetch_registers): Update.
12656 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12658 <debug_registers_changed, reload_context>: Now bool.
12660 2020-04-08 Tom Tromey <tromey@adacore.com>
12662 * windows-nat.c (windows_add_thread): Use new.
12663 (windows_init_thread_list, windows_delete_thread): Use delete.
12664 (get_windows_debug_event): Update.
12665 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12666 destructor, and initializers.
12668 2020-04-08 Tom Tromey <tromey@adacore.com>
12670 * windows-nat.c (struct windows_thread_info): Remove.
12671 * nat/windows-nat.h: New file.
12673 2020-04-08 Tom Tromey <tromey@adacore.com>
12675 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12676 (thread_rec, windows_add_thread, windows_delete_thread)
12677 (windows_continue): Update.
12679 2020-04-08 Tom Tromey <tromey@adacore.com>
12681 * windows-nat.c (struct windows_thread_info): Remove typedef.
12682 (thread_head): Remove.
12683 (thread_list): New global.
12684 (thread_rec, windows_add_thread, windows_init_thread_list)
12685 (windows_delete_thread, windows_continue): Update.
12687 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12689 * windows-tdep.h (windows_init_abi): Add comment.
12690 (cygwin_init_abi): New declaration.
12691 * windows-tdep.c: Split signal enumeration in two, one for
12692 Windows and one for Cygwin.
12693 (windows_gdb_signal_to_target): Only deal with signal of the
12695 (cygwin_gdb_signal_to_target): New function.
12696 (windows_init_abi): Rename to windows_init_abi_common, don't set
12697 gdb_signal_to_target gdbarch method. Add new new function with
12699 (cygwin_init_abi): New function.
12700 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12701 comment. Don't call windows_init_abi.
12702 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12703 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12704 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12705 i386_windows_init_abi_common, don't call windows_init_abi. Add
12706 a new function of this name.
12707 (i386_cygwin_init_abi): New function.
12708 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12711 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12713 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12715 (dwarf2_read_gdb_index): Update.
12717 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12719 * nbsd-tdep.c: Include "objfiles.h".
12720 (nbsd_skip_solib_resolver): New.
12721 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12723 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12725 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12726 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12727 with DW_LLE_base_addressx are being emitted in DWARFv5.
12728 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12729 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12732 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12734 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12735 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12736 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12737 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12738 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12739 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12740 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12743 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12745 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12746 (read_loclist_index): New function definition.
12747 (lookup_loclist_base): New function definition.
12748 (read_loclist_header): New function definition.
12749 (dwarf2_cu): Add loclist_base and loclist_header field.
12750 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12751 (read_full_die_1): Read the value of DW_AT_loclists_base.
12752 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12753 (read_attribute_value): Handle DW_FORM_loclistx.
12754 (skip_one_die): Handle DW_FORM_loclistx.
12755 (loclist_header): New structure declaration.
12756 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12758 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12760 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12761 constructor. Remove `addr` parameter from other constructor and
12762 add `per_cu` parameter.
12763 * dwarf2/read.c (create_partial_symtab): Update.
12765 2020-04-07 Tom de Vries <tdevries@suse.de>
12768 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12769 (partial_die_info::fixup): Inherit has_const_value.
12771 2020-04-07 Tom de Vries <tdevries@suse.de>
12773 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12774 symbols without address.
12776 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12778 * nbsd-nat.h (struct thread_info): Add forward declaration.
12779 (nbsd_nat_target::thread_alive): Add.
12780 (nbsd_nat_target::thread_name): Likewise.
12781 (nbsd_nat_target::update_thread_list): Likewise.
12782 (update_thread_list::post_attach): Likewise.
12783 (post_attach::pid_to_str): Likewise.
12784 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12785 (nbsd_thread_lister): Add.
12786 (nbsd_nat_target::thread_alive): Likewise.
12787 (nbsd_nat_target::thread_name): Likewise.
12788 (nbsd_add_threads): Likewise.
12789 (update_thread_list::post_attach): Likewise.
12790 (nbsd_nat_target::update_thread_list): Likewise.
12791 (post_attach::pid_to_str): Likewise.
12793 2020-04-06 Tom Tromey <tromey@adacore.com>
12795 * ada-valprint.c (print_variant_part): Extract the variant field.
12796 (print_field_values): Use the field as the outer value when
12799 2020-04-06 Tom Tromey <tromey@adacore.com>
12801 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12802 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12803 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12804 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12805 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12807 2020-04-06 Tom Tromey <tromey@adacore.com>
12809 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12812 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12814 * nbsd-tdep.c: Include "gdbarch.h".
12815 Define enum with NetBSD signal numbers.
12816 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12817 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12818 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12819 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12820 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12821 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12822 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12823 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12824 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12825 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12826 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12827 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12829 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12832 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12834 2020-04-03 Tom Tromey <tromey@adacore.com>
12836 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12837 Read constant block.
12839 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12841 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12842 (gdb_bfd_get_full_section_contents): New declaration.
12843 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12844 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12845 gdb_bfd_get_full_section_contents.
12847 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12849 * exec.c (build_section_table): Replace internal_error with
12851 (section_table_xfer_memory_partial): Likewise.
12852 * mdebugread.c (parse_partial_symbols): Likewise.
12853 * psymtab.c (lookup_partial_symbol): Likewise.
12854 * utils.c (wrap_here): Likewise.
12856 2020-04-02 Tom Tromey <tromey@adacore.com>
12858 * f-lang.c (build_fortran_types): Use arch_type to initialize
12859 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12861 2020-04-02 Tom Tromey <tromey@adacore.com>
12863 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12866 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12867 Bernd Edlinger <bernd.edlinger@hotmail.de>
12868 Tom Tromey <tromey@adacore.com>
12870 * buildsym.c (buildsym_compunit::record_line): Remove
12871 deduplication code.
12873 2020-04-02 Tom de Vries <tdevries@suse.de>
12876 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12878 2020-04-02 Tom de Vries <tdevries@suse.de>
12880 * dwarf2/read.c (dwarf2_gdb_index_functions,
12881 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12883 * psymtab.c (psym_lookup_global_symbol_language): New function.
12884 (psym_functions): Init psym_lookup_global_symbol_language with
12885 psym_lookup_global_symbol_language.
12886 * symfile-debug.c (debug_sym_quick_functions): Init
12887 lookup_global_symbol_language with NULL.
12888 * symfile.c (set_initial_language): Remove fixme comment.
12889 * symfile.h (struct quick_symbol_functions): Add
12890 lookup_global_symbol_language.
12891 * symtab.c (find_quick_global_symbol_language): New function.
12892 (find_main_name): Use find_quick_global_symbol_language.
12894 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12896 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12898 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12900 * buildsym.c (record_line): Fix undefined behavior and preserve
12903 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12905 * buildsym.c (record_line): Fix the resizing condition.
12907 2020-04-01 Tom Tromey <tom@tromey.com>
12909 * value.h (value_literal_complex): Add comment.
12910 * valops.c (value_literal_complex): Refer to value.h.
12912 2020-04-01 Tom Tromey <tom@tromey.com>
12914 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12915 (scalar_type): New rule, from typebase.
12916 (typebase): Use scalar_type. Recognize complex types.
12917 (field_name): Handle FLOAT_KEYWORD.
12918 (ident_tokens): Add _Complex and __complex__.
12920 2020-04-01 Tom Tromey <tom@tromey.com>
12923 * valarith.c (promotion_type, complex_binop): New functions.
12924 (scalar_binop): Handle complex numbers. Use promotion_type.
12925 (value_pos, value_neg, value_complement): Handle complex numbers.
12927 2020-04-01 Tom Tromey <tom@tromey.com>
12929 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12930 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12931 (parse_number): Handle complex numbers.
12933 2020-04-01 Tom Tromey <tom@tromey.com>
12935 * c-valprint.c (c_decorations): Change complex suffix to "i".
12937 2020-04-01 Tom Tromey <tom@tromey.com>
12939 * valprint.c (generic_value_print_complex): Use accessors.
12940 * value.h (value_real_part, value_imaginary_part): Declare.
12941 * valops.c (value_real_part, value_imaginary_part): New
12943 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12945 2020-04-01 Tom Tromey <tom@tromey.com>
12947 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12948 (read_range_type): Update.
12949 * mdebugread.c (basic_type): Update.
12950 * go-lang.c (build_go_types): Use init_complex_type.
12951 * gdbtypes.h (struct main_type) <complex_type>: New member.
12952 (init_complex_type): Update.
12953 (arch_complex_type): Don't declare.
12954 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12955 Make name if none given. Use alloc_type_copy. Look for cached
12957 (arch_complex_type): Remove.
12958 (gdbtypes_post_init): Use init_complex_type.
12959 * f-lang.c (build_fortran_types): Use init_complex_type.
12960 * dwarf2/read.c (read_base_type): Update.
12961 * d-lang.c (build_d_types): Use init_complex_type.
12962 * ctfread.c (read_base_type): Update.
12964 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12966 * infrun.c (stop_all_threads): Update assertion, plus when
12967 stopping threads, take into account that we might be trying
12968 to stop an all-stop target.
12969 (stop_waiting): Call 'stop_all_threads' if there exists a
12972 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12974 * target.h (exists_non_stop_target): New function declaration.
12975 * target.c (exists_non_stop_target): New function.
12977 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12980 * eval.c (is_integral_or_integral_reference): New function.
12981 (evaluate_subexp_standard): Allow integer references in
12982 pointer arithmetic.
12984 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12986 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12987 check for no ptid in the stop reply when the target is non-stop.
12989 2020-04-01 Tom Tromey <tromey@adacore.com>
12991 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12992 "name" parameter to rvalue reference. Initialize m_name_holder.
12993 <lookup_name_info>: New overloads.
12994 <name>: Return gdb::string_view.
12995 <c_str>: New method.
12996 <make_ignore_params>: Update.
12997 <search_name_hash>: Update.
12998 <language_lookup_name>: Return const char *.
12999 <m_name>: Change type.
13000 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
13001 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
13002 (lookup_name_info::match_any): Update.
13003 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
13005 * minsyms.c (linkage_name_str): Update.
13006 * language.c (default_symbol_name_matcher): Update.
13007 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
13009 * ada-lang.c (ada_fold_name): Change parameter to string_view.
13010 (ada_lookup_name_info::ada_lookup_name_info): Update.
13011 (literal_symbol_name_matcher): Update.
13013 2020-04-01 Tom Tromey <tromey@adacore.com>
13015 * psymtab.c (psymtab_search_name): Remove function.
13016 (psym_lookup_symbol): Create search name and lookup name here.
13017 (lookup_partial_symbol): Remove "name" parameter; add
13019 (psym_expand_symtabs_for_function): Update.
13021 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
13024 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
13026 2020-03-31 Tom Tromey <tromey@adacore.com>
13028 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
13031 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
13033 * features/riscv/32bit-csr.xml: Regenerated.
13034 * features/riscv/64bit-csr.xml: Regenerated.
13036 2020-03-30 Tom Tromey <tromey@adacore.com>
13038 * ada-valprint.c (print_variant_part): Update.
13039 * ada-lang.h (ada_which_variant_applies): Update.
13040 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
13041 outer_valaddr parameters; replace with "outer" value parameter.
13042 (to_fixed_variant_branch_type): Update.
13044 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13046 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
13047 <list>. Remove inclusion of observable.h.
13048 (PPC_DEBUG_CURRENT_VERSION): Move up define.
13049 (struct arch_lwp_info): New struct.
13050 (class ppc_linux_dreg_interface): New class.
13051 (struct ppc_linux_process_info): New struct.
13052 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
13053 <low_new_clone, low_forget_process, low_prepare_to_resume>
13054 <copy_thread_dreg_state, mark_thread_stale>
13055 <mark_debug_registers_changed, register_hw_breakpoint>
13056 <clear_hw_breakpoint, register_wp, clear_wp>
13057 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
13058 <num_memory_accesses, get_trigger_type>
13059 <create_watchpoint_request, hwdebug_point_cmp>
13060 <init_arch_lwp_info, get_arch_lwp_info>
13061 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13063 <struct ptid_hash>: New inner struct.
13064 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13066 (saved_dabr_value, hwdebug_info, max_slots_number)
13067 (struct hw_break_tuple, struct thread_points, ppc_threads)
13068 (have_ptrace_hwdebug_interface)
13069 (hwdebug_find_thread_points_by_tid)
13070 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13071 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13072 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13073 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13074 use m_dreg_interface.
13075 (hwdebug_point_cmp): Change to...
13076 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13077 reference arguments instead of pointers.
13078 (ppc_linux_nat_target::ranged_break_num_registers): Use
13080 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13081 m_dreg_interface. Call register_hw_breakpoint.
13082 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13083 m_dreg_interface. Call clear_hw_breakpoint.
13084 (get_trigger_type): Change to...
13085 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13087 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13088 use m_dreg_interface. Call register_hw_breakpoint.
13089 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13090 use m_dreg_interface. Call clear_hw_breakpoint.
13091 (can_use_watchpoint_cond_accel): Change to...
13092 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13093 method. Update comment, use m_dreg_interface and
13095 (calculate_dvc): Change to...
13096 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13098 (num_memory_accesses): Change to...
13099 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13100 (check_condition): Change to...
13101 (ppc_linux_nat_target::check_condition): ...this method.
13102 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13103 comment, use m_dreg_interface.
13104 (create_watchpoint_request): Change to...
13105 (ppc_linux_nat_target::create_watchpoint_request): ...this
13106 method. Use m_dreg_interface.
13107 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13108 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13109 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13110 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13111 (ppc_linux_nat_target::low_forget_process)
13112 (ppc_linux_nat_target::low_new_fork)
13113 (ppc_linux_nat_target::low_new_clone)
13114 (ppc_linux_nat_target::low_delete_thread)
13115 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13116 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13117 only call mark_thread_stale.
13118 (ppc_linux_thread_exit): Remove.
13119 (ppc_linux_nat_target::stopped_data_address): Change to...
13120 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13121 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13122 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13123 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13124 comment. Call low_stopped_data_address.
13125 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13127 (ppc_linux_nat_target::masked_watch_num_registers): Use
13129 (ppc_linux_nat_target::copy_thread_dreg_state)
13130 (ppc_linux_nat_target::mark_thread_stale)
13131 (ppc_linux_nat_target::mark_debug_registers_changed)
13132 (ppc_linux_nat_target::register_hw_breakpoint)
13133 (ppc_linux_nat_target::clear_hw_breakpoint)
13134 (ppc_linux_nat_target::register_wp)
13135 (ppc_linux_nat_target::clear_wp)
13136 (ppc_linux_nat_target::init_arch_lwp_info)
13137 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13138 (_initialize_ppc_linux_nat): Remove observer callback.
13140 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13142 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13143 (ppc_linux_nat_target::auxv_parse)
13144 (ppc_linux_nat_target::read_description)
13145 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13148 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13150 * linux-nat.h (low_new_clone): New method.
13151 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13153 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13155 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13156 (dbx_expand_psymtab): ... this.
13157 (start_psymtab): Update.
13158 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13159 (mdebug_expand_psymtab): ... this.
13160 (parse_partial_symbols): Update.
13161 (new_psymtab): Update.
13162 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13163 (xcoff_expand_psymtab): ... this.
13164 (xcoff_start_psymtab): Update.
13166 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13168 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13169 <expand_dependencies>: ... this.
13170 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13171 (partial_symtab::expand_dependencies): ... this.
13172 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13174 (dwarf2_psymtab::expand_psymtab): Update.
13175 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13176 * mdebugread.c (psymtab_to_symtab_1): Update.
13177 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13179 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13181 * psympriv.h (discard_psymtab): Remove.
13182 * dbxread.c (dbx_end_psymtab): Update.
13183 * xcoffread.c (xcoff_end_psymtab): Update.
13185 2020-03-28 Tom Tromey <tom@tromey.com>
13187 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13190 2020-03-28 Tom Tromey <tom@tromey.com>
13192 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13194 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
13196 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13198 2020-03-26 John Baldwin <jhb@FreeBSD.org>
13200 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13202 2020-03-26 Tom Tromey <tom@tromey.com>
13204 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13205 (mark_common_block_symbol_computed, read_tag_string_type)
13206 (attr_to_dynamic_prop, read_subrange_type): Update.
13207 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13208 to be methods on struct attribute.
13209 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13210 (read_call_site_scope, partial_die_info::read)
13211 (partial_die_info::read, lookup_die_type, follow_die_ref):
13213 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13214 from dwarf2_get_ref_die_offset.
13215 (attribute::constant_value): New method, from
13216 dwarf2_get_attr_constant_value.
13217 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13219 <constant_value>: New method.
13221 2020-03-26 Tom Tromey <tom@tromey.com>
13223 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13224 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13225 (dwarf_type_encoding_name): Move to stringify.c.
13226 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13227 * dwarf2/stringify.c: New file.
13228 * dwarf2/stringify.h: New file.
13230 2020-03-26 Tom Tromey <tom@tromey.com>
13232 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13235 2020-03-26 Tom Tromey <tom@tromey.com>
13237 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13239 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13240 (lookup_ranges_base): Likewise.
13241 (read_cutu_die_from_dwo, read_full_die_1): Update.
13243 2020-03-26 Tom Tromey <tom@tromey.com>
13245 * dwarf2/read.c (read_import_statement, read_file_scope)
13246 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13247 (read_lexical_block_scope, read_call_site_scope)
13248 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13249 (handle_struct_member_die, process_structure_scope)
13250 (update_enumeration_type_from_children)
13251 (process_enumeration_scope, read_array_type, read_common_block)
13252 (read_namespace, read_module, read_subroutine_type): Update.
13253 (sibling_die): Remove.
13255 2020-03-26 Tom Tromey <tom@tromey.com>
13257 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13258 (build_type_psymtabs_reader, read_structure_type)
13259 (read_enumeration_type, read_full_die_1): Update.
13260 (dwarf2_attr_no_follow): Move to die.h.
13261 * dwarf2/die.h (struct die_info) <attr>: New method.
13263 2020-03-26 Tom Tromey <tom@tromey.com>
13265 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13266 <base_address>: Now an optional.
13267 (dwarf2_find_base_address, dwarf2_rnglists_process)
13268 (dwarf2_ranges_process, fill_in_loclist_baton)
13269 (dwarf2_symbol_mark_computed): Update.
13271 2020-03-26 Tom Tromey <tom@tromey.com>
13273 * dwarf2/read.c (struct die_info): Move to die.h.
13274 * dwarf2/die.h: New file.
13276 2020-03-26 Tom Tromey <tom@tromey.com>
13278 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13280 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13281 Move to line-header.c.
13282 (read_checked_initial_length_and_offset, read_formatted_entries):
13284 (dwarf_decode_line_header): Split into two.
13285 * dwarf2/line-header.c
13286 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13288 (read_checked_initial_length_and_offset, read_formatted_entries):
13290 (dwarf_decode_line_header): New function, split from read.c.
13292 2020-03-26 Tom Tromey <tom@tromey.com>
13294 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13296 * dwarf2/read.c (read_attribute_value): Update.
13297 (dwarf2_per_objfile::read_line_string): Rename from
13298 read_indirect_line_string.
13299 (read_formatted_entries): Update.
13301 2020-03-26 Tom Tromey <tom@tromey.com>
13303 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13306 2020-03-26 Tom Tromey <tom@tromey.com>
13308 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13310 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13311 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13314 2020-03-26 Tom Tromey <tom@tromey.com>
13316 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13317 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13318 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13319 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13321 2020-03-26 Tom Tromey <tom@tromey.com>
13323 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13324 file_names_size, file_full_name, file_file_name>: Use const.
13325 <file_name_at, file_names>: Add const overload.
13326 * dwarf2/line-header.c (line_header::file_file_name)
13327 (line_header::file_full_name): Update.
13329 2020-03-26 Tom Tromey <tom@tromey.com>
13331 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13332 (macro_start_file, consume_improper_spaces)
13333 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13334 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13335 (dwarf_decode_macros): Move to macro.c.
13336 * dwarf2/macro.c: New file.
13337 * dwarf2/macro.h: New file.
13338 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13340 2020-03-26 Tom Tromey <tom@tromey.com>
13342 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13344 * dwarf2/section.c: New method. From
13345 read_indirect_string_at_offset_from.
13346 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13347 (read_indirect_string_at_offset_from): Move to section.c.
13348 (read_indirect_string_at_offset): Rewrite.
13349 (read_indirect_line_string_at_offset): Remove.
13350 (read_indirect_string, read_indirect_line_string)
13351 (dwarf_decode_macro_bytes): Update.
13353 2020-03-26 Tom Tromey <tom@tromey.com>
13355 * dwarf2/section.h (struct dwarf2_section_info)
13356 <overload_complaint>: Declare.
13357 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13358 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13359 Rename from dwarf2_section_buffer_overflow_complaint.
13360 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13361 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13363 2020-03-26 Tom Tromey <tom@tromey.com>
13365 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13367 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13369 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13372 2020-03-26 Tom Tromey <tom@tromey.com>
13374 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13376 2020-03-26 Tom Tromey <tom@tromey.com>
13378 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13380 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13382 (dwarf_decode_macros): Update.
13384 2020-03-26 Tom Tromey <tom@tromey.com>
13386 * dwarf2/read.c (read_attribute_value): Update.
13387 (read_indirect_string_from_dwz): Move to dwz.c; change into
13389 (dwarf_decode_macro_bytes): Update.
13390 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13391 * dwarf2/dwz.c: New file.
13392 * Makefile.in (COMMON_SFILES): Add dwz.c.
13394 2020-03-26 Tom Tromey <tom@tromey.com>
13396 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13397 * dwarf2/read.c: Add include.
13398 * dwarf2/index-write.c: Add include.
13399 * dwarf2/index-cache.c: Add include.
13400 * dwarf2/dwz.h: New file.
13402 2020-03-25 Tom Tromey <tom@tromey.com>
13404 * compile/compile-object-load.c (get_out_value_type): Mention
13405 correct symbol name in error message.
13407 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13409 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13411 2020-03-25 Tom de Vries <tdevries@suse.de>
13413 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13414 * symmisc.c (dump_symtab_1): Print user and includes fields.
13415 (maintenance_info_symtabs): Same.
13417 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13420 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13421 (riscv_regcache_cooked_write): New function.
13422 (riscv_push_dummy_call): Use new function.
13423 (riscv_return_value): Likewise.
13425 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13427 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13428 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13429 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13430 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13431 * infrun.c (follow_fork): Likewise.
13432 (follow_fork_inferior): Likewise.
13433 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13434 * linux-nat.h (class linux_nat_target): Likewise.
13435 * remote.c (class remote_target) <follow_fork>: Likewise.
13436 (remote_target::follow_fork): Likewise.
13437 * target-delegates.c: Re-generate.
13438 * target.c (default_follow_fork): Likewise.
13439 (target_follow_fork): Likewise.
13440 * target.h (struct target_ops) <follow_fork>: Likewise.
13441 (target_follow_fork): Likewise.
13443 2020-03-24 Tom de Vries <tdevries@suse.de>
13445 * psymtab.c (maintenance_info_psymtabs): Print user field.
13447 2020-03-20 Tom Tromey <tromey@adacore.com>
13449 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13451 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13454 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13456 * ptrace.m4: Don't check for ptrace declaration.
13457 * config.in: Re-generate.
13458 * configure: Re-generate.
13459 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13462 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13464 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13466 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13467 * sparc-nat.c (gdb_ptrace): Likewise.
13468 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13470 2020-03-20 Tom Tromey <tromey@adacore.com>
13472 * c-exp.y (lex_one_token): Fix assert.
13474 2020-03-20 Tom Tromey <tromey@adacore.com>
13476 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13477 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13480 2020-03-20 Tom Tromey <tromey@adacore.com>
13482 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13484 2020-03-20 Tom Tromey <tromey@adacore.com>
13486 * ada-valprint.c (print_variant_part): Remove parameters; switch
13487 to value-based API.
13488 (print_field_values): Likewise.
13489 (ada_val_print_struct_union): Likewise.
13490 (ada_value_print_1): Update.
13492 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13494 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13495 nbsd_nat_target instead of inf_ptrace_target.
13496 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13499 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13501 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13502 it to the ptrace call.
13503 * (store_registers): Likewise.
13505 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13507 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13508 it to the ptrace call.
13509 * (store_registers): Likewise.
13511 2020-03-19 Luis Machado <luis.machado@linaro.org>
13513 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13514 valid, fetch vg value from ptrace.
13516 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13517 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13518 * inf-ptrace.c: Likewise.
13519 * (gdb_ptrace): Add.
13520 * (inf_ptrace_target::resume): Update.
13521 * (inf_ptrace_target::xfer_partial): Likewise.
13522 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13523 * (inf_ptrace_peek_poke): Update.
13525 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13527 * x86-bsd-nat.c (gdb_ptrace): New.
13528 * (x86bsd_dr_set): Add new argument `ptid'.
13529 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13530 x86bsd_dr_set_addr): Update.
13532 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13534 * remote.c (remote_target::process_stop_reply): Handle events for
13535 all threads differently.
13537 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13539 * completer.c (completion_tracker::remove_completion): Define new
13541 * completer.h (completion_tracker::remove_completion): Declare new
13543 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13544 when adding a C++ function symbol.
13546 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13548 * completer.c (completion_tracker::completion_hash_entry): Define
13550 (advance_to_filename_complete_word_point): Call
13551 recompute_lowest_common_denominator.
13552 (completion_tracker::completion_tracker): Call discard_completions
13553 to setup the hash table.
13554 (completion_tracker::discard_completions): Allow for being called
13555 from the constructor, pass new equal function, and element deleter
13556 when constructing the hash table. Initialise new class member
13558 (completion_tracker::maybe_add_completion): Remove use of
13559 m_entries_vec, and store more information into m_entries_hash.
13560 (completion_tracker::recompute_lcd_visitor): New function, most
13561 content taken from...
13562 (completion_tracker::recompute_lowest_common_denominator):
13563 ...here, this now just visits each item in the hash calling the
13565 (completion_tracker::build_completion_result): Remove use of
13566 m_entries_vec, call recompute_lowest_common_denominator.
13567 * completer.h (completion_tracker::have_completions): Remove use
13569 (completion_tracker::completion_hash_entry): Declare new class.
13570 (completion_tracker::recompute_lowest_common_denominator): Change
13571 function signature.
13572 (completion_tracker::recompute_lcd_visitor): Declare new function.
13573 (completion_tracker::m_entries_vec): Delete.
13574 (completion_tracker::m_entries_hash): Initialize to NULL.
13575 (completion_tracker::m_lowest_common_denominator_valid): New
13577 (completion_tracker::m_lowest_common_denominator_max_length): New
13580 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13582 * regformats/regdef.h: Put reg in gdb namespace.
13584 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13586 * i386-bsd-nat.c (gdb_ptrace): New.
13587 * (i386bsd_fetch_inferior_registers,
13588 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13589 * (i386bsd_fetch_inferior_registers,
13590 i386bsd_store_inferior_registers) Use gdb_ptrace.
13592 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13594 * amd64-bsd-nat.c (gdb_ptrace): New.
13595 * (amd64bsd_fetch_inferior_registers,
13596 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13597 * (amd64bsd_fetch_inferior_registers,
13598 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13600 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13602 * user-regs.c (user_reg::read): Rename to...
13603 (user_reg::xread): ...this.
13604 * (append_user_reg): Rename argument `read' to `xread'.
13605 * (user_reg_add_builtin): Likewise.
13606 * (user_reg_add): Likewise.
13607 * (value_of_user_reg): Likewise.
13609 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13611 * sparc-nat.c (gdb_ptrace): New.
13612 * sparc-nat.c (sparc_fetch_inferior_registers)
13613 (sparc_store_inferior_registers) Remove obsolete comment.
13614 * sparc-nat.c (sparc_fetch_inferior_registers)
13615 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13616 * sparc-nat.c (sparc_fetch_inferior_registers)
13617 (sparc_store_inferior_registers) Use gdb_ptrace.
13619 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13621 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13622 it to the ptrace call.
13623 * sh-nbsd-nat.c (store_registers): Likewise.
13625 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13627 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13628 nbsd_nat_target instead of inf_ptrace_target.
13629 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13632 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13634 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13636 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13638 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13640 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13642 2020-03-17 Tom de Vries <tdevries@suse.de>
13645 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13647 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13649 (process_imported_unit_die): Skip import of c++ CUs.
13651 2020-03-16 Tom Tromey <tom@tromey.com>
13653 * p-valprint.c (pascal_object_print_value): Initialize
13656 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13657 Shahab Vahedi <shahab@synopsys.com>
13659 * Makefile.in: Add arch/arc.o
13660 * configure.tgt: Likewise.
13661 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13662 (_initialize_arc_tdep): Don't initialize old target descriptions.
13663 (arc_read_description): New function to cache target descriptions.
13664 * arc-tdep.h (arc_read_description): Add proto type.
13665 * arch/arc.c: New file.
13666 * arch/arc.h: Likewise.
13667 * features/Makefile: Replace old target descriptions with new.
13668 * features/arc-arcompact.c: Remove.
13669 * features/arc-arcompact.xml: Likewise.
13670 * features/arc-v2.c: Likewise
13671 * features/arc-v2.xml: Likewise
13672 * features/arc/aux-arcompact.xml: New file.
13673 * features/arc/aux-v2.xml: Likewise.
13674 * features/arc/core-arcompact.xml: Likewise.
13675 * features/arc/core-v2.xml: Likewise.
13676 * features/arc/aux-arcompact.c: Generate.
13677 * features/arc/aux-v2.c: Likewise.
13678 * features/arc/core-arcompact.c: Likewise.
13679 * features/arc/core-v2.c: Likewise.
13680 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13682 2020-03-16 Tom Tromey <tromey@adacore.com>
13685 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13686 putting value into bcache.
13688 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13691 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13693 (amd64_windows_init_abi_common): ... this. Don't set size of
13695 (amd64_windows_init_abi): New function.
13696 (amd64_cygwin_init_abi): New function.
13697 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13699 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13702 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13704 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13705 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13706 (pe_import_directory_entry): New struct type.
13707 (is_linked_with_cygwin_dll): New function.
13708 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13709 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13710 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13712 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13714 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13715 i386_cygwin_core_osabi_sniffer.
13717 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13719 * i386-cygwin-tdep.c: Rename to...
13720 * i386-windows-tdep.c: ... this.
13721 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13722 i386-windows-tdep.c.
13723 * configure.tgt: Likewise.
13725 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13727 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13728 * osabi.c (gdb_osabi_names): Add "Windows".
13729 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13730 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13731 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13732 i386_cygwin_osabi_sniffer.
13733 (_initialize_i386_cygwin_tdep): Register OS ABI
13734 GDB_OSABI_WINDOWS for i386.
13735 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13736 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13737 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13739 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13740 when the target matches '*-*-mingw*'.
13742 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13744 * defs.h (enum gdb_osabi): Move to...
13745 * osabi.h (enum gdb_osabi): ... here.
13746 * gdbarch.sh: Include osabi.h in gdbarch.h.
13747 * gdbarch.h: Re-generate.
13749 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13751 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13753 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13755 2020-03-14 Tom Tromey <tom@tromey.com>
13757 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13759 (c_type_print_modifier): Likewise. Add "language" parameter.
13760 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13761 (c_type_print_base_1): Update.
13762 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13764 * type-stack.c (type_stack::insert): Handle tp_atomic and
13766 (type_stack::follow_type_instance_flags): Likewise.
13767 (type_stack::follow_types): Likewise. Merge type-following code.
13768 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13769 (space_identifier, cv_with_space_id)
13770 (const_or_volatile_or_space_identifier_noopt)
13771 (const_or_volatile_or_space_identifier): Remove.
13772 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13774 (ptr_operator, typebase): Update.
13775 (enum token_flag) <FLAG_C>: New constant.
13776 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13778 (lex_one_token): Handle FLAG_C.
13780 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13782 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13783 it to the ptrace call.
13784 * m68k-bsd-nat.c (store_registers): Likewise.
13786 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13788 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13790 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13791 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13792 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13794 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13796 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13797 nbsd_nat_target instead of inf_ptrace_target.
13798 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13801 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13803 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13806 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13808 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13809 it to the ptrace call.
13810 * alpha-bsd-nat.c (store_registers): Likewise.
13812 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13814 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13816 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13817 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13818 fill_fpregset): Likewise.
13820 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13822 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13823 nbsd_nat_target instead of inf_ptrace_target.
13824 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13827 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13829 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13832 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13834 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13835 it to the ptrace call.
13836 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13837 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13838 * arm-nbsd-nat.c (store_register): Likewise.
13839 * arm-nbsd-nat.c (store_regs): Likewise.
13840 * arm-nbsd-nat.c (store_fp_register): Likewise.
13841 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13843 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13845 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13846 nbsd_nat_target instead of inf_ptrace_target.
13847 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13850 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13852 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13853 it to the ptrace call.
13854 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13856 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13858 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13859 it to the ptrace call.
13860 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13862 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13864 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13866 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13868 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13870 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13871 instead of inf_ptrace_target.
13872 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13875 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13877 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13880 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13882 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13885 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13887 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13890 2020-03-13 Tom Tromey <tom@tromey.com>
13892 * value.h (val_print): Don't declare.
13893 * valprint.h (val_print_array_elements)
13894 (val_print_scalar_formatted, generic_val_print): Don't declare.
13895 * valprint.c (generic_val_print_array): Take a struct value.
13896 (generic_val_print_ptr, generic_val_print_memberptr)
13897 (generic_val_print_bool, generic_val_print_int)
13898 (generic_val_print_char, generic_val_print_complex)
13899 (generic_val_print): Remove.
13900 (generic_value_print): Update.
13901 (do_val_print): Remove unused parameters. Don't call
13903 (val_print): Remove.
13904 (common_val_print): Update. Don't call value_check_printable.
13905 (val_print_scalar_formatted, val_print_array_elements): Remove.
13906 * rust-lang.c (rust_val_print): Remove.
13907 (rust_language_defn): Update.
13908 * p-valprint.c (pascal_val_print): Remove.
13909 (pascal_value_print_inner): Update.
13910 (pascal_object_print_val_fields, pascal_object_print_val):
13912 (pascal_object_print_static_field): Update.
13913 * p-lang.h (pascal_val_print): Don't declare.
13914 * p-lang.c (pascal_language_defn): Update.
13915 * opencl-lang.c (opencl_language_defn): Update.
13916 * objc-lang.c (objc_language_defn): Update.
13917 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13918 * m2-lang.h (m2_val_print): Don't declare.
13919 * m2-lang.c (m2_language_defn): Update.
13920 * language.h (struct language_defn) <la_val_print>: Remove.
13921 * language.c (unk_lang_value_print_inner): Rename. Change
13923 (unknown_language_defn, auto_language_defn): Update.
13924 * go-valprint.c (go_val_print): Remove.
13925 * go-lang.h (go_val_print): Don't declare.
13926 * go-lang.c (go_language_defn): Update.
13927 * f-valprint.c (f_val_print): Remove.
13928 * f-lang.h (f_value_print): Don't declare.
13929 * f-lang.c (f_language_defn): Update.
13930 * d-valprint.c (d_val_print): Remove.
13931 * d-lang.h (d_value_print): Don't declare.
13932 * d-lang.c (d_language_defn): Update.
13933 * cp-valprint.c (cp_print_value_fields)
13934 (cp_print_value_fields_rtti, cp_print_value): Remove.
13935 (cp_print_static_field): Update.
13936 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13937 (c_val_print_struct, c_val_print_union, c_val_print_int)
13938 (c_val_print_memberptr, c_val_print): Remove.
13939 * c-lang.h (c_val_print_array, cp_print_value_fields)
13940 (cp_print_value_fields_rtti): Don't declare.
13941 * c-lang.c (c_language_defn, cplus_language_defn)
13942 (asm_language_defn, minimal_language_defn): Update.
13943 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13944 (ada_val_print_enum): Take a struct value.
13945 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13946 (ada_val_print): Remove.
13947 (ada_value_print_1): Update.
13948 (printable_val_type): Remove.
13949 * ada-lang.h (ada_val_print): Don't declare.
13950 * ada-lang.c (ada_language_defn): Update.
13952 2020-03-13 Tom Tromey <tom@tromey.com>
13954 * valprint.c (do_val_print): Update.
13955 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13957 (value_to_value_object_no_release): Declare.
13958 * python/py-value.c (value_to_value_object_no_release): New
13960 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13962 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13964 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13966 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13968 (gdbscm_apply_val_pretty_printer): Take a struct value.
13969 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13971 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13973 * extension-priv.h (struct extension_language_ops)
13974 <apply_val_pretty_printer>: Take a struct value.
13975 * cp-valprint.c (cp_print_value): Create a struct value.
13976 (cp_print_value): Update.
13978 2020-03-13 Tom Tromey <tom@tromey.com>
13980 * ada-valprint.c (print_field_values): Call common_val_print.
13982 2020-03-13 Tom Tromey <tom@tromey.com>
13984 * ada-valprint.c (val_print_packed_array_elements): Remove
13985 bitoffset and val parameters. Call common_val_print.
13986 (ada_val_print_string): Remove offset, address, and original_value
13988 (ada_val_print_array): Update.
13989 (ada_value_print_array): New function.
13990 (ada_value_print_1): Call it.
13992 2020-03-13 Tom Tromey <tom@tromey.com>
13994 * ada-valprint.c (ada_value_print): Use common_val_print.
13996 2020-03-13 Tom Tromey <tom@tromey.com>
13998 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
14000 2020-03-13 Tom Tromey <tom@tromey.com>
14002 * ada-valprint.c (ada_value_print_num): New function.
14003 (ada_value_print_1): Use it.
14005 2020-03-13 Tom Tromey <tom@tromey.com>
14007 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
14009 2020-03-13 Tom Tromey <tom@tromey.com>
14011 * ada-valprint.c (ada_value_print_ptr): New function.
14012 (ada_value_print_1): Use it.
14014 2020-03-13 Tom Tromey <tom@tromey.com>
14016 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
14017 call common_val_print.
14018 (ada_val_print_1): Update.
14019 (ada_value_print_1): New function.
14020 (ada_value_print_inner): Rewrite.
14022 2020-03-13 Tom Tromey <tom@tromey.com>
14024 * cp-valprint.c (cp_print_value_fields): Update.
14025 (cp_print_value): New function.
14027 2020-03-13 Tom Tromey <tom@tromey.com>
14029 * m2-valprint.c (m2_value_print_inner): Use
14030 cp_print_value_fields.
14031 * cp-valprint.c (cp_print_value_fields): New function.
14032 * c-valprint.c (c_value_print_struct): New function.
14033 (c_value_print_inner): Use c_value_print_struct.
14034 * c-lang.h (cp_print_value_fields): Declare.
14036 2020-03-13 Tom Tromey <tom@tromey.com>
14038 * c-valprint.c (c_value_print_array): New function.
14039 (c_value_print_inner): Use it.
14041 2020-03-13 Tom Tromey <tom@tromey.com>
14043 * c-valprint.c (c_value_print_memberptr): New function.
14044 (c_value_print_inner): Use it.
14046 2020-03-13 Tom Tromey <tom@tromey.com>
14048 * c-valprint.c (c_value_print_int): New function.
14049 (c_value_print_inner): Use it.
14051 2020-03-13 Tom Tromey <tom@tromey.com>
14053 * c-valprint.c (c_value_print_ptr): New function.
14054 (c_value_print_inner): Use it.
14056 2020-03-13 Tom Tromey <tom@tromey.com>
14058 * c-valprint.c (c_value_print_inner): Rewrite.
14060 2020-03-13 Tom Tromey <tom@tromey.com>
14062 * valprint.c (generic_value_print_complex): New function.
14063 (generic_value_print): Use it.
14065 2020-03-13 Tom Tromey <tom@tromey.com>
14067 * valprint.c (generic_val_print_float): Don't call
14068 val_print_scalar_formatted.
14069 (generic_val_print, generic_value_print): Update.
14071 2020-03-13 Tom Tromey <tom@tromey.com>
14073 * valprint.c (generic_value_print_char): New function
14074 (generic_value_print): Use it.
14076 2020-03-13 Tom Tromey <tom@tromey.com>
14078 * valprint.c (generic_value_print_int): New function.
14079 (generic_value_print): Use it.
14081 2020-03-13 Tom Tromey <tom@tromey.com>
14083 * valprint.c (generic_value_print_bool): New function.
14084 (generic_value_print): Use it.
14086 2020-03-13 Tom Tromey <tom@tromey.com>
14088 * valprint.c (generic_val_print_func): Simplify.
14089 (generic_val_print, generic_value_print): Update.
14091 2020-03-13 Tom Tromey <tom@tromey.com>
14093 * valprint.c (generic_val_print_flags): Remove.
14094 (generic_val_print, generic_value_print): Update.
14095 (val_print_type_code_flags): Add original_value parameter.
14097 2020-03-13 Tom Tromey <tom@tromey.com>
14099 * valprint.c (generic_val_print): Update.
14100 (generic_value_print): Update.
14101 * valprint.c (generic_val_print_enum): Don't call
14102 val_print_scalar_formatted.
14104 2020-03-13 Tom Tromey <tom@tromey.com>
14106 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14107 * valprint.c (generic_value_print_ptr): New function.
14109 2020-03-13 Tom Tromey <tom@tromey.com>
14111 * valprint.c (generic_value_print): Rewrite.
14113 2020-03-13 Tom Tromey <tom@tromey.com>
14115 * p-valprint.c (pascal_object_print_value_fields)
14116 (pascal_object_print_value): New functions.
14118 2020-03-13 Tom Tromey <tom@tromey.com>
14120 * p-valprint.c (pascal_value_print_inner): Rewrite.
14122 2020-03-13 Tom Tromey <tom@tromey.com>
14124 * f-valprint.c (f_value_print_innner): Rewrite.
14126 2020-03-13 Tom Tromey <tom@tromey.com>
14128 * m2-valprint.c (m2_print_unbounded_array): New overload.
14129 (m2_print_unbounded_array): Update.
14130 (m2_print_array_contents): Take a struct value.
14131 (m2_value_print_inner): Rewrite.
14133 2020-03-13 Tom Tromey <tom@tromey.com>
14135 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14136 (d_value_print_inner): New function.
14137 * d-lang.h (d_value_print_inner): Declare.
14138 * d-lang.c (d_language_defn): Use d_value_print_inner.
14140 2020-03-13 Tom Tromey <tom@tromey.com>
14142 * go-valprint.c (go_value_print_inner): New function.
14143 * go-lang.h (go_value_print_inner): Declare.
14144 * go-lang.c (go_language_defn): Use go_value_print_inner.
14146 2020-03-13 Tom Tromey <tom@tromey.com>
14148 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14150 (rust_val_print): Rewrite.
14151 (rust_value_print_inner): New function, from rust_val_print.
14152 (rust_language_defn): Use rust_value_print_inner.
14154 2020-03-13 Tom Tromey <tom@tromey.com>
14156 * ada-valprint.c (ada_value_print_inner): New function.
14157 * ada-lang.h (ada_value_print_inner): Declare.
14158 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14160 2020-03-13 Tom Tromey <tom@tromey.com>
14162 * f-valprint.c (f_value_print_innner): New function.
14163 * f-lang.h (f_value_print_innner): Declare.
14164 * f-lang.c (f_language_defn): Use f_value_print_innner.
14166 2020-03-13 Tom Tromey <tom@tromey.com>
14168 * p-valprint.c (pascal_value_print_inner): New function.
14169 * p-lang.h (pascal_value_print_inner): Declare.
14170 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14172 2020-03-13 Tom Tromey <tom@tromey.com>
14174 * m2-valprint.c (m2_value_print_inner): New function.
14175 * m2-lang.h (m2_value_print_inner): Declare.
14176 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14178 2020-03-13 Tom Tromey <tom@tromey.com>
14180 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14181 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14182 * c-valprint.c (c_value_print_inner): New function.
14183 * c-lang.h (c_value_print_inner): Declare.
14184 * c-lang.c (c_language_defn, cplus_language_defn)
14185 (asm_language_defn, minimal_language_defn): Use
14186 c_value_print_inner.
14188 2020-03-13 Tom Tromey <tom@tromey.com>
14190 * p-valprint.c (pascal_object_print_value_fields): Now static.
14191 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14193 2020-03-13 Tom Tromey <tom@tromey.com>
14195 * c-valprint.c (c_val_print_array): Simplify.
14197 2020-03-13 Tom Tromey <tom@tromey.com>
14199 * valprint.c (value_print_array_elements): New function.
14200 * valprint.h (value_print_array_elements): Declare.
14202 2020-03-13 Tom Tromey <tom@tromey.com>
14204 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14205 * mips-tdep.c (mips_print_register): Use
14206 value_print_scalar_formatted.
14208 2020-03-13 Tom Tromey <tom@tromey.com>
14210 * valprint.h (value_print_scalar_formatted): Declare.
14211 * valprint.c (value_print_scalar_formatted): New function.
14213 2020-03-13 Tom Tromey <tom@tromey.com>
14215 * valprint.h (generic_value_print): Declare.
14216 * valprint.c (generic_value_print): New function.
14218 2020-03-13 Tom Tromey <tom@tromey.com>
14220 * valprint.c (do_val_print): Call la_value_print_inner, if
14222 * rust-lang.c (rust_language_defn): Update.
14223 * p-lang.c (pascal_language_defn): Update.
14224 * opencl-lang.c (opencl_language_defn): Update.
14225 * objc-lang.c (objc_language_defn): Update.
14226 * m2-lang.c (m2_language_defn): Update.
14227 * language.h (struct language_defn) <la_value_print_inner>: New
14229 * language.c (unknown_language_defn, auto_language_defn): Update.
14230 * go-lang.c (go_language_defn): Update.
14231 * f-lang.c (f_language_defn): Update.
14232 * d-lang.c (d_language_defn): Update.
14233 * c-lang.c (c_language_defn, cplus_language_defn)
14234 (asm_language_defn, minimal_language_defn): Update.
14235 * ada-lang.c (ada_language_defn): Update.
14237 2020-03-13 Tom Tromey <tom@tromey.com>
14239 * c-valprint.c (c_value_print): Use common_val_print.
14241 2020-03-13 Tom Tromey <tom@tromey.com>
14243 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14245 2020-03-13 Tom Tromey <tom@tromey.com>
14247 * f-valprint.c (f77_print_array_1, f_val_print): Use
14250 2020-03-13 Tom Tromey <tom@tromey.com>
14252 * riscv-tdep.c (riscv_print_one_register_info): Use
14255 2020-03-13 Tom Tromey <tom@tromey.com>
14257 * mi/mi-main.c (output_register): Use common_val_print.
14259 2020-03-13 Tom Tromey <tom@tromey.com>
14261 * infcmd.c (default_print_one_register_info): Use
14264 2020-03-13 Tom Tromey <tom@tromey.com>
14266 * valprint.h (common_val_print_checked): Declare.
14267 * valprint.c (common_val_print_checked): New function.
14268 * stack.c (print_frame_arg): Use common_val_print_checked.
14270 2020-03-13 Tom Tromey <tom@tromey.com>
14272 * valprint.c (do_val_print): New function, from val_print.
14273 (val_print): Use do_val_print.
14274 (common_val_print): Use do_val_print.
14276 2020-03-13 Tom Tromey <tom@tromey.com>
14278 * valprint.c (value_print): Use scoped_value_mark.
14280 2020-03-13 Tom de Vries <tdevries@suse.de>
14283 * psymtab.c (partial_symtab::partial_symtab): Don't set
14284 globals_offset and statics_offset. Push element onto
14285 current_global_psymbols and current_static_psymbols stacks.
14286 (concat): New function.
14287 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14288 element from current_global_psymbols and current_static_psymbols
14289 stacks. Concat popped elements to global_psymbols and
14291 (add_psymbol_to_list): Use current_global_psymbols and
14292 current_static_psymbols stacks.
14293 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14294 current_static_psymbols fields.
14296 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14298 * corelow.c (sniff_core_bfd): Remove.
14299 (class core_target) <m_core_vec>: Remove.
14300 (core_target::core_target): Update.
14301 (core_file_fns): Remove.
14302 (deprecated_add_core_fns): Remove.
14303 (default_core_sniffer): Remove.
14304 (sniff_core_bfd): Remove.
14305 (default_check_format): Remove.
14306 (gdb_check_format): Remove.
14307 (core_target_open): Update.
14308 (core_target::get_core_register_section): Update.
14309 (get_core_registers_cb): Update.
14310 (core_target::fetch_registers): Update.
14311 * gdbcore.h (struct core_fns): Remove.
14312 (deprecated_add_core_fns): Remove.
14313 (default_core_sniffer): Remove.
14314 (default_check_format): Remove.
14316 2020-03-12 Tom Tromey <tom@tromey.com>
14318 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14320 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14322 2020-03-12 Tom Tromey <tom@tromey.com>
14324 * remote.c (remote_target::download_tracepoint)
14325 (remote_target::enable_tracepoint)
14326 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14327 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14330 2020-03-12 Tom Tromey <tom@tromey.com>
14332 * symfile-mem.c: Update CORE_ADDR size assert.
14334 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14336 * selftest.m4: Move to gdbsupport/.
14337 * acinclude.m4: Update path to selftest.m4.
14339 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14341 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14342 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14343 gdbarch-selfselftests.c and selftest-arch.c.
14344 (SUBDIR_UNITTESTS_OBS): Rename to...
14345 (SELFTESTS_OBS): ... this.
14346 (COMMON_SFILES): Remove disasm-selftests.c and
14347 gdbarch-selftests.c.
14348 * configure.ac: Don't add selftest-arch.{c,o} to
14350 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14351 preprocessor conditions.
14353 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14355 * configure.ac: Don't source bfd/development.sh.
14356 * selftest.m4: Modify comment.
14357 * configure: Re-generate.
14359 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14361 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14362 not "true" or "false".
14363 * configure: Re-generate.
14365 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14367 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14368 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14369 renamed to arm_nbsd_supply_gregset.
14370 (fetch_register): Update to call arm_nbsd_supply_gregset.
14371 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14372 (arm_netbsd_nat_target::fetch_registers): Update.
14373 (fetch_elfcore_registers): Removed.
14374 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14375 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14376 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14377 not require NetBSD system headers.
14378 (arm_nbsd_regset): New struct.
14379 (arm_nbsd_iterate_over_regset_sections): New function.
14380 (arm_netbsd_init_abi_common): Updated to call
14381 set_gdbarch_iterate_over_regset_sections.
14382 * arm-nbsd-tdep.h: New file.
14384 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14386 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14389 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14391 * configure: Re-generate.
14393 2020-03-11 Tom Tromey <tromey@adacore.com>
14395 * ada-typeprint.c (print_choices): Fix comment.
14397 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14399 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14400 previous item in the list, when the list has no items.
14402 2020-03-11 Tom de Vries <tdevries@suse.de>
14404 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14405 PROP_LOCLIST handling code.
14407 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14409 * buildsym-legacy.c (record_line): Pass extra parameter to
14411 * buildsym.c (buildsym_compunit::record_line): Take an extra
14412 parameter, reduce duplication in the line table, and record the
14413 is_stmt flag in the line table.
14414 * buildsym.h (buildsym_compunit::record_line): Add extra
14416 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14417 non-statement lines.
14418 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14419 this to the symtab builder.
14420 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14421 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14422 through to dwarf_record_line_1.
14423 * infrun.c (process_event_stop_test): When stepping, don't stop at
14424 a non-statement instruction, and only refresh the step info when
14425 we land in the middle of a line's range. Also add an extra
14427 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14429 * record-btrace.c (btrace_find_line_range): Only record lines
14430 marked as is-statement.
14431 * stack.c (frame_show_address): Show the frame address if we are
14432 in a non-statement sal.
14433 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14434 (maintenance_print_one_line_table): Print a header for the is_stmt
14435 column, and include is_stmt information in the output.
14436 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14437 preference to non-statements.
14438 (find_pcs_for_symtab_line): Prefer is-statement entries.
14439 (find_line_common): Likewise.
14440 * symtab.h (struct linetable_entry): Add is_stmt field.
14441 (struct symtab_and_line): Likewise.
14442 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14443 arranging the line table.
14445 2020-03-07 Tom de Vries <tdevries@suse.de>
14447 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14450 2020-03-07 Tom Tromey <tom@tromey.com>
14452 * valops.c (value_literal_complex): Remove obsolete comment.
14453 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14456 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14458 * infrun.h: Forward-declare thread_info.
14459 (set_step_info): Add thread_info parameter, add doc.
14460 * infrun.c (set_step_info): Add thread_info parameter, move doc
14462 * infrun.c (process_event_stop_test): Pass thread to
14463 set_step_info call.
14464 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14466 (prepare_one_step): Add thread_info parameter, pass it to
14467 set_step_frame and prepare_one_step (recursive) call.
14468 (step_1): Pass thread to prepare_one_step call.
14469 (step_command_fsm::should_stop): Pass thread to
14471 (until_next_fsm): Pass thread to set_step_frame call.
14472 (finish_command): Pass thread to set_step_info call.
14474 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14476 * windows-tdep.c (windows_solib_create_inferior_hook):
14477 Check if inferior is running.
14479 2020-03-06 Tom de Vries <tdevries@suse.de>
14481 * NEWS: Fix "the the".
14484 2020-03-06 Tom de Vries <tdevries@suse.de>
14486 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14488 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14490 * .dir-locals.el: Add a comment referencing the other copies of
14493 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14495 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14498 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14500 * .gitattributes: New file.
14502 2020-03-04 Tom Tromey <tom@tromey.com>
14504 * symmisc.c (print_symbol_bcache_statistics)
14505 (print_objfile_statistics): Update.
14506 * symfile.c (allocate_symtab): Use intern.
14507 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14508 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14509 macro_cache>: Remove.
14510 <string_cache>: New member.
14511 (struct objfile) <intern>: New methods.
14512 * elfread.c (elf_symtab_read): Use intern.
14513 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14514 (dwarf2_compute_name, dwarf2_physname)
14515 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14517 (guess_partial_die_structure_name): Update.
14518 (partial_die_info::fixup): Intern name.
14519 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14521 (dwarf2_name): Intern name. Update.
14522 * buildsym.c (buildsym_compunit::get_macro_table): Use
14525 2020-03-04 Tom Tromey <tom@tromey.com>
14527 * jit.c (bfd_open_from_target_memory): Make "target" const.
14528 * corefile.c (gnutarget): Now const.
14529 * gdbcore.h (gnutarget): Now const.
14531 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14533 * NEWS: Mention support for WOW64 processes.
14534 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14535 (amd64_windows_segment_register_p): Remove static.
14536 (_initialize_amd64_windows_nat): Update.
14537 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14538 * i386-windows-nat.c (context_offset): Update.
14539 (i386_mappings): Rename and remove static.
14540 (i386_windows_segment_register_p): Remove static.
14541 (_initialize_i386_windows_nat): Update.
14542 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14543 (STATUS_WX86_SINGLE_STEP): New macro.
14544 (EnumProcessModulesEx): New macro.
14545 (Wow64SuspendThread): New macro.
14546 (Wow64GetThreadContext): New macro.
14547 (Wow64SetThreadContext): New macro.
14548 (Wow64GetThreadSelectorEntry): New macro.
14549 (windows_set_context_register_offsets): Add static.
14550 (windows_set_segment_register_p): Likewise.
14551 (windows_add_thread): Adapt for WOW64 processes.
14552 (windows_fetch_one_register): Likewise.
14553 (windows_nat_target::fetch_registers): Likewise.
14554 (windows_store_one_register): Likewise.
14555 (display_selector): Likewise.
14556 (display_selectors): Likewise.
14557 (handle_exception): Likewise.
14558 (windows_continue): Likewise.
14559 (windows_nat_target::resume): Likewise.
14560 (windows_add_all_dlls): Likewise.
14561 (do_initial_windows_stuff): Likewise.
14562 (windows_nat_target::attach): Likewise.
14563 (windows_get_exec_module_filename): Likewise.
14564 (windows_nat_target::create_inferior): Likewise.
14565 (windows_xfer_siginfo): Likewise.
14566 (_initialize_loadable): Initialize Wow64SuspendThread,
14567 Wow64GetThreadContext, Wow64SetThreadContext,
14568 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14569 * windows-nat.h (windows_set_context_register_offsets):
14570 Remove declaration.
14571 (windows_set_segment_register_p): Likewise.
14572 (i386_windows_segment_register_p): Add declaration.
14573 (amd64_windows_segment_register_p): Likewise.
14575 2020-03-04 Luis Machado <luis.machado@linaro.org>
14577 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14578 in "info registers" for AArch64/ARM.
14580 The change caused "info registers" to not print GPR's.
14584 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14586 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14587 when reg->group is empty and reggroup is not.
14589 2020-03-03 Tom Tromey <tromey@adacore.com>
14591 * dwarf2/frame.c (struct dwarf2_frame_cache)
14592 <checked_tailcall_bottom, entry_cfa_sp_offset,
14593 entry_cfa_sp_offset_p>: Remove members.
14594 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14595 (dwarf2_frame_prev_register): Don't call
14596 dwarf2_tailcall_sniffer_first.
14597 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14598 * frame-unwind.c (add_unwinder): New fuction.
14599 (frame_unwind_init): Use it. Add tailcall unwinder.
14601 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14602 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14604 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14605 value should be printed as true.
14607 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14609 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14610 (windows_init_abi): Set and use windows_so_ops.
14612 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14614 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14615 when verifying if dealing with a convenience variable.
14617 2020-03-03 Luis Machado <luis.machado@linaro.org>
14619 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14621 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14623 * infrun.c (gdbarch_supports_displaced_stepping): New.
14624 (use_displaced_stepping): Break up conditions in smaller pieces.
14625 Use gdbarch_supports_displaced_stepping.
14626 (displaced_step_prepare_throw): Use
14627 gdbarch_supports_displaced_stepping.
14629 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14631 * NEWS: Mention new behaviour of the history filename.
14632 * top.c (write_history_p): Add comment.
14633 (show_write_history_p): Add header comment, give a different
14634 message when history writing is on, but the history filename is
14636 (history_filename): Add comment.
14637 (history_filename_empty): New function.
14638 (show_history_filename): Add header comment, give a different
14639 message when the filename is empty.
14640 (init_history): Compare history_filename against nullptr, and only
14641 read history if the filename is not empty.
14642 (set_history_filename): Add header comment, and only make
14643 non-empty filenames absolute.
14644 (init_main): Make the filename argument to 'set history filename'
14647 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14649 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14650 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14651 (fetch_fp_register): Update.
14652 (fetch_fp_regs): Update.
14653 (store_fp_register): Update.
14654 (store_fp_regs): Update.
14655 (arm_netbsd_nat_target::read_description): New function.
14656 (fetch_elfcore_registers): Update.
14658 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14660 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14661 general_thread if the stop reply is missing a thread-id.
14662 (remote_target::process_stop_reply): Use the first non-exited
14663 thread if the target didn't pass a thread-id.
14664 * infrun.c (do_target_wait): Move call to
14665 switch_to_inferior_no_thread to ....
14666 (do_target_wait_1): ... here.
14668 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14670 * debuginfod-support.c: Include defs.h first.
14672 2020-02-28 Tom de Vries <tdevries@suse.de>
14674 * symfile.c (set_initial_language): Use default language for lookup.
14676 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14678 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14679 reader variable, pass `this` to read_cutu_die_from_dwo.
14681 2020-02-27 Aaron Merey <amerey@redhat.com>
14683 * source.c (open_source_file): Check for nullptr when computing
14686 2020-02-27 Tom Tromey <tromey@adacore.com>
14688 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14690 (dwarf2_add_field): Don't update nfields.
14691 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14693 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14695 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14698 2020-02-26 Tom Tromey <tom@tromey.com>
14700 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14701 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14702 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14703 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14706 2020-02-26 Tom Tromey <tom@tromey.com>
14708 * dwarf2/index-write.c (psym_index_map): Change type.
14709 (add_address_entry_worker, write_one_signatured_type)
14710 (recursively_count_psymbols, recursively_write_psymbols)
14711 (class debug_names, psyms_seen_size, write_gdbindex)
14712 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14714 2020-02-26 Aaron Merey <amerey@redhat.com>
14716 * Makefile.in: Handle optional debuginfod support.
14718 * README: Add --with-debuginfod summary.
14719 * config.in: Regenerate.
14720 * configure: Regenerate.
14721 * configure.ac: Handle optional debuginfod support.
14722 * debuginfod-support.c: debuginfod helper functions.
14723 * debuginfod-support.h: Ditto.
14724 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14726 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14727 when a dwz file cannot be found.
14728 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14729 debuginfo file cannot be found.
14730 * source.c (open_source_file): Query debuginfod servers when a
14731 source file cannot be found.
14732 * top.c (print_gdb_configuration): Include
14733 --{with,without}-debuginfod in the output.
14735 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14737 * thread.c (thr_try_catch_cmd): Print thread name.
14739 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14741 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14742 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14743 dwarf2_fetch_die_type_sect_off): Move to...
14744 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14745 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14746 dwarf2_fetch_die_type_sect_off): ... here.
14747 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14748 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14749 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14751 2020-02-26 Tom de Vries <tdevries@suse.de>
14754 * symfile.c (set_initial_language): Exit-early if
14755 language_mode == language_mode_manual.
14757 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14759 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14760 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14761 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14763 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14765 * gdbtypes.c (create_array_type_with_stride): Handle negative
14767 * valarith.c (value_subscripted_rvalue): Likewise.
14769 2020-02-25 Luis Machado <luis.machado@linaro.org>
14771 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14773 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14775 * loc.h (dwarf2_get_die_type): Move to...
14776 * read.h (dwarf2_get_die_type): ... here.
14777 * read.c (dwarf2_get_die_type): Move doc to header.
14779 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14781 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14782 'gnulib/Makefile.in' to the list.
14784 2020-02-24 Tom Tromey <tom@tromey.com>
14786 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14788 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14791 2020-02-24 Tom Tromey <tom@tromey.com>
14793 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14795 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14796 (dw2_do_instantiate_symtab, dw2_get_file_names)
14797 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14799 2020-02-24 Tom Tromey <tom@tromey.com>
14801 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14802 make_scoped_restore.
14803 (dwarf2_psymtab::read_symtab): Don't clear
14804 reading_partial_symbols.
14806 2020-02-24 Tom de Vries <tdevries@suse.de>
14809 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14811 2020-02-24 Tom de Vries <tdevries@suse.de>
14813 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14814 commands layout next/prev/regs.
14816 2020-02-22 Tom Tromey <tom@tromey.com>
14818 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14819 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14821 2020-02-22 Tom Tromey <tom@tromey.com>
14823 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14825 2020-02-22 Tom Tromey <tom@tromey.com>
14827 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14828 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14829 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14830 * tui/tui.c (_initialize_tui): Add usage text.
14832 2020-02-22 Tom Tromey <tom@tromey.com>
14834 * tui/tui-win.c (tui_set_focus_command)
14835 (tui_set_win_height_command): Use error_no_arg.
14836 (_initialize_tui_win): Update help text.
14837 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14839 2020-02-22 Tom Tromey <tom@tromey.com>
14841 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14842 * tui/tui-disasm.h (struct tui_disasm_window)
14843 <display_start_addr>: Declare.
14844 * tui/tui-source.h (struct tui_source_window)
14845 <display_start_addr>: Declare.
14846 * tui/tui-winsource.h (struct tui_source_window_base)
14847 <show_source_line, display_start_addr>: New methods.
14848 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14849 Rename and move to protected section.
14850 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14851 (tui_source_window_base::do_erase_source_content): Update.
14852 (tui_source_window_base::show_source_line): Now a method.
14853 (tui_source_window_base::show_source_content)
14854 (tui_source_window_base::tui_source_window_base)
14855 (tui_source_window_base::rerender)
14856 (tui_source_window_base::refill)
14857 (tui_source_window_base::do_scroll_horizontal)
14858 (tui_source_window_base::set_is_exec_point_at)
14859 (tui_source_window_base::update_breakpoint_info)
14860 (tui_source_window_base::update_exec_info): Update.
14861 * tui/tui-source.c (tui_source_window::set_contents)
14862 (tui_source_window::showing_source_p)
14863 (tui_source_window::do_scroll_vertical)
14864 (tui_source_window::location_matches_p)
14865 (tui_source_window::line_is_displayed): Update.
14866 (tui_source_window::display_start_addr): New method.
14867 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14868 (tui_disasm_window::do_scroll_vertical)
14869 (tui_disasm_window::location_matches_p): Update.
14870 (tui_disasm_window::display_start_addr): New method.
14872 2020-02-22 Tom Tromey <tom@tromey.com>
14874 * NEWS: Add entry for gdb.register_window_type.
14875 * tui/tui-layout.h (window_factory): New typedef.
14876 (tui_register_window): Declare.
14877 * tui/tui-layout.c (saved_tui_windows): New global.
14878 (tui_apply_current_layout): Use it.
14879 (tui_register_window): New function.
14880 * python/python.c (do_start_initialization): Call
14881 gdbpy_initialize_tui.
14882 (python_GdbMethods): Add "register_window_type" function.
14883 * python/python-internal.h (gdbpy_register_tui_window)
14884 (gdbpy_initialize_tui): Declare.
14885 * python/py-tui.c: New file.
14886 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14888 2020-02-22 Tom Tromey <tom@tromey.com>
14890 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14892 2020-02-22 Tom Tromey <tom@tromey.com>
14894 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14895 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14896 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14897 (tui_set_win_focus_to): Move from tui-win.c.
14899 2020-02-22 Tom Tromey <tom@tromey.com>
14901 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14903 (known_window_types): New global.
14904 (tui_get_window_by_name): Reimplement.
14905 (initialize_known_windows): New function.
14906 (validate_window_name): Rewrite.
14907 (_initialize_tui_layout): Call initialize_known_windows.
14909 2020-02-22 Tom Tromey <tom@tromey.com>
14911 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14913 * tui/tui-winsource.h (struct tui_source_window_base)
14914 <tui_source_window_base>: Remove parameter.
14915 * tui/tui-winsource.c
14916 (tui_source_window_base::tui_source_window_base): Remove
14918 (tui_source_window_base::refill): Update.
14919 * tui/tui-stack.h (struct tui_locator_window)
14920 <tui_locator_window>: Update.
14921 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14922 Default the constructor.
14923 * tui/tui-regs.h (struct tui_data_item_window)
14924 <tui_data_item_window>: Default the constructor.
14925 (struct tui_data_window) <tui_data_window>: Likewise.
14926 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14927 Default the constructor.
14928 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14929 Default the constructor.
14931 (struct tui_win_info) <tui_win_info>: Default the constructor.
14932 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14933 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14934 Default the constructor.
14936 2020-02-22 Tom Tromey <tom@tromey.com>
14938 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14939 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14940 * tui/tui-win.c (tui_resize_all): Don't call
14941 tui_delete_invisible_windows.
14942 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14944 (tui_set_layout): Update.
14945 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14946 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14947 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14949 2020-02-22 Tom Tromey <tom@tromey.com>
14951 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14954 2020-02-22 Tom Tromey <tom@tromey.com>
14956 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14958 2020-02-22 Tom Tromey <tom@tromey.com>
14960 * tui/tui-winsource.h (struct tui_source_window_iterator)
14961 <inner_iterator>: New etytypedef.
14962 <tui_source_window_iterator>: Take "end" parameter.
14963 <tui_source_window_iterator>: Take iterator.
14964 <operator*, advance>: Update.
14965 <m_iter>: Change type.
14966 <m_end>: New field.
14967 (struct tui_source_windows) <begin, end>: Update.
14968 * tui/tui-layout.c (tui_windows): New global.
14969 (tui_apply_current_layout): Clear tui_windows.
14970 (tui_layout_window::apply): Update tui_windows.
14971 * tui/tui-data.h (tui_windows): Declare.
14972 (all_tui_windows): Now inline function.
14973 (class tui_window_iterator, struct all_tui_windows): Remove.
14975 2020-02-22 Tom Tromey <tom@tromey.com>
14978 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14979 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14981 (class tui_layout_window) <get_sizes>: Likewise.
14982 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14984 <get_sizes>: Add "height" argument.
14985 <m_vertical>: New field.
14986 * tui/tui-layout.c (tui_layout_split::clone): Update.
14987 (tui_layout_split::get_sizes): Add "height" argument.
14988 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14989 (tui_new_layout_command): Parse "-horizontal".
14990 (_initialize_tui_layout): Update help string.
14991 (tui_layout_split::specification): Add "-horizontal" when needed.
14992 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14994 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14997 2020-02-22 Tom Tromey <tom@tromey.com>
14999 * tui/tui-layout.h (enum tui_adjust_result): New.
15000 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
15001 (class tui_layout_window) <adjust_size>: Return
15002 tui_adjust_result. Rewrite.
15003 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
15004 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
15006 2020-02-22 Tom Tromey <tom@tromey.com>
15008 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
15009 parameter and return types.
15010 (class tui_layout_base) <specification>: Add "depth".
15011 (class tui_layout_window) <specification>: Add "depth".
15012 (class tui_layout_split) <specification>: Add "depth".
15013 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
15015 (tui_new_layout_command): Parse sub-layouts.
15016 (_initialize_tui_layout): Update help string.
15017 (tui_layout_window::specification): Add "depth".
15018 (add_layout_command): Update.
15020 2020-02-22 Tom Tromey <tom@tromey.com>
15022 * NEWS: Add "tui new-layout" item.
15023 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
15024 Add new-layout command to help text.
15025 (validate_window_name): New function.
15026 (tui_new_layout_command): New function.
15027 (_initialize_tui_layout): Register "new-layout".
15028 (tui_layout_window::specification): New method.
15029 (tui_layout_window::specification): New method.
15030 * tui/tui-layout.h (class tui_layout_base) <specification>: New
15032 (class tui_layout_window) <specification>: New method.
15033 (class tui_layout_split) <specification>: New method.
15035 2020-02-22 Tom Tromey <tom@tromey.com>
15037 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
15038 * tui/tui-win.c (window_name_completer): Update comment.
15039 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
15041 (class tui_layout_window) <replace_window>: Likewise.
15042 (class tui_layout_split) <replace_window>: Likewise.
15043 (tui_set_layout): Don't declare.
15044 (tui_set_initial_layout): Declare function.
15045 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
15046 (asm_regs_layout): New globals.
15047 (tui_current_layout, show_layout): Remove.
15048 (tui_set_layout, tui_add_win_to_layout): Rewrite.
15049 (find_layout, tui_apply_layout): New function.
15050 (layout_completer): Remove.
15051 (tui_next_layout): Reimplement.
15052 (tui_next_layout_command): New function.
15053 (tui_set_initial_layout, tui_prev_layout_command): New functions.
15054 (tui_regs_layout): Reimplement.
15055 (tui_regs_layout_command): New function.
15056 (extract_display_start_addr): Rewrite.
15057 (next_layout, prev_layout): Remove.
15058 (tui_layout_window::replace_window): New method.
15059 (tui_layout_split::replace_window): New method.
15060 (destroy_layout): New function.
15061 (layout_list): New global.
15062 (add_layout_command): New function.
15063 (initialize_layouts): Update.
15064 (tui_layout_command): New function.
15065 (_initialize_tui_layout): Install "layout" commands.
15066 * tui/tui-data.h (enum tui_layout_type): Remove.
15067 (tui_current_layout): Don't declare.
15069 2020-02-22 Tom Tromey <tom@tromey.com>
15071 * tui/tui-regs.c (tui_reg_layout): Remove.
15072 (tui_reg_command): Use tui_regs_layout.
15073 * tui/tui-layout.h (tui_reg_command): Declare.
15074 * tui/tui-layout.c (tui_reg_command): New function.
15076 2020-02-22 Tom Tromey <tom@tromey.com>
15078 * tui/tui.c (tui_rl_delete_other_windows): Call
15079 tui_remove_some_windows.
15080 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15082 (class tui_layout_window) <remove_windows>: New method.
15083 (class tui_layout_split) <remove_windows>: Declare.
15084 (tui_remove_some_windows): Declare.
15085 * tui/tui-layout.c (tui_remove_some_windows): New function.
15086 (tui_layout_split::remove_windows): New method.
15088 2020-02-22 Tom Tromey <tom@tromey.com>
15090 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15091 * tui/tui-layout.h (tui_next_layout): Declare.
15092 * tui/tui-layout.c (tui_next_layout): New function.
15094 2020-02-22 Tom Tromey <tom@tromey.com>
15096 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15097 correct coordinates.
15099 2020-02-22 Tom Tromey <tom@tromey.com>
15101 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15102 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15105 2020-02-22 Tom Tromey <tom@tromey.com>
15107 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15108 TUI_DISASM_WIN, not tui_win_list.
15110 2020-02-22 Tom Tromey <tom@tromey.com>
15112 * valprint.c (generic_val_print_enum_1)
15113 (val_print_type_code_flags): Style member names.
15114 * rust-lang.c (val_print_struct, rust_print_enum)
15115 (rust_print_struct_def, rust_internal_print_type): Style member
15117 * p-valprint.c (pascal_object_print_value_fields): Style member
15118 names. Only call fprintf_symbol_filtered for static members.
15119 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15120 * f-valprint.c (f_val_print): Style member names.
15121 * f-typeprint.c (f_type_print_base): Style member names.
15122 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15123 call fprintf_symbol_filtered for static members.
15124 (cp_print_class_member): Style member names.
15125 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15127 * ada-valprint.c (ada_print_scalar): Style enum names.
15128 (ada_val_print_enum): Likewise.
15129 * ada-typeprint.c (print_enum_type): Style enum names.
15131 2020-02-21 Tom Tromey <tom@tromey.com>
15133 * psympriv.h (struct partial_symtab): Update comment.
15135 2020-02-21 Tom Tromey <tromey@adacore.com>
15137 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15140 2020-02-21 Tom de Vries <tdevries@suse.de>
15143 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15144 if dependencies[i]->user != NULL.
15146 2020-02-21 Ali Tamur <tamur@google.com>
15148 * dwarf2/read.c (dwarf2_name): Add null check.
15150 2020-02-20 Tom Tromey <tom@tromey.com>
15152 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15153 ">=", in binary search.
15154 (dwarf2_find_containing_comp_unit): New overload.
15155 (run_test): New self-test.
15156 (_initialize_dwarf2_read): Register new test.
15158 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
15160 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15161 * riscv-tdep.h: Likewise.
15162 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15164 * features/riscv/64bit-csr.xml: Regenerated.
15166 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15167 Tom Tromey <tom@tromey.com>
15169 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15170 of 'fputc_unfiltered'.
15171 (putchar_unfiltered): Call 'fputc_unfiltered'.
15172 (fputc_unfiltered): Call 'fputs_unfiltered'.
15174 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15176 * config.in: Regenerate.
15177 * configure: Regenerate.
15178 * configure.ac: Add --with-python-libdir option.
15179 * main.c: Use WITH_PYTHON_LIBDIR.
15181 2020-02-19 Tom Tromey <tom@tromey.com>
15183 * symtab.c (general_symbol_info::compute_and_set_names): Use
15184 obstack_strndup. Simplify call to symbol_set_demangled_name.
15186 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
15188 * dwarf2/read.c (allocate_signatured_type_table,
15189 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15190 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15191 Remove objfile parameter, update all callers.
15193 2020-02-19 Doug Evans <dje@google.com>
15196 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15197 rust_enum_variant calculation.
15199 2020-02-19 Tom Tromey <tromey@adacore.com>
15201 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15203 2020-02-19 Tom Tromey <tromey@adacore.com>
15205 * ada-lang.c (cache_symbol): Use obstack_strdup.
15207 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15209 * configure: Regenerate.
15211 2020-02-19 Tom Tromey <tromey@adacore.com>
15213 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15216 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
15218 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15220 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15222 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15223 if GDBSERVER is not defined.
15224 (riscv_tdesc_cache): Likewise, also store const target_desc.
15225 (STATIC_IN_GDB): Define.
15226 (riscv_create_target_description): Update declaration with
15228 (riscv_lookup_target_description): New function, only define if
15229 GDBSERVER is not defined.
15230 * arch/riscv.h (riscv_create_target_description): Declare only
15231 when GDBSERVER is defined.
15232 (riscv_lookup_target_description): New declaration when GDBSERVER
15234 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15235 (riscv_linux_read_features): ...this, and return
15236 riscv_gdbarch_features instead of target_desc.
15237 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15238 (riscv_linux_read_description): Rename to...
15239 (riscv_linux_read_features): ...this.
15240 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15241 Update to use riscv_gdbarch_features and
15242 riscv_lookup_target_description.
15243 * riscv-tdep.c (riscv_find_default_target_description): Use
15244 riscv_lookup_target_description instead of
15245 riscv_create_target_description.
15247 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15249 * valprint.c (generic_val_print_enum_1): When printing a flag
15250 enum with value 0 and there is no enumerator with value 0, print
15251 just "0" instead of "(unknown: 0x0)".
15253 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15255 * valprint.c (generic_val_print_enum_1): Print unknown part of
15258 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15260 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15261 flag enums to contain duplicate enumerators.
15262 * valprint.c (generic_val_print_enum_1): Update comment.
15264 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15266 * dwarf2/read.c: Include "count-one-bits.h".
15267 (update_enumeration_type_from_children): If an enumerator has
15268 multiple bits set, don't treat the enumeration as a "flag enum".
15269 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15270 of flag enums have 0 or 1 bit set.
15272 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15274 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15276 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15277 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15278 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15279 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15280 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15282 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15284 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15286 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15288 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15289 displaced_step_closure_up.
15290 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15291 (struct displaced_step_closure_up):
15292 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15293 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15294 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15296 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15297 * gdbarch.c, gdbarch.h: Re-generate.
15298 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15299 displaced_step_closure_up.
15300 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15301 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15302 * infrun.h (displaced_step_closure_up): New type alias.
15303 (struct displaced_step_inferior_state) <step_closure>: Change
15304 type to displaced_step_closure_up.
15305 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15306 displaced_step_closure_up.
15307 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15309 2020-02-14 Tom Tromey <tom@tromey.com>
15311 * minidebug.c (gnu_debug_key): New global.
15312 (find_separate_debug_file_in_section): Use it.
15314 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15316 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15318 * gdbarch.c: Re-generate.
15319 * gdbarch.h: Re-generate.
15320 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15322 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15323 type to std::unique_ptr.
15324 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15325 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15326 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15327 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15328 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15329 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15330 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15331 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15332 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15334 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15336 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15338 (displaced_step_clear): Rename to...
15339 (displaced_step_reset): ... this. Just call displaced->reset ().
15340 (displaced_step_clear_cleanup): Rename to...
15341 (displaced_step_reset_cleanup): ... this.
15342 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15343 (displaced_step_fixup): Likewise.
15344 (resume_1): Likewise.
15345 (handle_inferior_event): Restore child's memory before calling
15346 displaced_step_fixup on the parent.
15347 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15348 to std::unique_ptr.
15349 <step_closure>: Change type to std::unique_ptr.
15351 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15353 * arm-tdep.c: Include count-one-bits.h.
15354 (cleanup_block_store_pc): Use count_one_bits.
15355 (cleanup_block_load_pc): Use count_one_bits.
15356 (arm_copy_block_xfer): Use count_one_bits.
15357 (thumb2_copy_block_xfer): Use count_one_bits.
15358 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15359 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15360 (thumb_get_next_pcs_raw): Use count_one_bits.
15361 (arm_get_next_pcs_raw): Use count_one_bits_l.
15362 * arch/arm.c (bitcount): Remove.
15363 * arch/arm.h (bitcount): Remove.
15365 2020-02-14 Tom Tromey <tromey@adacore.com>
15367 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15369 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15370 * dwarf2/loc.c (call_site_find_chain_1): Return
15371 unique_xmalloc_ptr.
15372 (call_site_find_chain): Likewise.
15374 2020-02-14 Richard Biener <rguenther@suse.de>
15376 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15377 on expression with division operators.
15379 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15381 * MAINTAINERS (Write After Approval): Adding myself.
15383 2020-02-12 Tom Tromey <tom@tromey.com>
15385 * event-loop.c (event_data, gdb_event, event_handler_func):
15388 2020-02-12 Tom Tromey <tom@tromey.com>
15390 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15391 (dwarf2_frame_objfile_data): Add comment.
15392 (find_comp_unit, set_comp_unit): New functions.
15393 (dwarf2_frame_find_fde): Use find_comp_unit.
15394 (dwarf2_build_frame_info): Use set_comp_unit.
15396 2020-02-12 Tom Tromey <tom@tromey.com>
15398 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15399 (comp_unit): Don't initialize objfile.
15400 (execute_cfa_program): Add text_offset parameter.
15401 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15402 (dwarf2_frame_cache): Update.
15403 (dwarf2_build_frame_info): Don't set "objfile" member.
15405 2020-02-12 Tom Tromey <tom@tromey.com>
15407 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15408 (decode_frame_entry): Likewise.
15409 (dwarf2_build_frame_info): Update.
15411 2020-02-12 Tom Tromey <tom@tromey.com>
15413 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15414 (decode_frame_entry_1): Use the comp_unit obstack.
15416 2020-02-12 Tom Tromey <tom@tromey.com>
15418 * dwarf2/frame.c (struct comp_unit): Add initializers and
15420 (dwarf2_frame_objfile_data): Store a comp_unit.
15421 (dwarf2_frame_find_fde): Update.
15422 (dwarf2_build_frame_info): Use "new".
15424 2020-02-12 Tom Tromey <tom@tromey.com>
15426 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15427 (dwarf2_fde_table): Typedef for std::vector.
15428 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15429 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15430 (decode_frame_entry): Update.
15431 (dwarf2_build_frame_info): Use "new".
15433 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15435 * arm-tdep.c (arm_gdbarch_init): Update.
15436 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15437 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15438 have_neon, is_m>: Change to bool.
15440 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15442 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15444 2020-02-12 Tom Tromey <tom@tromey.com>
15446 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15448 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15450 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15451 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15453 2020-02-11 Tom Tromey <tom@tromey.com>
15455 * psymtab.h: Update comment.
15457 2020-02-11 Tom Tromey <tom@tromey.com>
15459 * gdb_obstack.h (struct auto_obstack): Use
15460 DISABLE_COPY_AND_ASSIGN.
15462 2020-02-11 Tom Tromey <tom@tromey.com>
15464 * dwarf2/frame.h (struct objfile): Don't forward declare.
15466 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15468 * cris-tdep.c (cris_supply_gregset): Change signature to match
15469 what struct regset expects.
15470 (cris_regset): New struct.
15471 (fetch_core_registers): Remove.
15472 (cris_iterate_over_regset_sections): New function.
15473 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15474 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15476 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15478 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15481 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15483 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15485 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15487 * configure: Re-generate.
15489 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15491 * configure: Re-generate.
15493 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15495 * acinclude: Update warning.m4 path.
15496 * warning.m4: Move to gdbsupport.
15498 2020-02-11 Tom Tromey <tromey@adacore.com>
15500 * remote.c (remote_console_output): Update.
15501 * printcmd.c (printf_command): Update.
15502 * event-loop.c (gdb_wait_for_event): Update.
15503 * linux-nat.c (sigchld_handler): Update.
15504 * remote-sim.c (gdb_os_write_stdout): Update.
15505 (gdb_os_flush_stdout): Update.
15506 (gdb_os_flush_stderr): Update.
15507 (gdb_os_write_stderr): Update.
15508 * exceptions.c (print_exception): Update.
15509 * remote-fileio.c (remote_fileio_func_read): Update.
15510 (remote_fileio_func_write): Update.
15511 * tui/tui.c (tui_enable): Update.
15512 * tui/tui-interp.c (tui_interp::init): Update.
15513 * utils.c (init_page_info): Update.
15514 (putchar_unfiltered, fputc_unfiltered): Update.
15515 (gdb_flush): Update.
15516 (emit_style_escape): Update.
15517 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15518 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15519 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15520 (stderr_file::write): Update.
15521 (stderr_file::puts): Update.
15522 * ui-file.h (ui_file_isatty, ui_file_write)
15523 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15524 (ui_file_puts): Don't declare.
15526 2020-02-10 Tom de Vries <tdevries@suse.de>
15528 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15529 sentinel to char *.
15531 2020-02-09 Tom de Vries <tdevries@suse.de>
15533 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15534 filename if it matches "<artificial>".
15536 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15538 * windows-tdep.c (struct enum_value_name): New struct.
15539 (create_enum): New function.
15540 (windows_get_siginfo_type): Create and use enum types.
15542 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15544 * NEWS: Mention $_siginfo support for Windows.
15545 * windows-nat.c (handle_exception): Set siginfo_er.
15546 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15547 (windows_xfer_siginfo): New function.
15548 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15549 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15550 (init_windows_gdbarch_data): New function.
15551 (get_windows_gdbarch_data): New function.
15552 (windows_get_siginfo_type): New function.
15553 (windows_init_abi): Register windows_get_siginfo_type.
15554 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15556 2020-02-08 Tom Tromey <tom@tromey.com>
15558 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15559 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15560 <keep>: Declare method.
15561 <m_keep>: Remove member.
15562 <~cutu_reader>: Remove.
15563 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15564 (cutu_reader::cutu_reader): Update.
15565 (cutu_reader::keep): Rename from ~cutu_reader.
15566 (process_psymtab_comp_unit, build_type_psymtabs_1)
15567 (process_skeletonless_type_unit, load_partial_comp_unit)
15568 (load_full_comp_unit, dwarf2_read_addr_index)
15569 (read_signatured_type): Update.
15571 2020-02-08 Tom Tromey <tom@tromey.com>
15573 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15574 "want_partial_unit" parameter.
15575 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15576 Inline check for DW_TAG_partial_unit.
15577 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15579 2020-02-08 Tom Tromey <tom@tromey.com>
15581 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15583 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15586 2020-02-08 Tom Tromey <tom@tromey.com>
15588 * dwarf2/read.c (read_address): Move to comp-unit.c.
15589 (dwarf2_rnglists_process, dwarf2_ranges_process)
15590 (read_attribute_value, dwarf_decode_lines_1)
15591 (var_decode_location, decode_locdesc): Update.
15592 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15593 read.c. Remove "cu" parameter.
15594 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15597 2020-02-08 Tom Tromey <tom@tromey.com>
15599 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15600 (read_indirect_line_string): Update.
15601 * dwarf2/comp-unit.c (read_offset): Remove.
15602 (read_comp_unit_head): Update.
15603 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15605 (read_offset): Don't declare.
15607 2020-02-08 Tom Tromey <tom@tromey.com>
15609 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15610 * dwarf2/read.c (struct comp_unit_head): Move to
15611 dwarf2/comp-unit.h.
15612 (enum class rcuh_kind): Move to comp-unit.h.
15613 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15614 (read_comp_unit_head, error_check_comp_unit_head)
15615 (read_and_check_comp_unit_head): Move to comp-unit.c.
15616 (read_offset, dwarf_unit_type_name): Likewise.
15617 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15618 (cutu_reader::cutu_reader, read_call_site_scope)
15619 (find_partial_die, follow_die_offset): Update.
15620 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15622 2020-02-08 Tom Tromey <tom@tromey.com>
15624 * dwarf2/read.c (read_offset_1): Move to leb.c.
15625 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15626 (dwarf_decode_macro_bytes): Update.
15627 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15628 * dwarf2/leb.h (read_offset): Declare.
15630 2020-02-08 Tom Tromey <tom@tromey.com>
15632 * dwarf2/read.c (dwarf2_section_size): Remove.
15633 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15635 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15637 2020-02-08 Tom Tromey <tom@tromey.com>
15639 * dwarf2/read.c (read_initial_length): Move to leb.c.
15640 * dwarf2/leb.h (read_initial_length): Declare.
15641 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15642 handle_nonstd parameter.
15643 * dwarf2/frame.c (read_initial_length): Remove.
15644 (decode_frame_entry_1): Update.
15646 2020-02-08 Tom Tromey <tom@tromey.com>
15648 * dwarf2/loc.c (dwarf2_find_location_expression)
15649 (dwarf_evaluate_loc_desc::get_tls_address)
15650 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15651 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15652 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15653 (dwarf2_compile_property_to_c)
15654 (dwarf2_loc_desc_get_symbol_read_needs)
15655 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15656 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15657 (loclist_describe_location, loclist_tracepoint_var_ref)
15658 (loclist_generate_c_location): Update.
15659 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15660 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15661 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15662 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15663 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15664 (dwarf2_per_cu_data::addr_size)
15665 (dwarf2_per_cu_data::ref_addr_size)
15666 (dwarf2_per_cu_data::text_offset)
15667 (dwarf2_per_cu_data::addr_type): Now methods.
15668 (per_cu_header_read_in): Make per_cu "const".
15669 (dwarf2_version): Remove.
15670 (dwarf2_per_cu_data::int_type): Now a method.
15671 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15672 (set_die_type, read_array_type, read_subrange_index_type)
15673 (read_tag_string_type, read_subrange_type): Update.
15674 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15675 offset_size, ref_addr_size, text_offset, addr_type, version,
15676 objfile, int_type, addr_sized_int_type>: Declare methods.
15678 2020-02-08 Tom Tromey <tom@tromey.com>
15680 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15683 2020-02-08 Tom Tromey <tom@tromey.com>
15685 * dwarf2/read.h (dwarf_line_debug): Declare.
15686 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15687 * dwarf2/read.c: Move line_header code to new files.
15688 (dwarf_line_debug): No longer static.
15689 * dwarf2/line-header.c: New file.
15690 * dwarf2/line-header.h: New file.
15692 2020-02-08 Tom Tromey <tom@tromey.com>
15694 * dwarf2/read.c (struct line_header) <file_full_name,
15695 file_file_name>: Return unique_xmalloc_ptr.
15696 (line_header::file_file_name): Update.
15697 (line_header::file_full_name): Update.
15698 (dw2_get_file_names_reader): Update.
15699 (macro_start_file): Update.
15701 2020-02-08 Tom Tromey <tom@tromey.com>
15703 * dwarf2/read.c (struct line_header) <file_full_name,
15704 file_file_name>: Declare methods.
15705 (dw2_get_file_names_reader): Update.
15706 (file_file_name): Now a method.
15707 (file_full_name): Likewise.
15708 (macro_start_file): Update.
15710 2020-02-08 Tom Tromey <tom@tromey.com>
15712 * dwarf2/read.c (dwarf_always_disassemble)
15713 (show_dwarf_always_disassemble): Move to loc.c.
15714 (_initialize_dwarf2_read): Move "always-disassemble" registration
15716 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15717 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15719 (show_dwarf_always_disassemble): Move from read.c.
15720 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15722 2020-02-08 Tom Tromey <tom@tromey.com>
15724 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15725 (create_quick_file_names_table): Return htab_up.
15726 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15728 * dwarf2/read.h (struct dwarf2_per_objfile)
15729 <quick_file_names_table>: Now htab_up.
15731 2020-02-08 Tom Tromey <tom@tromey.com>
15733 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15735 2020-02-08 Tom Tromey <tom@tromey.com>
15737 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15739 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15740 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15741 (abbrev_table::abbrev_table): No longer inline.
15742 (ABBREV_HASH_SIZE): Remove.
15743 (abbrev_table::m_abbrevs): Now an htab_up.
15745 2020-02-08 Tom Tromey <tom@tromey.com>
15747 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15748 (cutu_reader): Update.
15749 (build_type_psymtabs_1): Update.
15750 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15751 (abbrev_table::alloc_abbrev): Update.
15752 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15753 (abbrev_table::read): New static method, renamed from
15754 abbrev_table_read_table.
15755 (abbrev_table::alloc_abbrev)
15756 (abbrev_table::add_abbrev): Now private.
15757 (abbrev_table::abbrev_table): Now private.
15758 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15760 2020-02-08 Tom Tromey <tom@tromey.com>
15762 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15763 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15766 2020-02-08 Tom Tromey <tom@tromey.com>
15768 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15770 (lookup_dwo_unit_in_dwp): Update.
15771 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15774 2020-02-08 Tom Tromey <tom@tromey.com>
15776 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15779 2020-02-08 Tom Tromey <tom@tromey.com>
15781 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15783 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15784 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15785 Change type to htab_up.
15787 2020-02-08 Tom Tromey <tom@tromey.com>
15789 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15790 htab_up. Don't allocate on obstack.
15791 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15792 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15793 Change type to htab_up.
15795 2020-02-08 Tom Tromey <tom@tromey.com>
15797 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15798 Change type to htab_up.
15799 * dwarf2/read.c (create_signatured_type_table_from_index)
15800 (create_signatured_type_table_from_debug_names)
15801 (create_all_type_units, add_type_unit)
15802 (lookup_dwo_signatured_type, lookup_signatured_type)
15803 (process_skeletonless_type_unit): Update.
15804 (create_debug_type_hash_table, create_debug_types_hash_table):
15805 Change type of types_htab.
15806 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15807 htab_up. Don't allocate on obstack.
15808 (create_cus_hash_table): Change type of cus_htab parameter.
15809 (struct dwo_file) <cus, tus>: Now htab_up.
15810 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15811 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15812 (queue_and_load_all_dwo_tus): Update.
15813 * dwarf2/index-write.c (write_gdbindex): Update.
15814 (write_debug_names): Update.
15816 2020-02-08 Tom Tromey <tom@tromey.com>
15818 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15819 dwarf2/read.c. Remove "next" member. Add constructor ntad
15821 (struct dwarf2_per_objfile) <queue>: New member.
15822 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15824 (dwarf2_queue, dwarf2_queue_tail): Remove.
15825 (class dwarf2_queue_guard): Add parameter to constructor. Use
15826 DISABLE_COPY_AND_ASSIGN.
15827 <m_per_objfile>: New member.
15828 <~dwarf2_queue_guard>: Rewrite.
15829 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15831 (~dwarf2_queue_item): New.
15833 2020-02-08 Tom Tromey <tom@tromey.com>
15835 * dwarf2/read.c (struct die_info) <has_children>: New member.
15836 (dw2_get_file_names_reader): Remove has_children.
15837 (dw2_get_file_names): Update.
15838 (read_cutu_die_from_dwo): Remove has_children.
15839 (cutu_reader::init_tu_and_read_dwo_dies)
15840 (cutu_reader::cutu_reader): Update.
15841 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15842 Remove has_children.
15843 (build_type_psymtabs_1, process_skeletonless_type_unit)
15844 (load_partial_comp_unit, load_full_comp_unit): Update.
15845 (create_dwo_cu_reader): Remove has_children.
15846 (create_cus_hash_table, read_die_and_children): Update.
15847 (read_full_die_1,read_full_die): Remove has_children.
15848 (read_signatured_type): Update.
15849 (class cutu_reader) <has_children>: Remove.
15851 2020-02-08 Tom Tromey <tom@tromey.com>
15853 * dwarf2/expr.c: Rename from dwarf2expr.c.
15854 * dwarf2/expr.h: Rename from dwarf2expr.h.
15855 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15856 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15857 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15858 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15859 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15860 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15861 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15862 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15863 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15864 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15865 * dwarf2/loc.c: Rename from dwarf2loc.c.
15866 * dwarf2/loc.h: Rename from dwarf2loc.h.
15867 * dwarf2/read.c: Rename from dwarf2read.c.
15868 * dwarf2/read.h: Rename from dwarf2read.h.
15869 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15870 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15871 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15872 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15873 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15874 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15875 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15876 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15877 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15878 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15879 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15880 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15881 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15883 * Makefile.in (COMMON_SFILES): Update.
15884 (HFILES_NO_SRCDIR): Update.
15886 2020-02-08 Tom Tromey <tom@tromey.com>
15888 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15889 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15891 2020-02-08 Tom Tromey <tom@tromey.com>
15893 * dwarf2read.h (struct die_info): Don't declare.
15895 2020-02-08 Tom Tromey <tom@tromey.com>
15897 * dwarf2read.h (die_info_ptr): Remove typedef.
15899 2020-02-08 Tom Tromey <tom@tromey.com>
15901 * dwarf2read.c (read_call_site_scope)
15902 (handle_data_member_location, dwarf2_add_member_fn)
15903 (mark_common_block_symbol_computed, read_common_block)
15904 (attr_to_dynamic_prop, partial_die_info::read)
15905 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15906 (dwarf2_symbol_mark_computed, set_die_type): Update.
15907 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15909 (attr_form_is_block): Don't declare.
15910 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15912 2020-02-08 Tom Tromey <tom@tromey.com>
15914 * dwarf2read.c (dwarf2_find_base_address, )
15915 (read_call_site_scope, rust_containing_type)
15916 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15917 (handle_data_member_location, dwarf2_add_member_fn)
15918 (get_alignment, read_structure_type, process_structure_scope)
15919 (mark_common_block_symbol_computed, read_common_block)
15920 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15921 (partial_die_info::read, read_attribute_value, new_symbol)
15922 (lookup_die_type, dwarf2_get_ref_die_offset)
15923 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15924 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15925 (dwarf2_symbol_mark_computed): Update.
15926 * dwarf2/attribute.h (struct attribute) <value_as_address,
15927 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15929 (value_as_address, attr_form_is_section_offset)
15930 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15931 * dwarf2/attribute.c (attribute::value_as_address)
15932 (attribute::form_is_section_offset, attribute::form_is_constant)
15933 (attribute::form_is_ref): Now methods.
15935 2020-02-08 Tom Tromey <tom@tromey.com>
15937 * dwarf2read.c (struct attribute, DW_STRING)
15938 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15939 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15940 (attr_form_is_block, attr_form_is_section_offset)
15941 (attr_form_is_constant, attr_form_is_ref): Move.
15942 * dwarf2/attribute.h: New file.
15943 * dwarf2/attribute.c: New file, from dwarf2read.c.
15944 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15946 2020-02-08 Tom Tromey <tom@tromey.com>
15948 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15949 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15951 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15952 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15953 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15955 * dwarf2/abbrev.h: New file.
15956 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15957 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15959 2020-02-08 Tom Tromey <tom@tromey.com>
15961 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15962 (dwarf2_section_size, dwarf2_get_section_info)
15963 (create_signatured_type_table_from_debug_names)
15964 (create_addrmap_from_aranges, read_debug_names_from_section)
15965 (get_gdb_index_contents_from_section, read_comp_unit_head)
15966 (error_check_comp_unit_head, read_abbrev_offset)
15967 (create_debug_type_hash_table, init_cu_die_reader)
15968 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15969 (read_comp_units_from_section, create_cus_hash_table)
15970 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15971 (create_dwp_v2_section, dwarf2_rnglists_process)
15972 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15973 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15974 (read_indirect_string_from_dwz, read_addr_index_1)
15975 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15976 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15977 (fill_in_loclist_baton): Update.
15978 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15979 get_containing_section, get_bfd_owner, get_bfd_section,
15980 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15981 (dwarf2_read_section, get_section_name, get_section_file_name)
15982 (get_containing_section, get_section_bfd_owner)
15983 (get_section_bfd_section, get_section_name, get_section_file_name)
15984 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15986 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15987 (dwarf2_section_info::get_bfd_owner)
15988 (dwarf2_section_info::get_bfd_section)
15989 (dwarf2_section_info::get_name)
15990 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15991 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15992 (dwarf2_section_info::read): Now methods.
15993 * dwarf-index-write.c (class debug_names): Update.
15995 2020-02-08 Tom Tromey <tom@tromey.com>
15997 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15998 Move to dwarf2/section.h.
15999 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
16000 (get_section_bfd_section, get_section_name)
16001 (get_section_file_name, get_section_id, get_section_flags)
16002 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
16004 * dwarf2/section.h: New file.
16005 * dwarf2/section.c: New file, from dwarf2read.c.
16006 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
16008 2020-02-08 Tom Tromey <tom@tromey.com>
16010 * dwarf2read.h (read_unsigned_leb128): Don't declare.
16011 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
16012 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
16013 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
16014 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
16015 * dwarf2/leb.h: New file, from dwarf2read.c.
16016 * dwarf2/leb.c: New file, from dwarf2read.c.
16017 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
16019 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
16020 (COMMON_SFILES): Add dwarf2/leb.c.
16022 2020-02-08 Joel Brobecker <brobecker@adacore.com>
16026 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16029 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
16030 * gdb/remote.c (remote_console_output): Update.
16031 * gdb/ui-file.c (fputs_unfiltered): Rename to...
16032 (ui_file_puts): ...this.
16033 * gdb/ui-file.h (ui_file_puts): Add declaration.
16034 * gdb/utils.c (emit_style_escape): Update.
16035 (flush_wrap_buffer): Update.
16036 (fputs_maybe_filtered): Update.
16037 (fputs_unfiltered): Add function.
16039 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16041 * gdb/event-loop.c (gdb_wait_for_event): Update.
16042 * gdb/printcmd.c (printf_command): Update.
16043 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
16044 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
16045 (gdb_os_flush_stderr): Update.
16046 * gdb/remote.c (remote_console_output): Update.
16047 * gdb/ui-file.c (gdb_flush): Rename to...
16048 (ui_file_flush): ...this.
16049 (stderr_file::write): Update.
16050 (stderr_file::puts): Update.
16051 * gdb/ui-file.h (gdb_flush): Rename to...
16052 (ui_file_flush): ...this.
16053 * gdb/utils.c (gdb_flush): Add function.
16054 * gdb/utils.h (gdb_flush): Add declaration.
16056 2020-02-07 Tom Tromey <tromey@adacore.com>
16058 PR breakpoints/24915:
16059 * source.c (find_and_open_source): Do not check basenames_may_differ.
16061 2020-02-07 Tom Tromey <tom@tromey.com>
16063 * README: Update gdbserver documentation.
16064 * gdbserver: Move to top level.
16065 * configure.tgt (build_gdbserver): Remove.
16066 * configure.ac: Remove --enable-gdbserver.
16067 * configure: Rebuild.
16068 * Makefile.in (distclean): Don't mention gdbserver.
16070 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16072 * source-cache.c (source_cache::ensure): Surround
16073 get_plain_source_lines with a try/catch.
16074 (source_cache::get_line_charpos): Get rid of try/catch
16075 and only check for the return value of "ensure".
16076 * tui/tui-source.c (tui_source_window::set_contents):
16077 Simplify "nlines" calculation.
16079 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16081 * MAINTAINERS (Write After Approval): Add myself.
16083 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16085 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16088 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16090 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16092 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
16094 * nat/riscv-linux-tdesc.h: New file.
16095 * nat/riscv-linux-tdesc.c: New file, taking code from...
16096 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16098 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16101 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16103 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16104 we don't set the fake simulator ptid to the null_ptid.
16106 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
16108 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16109 * gdbthread.h (class thread_info) <resumed>: Likewise.
16110 * infrun.c (resume_1): Likewise.
16111 (proceed): Likewise.
16112 (infrun_thread_stop_requested): Likewise.
16113 (stop_all_threads): Likewise.
16114 (handle_inferior_event): Likewise.
16115 (restart_threads): Likewise.
16116 (finish_step_over): Likewise.
16117 (keep_going_stepped_thread): Likewise.
16118 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16119 (linux_handle_extended_wait): Likewise.
16120 * record-btrace.c (get_thread_current_frame_id): Likewise.
16121 * record-full.c (record_full_wait_1): Likewise.
16122 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16123 * target.c (target_resume): Likewise.
16124 * thread.c (set_running_thread): Likewise.
16126 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16128 * f-valprint.c (f77_print_array_1): Changed datatype of index
16129 variable to LONGEST from int to enable it to contain bound
16132 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
16134 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16135 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16136 offsets according to FLEN determined.
16137 (riscv_linux_nat_target::read_description): Determine FLEN
16139 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16140 according to FLEN determined.
16141 (riscv_linux_nat_target::store_registers): Likewise.
16143 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
16145 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16146 when reg->group is empty and reggroup is not.
16148 2020-01-31 Tom Tromey <tromey@adacore.com>
16150 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16151 Call beneath target's mourn_inferior after unpushing.
16153 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16156 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16157 have enough lines to fill the screen, still return the lowest
16160 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16162 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16163 '-', '<', and '>' commands.
16165 2020-01-29 Pedro Alves <palves@redhat.com>
16166 Sergio Durigan Junior <sergiodj@redhat.com>
16168 * infcmd.c (construct_inferior_arguments): Assert that
16169 'argc' is greater than 0.
16171 2020-01-29 Luis Machado <luis.machado@linaro.org>
16173 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16174 (BRK_INSN_MASK): Define to 0xd4200000.
16175 (aarch64_program_breakpoint_here_p): New function.
16176 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16177 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16179 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16181 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16182 call gdbarch_program_breakpoint_here_p.
16183 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16184 default_program_breakpoint_here_p, changed return type to bool and
16186 * breakpoint.h (program_breakpoint_here): Moved prototype to
16187 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16188 return type to bool.
16189 * gdbarch.c: Regenerate.
16190 * gdbarch.h: Regenerate.
16191 * gdbarch.sh (program_breakpoint_here_p): New method.
16192 * infrun.c (handle_signal_stop): Call
16193 gdbarch_program_breakpoint_here_p.
16195 2020-01-26 Tom Tromey <tom@tromey.com>
16197 * ctfread.c (struct ctf_fp_info): Reindent.
16198 (_initialize_ctfread): Remove.
16200 2020-01-26 Tom Tromey <tom@tromey.com>
16202 * psymtab.c (partial_map_expand_apply)
16203 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16204 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16205 (psym_print_stats, psym_expand_symtabs_for_function)
16206 (psym_map_symbol_filenames, psym_map_matching_symbols)
16207 (psym_expand_symtabs_matching)
16208 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16209 (maintenance_check_psymtabs): Use new methods.
16210 * psympriv.h (struct partial_symtab) <readin_p,
16211 get_compunit_symtab>: New methods.
16212 <readin, compunit_symtab>: Remove members.
16213 (struct standard_psymtab): New.
16214 (struct legacy_psymtab): Derive from standard_psymtab.
16215 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16217 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16219 2020-01-26 Tom Tromey <tom@tromey.com>
16221 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16222 read_dependencies. Add assert.
16223 * psymtab.c (partial_symtab::read_dependencies): New method.
16224 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16226 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16227 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16229 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16232 2020-01-26 Tom Tromey <tom@tromey.com>
16234 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16235 Call expand_psymtab.
16236 (xcoff_read_symtab): Call expand_psymtab.
16237 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16238 legacy_expand_psymtab.
16239 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16241 (struct legacy_psymtab) <expand_psymtab>: Implement.
16242 <legacy_expand_psymtab>: New member.
16243 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16244 (parse_partial_symbols): Set legacy_expand_psymtab.
16245 (psymtab_to_symtab_1): Change argument order. Call
16247 (new_psymtab): Set legacy_expand_psymtab.
16248 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16249 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16251 (dwarf2_psymtab::expand_psymtab): Rename from
16252 psymtab_to_symtab_1. Call expand_psymtab.
16253 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16254 (dbx_end_psymtab): Likewise.
16255 (dbx_psymtab_to_symtab_1): Change argument order. Call
16257 (dbx_read_symtab): Call expand_psymtab.
16258 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16259 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16260 (ctf_psymtab::read_symtab): Call expand_psymtab.
16262 2020-01-26 Tom Tromey <tom@tromey.com>
16264 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16265 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16267 * mdebugread.c (mdebug_read_symtab): Remove prints.
16268 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16270 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16272 2020-01-26 Tom Tromey <tom@tromey.com>
16274 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16275 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16276 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16278 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16279 * psymtab.c (psymtab_to_symtab): Call method.
16280 (dump_psymtab): Update.
16281 * psympriv.h (struct partial_symtab): Add virtual destructor.
16282 <read_symtab>: New method.
16283 (struct legacy_symtab): New.
16284 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16285 (struct pst_map) <pst>: Now a legacy_psymtab.
16286 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16287 (new_psymtab): Use legacy_psymtab.
16288 * dwarf2read.h (struct dwarf2_psymtab): New.
16289 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16290 * dwarf2read.c (dwarf2_create_include_psymtab)
16291 (dwarf2_build_include_psymtabs, create_type_unit_group)
16292 (create_partial_symtab, process_psymtab_comp_unit_reader)
16293 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16294 (set_partial_user): Use dwarf2_psymtab.
16295 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16296 (psymtab_to_symtab_1, process_full_comp_unit)
16297 (process_full_type_unit, dwarf2_ranges_read)
16298 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16299 (dwarf_decode_lines): Use dwarf2_psymtab.
16300 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16301 (add_address_entry_worker, write_one_signatured_type)
16302 (recursively_count_psymbols, recursively_write_psymbols)
16303 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16304 (write_debug_names): Likewise.
16305 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16306 <pst>: Now a legacy_psymtab.
16307 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16308 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16309 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16310 * ctfread.c (struct ctf_psymtab): New.
16311 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16313 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16314 (create_partial_symtab): Return a ctf_psymtab.
16315 (scan_partial_symbols): Update.
16317 2020-01-26 Tom Tromey <tom@tromey.com>
16319 * xcoffread.c (xcoff_start_psymtab): Use new.
16320 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16321 renamed from start_psymtab_common.
16322 * psympriv.h (struct partial_symtab): Add new constructor.
16323 (start_psymtab_common): Don't declare.
16324 * mdebugread.c (parse_partial_symbols): Use new.
16325 * dwarf2read.c (create_partial_symtab): Use new.
16326 * dbxread.c (start_psymtab): Use new.
16327 * ctfread.c (create_partial_symtab): Use new.
16329 2020-01-26 Tom Tromey <tom@tromey.com>
16331 * xcoffread.c (xcoff_end_psymtab): Use new.
16332 * psymtab.c (start_psymtab_common): Use new.
16333 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16335 * psympriv.h (struct partial_symtab): Add parameters to
16336 constructor. Don't inline.
16337 (allocate_psymtab): Don't declare.
16338 * mdebugread.c (new_psymtab): Use new.
16339 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16340 * dbxread.c (dbx_end_psymtab): Use new.
16342 2020-01-26 Tom Tromey <tom@tromey.com>
16344 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16345 allocate_psymtab. Update documentation.
16346 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16347 allocate_psymtab. Do not use new.
16348 (allocate_psymtab): Use new. Update.
16350 2020-01-26 Tom Tromey <tom@tromey.com>
16352 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16353 * psymtab.c (psym_print_stats): Update.
16354 * psympriv.h (struct partial_symtab) <readin,
16355 psymtabs_addrmap_supported, anonymous>: Now bool.
16356 * mdebugread.c (psymtab_to_symtab_1): Update.
16357 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16358 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16359 (process_full_comp_unit, process_full_type_unit): Update.
16360 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16361 * ctfread.c (psymtab_to_symtab): Update.
16363 2020-01-26 Tom Tromey <tom@tromey.com>
16365 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16366 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16367 * psymtab.c (psymtab_storage): Delete psymtabs.
16368 (psymtab_storage::allocate_psymtab): Use new.
16369 (psymtab_storage::discard_psymtab): Use delete.
16370 * psympriv.h (struct partial_symtab): Add constructor and
16373 2020-01-26 Tom Tromey <tom@tromey.com>
16375 * machoread.c: Do not include psympriv.h.
16377 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16379 * NEWS: Mention the new option and the set/show commands.
16381 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16383 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16384 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16385 (validate_exec_file): New variables, enums, functions.
16386 (exec_file_locate_attach, print_section_info): Style the filenames.
16387 (_initialize_exec): Install show_exec_file_mismatch_command and
16388 set_exec_file_mismatch_command.
16389 * gdbcore.h (validate_exec_file): Declare.
16390 * infcmd.c (attach_command): Call validate_exec_file.
16391 * remote.c ( remote_target::remote_add_inferior): Likewise.
16393 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16395 * frame.c (find_frame_sal): Move call to get_next_frame into more
16397 * inline-frame.c (inilne_state) <inline_state>: Update argument
16399 (inilne_state) <skipped_symbol>: Rename to...
16400 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16401 (skip_inline_frames): Build vector of skipped symbols and use this
16402 to reate the inline_state.
16403 (inline_skipped_symbol): Add a comment and some assertions, fetch
16404 skipped symbol from the list.
16406 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16408 * buildsym.c (lte_is_less_than): Delete.
16409 (buildsym_compunit::end_symtab_with_blockvector): Create local
16410 lambda function to sort line table entries, and use
16411 std::stable_sort instead of std::sort.
16412 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16413 markers when looking for a previous line.
16415 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16417 * dwarf2read.c (lnp_state_machine::record_line): Include
16418 end_sequence parameter in debug print out. Record the line if we
16419 are at an end_sequence marker even if it's not the start of a
16421 * symmisc.c (maintenance_print_one_line_table): Print end of
16422 sequence markers with 'END' not '0'.
16424 2020-01-24 Pedro Alves <palves@redhat.com>
16427 * thread.c (scoped_restore_current_thread::restore): Use
16428 switch_to_inferior_no_thread.
16429 * exec.c: Include "progspace-and-thread.h".
16430 (add_target_sections, remove_target_sections):
16431 scoped_restore_current_pspace_and_thread instead of
16432 scoped_restore_current_thread.
16433 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16434 and aspace to the inferior before calling clone_program_space.
16435 Remove stale comment.
16437 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16439 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16440 (arm_netbsd_nat_target::fetch_registers): ...this.
16441 (arm_nbsd_nat_target::store_registers): Rename to...
16442 (arm_netbsd_nat_target::store_registers): ...this.
16444 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16446 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16449 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16451 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16453 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16455 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16456 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16457 the correct replacement (iterate_over_regset_sections).
16458 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16461 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16464 * gdb/python/python.c (execute_gdb_command): Call
16465 async_enable_stdin in catch block.
16467 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16469 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16470 SWITCH_THRU_ALL_UIS.
16472 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16475 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16476 comment, add extra parameter, and update to store previous symbol
16478 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16479 add extra parameter.
16480 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16481 remove unneeded parameter, add try/catch around gdb_print_insn,
16482 rewrite to add items to asm_lines vector.
16483 (tui_find_backward_disassembly_start_address): New function.
16484 (tui_find_disassembly_address): Updated throughout.
16485 (tui_disasm_window::set_contents): Update for changes to
16487 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16488 number of lines to scroll.
16490 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16492 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16493 (SECT_OFF_DATA): Likewise.
16494 (SECT_OFF_RODATA): Likewise.
16495 (SECT_OFF_TEXT): Likewise.
16496 (SECT_OFF_BSS): Likewise.
16497 (struct objfile) <text_section_offset, data_section_offset>: New
16499 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16500 objfile::text_section_offset.
16501 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16502 * coffread.c (coff_symtab_read): Likewise.
16503 (enter_linenos): Likewise.
16504 (process_coff_symbol): Likewise.
16505 * ctfread.c (get_objfile_text_range): Likewise.
16506 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16507 Use objfile::data_section_offset.
16508 * dwarf2-frame.c (execute_cfa_program): Use
16509 objfile::text_section_offset.
16510 (dwarf2_frame_find_fde): Likewise.
16511 * dwarf2read.c (create_addrmap_from_index): Likewise.
16512 (create_addrmap_from_aranges): Likewise.
16513 (dw2_find_pc_sect_compunit_symtab): Likewise.
16514 (process_psymtab_comp_unit_reader): Likewise.
16515 (add_partial_symbol): Likewise.
16516 (add_partial_subprogram): Likewise.
16517 (process_full_comp_unit): Likewise.
16518 (read_file_scope): Likewise.
16519 (read_func_scope): Likewise.
16520 (read_lexical_block_scope): Likewise.
16521 (read_call_site_scope): Likewise.
16522 (dwarf2_rnglists_process): Likewise.
16523 (dwarf2_ranges_process): Likewise.
16524 (dwarf2_ranges_read): Likewise.
16525 (dwarf_decode_lines_1): Likewise.
16526 (new_symbol): Likewise.
16527 (dwarf2_fetch_die_loc_sect_off): Likewise.
16528 (dwarf2_per_cu_text_offset): Likewise.
16529 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16530 * hppa-tdep.c (read_unwind_info): Likewise.
16531 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16532 * psympriv.h (struct partial_symtab): Likewise.
16533 * psymtab.c (find_pc_sect_psymtab): Likewise.
16534 * solib-svr4.c (enable_break): Likewise.
16535 * stap-probe.c (relocate_address): Use
16536 objfile::data_section_offset.
16537 * xcoffread.c (enter_line_range): Use
16538 objfile::text_section_offset.
16539 (read_xcoff_symtab): Likewise.
16541 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16543 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16544 declaration to narrower scopes.
16546 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16548 * darwin-nat.h (struct darwin_exception_msg, enum
16549 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16551 (class darwin_nat_target) <wait_1, check_new_threads,
16552 decode_exception_message, decode_message, stop_inferior,
16553 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16554 * darwin-nat.c (darwin_check_new_threads): Rename to...
16555 (darwin_nat_target::check_new_threads): ... this.
16556 (darwin_suspend_inferior_it): Remove.
16557 (darwin_decode_exception_message): Rename to...
16558 (darwin_nat_target::decode_exception_message): ... this.
16559 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16560 (darwin_decode_message): Rename to...
16561 (darwin_nat_target::decode_message): ... this.
16562 (cancel_breakpoint): Rename to...
16563 (darwin_nat_target::cancel_breakpoint): ... this.
16564 (darwin_wait): Rename to...
16565 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16566 instead of iterate_over_inferiors.
16567 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16568 (darwin_stop_inferior): Rename to...
16569 (darwin_nat_target::stop_inferior): ... this.
16570 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16571 (darwin_init_thread_list): Rename to...
16572 (darwin_nat_target::init_thread_list): ... this.
16573 (darwin_ptrace_him): Rename to...
16574 (darwin_nat_target::ptrace_him): ... this.
16575 (darwin_nat_target::create_inferior): Pass lambda function to
16577 (darwin_nat_target::detach): Call stop_inferior instead of
16578 darwin_stop_inferior.
16579 * fork-inferior.h (fork_inferior): Change init_trace_fun
16580 parameter to gdb::function_view.
16581 * fork-inferior.c (fork_inferior): Likewise.
16583 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16585 * i386-cygwin-tdep.c (core_process_module_section): Update.
16586 * windows-nat.c (struct lm_info_windows): Add text_offset.
16587 (windows_xfer_shared_libraries): Update.
16588 * windows-tdep.c (windows_xfer_shared_library):
16589 Add text_offset_cached argument.
16590 * windows-tdep.h (windows_xfer_shared_library): Update.
16592 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16594 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16596 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16598 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16599 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16600 replace with range-based for.
16601 (gdbsim_interrupt_inferior): Remove.
16602 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16603 with a range-based for. Inline code from
16604 gdbsim_interrupt_inferior.
16606 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16608 * infrun.c (proceed): Fix indentation.
16610 2020-01-21 Tom Tromey <tromey@adacore.com>
16612 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16613 * python/python.c (python_extension_ops): Update.
16614 (gdbpy_colorize): New function.
16615 * python/lib/gdb/__init__.py (colorize): New function.
16616 * extension.h (ext_lang_colorize): Declare.
16617 * extension.c (ext_lang_colorize): New function.
16618 * extension-priv.h (struct extension_language_ops) <colorize>: New
16620 * cli/cli-style.c (_initialize_cli_style): Update help text.
16622 2020-01-21 Luis Machado <luis.machado@linaro.org>
16624 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16625 <cond>: Change type to bool.
16626 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16627 (aarch64_displaced_step_cb): Likewise.
16628 (aarch64_displaced_step_tb): Likewise.
16630 2020-01-21 Luis Machado <luis.machado@linaro.org>
16632 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16635 2020-01-21 Luis Machado <luis.machado@linaro.org>
16637 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16638 <pc_adjust>: Adjust the documentation.
16639 (aarch64_displaced_step_fixup): Check if PC really moved before
16642 2020-01-19 Tom Tromey <tom@tromey.com>
16644 * disasm.c (~gdb_disassembler): New destructor.
16645 (gdb_buffered_insn_length): Call disassemble_free_target.
16646 * disasm.h (class gdb_disassembler): Declare destructor. Use
16647 DISABLE_COPY_AND_ASSIGN.
16649 2020-01-19 Tom Tromey <tom@tromey.com>
16651 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16652 (die_reader_func_ftype): Remove.
16653 (cutu_reader): New class.
16654 (dw2_get_file_names_reader): Remove "data" parameter.
16655 (dw2_get_file_names): Use cutu_reader.
16656 (create_debug_type_hash_table): Update.
16657 (read_cutu_die_from_dwo): Update comment.
16658 (lookup_dwo_unit): Add dwo_name parameter.
16659 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16660 die_reader_func_ftype and data parameters.
16661 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16662 Remove die_reader_func_ftype and data parameters.
16663 (~cutu_reader): New; from init_cutu_and_read_dies.
16664 (cutu_reader::cutu_reader): Rename from
16665 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16666 and data parameters.
16667 (init_cutu_and_read_dies_simple): Remove.
16668 (struct process_psymtab_comp_unit_data): Remove.
16669 (process_psymtab_comp_unit_reader): Remove data parameter; add
16670 want_partial_unit and pretend_language parameters.
16671 (process_psymtab_comp_unit): Use cutu_reader.
16672 (build_type_psymtabs_reader): Remove data parameter.
16673 (build_type_psymtabs_1): Use cutu_reader.
16674 (process_skeletonless_type_unit): Likewise.
16675 (load_partial_comp_unit_reader): Remove.
16676 (load_partial_comp_unit): Use cutu_reader.
16677 (load_full_comp_unit_reader): Remove.
16678 (load_full_comp_unit): Use cutu_reader.
16679 (struct create_dwo_cu_data): Remove.
16680 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16681 dwo_unit parameters.
16682 (create_cus_hash_table): Use cutu_reader.
16683 (struct dwarf2_read_addr_index_data): Remove.
16684 (dwarf2_read_addr_index_reader): Remove.
16685 (dwarf2_read_addr_index): Use cutu_reader.
16686 (read_signatured_type_reader): Remove.
16687 (read_signatured_type): Use cutu_reader.
16689 2020-01-19 Tom Tromey <tom@tromey.com>
16691 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16692 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16693 (tui_wrefresh): Declare.
16694 * tui/tui-wingeneral.c (suppress_output): New global.
16695 (tui_suppress_output, ~tui_suppress_output): New constructor and
16697 (tui_wrefresh): New function.
16698 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16699 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16700 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16702 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16704 (tui_data_window::no_refresh): New method.
16705 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16706 (tui_reg_command): Use tui_suppress_output
16707 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16708 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16710 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16712 2020-01-19 Tom Tromey <tom@tromey.com>
16714 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16715 Handle case where symtab is null.
16717 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16719 * linux-fork.c (one_fork_p): Simplify.
16721 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16723 * top.c (struct qt_args): Remove.
16724 (kill_or_detach): Change return type to void, replace `void *`
16725 parameter with a proper one.
16726 (print_inferior_quit_action): Likewise.
16727 (quit_confirm): Use range-based for loop to iterate over inferiors.
16728 (quit_force): Likewise.
16730 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16732 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16733 `void *` parameter with proper parameters.
16734 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16735 (print_one_inferior): Change return type to void, replace `void *`
16736 parameter with proper parameters.
16737 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16739 (get_other_inferior): Remove.
16740 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16743 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16745 * mi/mi-interp.c (report_initial_inferior): Remove.
16746 (mi_interp::init): Use range-based for to iterate over inferiors.
16748 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16750 * python/py-inferior.c (build_inferior_list): Remove.
16751 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16753 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16755 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16756 (btrace_stitch_trace): Likewise.
16757 * charset.c (intermediate_encoding): Likewise (vaild).
16758 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16759 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16760 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16762 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16764 * windows-tdep.c (windows_get_tlb_type):
16765 Add rtl_user_process_parameters type.
16767 2020-01-16 Pedro Alves <palves@redhat.com>
16768 Norbert Lange <nolange79@gmail.com>
16771 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16772 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16773 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16774 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16775 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16776 (ps_plog): Redeclare exported functions with default visibility.
16778 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16780 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16781 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16783 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16785 * infcmd.c (post_create_inferior): Use get_thread_regcache
16786 instead of get_current_regcache.
16788 2020-01-14 Tom Tromey <tom@tromey.com>
16791 * python/python.c (gdbpy_decode_line): Treat empty string the same
16794 2020-01-14 Tom Tromey <tom@tromey.com>
16796 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16798 2020-01-14 Tom Tromey <tom@tromey.com>
16800 * nat/linux-btrace.c: Don't include <config.h>.
16801 * nat/linux-ptrace.c: Don't include <config.h>.
16802 * nat/x86-linux-dregs.c: Don't include <config.h>.
16804 2020-01-14 Tom Tromey <tom@tromey.com>
16806 * configure: Rebuild.
16807 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16809 2020-01-14 Tom Tromey <tom@tromey.com>
16811 * nat/x86-linux-dregs.c: Include configh.h.
16812 * nat/linux-ptrace.c: Include configh.h.
16813 * nat/linux-btrace.c: Include configh.h.
16814 * defs.h: Include config.h, bfd.h.
16815 * configure.ac: Don't source common.host.
16816 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16817 * configure: Rebuild.
16818 * acinclude.m4: Update path.
16819 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16820 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16821 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16822 (CLIBS): Add LIBSUPPORT.
16824 (COMMON_SFILES): Remove gdbsupport files.
16825 (HFILES_NO_SRCDIR): Likewise.
16826 (stamp-version): Update path to create-version.sh.
16827 (ALLDEPFILES): Remove gdbsupport files.
16829 2020-01-14 Tom Tromey <tom@tromey.com>
16831 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16832 USE_WIN32API when needed.
16833 * configure.ac (USE_WIN32API): Don't define.
16834 (WIN32LIBS): Use WIN32APILIBS.
16835 * configure: Rebuild.
16837 2020-01-14 Tom Tromey <tom@tromey.com>
16839 * configure: Rebuild.
16840 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16842 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16844 * skip.c (skip_function_command): Make skip w/o arguments use the
16845 name of the inlined function if pc is inside any inlined function.
16847 2020-01-14 Luis Machado <luis.machado@linaro.org>
16849 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16850 * infrun.c (resume_1): Likewise.
16851 (handle_inferior_event): Remove stale comment.
16852 * linux-nat.c (linux_nat_target::resume): Update comments.
16853 (save_stop_reason): Likewise.
16854 (linux_nat_filter_event): Likewise.
16855 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16857 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16859 * elfread.c (record_minimal_symbol): Set section index to 0 for
16860 non-allocatable sections.
16863 2020-01-13 Ali Tamur <tamur@google.com>
16865 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16866 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16867 to gdb::optional. Update comments.
16868 (dwo_file): Update comments.
16869 (read_attribute): Update API to take an additional out parameter,
16870 need_reprocess. This is used to mark attributes that need other
16871 attributes (e.g. str_offsets_base) for correct computation which may not
16872 have been read yet.
16873 (read_attribute_reprocess): New function declaration.
16874 (read_addr_index): Likewise.
16875 (read_dwo_str_index): Likewise.
16876 (read_stub_str_index): Likewise.
16877 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16878 (lookup_addr_base): New function definition.
16879 (lookup_ranges_base): Likewise.
16880 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16881 lookup_ranges_base.
16882 (init_cutu_and_read_dies): Update comments.
16883 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16884 unit. This is used to inherit parent's str_offsets_base and addr_base.
16886 (init_cutu_and_read_dies_simple): Reflect API changes.
16887 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16888 (create_cus_hash_table): Change API to take parent compile unit.
16889 Reflect API changes.
16890 (open_and_init_dwo_file): Reflect API changes.
16891 (dwarf2_get_pc_bounds): Update comments.
16892 (dwarf2_record_block_ranges): Likewise.
16893 (read_full_die_1): Change implementation to reprocess attributes that
16894 need str_offsets_base and addr_base.
16895 (partial_die_info::read): Likewise.
16896 (read_attribute_reprocess): New function definition.
16897 (read_attribute_value): Change API to take an additional out parameter,
16898 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16899 when a non-dwo compile unit has index based attributes.
16900 (read_attribute): Reflect API changes.
16901 (read_addr_index_1): Reflect API changes. Update comments.
16902 (dwarf2_read_addr_index_data): Reflect API changes.
16903 (dwarf2_read_addr_index): Likewise.
16904 (read_str_index): Change API and implementation. This becomes a helper
16905 to be used by the new string index related methods. Update error
16906 message and comments.
16907 (read_dwo_str_index): New function definition.
16908 (read_stub_str_index): Likewise.
16909 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16910 * symfile.h (dwarf2_debug_sections): Likewise.
16911 * xcoffread.c (dwarf2_debug_sections): Likewise.
16913 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16915 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16916 core_reg_sect type to gdb_byte *.
16917 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16918 * cris-tdep.c (fetch_core_registers): Likewise.
16919 * corelow.c (core_target::get_core_register_section): Change
16920 type of `contents` to gdb::byte_vector.
16922 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16924 * tui/tui-wingeneral.c (box_win): Position the title in the center
16927 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16929 * corelow.c (core_target::get_core_register_section): Use
16930 std::vector instead of alloca.
16932 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16934 * warning.m4: Add -Wmissing-declarations to build_warnings.
16935 * configure: Re-generate.
16937 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16939 * python/python.c (init__gdb_module): Add declaration.
16941 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16943 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16944 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16945 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16946 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16947 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16948 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16949 * ada-exp.y (_initialize_ada_exp): Add declaration.
16950 * ada-lang.c (_initialize_ada_language): Add declaration.
16951 * ada-tasks.c (_initialize_tasks): Add declaration.
16952 * agent.c (_initialize_agent): Add declaration.
16953 * aix-thread.c (_initialize_aix_thread): Add declaration.
16954 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16955 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16956 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16957 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16958 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16959 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16960 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16961 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16962 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16963 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16964 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16965 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16966 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16967 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16968 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16969 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16970 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16971 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16972 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16973 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16974 * annotate.c (_initialize_annotate): Add declaration.
16975 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16976 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16977 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16978 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16979 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16980 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16981 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16982 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16983 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16984 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16985 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16986 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16987 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16988 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16989 * auto-load.c (_initialize_auto_load): Add declaration.
16990 * auxv.c (_initialize_auxv): Add declaration.
16991 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16992 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16993 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16994 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16995 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16996 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16997 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16998 * breakpoint.c (_initialize_breakpoint): Add declaration.
16999 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
17000 * btrace.c (_initialize_btrace): Add declaration.
17001 * charset.c (_initialize_charset): Add declaration.
17002 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
17003 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
17004 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
17005 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
17006 * cli/cli-script.c (_initialize_cli_script): Add declaration.
17007 * cli/cli-style.c (_initialize_cli_style): Add declaration.
17008 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
17009 * coffread.c (_initialize_coffread): Add declaration.
17010 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
17011 * compile/compile.c (_initialize_compile): Add declaration.
17012 * complaints.c (_initialize_complaints): Add declaration.
17013 * completer.c (_initialize_completer): Add declaration.
17014 * copying.c (_initialize_copying): Add declaration.
17015 * corefile.c (_initialize_core): Add declaration.
17016 * corelow.c (_initialize_corelow): Add declaration.
17017 * cp-abi.c (_initialize_cp_abi): Add declaration.
17018 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
17019 * cp-support.c (_initialize_cp_support): Add declaration.
17020 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
17021 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
17022 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
17023 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
17024 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
17025 * ctfread.c (_initialize_ctfread): Add declaration.
17026 * d-lang.c (_initialize_d_language): Add declaration.
17027 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
17028 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
17029 * dbxread.c (_initialize_dbxread): Add declaration.
17030 * dcache.c (_initialize_dcache): Add declaration.
17031 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
17032 * disasm.c (_initialize_disasm): Add declaration.
17033 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
17034 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
17035 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
17036 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
17037 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
17038 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
17039 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
17040 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
17041 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
17042 * elfread.c (_initialize_elfread): Add declaration.
17043 * exec.c (_initialize_exec): Add declaration.
17044 * extension.c (_initialize_extension): Add declaration.
17045 * f-lang.c (_initialize_f_language): Add declaration.
17046 * f-valprint.c (_initialize_f_valprint): Add declaration.
17047 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
17048 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
17049 * filesystem.c (_initialize_filesystem): Add declaration.
17050 * findcmd.c (_initialize_mem_search): Add declaration.
17051 * findvar.c (_initialize_findvar): Add declaration.
17052 * fork-child.c (_initialize_fork_child): Add declaration.
17053 * frame-base.c (_initialize_frame_base): Add declaration.
17054 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
17055 * frame.c (_initialize_frame): Add declaration.
17056 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
17057 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
17058 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17059 * gcore.c (_initialize_gcore): Add declaration.
17060 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17061 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17062 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17063 * gdbarch.c (_initialize_gdbarch): Add declaration.
17064 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17065 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17066 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17067 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17068 * go-lang.c (_initialize_go_language): Add declaration.
17069 * go32-nat.c (_initialize_go32_nat): Add declaration.
17070 * guile/guile.c (_initialize_guile): Add declaration.
17071 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17072 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17073 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17074 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17075 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17076 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17077 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17078 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17079 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17080 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17081 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17082 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17083 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17084 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17085 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17086 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17087 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17088 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17089 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17090 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17091 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17092 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17093 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17094 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17095 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17096 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17097 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17098 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17099 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17100 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17101 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17102 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17103 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17104 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17105 * infcall.c (_initialize_infcall): Add declaration.
17106 * infcmd.c (_initialize_infcmd): Add declaration.
17107 * inflow.c (_initialize_inflow): Add declaration.
17108 * infrun.c (_initialize_infrun): Add declaration.
17109 * interps.c (_initialize_interpreter): Add declaration.
17110 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17111 * jit.c (_initialize_jit): Add declaration.
17112 * language.c (_initialize_language): Add declaration.
17113 * linux-fork.c (_initialize_linux_fork): Add declaration.
17114 * linux-nat.c (_initialize_linux_nat): Add declaration.
17115 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17116 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17117 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17118 * m2-lang.c (_initialize_m2_language): Add declaration.
17119 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17120 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17121 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17122 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17123 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17124 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17125 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17126 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17127 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17128 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17129 * machoread.c (_initialize_machoread): Add declaration.
17130 * macrocmd.c (_initialize_macrocmd): Add declaration.
17131 * macroscope.c (_initialize_macroscope): Add declaration.
17132 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17133 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17134 * maint.c (_initialize_maint_cmds): Add declaration.
17135 * mdebugread.c (_initialize_mdebugread): Add declaration.
17136 * memattr.c (_initialize_mem): Add declaration.
17137 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17138 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17139 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17140 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17141 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17142 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17143 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17144 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17145 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17146 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17147 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17148 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17149 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17150 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17151 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17152 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17153 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17154 * mipsread.c (_initialize_mipsread): Add declaration.
17155 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17156 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17157 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17158 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17159 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17160 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17161 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17162 * nto-procfs.c (_initialize_procfs): Add declaration.
17163 * objc-lang.c (_initialize_objc_language): Add declaration.
17164 * observable.c (_initialize_observer): Add declaration.
17165 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17166 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17167 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17168 * osabi.c (_initialize_gdb_osabi): Add declaration.
17169 * osdata.c (_initialize_osdata): Add declaration.
17170 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17171 * parse.c (_initialize_parse): Add declaration.
17172 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17173 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17174 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17175 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17176 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17177 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17178 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17179 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17180 * printcmd.c (_initialize_printcmd): Add declaration.
17181 * probe.c (_initialize_probe): Add declaration.
17182 * proc-api.c (_initialize_proc_api): Add declaration.
17183 * proc-events.c (_initialize_proc_events): Add declaration.
17184 * proc-service.c (_initialize_proc_service): Add declaration.
17185 * procfs.c (_initialize_procfs): Add declaration.
17186 * producer.c (_initialize_producer): Add declaration.
17187 * psymtab.c (_initialize_psymtab): Add declaration.
17188 * python/python.c (_initialize_python): Add declaration.
17189 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17190 * record-btrace.c (_initialize_record_btrace): Add declaration.
17191 * record-full.c (_initialize_record_full): Add declaration.
17192 * record.c (_initialize_record): Add declaration.
17193 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17194 * regcache.c (_initialize_regcache): Add declaration.
17195 * reggroups.c (_initialize_reggroup): Add declaration.
17196 * remote-notif.c (_initialize_notif): Add declaration.
17197 * remote-sim.c (_initialize_remote_sim): Add declaration.
17198 * remote.c (_initialize_remote): Add declaration.
17199 * reverse.c (_initialize_reverse): Add declaration.
17200 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17201 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17202 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17203 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17204 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17205 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17206 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17207 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17209 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17210 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17211 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17212 * rust-exp.y (_initialize_rust_exp): Add declaration.
17213 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17214 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17215 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17216 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17217 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17218 * score-tdep.c (_initialize_score_tdep): Add declaration.
17219 * ser-go32.c (_initialize_ser_dos): Add declaration.
17220 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17221 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17222 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17223 * ser-uds.c (_initialize_ser_socket): Add declaration.
17224 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17225 * serial.c (_initialize_serial): Add declaration.
17226 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17227 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17228 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17229 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17230 * skip.c (_initialize_step_skip): Add declaration.
17231 * sol-thread.c (_initialize_sol_thread): Add declaration.
17232 * solib-aix.c (_initialize_solib_aix): Add declaration.
17233 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17234 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17235 * solib-frv.c (_initialize_frv_solib): Add declaration.
17236 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17237 * solib-target.c (_initialize_solib_target): Add declaration.
17238 * solib.c (_initialize_solib): Add declaration.
17239 * source-cache.c (_initialize_source_cache): Add declaration.
17240 * source.c (_initialize_source): Add declaration.
17241 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17242 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17243 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17244 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17245 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17246 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17247 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17248 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17249 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17250 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17251 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17252 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17253 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17254 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17255 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17256 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17257 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17258 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17259 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17260 * stabsread.c (_initialize_stabsread): Add declaration.
17261 * stack.c (_initialize_stack): Add declaration.
17262 * stap-probe.c (_initialize_stap_probe): Add declaration.
17263 * std-regs.c (_initialize_frame_reg): Add declaration.
17264 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17265 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17266 * symfile.c (_initialize_symfile): Add declaration.
17267 * symmisc.c (_initialize_symmisc): Add declaration.
17268 * symtab.c (_initialize_symtab): Add declaration.
17269 * target.c (_initialize_target): Add declaration.
17270 * target-connection.c (_initialize_target_connection): Add
17272 * target-dcache.c (_initialize_target_dcache): Add declaration.
17273 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17274 * thread.c (_initialize_thread): Add declaration.
17275 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17276 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17277 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17278 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17279 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17280 * tracectf.c (_initialize_ctf): Add declaration.
17281 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17282 * tracefile.c (_initialize_tracefile): Add declaration.
17283 * tracepoint.c (_initialize_tracepoint): Add declaration.
17284 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17285 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17286 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17287 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17288 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17289 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17290 * tui/tui.c (_initialize_tui): Add declaration.
17291 * typeprint.c (_initialize_typeprint): Add declaration.
17292 * ui-style.c (_initialize_ui_style): Add declaration.
17293 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17294 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17295 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17296 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17297 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17298 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17299 * unittests/filtered_iterator-selftests.c
17300 (_initialize_filtered_iterator_selftests): Add declaration.
17301 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17302 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17303 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17304 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17305 * unittests/main-thread-selftests.c
17306 (_initialize_main_thread_selftests): Add declaration.
17307 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17308 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17309 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17310 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17311 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17312 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17313 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17314 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17315 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17316 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17317 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17318 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17319 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17320 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17321 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17323 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17324 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17325 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17326 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17327 * user-regs.c (_initialize_user_regs): Add declaration.
17328 * utils.c (_initialize_utils): Add declaration.
17329 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17330 * valops.c (_initialize_valops): Add declaration.
17331 * valprint.c (_initialize_valprint): Add declaration.
17332 * value.c (_initialize_values): Add declaration.
17333 * varobj.c (_initialize_varobj): Add declaration.
17334 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17335 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17336 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17337 * windows-nat.c (_initialize_windows_nat): Add declaration.
17338 (_initialize_check_for_gdb_ini): Add declaration.
17339 (_initialize_loadable): Add declaration.
17340 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17341 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17342 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17343 * xcoffread.c (_initialize_xcoffread): Add declaration.
17344 * xml-support.c (_initialize_xml_support): Add declaration.
17345 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17346 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17347 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17348 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17350 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17352 * regformats/regdat.sh: Generate declaration for init function.
17354 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17356 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17358 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17359 close_one_inferior>: New methods.
17360 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17361 pass down target to find_inferior_pid.
17362 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17363 Pass down target to find_inferior_ptid.
17364 (gdbsim_target::create_inferior): Pass down target to
17366 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17367 target down to find_inferior_ptid and switch_to_thread.
17368 (gdbsim_target::close): Update to call close_one_inferior.
17369 (struct resume_data): Remove.
17370 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17371 directly, rather than through a void pointer.
17372 (gdbsim_target::resume): Update to call resume_one_inferior.
17374 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17376 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17378 2020-01-12 Pedro Alves <palves@redhat.com>
17380 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17381 directly for the current inferior instead of
17382 discard_all_inferiors.
17383 (discard_all_inferiors): Delete.
17385 2020-01-11 Tom Tromey <tom@tromey.com>
17387 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17388 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17389 deprecated_safe_get_selected_frame.
17391 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17393 * inferior.c (print_inferior): Switch inferior before printing it.
17395 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17396 Pedro Alves <palves@redhat.com>
17398 * progspace-and-thread.c (switch_to_program_space_and_thread):
17399 Assert there's an inferior for PSPACE. Use
17400 switch_to_inferior_no_thread to switch the inferior too.
17401 * progspace.c (program_space::~program_space): Call
17402 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17403 (program_space::free_all_objfiles): Don't call clear_symtab_users
17405 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17407 2020-01-10 Pedro Alves <palves@redhat.com>
17409 * NEWS: Mention multi-target debugging, "info connections", and
17410 "add-inferior -no-connection".
17412 2020-01-10 Pedro Alves <palves@redhat.com>
17414 * infrun.c: Include "target-connection.h".
17415 (check_multi_target_resumption): New.
17416 (proceed): Call it.
17417 * target-connection.c (make_target_connection_string): Make
17419 * target-connection.h (make_target_connection_string): Declare.
17421 2020-01-10 Pedro Alves <palves@redhat.com>
17423 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17424 * inferior.c (uiout_field_connection): New function.
17425 (print_inferior): Add new "connection-id" column.
17426 (add_inferior_command): Show connection number/string of added
17428 * process-stratum-target.h
17429 (process_stratum_target::connection_string): New virtual method.
17430 (process_stratum_target::connection_number): New field.
17431 * remote.c (remote_target::connection_string): New override.
17432 * target-connection.c: New file.
17433 * target-connection.h: New file.
17434 * target.c (decref_target): Remove process_stratum targets from
17435 the connection list.
17436 (target_stack::push): Add process_stratum targets to the
17439 2020-01-10 Pedro Alves <palves@redhat.com>
17442 2016-04-12 Pedro Alves <palves@redhat.com>
17443 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17444 Remove references to name.
17445 * serial.h (struct serial) <name>: Delete.
17447 2020-01-10 Pedro Alves <palves@redhat.com>
17449 * gdbarch-selftests.c (register_to_value_test): Remove "target
17450 already pushed" check.
17452 2020-01-10 Pedro Alves <palves@redhat.com>
17453 John Baldwin <jhb@FreeBSD.org>
17455 * aarch64-linux-nat.c
17456 (aarch64_linux_nat_target::thread_architecture): Adjust.
17457 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17458 (task_command_1): Likewise.
17459 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17460 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17461 (aix_thread_target::store_registers)
17462 (aix_thread_target::thread_alive): Adjust.
17463 * amd64-fbsd-tdep.c: Include "inferior.h".
17464 (amd64fbsd_get_thread_local_address): Pass down target.
17465 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17466 thread's gdbarch instead of target_gdbarch.
17467 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17468 get_last_target_status.
17469 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17470 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17472 (update_inserted_breakpoint_locations): Skip if inferiors with no
17474 (update_global_location_list): When handling moribund locations,
17475 find representative inferior for location's pspace, and use thread
17476 count of its process_stratum target.
17477 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17478 * bsd-uthread.c (bsd_uthread_target::wait): Use
17479 as_process_stratum_target and adjust thread_change_ptid and
17481 (bsd_uthread_target::update_thread_list): Use
17482 as_process_stratum_target and adjust find_thread_ptid,
17483 thread_change_ptid and add_thread calls.
17484 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17485 find_thread_ptid call.
17486 * corelow.c (add_to_thread_list): Adjust add_thread call.
17487 (core_target_open): Adjust add_thread_silent and thread_count
17489 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17490 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17491 * event-top.c (async_disconnect): Pop targets from all inferiors.
17492 * exec.c (add_target_sections): Push exec target on all inferiors
17493 sharing the program space.
17494 (remove_target_sections): Remove the exec target from all
17495 inferiors sharing the program space.
17496 (exec_on_vfork): New.
17497 * exec.h (exec_on_vfork): Declare.
17498 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17500 (fbsd_nat_target::update_thread_list): Adjust.
17501 (fbsd_nat_target::resume): Adjust.
17502 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17504 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17505 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17506 get_thread_arch_regcache call.
17507 * fork-child.c (gdb_startup_inferior): Pass target down to
17508 startup_inferior and set_executing.
17509 * gdbthread.h (struct process_stratum_target): Forward declare.
17510 (add_thread, add_thread_silent, add_thread_with_info)
17511 (in_thread_list): Add process_stratum_target parameter.
17512 (find_thread_ptid(inferior*, ptid_t)): New overload.
17513 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17515 (all_threads()): Delete overload.
17516 (all_threads, all_non_exited_threads): Add process_stratum_target
17518 (all_threads_safe): Use brace initialization.
17519 (thread_count): Add process_stratum_target parameter.
17520 (set_resumed, set_running, set_stop_requested, set_executing)
17521 (threads_are_executing, finish_thread_state): Add
17522 process_stratum_target parameter.
17523 (switch_to_thread): Use is_current_thread.
17524 * i386-fbsd-tdep.c: Include "inferior.h".
17525 (i386fbsd_get_thread_local_address): Pass down target.
17526 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17527 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17528 have_inferiors check.
17529 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17530 (inf_ptrace_target::attach): Adjust.
17531 * infcall.c (run_inferior_call): Adjust.
17532 * infcmd.c (run_command_1): Pass target to
17533 scoped_finish_thread_state.
17534 (proceed_thread_callback): Skip inferiors with no execution.
17535 (continue_command): Rename 'all_threads' local to avoid hiding
17536 'all_threads' function. Adjust get_last_target_status call.
17537 (prepare_one_step): Adjust set_running call.
17538 (signal_command): Use user_visible_resume_target. Compare thread
17539 pointers instead of inferior_ptid.
17540 (info_program_command): Adjust to pass down target.
17541 (attach_command): Mark target's 'thread_executing' flag.
17542 (stop_current_target_threads_ns): New, factored out from ...
17543 (interrupt_target_1): ... this. Switch inferior before making
17546 (struct all_inferiors_iterator, struct all_inferiors_range)
17547 (struct all_inferiors_safe_range)
17548 (struct all_non_exited_inferiors_range): Filter on
17549 process_stratum_target too. Remove explicit.
17550 * inferior.c (inferior::inferior): Push dummy target on target
17552 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17553 Add process_stratum_target parameter, and pass it down.
17554 (have_live_inferiors): Adjust.
17555 (switch_to_inferior_and_push_target): New.
17556 (add_inferior_command, clone_inferior_command): Handle
17557 "-no-connection" parameter. Use
17558 switch_to_inferior_and_push_target.
17559 (_initialize_inferior): Mention "-no-connection" option in
17560 the help of "add-inferior" and "clone-inferior" commands.
17561 * inferior.h: Include "process-stratum-target.h".
17562 (interrupt_target_1): Use bool.
17563 (struct inferior) <push_target, unpush_target, target_is_pushed,
17564 find_target_beneath, top_target, process_target, target_at,
17566 (discard_all_inferiors): Delete.
17567 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17568 (all_inferiors, all_non_exited_inferiors): Add
17569 process_stratum_target parameter.
17570 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17571 (target_last_proc_target): New global.
17572 (follow_fork_inferior): Push target on new inferior. Pass target
17573 to add_thread_silent. Call exec_on_vfork. Handle target's
17575 (follow_fork): Adjust get_last_target_status call. Also consider
17577 (follow_exec): Push target on new inferior.
17578 (struct execution_control_state) <target>: New field.
17579 (user_visible_resume_target): New.
17580 (do_target_resume): Call target_async.
17581 (resume_1): Set target's threads_executing flag. Consider resume
17583 (commit_resume_all_targets): New.
17584 (proceed): Also consider resume target. Skip threads of inferiors
17585 with no execution. Commit resumtion in all targets.
17586 (start_remote): Pass current inferior to wait_for_inferior.
17587 (infrun_thread_stop_requested): Consider target as well. Pass
17588 thread_info pointer to clear_inline_frame_state instead of ptid.
17589 (infrun_thread_thread_exit): Consider target as well.
17590 (random_pending_event_thread): New inferior parameter. Use it.
17591 (do_target_wait): Rename to ...
17592 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17594 (threads_are_resumed_pending_p, do_target_wait): New.
17595 (prepare_for_detach): Adjust calls.
17596 (wait_for_inferior): New inferior parameter. Handle it. Use
17597 do_target_wait_1 instead of do_target_wait.
17598 (fetch_inferior_event): Adjust. Switch to representative
17599 inferior. Pass target down.
17600 (set_last_target_status): Add process_stratum_target parameter.
17601 Save target in global.
17602 (get_last_target_status): Add process_stratum_target parameter and
17604 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17605 (context_switch): Check inferior_ptid == null_ptid before calling
17607 (get_inferior_stop_soon): Pass down target.
17608 (wait_one): Rename to ...
17609 (poll_one_curr_target): ... this.
17610 (struct wait_one_event): New.
17612 (stop_all_threads): Adjust.
17613 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17615 (switch_back_to_stepped_thread): Also consider target.
17616 (print_stop_event): Update.
17617 (normal_stop): Update. Also consider the resume target.
17618 * infrun.h (wait_for_inferior): Remove declaration.
17619 (user_visible_resume_target): New declaration.
17620 (get_last_target_status, set_last_target_status): New
17621 process_stratum_target parameter.
17622 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17623 process_stratum_target parameter, and use it.
17624 (clear_inline_frame_state (thread_info*)): New.
17625 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17626 process_stratum_target parameter.
17627 (clear_inline_frame_state (thread_info*)): Declare.
17628 * linux-fork.c (delete_checkpoint_command): Pass target down to
17630 (checkpoint_command): Adjust.
17631 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17632 instead of just tweaking inferior_ptid.
17633 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17634 (exit_lwp): Pass target down to find_thread_ptid.
17635 (attach_proc_task_lwp_callback): Pass target down to
17636 add_thread/set_running/set_executing.
17637 (linux_nat_target::attach): Pass target down to
17638 thread_change_ptid.
17639 (get_detach_signal): Pass target down to find_thread_ptid.
17640 Consider last target status's target.
17641 (linux_resume_one_lwp_throw, resume_lwp)
17642 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17643 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17644 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17645 (linux_nat_target::async_wait_fd): New.
17646 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17648 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17649 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17650 * linux-thread-db.c (struct thread_db_info::process_target): New
17652 (add_thread_db_info): Save target.
17653 (get_thread_db_info): New process_stratum_target parameter. Also
17655 (delete_thread_db_info): New process_stratum_target parameter.
17657 (thread_from_lwp): Adjust to pass down target.
17658 (thread_db_notice_clone): Pass down target.
17659 (check_thread_db_callback): Pass down target.
17660 (try_thread_db_load_1): Always push the thread_db target.
17661 (try_thread_db_load, record_thread): Pass target down.
17662 (thread_db_target::detach): Pass target down. Always unpush the
17664 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17665 target down. Always unpush the thread_db target.
17666 (find_new_threads_callback, thread_db_find_new_threads_2)
17667 (thread_db_target::update_thread_list): Pass target down.
17668 (thread_db_target::pid_to_str): Pass current inferior down.
17669 (thread_db_target::get_thread_local_address): Pass target down.
17670 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17672 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17673 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17674 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17675 (procfs_init_inferior): Rename to ...
17676 (procfs_target::procfs_init_inferior): ... this and adjust.
17677 (procfs_target::create_inferior, procfs_notice_thread)
17678 (procfs_do_thread_registers): Adjust.
17679 * ppc-fbsd-tdep.c: Include "inferior.h".
17680 (ppcfbsd_get_thread_local_address): Pass down target.
17681 * proc-service.c (ps_xfer_memory): Switch current inferior and
17682 program space as well.
17683 (get_ps_regcache): Pass target down.
17684 * process-stratum-target.c
17685 (process_stratum_target::thread_address_space)
17686 (process_stratum_target::thread_architecture): Pass target down.
17687 * process-stratum-target.h
17688 (process_stratum_target::threads_executing): New field.
17689 (as_process_stratum_target): New.
17690 * ravenscar-thread.c
17691 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17692 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17694 * record-btrace.c (record_btrace_target::info_record): Adjust.
17695 (record_btrace_target::record_method)
17696 (record_btrace_target::record_is_replaying)
17697 (record_btrace_target::fetch_registers)
17698 (get_thread_current_frame_id, record_btrace_target::resume)
17699 (record_btrace_target::wait, record_btrace_target::stop): Pass
17701 * record-full.c (record_full_wait_1): Switch to event thread.
17703 * regcache.c (regcache::regcache)
17704 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17705 process_stratum_target parameter and handle it.
17706 (current_thread_target): New global.
17707 (get_thread_regcache): Add process_stratum_target parameter and
17708 handle it. Switch inferior before calling target method.
17709 (get_thread_regcache): Pass target down.
17710 (get_thread_regcache_for_ptid): Pass target down.
17711 (registers_changed_ptid): Add process_stratum_target parameter and
17713 (registers_changed_thread, registers_changed): Pass target down.
17714 (test_get_thread_arch_aspace_regcache): New.
17715 (current_regcache_test): Define a couple local test_target_ops
17716 instances and use them for testing.
17717 (readwrite_regcache): Pass process_stratum_target parameter.
17718 (cooked_read_test, cooked_write_test): Pass mock_target down.
17719 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17720 (get_thread_arch_aspace_regcache): Add process_stratum_target
17722 (regcache::target): New method.
17723 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17724 (regcache::registers_changed_ptid): Add process_stratum_target
17726 (regcache::m_target): New field.
17727 (registers_changed_ptid): Add process_stratum_target parameter.
17728 * remote.c (remote_state::supports_vCont_probed): New field.
17729 (remote_target::async_wait_fd): New method.
17730 (remote_unpush_and_throw): Add remote_target parameter.
17731 (get_current_remote_target): Adjust.
17732 (remote_target::remote_add_inferior): Push target.
17733 (remote_target::remote_add_thread)
17734 (remote_target::remote_notice_new_inferior)
17735 (get_remote_thread_info): Pass target down.
17736 (remote_target::update_thread_list): Skip threads of inferiors
17737 bound to other targets. (remote_target::close): Don't discard
17738 inferiors. (remote_target::add_current_inferior_and_thread)
17739 (remote_target::process_initial_stop_replies)
17740 (remote_target::start_remote)
17741 (remote_target::remote_serial_quit_handler): Pass down target.
17742 (remote_target::remote_unpush_target): New remote_target
17743 parameter. Unpush the target from all inferiors.
17744 (remote_target::remote_unpush_and_throw): New remote_target
17745 parameter. Pass it down.
17746 (remote_target::open_1): Check whether the current inferior has
17747 execution instead of checking whether any inferior is live. Pass
17749 (remote_target::remote_detach_1): Pass down target. Use
17750 remote_unpush_target.
17751 (extended_remote_target::attach): Pass down target.
17752 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17753 (remote_target::append_resumption): Pass down target.
17754 (remote_target::append_pending_thread_resumptions)
17755 (remote_target::remote_resume_with_hc, remote_target::resume)
17756 (remote_target::commit_resume): Pass down target.
17757 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17758 (remote_target::interrupt_query)
17759 (remote_target::remove_new_fork_children)
17760 (remote_target::check_pending_events_prevent_wildcard_vcont)
17761 (remote_target::remote_parse_stop_reply)
17762 (remote_target::process_stop_reply): Pass down target.
17763 (first_remote_resumed_thread): New remote_target parameter. Pass
17765 (remote_target::wait_as): Pass down target.
17766 (unpush_and_perror): New remote_target parameter. Pass it down.
17767 (remote_target::readchar, remote_target::remote_serial_write)
17768 (remote_target::getpkt_or_notif_sane_1)
17769 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17771 (remote_target::mourn_inferior): Pass down target. Use
17772 remote_unpush_target.
17773 (remote_target::core_of_thread)
17774 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17775 (remote_target::pid_to_exec_file)
17776 (remote_target::thread_handle_to_thread_info): Pass down target.
17777 (remote_target::async_wait_fd): New.
17778 * riscv-fbsd-tdep.c: Include "inferior.h".
17779 (riscv_fbsd_get_thread_local_address): Pass down target.
17780 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17781 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17782 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17784 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17785 * solib-svr4.c (enable_break): Pass down target.
17786 * spu-multiarch.c (parse_spufs_run): Pass down target.
17787 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17788 * target-delegates.c: Regenerate.
17789 * target.c (g_target_stack): Delete.
17790 (current_top_target): Return the current inferior's top target.
17791 (target_has_execution_1): Refer to the passed-in inferior's top
17793 (target_supports_terminal_ours): Check whether the initial
17794 inferior was already created.
17795 (decref_target): New.
17796 (target_stack::push): Incref/decref the target.
17797 (push_target, push_target, unpush_target): Adjust.
17798 (target_stack::unpush): Defref target.
17799 (target_is_pushed): Return bool. Adjust to refer to the current
17800 inferior's target stack.
17801 (dispose_inferior): Delete, and inline parts ...
17802 (target_preopen): ... here. Only dispose of the current inferior.
17803 (target_detach): Hold strong target reference while detaching.
17805 (target_thread_name): Add assertion.
17806 (target_resume): Pass down target.
17807 (target_ops::beneath, find_target_at): Adjust to refer to the
17808 current inferior's target stack.
17809 (get_dummy_target): New.
17810 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17811 has a thread running.
17812 (initialize_targets): Rename to ...
17813 (_initialize_target): ... this.
17814 * target.h: Include "gdbsupport/refcounted-object.h".
17815 (struct target_ops): Inherit refcounted_object.
17816 (target_ops::shortname, target_ops::longname): Make const.
17817 (target_ops::async_wait_fd): New method.
17818 (decref_target): Declare.
17819 (struct target_ops_ref_policy): New.
17820 (target_ops_ref): New typedef.
17821 (get_dummy_target): Declare function.
17822 (target_is_pushed): Return bool.
17823 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17824 (all_matching_threads_iterator::all_matching_threads_iterator):
17825 Handle filter target.
17826 * thread-iter.h (struct all_matching_threads_iterator, struct
17827 all_matching_threads_range, class all_non_exited_threads_range):
17828 Filter by target too. Remove explicit.
17829 * thread.c (threads_executing): Delete.
17830 (inferior_thread): Pass down current inferior.
17831 (clear_thread_inferior_resources): Pass down thread pointer
17833 (add_thread_silent, add_thread_with_info, add_thread): Add
17834 process_stratum_target parameter. Use it for thread and inferior
17836 (is_current_thread): New.
17837 (thread_info::deletable): Use it.
17838 (find_thread_ptid, thread_count, in_thread_list)
17839 (thread_change_ptid, set_resumed, set_running): New
17840 process_stratum_target parameter. Pass it down.
17841 (set_executing): New process_stratum_target parameter. Pass it
17842 down. Adjust reference to 'threads_executing'.
17843 (threads_are_executing): New process_stratum_target parameter.
17844 Adjust reference to 'threads_executing'.
17845 (set_stop_requested, finish_thread_state): New
17846 process_stratum_target parameter. Pass it down.
17847 (switch_to_thread): Also match inferior.
17848 (switch_to_thread): New process_stratum_target parameter. Pass it
17850 (update_threads_executing): Reimplement.
17851 * top.c (quit_force): Pop targets from all inferior.
17852 (gdb_init): Don't call initialize_targets.
17853 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17855 (windows_add_thread, windows_delete_thread): Adjust.
17856 (get_windows_debug_event): Rename to ...
17857 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17858 * tracefile-tfile.c (tfile_target_open): Pass down target.
17859 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17861 (switch_to_thread): Add process_stratum_target parameter.
17862 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17864 (mi_on_resume): Pass target down.
17865 * nat/fork-inferior.c (startup_inferior): Add
17866 process_stratum_target parameter. Pass it down.
17867 * nat/fork-inferior.h (startup_inferior): Add
17868 process_stratum_target parameter.
17869 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17871 2020-01-10 Pedro Alves <palves@redhat.com>
17873 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17874 directly. Instead find the first thread in the thread list and
17875 use switch_to_thread.
17877 2020-01-10 Pedro Alves <palves@redhat.com>
17879 * remote.c (remote_target::remote_add_inferior): Don't bind a
17880 process to the current inferior if the current inferior is already
17881 bound to a process.
17883 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17884 Pedro Alves <palves@redhat.com>
17886 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17887 If no process is specified, return null_ptid instead of
17889 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17890 TARGET_WAITKIND_SIGNALLED with no pid.
17892 2020-01-10 Pedro Alves <palves@redhat.com>
17894 * remote.c (first_remote_resumed_thread): New.
17895 (remote_target::wait_as): Use it as default event_ptid instead of
17898 2020-01-10 Pedro Alves <palves@redhat.com>
17900 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17902 2020-01-10 Pedro Alves <palves@redhat.com>
17904 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17907 2020-01-10 Pedro Alves <palves@redhat.com>
17909 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17910 ptid to get_last_target_status.
17911 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17912 ptid to get_last_target_status.
17913 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17914 get_last_target_status.
17915 (info_program_command): Don't pass a target_waitstatus to
17916 get_last_target_status.
17917 * infrun.c (init_wait_for_inferior): Use
17918 nullify_last_target_wait_ptid.
17919 (get_last_target_status): Handle nullptr arguments.
17920 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17921 (print_stop_event): Don't pass a ptid to get_last_target_status.
17922 (normal_stop): Don't pass a ptid to get_last_target_status.
17923 * infrun.h (get_last_target_status, set_last_target_status): Move
17924 comments here and update.
17925 (nullify_last_target_wait_ptid): Declare.
17926 * linux-fork.c (fork_load_infrun_state): Remove local extern
17927 declaration of nullify_last_target_wait_ptid.
17928 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17929 to get_last_target_status.
17931 2020-01-10 Pedro Alves <palves@redhat.com>
17933 * gdbthread.h (scoped_restore_current_thread)
17934 <dont_restore, restore, m_dont_restore>: Declare.
17935 * thread.c (thread_alive): Add assertion. Return bool.
17936 (switch_to_thread_if_alive): New.
17937 (prune_threads): Switch inferior/thread.
17938 (print_thread_info_1): Switch thread before calling target methods.
17939 (scoped_restore_current_thread::restore): New, factored out from
17941 (scoped_restore_current_thread::~scoped_restore_current_thread):
17943 (scoped_restore_current_thread::scoped_restore_current_thread):
17945 (thread_apply_all_command, thread_select): Use
17946 switch_to_thread_if_alive.
17947 * infrun.c (proceed, restart_threads, handle_signal_stop)
17948 (switch_back_to_stepped_thread): Switch current thread before
17949 calling target methods.
17951 2020-01-10 Pedro Alves <palves@redhat.com>
17953 * inferior.c (switch_to_inferior_no_thread): New function,
17954 factored out from ...
17955 (inferior_command): ... here.
17956 * inferior.h (switch_to_inferior_no_thread): Declare.
17957 * mi/mi-main.c (run_one_inferior): Use
17958 switch_to_inferior_no_thread.
17960 2020-01-10 Pedro Alves <palves@redhat.com>
17962 * infcmd.c (kill_command): Remove dead code.
17964 2020-01-10 Pedro Alves <palves@redhat.com>
17966 * remote.c (remote_target::mourn_inferior): No longer check
17967 whether the target is running.
17969 2020-01-10 Pedro Alves <palves@redhat.com>
17971 * corelow.c (core_target::has_execution): Change parameter type to
17973 * inferior.c (number_of_live_inferiors): Use
17974 inferior::has_execution instead of target_has_execution_1.
17975 * inferior.h (inferior::has_execution): New.
17976 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17977 inferior::has_execution instead of target_has_execution_1.
17978 * process-stratum-target.c
17979 (process_stratum_target::has_execution): Change parameter type to
17980 inferior pointer. Check the inferior's PID instead of
17982 * process-stratum-target.h
17983 (process_stratum_target::has_execution): Change parameter type to
17985 * record-full.c (record_full_core_target::has_execution): Change
17986 parameter type to inferior pointer.
17987 * target.c (target_has_execution_1): Change parameter type to
17989 (target_has_execution_current): Adjust.
17990 * target.h (target_ops::has_execution): Change parameter type to
17992 (target_has_execution_1): Change parameter type to inferior
17993 pointer. Change return type to bool.
17994 * tracefile.h (tracefile_target::has_execution): Change parameter
17995 type to inferior pointer.
17997 2020-01-10 Pedro Alves <palves@redhat.com>
17999 * exceptions.c (print_flush): Remove current_top_target() check.
18001 2020-01-10 Pedro Alves <palves@redhat.com>
18003 * remote.c (show_remote_exec_file): Show the current inferior's
18004 exec-file instead of the command variable's value.
18006 2020-01-10 Pedro Alves <palves@redhat.com>
18008 * record-full.c (record_full_resume_ptid): New global.
18009 (record_full_target::resume): Set it.
18010 (record_full_wait_1): Use record_full_resume_ptid instead of
18013 2020-01-10 Pedro Alves <palves@redhat.com>
18015 * gdbthread.h (scoped_restore_current_thread)
18016 <dont_restore, restore, m_dont_restore>: Declare.
18017 * thread.c (thread_alive): Add assertion. Return bool.
18018 (switch_to_thread_if_alive): New.
18019 (prune_threads): Switch inferior/thread.
18020 (print_thread_info_1): Switch thread before calling target methods.
18021 (scoped_restore_current_thread::restore): New, factored out from
18023 (scoped_restore_current_thread::~scoped_restore_current_thread):
18025 (scoped_restore_current_thread::scoped_restore_current_thread):
18027 (thread_apply_all_command, thread_select): Use
18028 switch_to_thread_if_alive.
18030 2020-01-10 George Barrett <bob@bob131.so>
18032 * stap-probe.c (stap_modify_semaphore): Don't check for null
18034 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
18035 for null semaphores.
18037 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18039 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
18040 all source windows, and maintain horizontal scroll status while
18043 2020-01-09 Tom Tromey <tom@tromey.com>
18046 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
18047 update_source_window, not print_source_lines.
18049 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18051 * tui/tui.c (tui_enable): Register tui hooks after calling
18054 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18056 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
18058 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
18060 * thread.c (print_thread_info_1): Fix indentation.
18062 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18064 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18065 unique_xmalloc_ptr outside the if to always free the demangled name.
18067 2020-01-08 Tom Tromey <tromey@adacore.com>
18069 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18070 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18071 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18072 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18074 (section_offsets): New typedef.
18075 * symtab.c (fixup_section, get_msymbol_address): Update.
18076 * symmisc.c (dump_msymbols): Update.
18077 * symfile.h (relative_addr_info_to_section_offsets)
18078 (symfile_map_offsets_to_segments): Update.
18079 * symfile.c (build_section_addr_info_from_objfile)
18080 (init_objfile_sect_indices): Update.
18081 (struct place_section_arg): Change type of "offsets".
18082 (place_section): Update.
18083 (relative_addr_info_to_section_offsets): Change type of
18084 "section_offsets". Remove "num_sections" parameter.
18085 (default_symfile_offsets, syms_from_objfile_1)
18086 (set_objfile_default_section_offset): Update.
18087 (reread_symbols): No need to preserve section offsets by hand.
18088 (symfile_map_offsets_to_segments): Change type of "offsets".
18089 * stap-probe.c (relocate_address): Update.
18090 * stabsread.h (process_one_symbol): Update.
18091 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18092 (solib_target_relocate_section_addresses): Update.
18093 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18095 * solib-frv.c (frv_relocate_main_executable): Update.
18096 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18097 * solib-aix.c (solib_aix_get_section_offsets): Change return
18099 (solib_aix_solib_create_inferior_hook): Update.
18100 * remote.c (remote_target::get_offsets): Update.
18101 * psymtab.c (find_pc_sect_psymtab): Update.
18102 * psympriv.h (struct partial_symbol) <address, text_low,
18103 text_high>: Update.
18104 * objfiles.h (obj_section_offset): Update.
18105 (struct objfile) <section_offsets>: Change type.
18106 <num_sections>: Remove.
18107 (objfile_relocate): Update.
18108 * objfiles.c (entry_point_address_query): Update
18109 (relocate_one_symbol): Change type of "section_offsets".
18110 (objfile_relocate1, objfile_relocate1): Change type of
18112 (objfile_rebase1): Update.
18113 * mipsread.c (mipscoff_symfile_read): Update.
18114 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18116 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18117 (parse_external, psymtab_to_symtab_1): Update.
18118 * machoread.c (macho_symfile_offsets): Update.
18119 * ia64-tdep.c (ia64_find_unwind_table): Update.
18120 * hppa-tdep.c (read_unwind_info): Update.
18121 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18122 * dwarf2read.c (create_addrmap_from_index)
18123 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18124 (process_psymtab_comp_unit_reader, add_partial_symbol)
18125 (add_partial_subprogram, process_full_comp_unit)
18126 (read_file_scope, read_func_scope, read_lexical_block_scope)
18127 (read_call_site_scope, dwarf2_rnglists_process)
18128 (dwarf2_ranges_process, dwarf2_ranges_read)
18129 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18130 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18132 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18134 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18135 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18136 (process_one_symbol): Change type of "section_offsets".
18137 * ctfread.c (get_objfile_text_range): Update.
18138 * coffread.c (coff_symtab_read, enter_linenos)
18139 (process_coff_symbol): Update.
18140 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18141 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18143 2020-01-08 Tom Tromey <tromey@adacore.com>
18145 * dwarf2read.c (parse_macro_definition): Use std::string.
18146 (parse_macro_definition): Likewise.
18148 2020-01-08 Tom Tromey <tromey@adacore.com>
18150 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18151 (ATTR_ALLOC_CHUNK): Remove.
18153 2020-01-08 Tom Tromey <tromey@adacore.com>
18155 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18157 2020-01-08 Tom Tromey <tromey@adacore.com>
18159 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18160 (dwarf2_compute_name, open_dwo_file): Likewise.
18161 (process_enumeration_scope): Use std::vector.
18162 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18163 (partial_die_info::fixup, dwarf2_start_subfile)
18164 (guess_full_die_structure_name, dwarf2_name): Likewise.
18165 (determine_prefix): Update.
18166 (guess_full_die_structure_name): Make return type const.
18167 (partial_die_full_name): Return unique_xmalloc_ptr.
18168 (DW_FIELD_ALLOC_CHUNK): Remove.
18170 2020-01-07 Tom Tromey <tromey@adacore.com>
18173 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18175 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18177 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18179 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18181 * stack.c (print_frame_info): Move disassemble_next_line code
18182 inside source_print block.
18184 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18186 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18187 gdb/signals.h, as we are now using native signal symbols.
18189 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18191 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18192 overflow by an early check of content vs threshold.
18193 * tui/tui-source.c (tui_source_window::line_is_displayed):
18196 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18198 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18200 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18202 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18203 export table if no section contains it's RVA.
18205 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18207 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18209 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
18211 * source.c (print_source_lines_base): Set last_line_listed.
18213 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18215 * tui/tui-disasm.c: Remove trailing spaces.
18217 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18218 Pedro Alves <palves@redhat.com>
18220 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18221 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18222 (windows_gdb_signal_to_target): New function, uses the above
18223 enumeration to convert GDB internal signal codes to equivalent
18225 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18226 * windows-nat.c: Include "gdb_wait.h".
18227 (get_windows_debug_event): Extract the fatal exception from the
18228 exit status and convert to the equivalent Posix signal number.
18229 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18230 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18231 * gdbsupport/gdb_wait.c: New file, implements
18232 windows_status_to_termsig.
18233 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18234 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18236 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18238 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18241 2020-01-05 Luis Machado <luis.machado@linaro.org>
18243 * aarch64-linux-nat.c
18244 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18245 and bfd_mach_aarch64.
18247 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18249 * ui-file.c (stdio_file::can_emit_style_escape)
18250 (tee_file::can_emit_style_escape): Ensure style is used also on
18251 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18253 * main.c (set_gdb_data_directory): Use file style to output the
18254 warning that the given pathname is not a directory.
18255 * top.c (show_history_filename, gdb_safe_append_history)
18256 (show_gdb_datadir): Use file style.
18258 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18260 * solib-target.c (struct lm_info_target):
18261 Change offsets to be a unique_xmalloc_ptr.
18262 (solib_target_relocate_section_addresses): Update.
18264 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18266 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18268 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18270 * MAINTAINERS (Write After Approval): Add myself.
18272 2020-01-02 Luis Machado <luis.machado@linaro.org>
18274 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18275 Cell BE architecture.
18276 * target.h (struct target_ops) <thread_architecture>: Likewise.
18278 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18280 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18282 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18284 * MAINTAINERS (Write After Approval): Add myself.
18286 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18288 * gdbarch.sh: Update copyright year range of generated files.
18290 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18292 Update copyright year range in all GDB files.
18294 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18296 * copyright.py: Convert to Python 3.
18298 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18300 * copyright.py: Adapt after move of gnulib directory from gdb
18301 directory to toplevel directory.
18303 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18305 * copyright.py (main): Exit if run from the wrong directory.
18307 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18309 * top.c (print_gdb_version): Change copyright year to 2020.
18311 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18313 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18315 For older changes see ChangeLog-2019.
18321 version-control: never