1 2020-12-14 Tom Tromey <tom@tromey.com>
3 * dtrace-probe.c (dtrace_process_dof_probe): Use value_type.
4 * typeprint.c (whatis_exp): Always use evaluate_type.
5 (maintenance_print_type): Likewise. Simplify.
7 2020-12-14 Tom Tromey <tromey@adacore.com>
9 * dictionary.c (language_defn::search_name_hash): Ignore "B".
10 * ada-lang.c (advance_wild_match): Ignore "B".
12 (do_full_match): Rewrite.
14 2020-12-14 Tom Tromey <tromey@adacore.com>
16 * ada-lang.c (get_var_value): Only consider exact matches.
18 2020-12-14 Tom Tromey <tromey@adacore.com>
20 * dwarf2/read.c (rewrite_array_type): New function.
21 (quirk_ada_thick_pointer_struct): Use rewrite_array_type.
23 2020-12-14 Tom Tromey <tromey@adacore.com>
25 * valarith.c (fixed_point_binop): Call error on division by zero.
27 2020-12-13 Tom Tromey <tom@tromey.com>
29 * gdbtypes.c (safe_parse_type): Make argument const.
30 * value.h (parse_and_eval_type): Make argument const.
31 * eval.c (parse_and_eval_type): Make argument const.
33 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
35 * NEWS: Mention new commands.
36 * target-dcache.c: Add 'cli/cli-cmds.h' include.
37 (maint_flush_dcache_command): New function.
38 (_initialize_target_dcache): Create new 'maint flush dcache'
41 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
43 * NEWS: Mention new commands, and that the old commands are now
45 * cli/cli-cmds.c (maintenanceflushlist): Define.
46 * cli/cli-cmds.h (maintenanceflushlist): Declare.
47 * maint.c (_initialize_maint_cmds): Initialise
49 * regcache.c: Add 'cli/cli-cmds.h' include.
50 (reg_flush_command): Add header comment.
51 (_initialize_regcache): Create new 'maint flush register-cache'
52 command, make 'flushregs' an alias.
53 * symtab.c: Add 'cli/cli-cmds.h' include.
54 (_initialize_symtab): Create new 'maint flush symbol-cache'
55 command, make old command an alias.
57 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
59 * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix
60 result from lookup_cmd_composition_1, use the prefixes from both
61 the command and the alias instead.
62 (lookup_cmd_composition_1): Initial prefix command is the based on
63 the search list being passed in. Simplify the logic for tracking
64 the prefix command. Replace a use of alloca with a local
67 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
69 * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
70 of NULL. Don't print message piece by piece, but sentence at a
71 time to allow internationalisation. Some whitespace cleanup.
73 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
76 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
77 deprecated_cmd_warning.
78 (deprecated_cmd_warning): Take extra parameter, call
79 lookup_cmd_composition_1 and pass new parameter through.
80 (lookup_cmd_composition_1): New function, takes implementation of
81 lookup_cmd_composition but with extra parameter.
82 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
84 * command.h (deprecated_cmd_warning): Add extra parameter to
86 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
88 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
90 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
91 command.h, add extra parameter, and use this to guard giving a
93 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
94 include argument names in declaration, add new argument.
95 * completer.c (complete_line_internal_1): Remove unneeded
96 brackets, pass extra argument to lookup_cmd_1.
98 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
100 * infrun.h (debug_infrun): Make a bool.
101 * infrun.c (debug_infrun): Make a bool.
102 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
105 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
107 * displaced-stepping.h (displaced_debug_printf): Use
108 debug_prefixed_printf_cond.
109 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
110 (dwarf_read_debug_printf_v): Likewise.
111 * infrun.h (infrun_debug_printf): Likewise.
112 * linux-nat.c (linux_nat_debug_printf): Likewise.
114 2020-12-11 Tom Tromey <tom@tromey.com>
116 * p-exp.y (intvar): Remove global.
117 (DOLLAR_VARIABLE): Change type.
119 (exp): Call write_dollar_variable here...
120 (yylex): ... not here.
121 * m2-exp.y (DOLLAR_VARIABLE): Change type.
122 (variable): Call write_dollar_variable here...
123 (yylex): ... not here.
124 * f-exp.y (DOLLAR_VARIABLE): Change type.
125 (exp): Call write_dollar_variable here...
126 (yylex): ... not here.
128 2020-12-11 Tom Tromey <tom@tromey.com>
130 * varobj.c (varobj_create): Update.
131 (install_variable): Return void.
133 2020-12-11 Tom Tromey <tom@tromey.com>
135 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
137 2020-12-11 Tom Tromey <tom@tromey.com>
139 * varobj.c (varobj_clear_saved_item): Remove.
140 (update_dynamic_varobj_children): Update.
141 (varobj::~varobj): Don't call varobj_clear_saved_item.
143 2020-12-11 Tom Tromey <tom@tromey.com>
145 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
146 (update_dynamic_varobj_children, create_child)
147 (create_child_with_value): Update.
148 * varobj-iter.h (struct varobj_item) <value>: Now a
150 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
152 2020-12-11 Tom Tromey <tom@tromey.com>
154 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
155 (varobj_get_iterator): Return unique_ptr.
156 (update_dynamic_varobj_children, install_visualizer)
157 (varobj::~varobj): Update.
158 * python/python-internal.h (py_varobj_get_iterator): Return
160 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
162 2020-12-11 Tom Tromey <tom@tromey.com>
164 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
165 (varobj_clear_saved_item, update_dynamic_varobj_children):
168 2020-12-11 Tom Tromey <tom@tromey.com>
170 * varobj.c (update_dynamic_varobj_children): Update.
171 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
172 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
174 (py_varobj_iter::next): Likewise.
176 2020-12-11 Tom Tromey <tom@tromey.com>
178 * varobj.c (update_dynamic_varobj_children, install_visualizer)
179 (varobj::~varobj): Update.
180 * varobj-iter.h (struct varobj_iter): Change to interface class.
181 (struct varobj_iter_ops): Remove.
182 (varobj_iter_next, varobj_iter_delete): Remove.
183 * python/py-varobj.c (struct py_varobj_iter): Derive from
184 varobj_iter. Add constructor, destructor. Rename members.
185 (py_varobj_iter::~py_varobj_iter): Rename from
187 (py_varobj_iter::next): Rename from py_varobj_iter_next.
188 (py_varobj_iter_ops): Remove.
189 (py_varobj_iter): Rename from py_varobj_iter_ctor.
190 (py_varobj_iter_new): Remove.
191 (py_varobj_get_iterator): Update.
193 2020-12-11 Tom Tromey <tom@tromey.com>
195 * varobj.h (all_root_varobjs): Take a function_view.
196 * varobj.c (all_root_varobjs): Take a function_view.
197 (varobj_invalidate_iter): Remove unused parameter.
198 (varobj_invalidate): Update.
199 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
200 (mi_cmd_var_update_iter): Change parameters.
202 2020-12-11 Tom Tromey <tom@tromey.com>
204 * varobj.c (struct varobj_root) <next>: Remove.
205 (struct vlist): Remove.
206 (rootlist): Now a std::list.
207 (install_variable, uninstall_variable, all_root_varobjs): Update.
209 2020-12-11 Tom Tromey <tom@tromey.com>
211 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
212 (varobj_table): Now htab_t.
213 (varobj_get_handle, install_variable, uninstall_variable):
215 (hash_varobj, eq_varobj_and_string): New functions.
216 (hash_varobj): Update.
218 2020-12-11 Tom Tromey <tom@tromey.com>
220 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
221 * ada-lang.c (check_status_exception): Update.
222 * breakpoint.c (free_bp_location): Remove.
223 (decref_bp_location): Use bp_location_ref_policy.
224 (bpstats::bpstats): Don't call incref_bp_location.
225 (bpstats::~bpstats): Remove.
226 (bpstats::bpstats): Update.
227 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
228 (bp_location::bp_location): Update.
229 (incref_bp_location): Remove.
230 (bkpt_print_it): Update.
231 * breakpoint.h (class bp_location): Derive from
233 (struct bpstats): Remove destructor.
234 <bp_location_at>: Now a bp_location_ref_ptr.
236 (bp_location_ref_ptr): New typedef.
237 (struct bp_location_ref_policy): New.
239 2020-12-11 Tom Tromey <tom@tromey.com>
241 * thread.c (class scoped_inc_dec_ref): Remove.
242 (tp_array_compar_ascending, tp_array_compar_descending): Change
244 (thread_apply_all_command): Use thread_info_ref.
246 2020-12-11 Tom Tromey <tom@tromey.com>
248 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
249 (stop_context::stop_context): Update.
250 (stop_context::~stop_context): Remove.
252 2020-12-11 Tom Tromey <tom@tromey.com>
254 * inferior.c (current_inferior_): Change type.
255 (current_inferior, set_current_inferior, initialize_inferiors):
258 2020-12-11 Tom Tromey <tom@tromey.com>
260 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
263 2020-12-11 Tom Tromey <tromey@adacore.com>
265 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
267 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
268 (read_atcb): Use cpu_id_offset.
270 2020-12-10 Kevin Buettner <kevinb@redhat.com>
272 * ada-lang.c (ada_fold_name): Fix off-by-one error.
274 2020-12-10 Luis Machado <luis.machado@linaro.org>
276 * breakpoint.c (should_be_inserted): Don't output newline.
278 2020-12-10 Luis Machado <luis.machado@linaro.org>
280 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
281 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
282 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
283 * arch/aarch64.h: ... here.
284 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
285 (aarch64_maybe_swab128): New function.
286 (aarch64_sve_regs_copy_to_reg_buf)
287 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
288 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
290 (TF_REG_VALUE_BYTES): New enum value.
291 (trad_frame_value_bytes_p): New function.
292 (trad_frame_set_value_bytes): New function.
293 (trad_frame_set_reg_value_bytes): New function.
294 (trad_frame_get_prev_register): Handle register values saved as bytes.
295 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
296 (struct trad_frame_saved_reg) <data>: New field.
297 (trad_frame_set_value_bytes): New prototype.
298 (trad_frame_value_bytes_p): New prototype.
300 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
302 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
303 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
304 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
306 2020-12-09 Tom Tromey <tromey@adacore.com>
308 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
310 2020-12-09 Tom Tromey <tromey@adacore.com>
312 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
313 and "denominator" to gdb_mpz. Handle block forms.
314 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
315 "denominator" to gdb_mpz.
316 (finish_fixed_point_type): Update.
317 (has_zero_over_zero_small_attribute): Update.
319 2020-12-09 Tom Tromey <tromey@adacore.com>
321 * expprint.c (op_name): Update.
322 * expression.h (enum exp_opcode): Update.
323 * std-operator.def: Add more opcodes.
324 * ada-operator.def, fortran-operator.def: Remove, moving contents
325 into std-operator.def.
327 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
329 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
330 Return {} instead of false.
331 (get_discrete_bounds): Compute high bound only if low bound is
334 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
337 * gdbtypes.c (get_discrete_low_bound): Make non-static.
338 (get_discrete_high_bound): Make non-static.
339 * gdbtypes.h (get_discrete_low_bound): New declaration.
340 (get_discrete_high_bound): New declaration.
341 * valarith.c (value_subscript): Only fetch high bound if
344 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
346 * gdbtypes.c (get_discrete_bounds): Implement with
347 get_discrete_low_bound and get_discrete_high_bound.
348 (get_discrete_low_bound): New.
349 (get_discrete_high_bound): New.
351 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
353 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
355 * gdbtypes.c (get_discrete_bounds): Return bool.
357 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
359 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
360 (ada_value_slice): Adjust.
362 * gdbtypes.c (get_discrete_bounds): Adjust.
363 (discrete_position): Return optional.
364 * gdbtypes.h (discrete_position): Return optional.
366 2020-12-07 Tom Tromey <tromey@adacore.com>
368 * maint.c (_initialize_maint_cmds): Use expression command
369 completer for "maint print type".
371 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
373 * completer.c (complete_explicit_location): Also add keywords
374 that start with '-' to the completion list.
376 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
378 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
379 keyword may be followed by any keyword.
380 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
381 'toklen' in the case for "-force-condition".
383 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
385 * main.c (catch_command_errors): Add a flag parameter; invoke
386 `bpstat_do_actions` if the flag is set.
387 (execute_cmdargs): Update a call to `catch_command_errors`.
389 2020-12-07 Tom de Vries <tdevries@suse.de>
391 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
393 2020-12-06 Tom Tromey <tom@tromey.com>
396 * ada-lang.c (replace_operator_with_call): Rewrite.
398 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
401 * s390-tdep.h (op_bc): Correct BC opcode value.
403 2020-12-06 Joel Brobecker <brobecker@adacore.com>
405 * gmp-utils.h (gdb_mpz::safe_export): New private method.
406 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
407 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
408 (gdb_mpz::safe_export): New method.
409 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
410 Update function description.
411 (check_as_integer_raises_out_of_range_error): New function.
412 (gdb_mpz_as_integer_out_of_range): New function.
413 (_initialize_gmp_utils_selftests): Register
414 gdb_mpz_as_integer_out_of_range as a selftest.
416 2020-12-05 Joel Brobecker <brobecker@adacore.com>
418 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
420 (gdb_mpz::write): Likewise.
422 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
424 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
425 number of displaced step buffers.
427 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
429 * displaced-stepping.h (struct displaced_step_buffer): Rename
431 (struct displaced_step_buffers): ... this.
432 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
433 <struct displaced_step_buffer>: New inner class.
435 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
437 (displaced_step_buffers::prepare): ... this, adjust for multiple
439 (displaced_step_buffer::finish): Rename to...
440 (displaced_step_buffers::finish): ... this, adjust for multiple
442 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
443 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
444 adjust for multiple buffers.
445 (displaced_step_buffer::restore_in_ptid): Rename to...
446 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
448 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
449 for num_disp_step_buffers.
450 * linux-tdep.c (struct linux_gdbarch_data)
451 <num_disp_step_buffers>: New field.
452 (struct linux_info) <disp_step_buf>: Rename to...
453 <disp_step_bufs>: ... this, change type to
454 displaced_step_buffers.
455 (linux_displaced_step_prepare): Use
456 linux_gdbarch_data::num_disp_step_buffers to create that number
458 (linux_displaced_step_finish): Adjust.
459 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
460 (linux_displaced_step_restore_all_in_ptid): Adjust.
461 (linux_init_abi): Change supports_displaced_step parameter for
462 num_disp_step_buffers, save it in linux_gdbarch_data.
463 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
464 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
465 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
466 supports_displaced_step parameter for num_disp_step_buffers.
467 (amd64_linux_init_abi): Adjust.
468 (amd64_x32_linux_init_abi): Adjust.
469 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
470 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
471 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
472 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
473 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
474 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
475 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
476 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
477 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
478 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
479 * m68k-linux-tdep.c (m68k_linux_init_abi):
480 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
481 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
482 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
483 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
484 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
485 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
486 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
487 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
488 Change type to displaced_step_buffers.
489 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
490 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
491 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
492 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
493 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
494 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
495 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
497 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
499 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
501 (_initialize_linux_tdep): Register pre-init gdb data instead of
504 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
506 * displaced-stepping.h (struct
507 displaced_step_copy_insn_closure): Adjust comments.
508 (struct displaced_step_inferior_state) <step_thread,
509 step_gdbarch, step_closure, step_original, step_copy,
510 step_saved_copy>: Remove fields.
511 (struct displaced_step_thread_state): New.
512 (struct displaced_step_buffer): New.
513 * displaced-stepping.c (displaced_step_buffer::prepare): New.
514 (write_memory_ptid): Move from infrun.c.
515 (displaced_step_instruction_executed_successfully): New,
516 factored out of displaced_step_finish.
517 (displaced_step_buffer::finish): New.
518 (displaced_step_buffer::copy_insn_closure_by_addr): New.
519 (displaced_step_buffer::restore_in_ptid): New.
520 * gdbarch.sh (displaced_step_location): Remove.
521 (displaced_step_prepare, displaced_step_finish,
522 displaced_step_copy_insn_closure_by_addr,
523 displaced_step_restore_all_in_ptid): New.
524 * gdbarch.c: Re-generate.
525 * gdbarch.h: Re-generate.
526 * gdbthread.h (class thread_info) <displaced_step_state>: New
528 (thread_step_over_chain_remove): New declaration.
529 (thread_step_over_chain_next): New declaration.
530 (thread_step_over_chain_length): New declaration.
531 * thread.c (thread_step_over_chain_remove): Make non-static.
532 (thread_step_over_chain_next): New.
533 (global_thread_step_over_chain_next): Use
534 thread_step_over_chain_next.
535 (thread_step_over_chain_length): New.
536 (global_thread_step_over_chain_enqueue): Add debug print.
537 (global_thread_step_over_chain_remove): Add debug print.
538 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
540 * infrun.c (get_displaced_stepping_state): New.
541 (displaced_step_in_progress_any_inferior): Remove.
542 (displaced_step_in_progress_thread): Adjust.
543 (displaced_step_in_progress): Adjust.
544 (displaced_step_in_progress_any_thread): New.
545 (get_displaced_step_copy_insn_closure_by_addr): Remove.
546 (gdbarch_supports_displaced_stepping): Use
547 gdbarch_displaced_step_prepare_p.
548 (displaced_step_reset): Change parameter from inferior to
550 (displaced_step_prepare_throw): Implement using
551 gdbarch_displaced_step_prepare.
552 (write_memory_ptid): Move to displaced-step.c.
553 (displaced_step_restore): Remove.
554 (displaced_step_finish): Implement using
555 gdbarch_displaced_step_finish.
556 (start_step_over): Allow starting more than one displaced step.
557 (prepare_for_detach): Handle possibly multiple threads doing
559 (handle_inferior_event): Handle possibility that fork event
560 happens while another thread displaced steps.
561 * linux-tdep.h (linux_displaced_step_prepare): New.
562 (linux_displaced_step_finish): New.
563 (linux_displaced_step_copy_insn_closure_by_addr): New.
564 (linux_displaced_step_restore_all_in_ptid): New.
565 (linux_init_abi): Add supports_displaced_step parameter.
566 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
567 (linux_displaced_step_prepare): New.
568 (linux_displaced_step_finish): New.
569 (linux_displaced_step_copy_insn_closure_by_addr): New.
570 (linux_displaced_step_restore_all_in_ptid): New.
571 (linux_init_abi): Add supports_displaced_step parameter,
572 register displaced step methods if true.
573 (_initialize_linux_tdep): Register inferior_execd observer.
574 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
575 supports_displaced_step parameter, adjust call to
576 linux_init_abi. Remove call to
577 set_gdbarch_displaced_step_location.
578 (amd64_linux_init_abi): Adjust call to
579 amd64_linux_init_abi_common.
580 (amd64_x32_linux_init_abi): Likewise.
581 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
582 linux_init_abi. Remove call to
583 set_gdbarch_displaced_step_location.
584 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
585 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
586 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
588 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
589 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
590 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
591 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
592 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
593 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
594 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
595 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
596 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
597 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
598 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
599 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
600 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
601 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
602 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
603 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
604 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
605 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
606 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
607 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
608 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
609 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
610 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
611 linux_init_abi. Remove call to
612 set_gdbarch_displaced_step_location.
613 * arm-tdep.c (arm_pc_is_thumb): Call
614 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
615 get_displaced_step_copy_insn_closure_by_addr.
616 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
617 clear gdbarch methods.
618 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
619 (get_ppc_per_inferior): New function.
620 (ppc_displaced_step_prepare): New function.
621 (ppc_displaced_step_finish): New function.
622 (ppc_displaced_step_restore_all_in_ptid): New function.
623 (rs6000_gdbarch_init): Register new gdbarch methods.
624 * s390-tdep.c (s390_gdbarch_init): Don't call
625 set_gdbarch_displaced_step_location, set new gdbarch methods.
627 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
629 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
630 * aarch64-tdep.h: Include displaced-stepping.h.
631 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
633 (displaced_step_copy_insn_closure_up): Move here.
634 (struct buf_displaced_step_copy_insn_closure): Move here.
635 (struct displaced_step_inferior_state): Move here.
636 (debug_displaced): Move here.
637 (displaced_debug_printf_1): Move here.
638 (displaced_debug_printf): Move here.
639 * displaced-stepping.c: New file.
640 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
641 * gdbarch.h: Re-generate.
642 * inferior.h: Include displaced-stepping.h.
643 * infrun.h (debug_displaced): Move to displaced-stepping.h.
644 (displaced_debug_printf_1): Likewise.
645 (displaced_debug_printf): Likewise.
646 (struct displaced_step_copy_insn_closure): Likewise.
647 (displaced_step_copy_insn_closure_up): Likewise.
648 (struct buf_displaced_step_copy_insn_closure): Likewise.
649 (struct displaced_step_inferior_state): Likewise.
650 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
651 (displaced_debug_printf_1): Likewise.
652 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
654 (_initialize_infrun): Don't register "set/show debug displaced".
656 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
658 * linux-tdep.c (get_linux_inferior_data): Add inferior
660 (linux_vsyscall_range): Pass current inferior.
662 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
664 * infrun.c (displaced_step_prepare_throw): Change return type to
665 displaced_step_prepare_status.
666 (displaced_step_prepare): Likewise.
667 (displaced_step_finish): Change return type to
668 displaced_step_finish_status.
670 (stop_all_threads): Adjust.
671 * displaced-stepping.h: New file.
673 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
675 * infrun.c (displaced_step_fixup): Rename to...
676 (displaced_step_finish): ... this, update all callers.
678 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
680 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
681 (get_displaced_step_copy_insn_closure_by_addr): ... this.
683 (displaced_step_closure): Rename to...
684 (displaced_step_copy_insn_closure): ... this. Update all users.
685 (displaced_step_closure_up): Rename to...
686 (displaced_step_copy_insn_closure_up). ... this. Update all
688 (buf_displaced_step_closure): Rename to...
689 (buf_displaced_step_copy_insn_closure): ... this. Update all
691 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
692 (get_displaced_step_copy_insn_closure_by_addr): ... this.
694 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
695 (aarch64_displaced_step_copy_insn_closure): ... this. Update
697 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
698 (amd64_displaced_step_copy_insn_closure): ... this. Update all
700 * arm-tdep.h (arm_displaced_step_closure): Rename to...
701 (arm_displaced_step_copy_insn_closure): ... this. Update all
703 * i386-tdep.h (i386_displaced_step_closure): Rename to...
704 (i386_displaced_step_copy_insn_closure): ... this. Update all
706 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
707 (ppc_displaced_step_copy_insn_closure): ... this. Update all
709 * s390-tdep.c (s390_displaced_step_closure): Rename to...
710 (s390_displaced_step_copy_insn_closure): ... this. Update all
712 * gdbarch.h: Re-generate.
713 * gdbarch.c: Re-generate.
715 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
717 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
718 (global_thread_step_over_chain_enqueue): ... this. Update all
720 (thread_step_over_chain_remove): Rename to...
721 (global_thread_step_over_chain_remove): ... this. Update all
723 (thread_step_over_chain_next): Rename to...
724 (global_thread_step_over_chain_next): ... this. Update all
726 * infrun.h (step_over_queue_head): Rename to...
727 (global_thread_step_over_chain_head): ... this. Update all
729 * infrun.c (step_over_queue_head): Rename to...
730 (global_thread_step_over_chain_head): ... this. Update all
732 * thread.c (step_over_chain_remove): Rename to...
733 (thread_step_over_chain_remove): ... this. Update all users.
734 (thread_step_over_chain_next): Rename to...
735 (global_thread_step_over_chain_next): ... this. Update all
737 (thread_step_over_chain_enqueue): Rename to...
738 (global_thread_step_over_chain_enqueue): ... this. Update all
740 (thread_step_over_chain_remove): Rename to...
741 (global_thread_step_over_chain_remove): ... this. Update all
744 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
746 * infrun.c (get_displaced_stepping_state): Remove, change
747 callers to access the field directly.
749 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
751 * infrun.c (handle_inferior_event): Restore displaced step
752 buffer bytes in child process when handling fork, even if fork
753 happened in another thread than the displaced-stepping one.
755 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
757 * infrun.c (infrun_inferior_execd): New function.
758 (_initialize_infrun): Attach inferior_execd observer.
760 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
762 * observable.h (inferior_execd): Declare new observable.
763 * observable.c (inferior_execd): Declare new observable.
764 * infrun.c (follow_exec): Notify inferior_execd observer.
765 * jit.c (jit_inferior_created_hook): Make static.
766 (_initialize_jit): Register inferior_execd observer.
767 * jit.h (jit_inferior_created_hook): Remove declaration.
768 * solib.c (_initialize_solib): Register inferior_execd observer.
770 2020-12-04 Tom de Vries <tdevries@suse.de>
773 * completer.c (completion_tracker::build_completion_result): Don't
774 access match_list[0][-1].
776 2020-12-04 Tom Tromey <tromey@adacore.com>
778 * linespec.c (struct linespec_token): Rename; remove typedef.
779 * guile/scm-block.c (struct block_smob): Remove typedef.
780 (struct block_syms_progress_smob): Likewise.
781 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
782 * guile/scm-symtab.c (symtab_smob): Remove typedef.
783 (struct sal_smob): Remove typedef.
784 * guile/scm-param.c (struct param_smob): Remove typedef.
785 * guile/scm-progspace.c (struct pspace_smob): Rename.
786 * guile/scm-objfile.c (struct objfile_smob): Rename.
787 * guile/scm-iterator.c (struct iterator_smob): Rename.
788 * guile/scm-frame.c (struct frame_smob): Rename.
789 * guile/scm-arch.c (struct arch_smob): Rename.
790 * guile/scm-type.c (struct field_smob): Remove typedef.
791 (struct type_smob): Rename.
792 * guile/scm-cmd.c (struct command_smob): Remove typedef.
793 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
794 * guile/scm-value.c (struct value_smob): Remove typedef.
795 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
796 * guile/guile-internal.h (struct scheme_variable)
797 (struct scheme_function, struct scheme_integer_constant)
798 (struct gdb_smob, struct chained_gdb_smob)
799 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
800 (objfile_smob, pspace_smob, type_smob): Remove typedef.
801 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
802 (struct pretty_printer_worker_smob): Remove typedef.
803 * guile/scm-exception.c (struct exception_smob): Remove typedef.
804 * python/py-block.c (struct block_object): Remove typedef.
805 (block_syms_iterator_object): Update.
807 (block_syms_iterator_object): Remove typedef.
808 * python/py-inferior.c (struct membuf_object): Remove typedef.
809 * python/py-symtab.c (struct symtab_object): Remove typedef.
810 (set_symtab): Update.
811 (sal_object): Remove typedef.
813 * python/py-frame.c (frame_object): Remove typedef.
814 * python/py-record-btrace.c (struct btpy_list_object): Remove
816 * python/py-arch.c (struct arch_object): Remove typedef.
817 * python/py-linetable.c (struct linetable_entry_object)
818 (linetable_object, struct ltpy_iterator_object): Remove typedef.
819 * python/py-events.h (eventregistry_object): Remove typedef.
820 (struct events_object): Remove typedef.
821 * python/python-internal.h (gdbpy_breakpoint_object): Remove
823 (thread_object): Remove typedef.
824 * python/py-progspace.c (pspace_object): Remove typedef.
825 * python/py-value.c (struct value_object): Remove typedef.
826 * python/py-record.h (recpy_record_object): Remove typedef.
827 (struct recpy_element_object): Remove typedef.
828 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
829 * python/py-objfile.c (objfile_object): Remove typedef.
830 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
831 * python/py-type.c (type_object): Remove typedef.
832 (typy_iterator_object): Update.
834 (field_object): Remove typedef.
835 (typy_iterator_object): Remove typedef.
836 * python/py-registers.c (register_descriptor_iterator_object):
838 (struct register_descriptor_object)
839 (struct reggroup_iterator_object, struct reggroup_object): Remove
841 * python/py-record.c (recpy_gap_object): Remove typedef.
842 * python/py-symbol.c (symbol_object): Remove typedef.
843 (set_symbol): Update.
844 * python/py-event.h (event_object): Remove typedef.
845 * python/py-param.c (parmpy_object): Remove typedef.
846 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
847 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
848 (unwind_info_object, struct cached_frame_info): Likewise.
850 2020-12-04 Tom Tromey <tromey@adacore.com>
852 * value.c (value_internal_function_name): Make return type const.
853 * value.h (value_internal_function_name): Make return type const.
855 2020-12-04 Luis Machado <luis.machado@linaro.org>
857 * aarch64-tdep.c (submask, bit, bits): Remove.
858 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
859 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
860 (aarch64_decode_cb, aarch64_decode_tb)
861 (aarch64_decode_ldr_literal): Use sbits to extract a signed
863 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
865 2020-12-04 Tom de Vries <tdevries@suse.de>
868 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
870 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
873 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
874 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
876 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
878 * arch/riscv.c: Include 'rv32e-xregs.c'.
879 (riscv_create_target_description): Update to handle rv32e.
880 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
882 <operator==>: Update to account for new field.
884 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
885 * features/riscv/rv32e-xregs.c: Generated.
886 * features/riscv/rv32e-xregs.xml: New file.
887 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
889 (riscv_debug_infcall): Likewise.
890 (riscv_debug_unwinder): Likewise.
891 (riscv_debug_gdbarch): Likewise.
892 (enum riscv_register_required_status): Delete.
893 (struct riscv_register_feature): Add constructor, delete default
894 constructor, copy, and assign constructors.
895 (struct riscv_register_feature::register_info) <required>: Delete.
896 <check>: Update comment and arguments.
897 (struct riscv_register_feature) <name>: Change to member function.
898 <prefer_first_name>: Delete.
899 <tdesc_feature>: New member function.
900 <registers>: Rename to...
901 <m_registers>: ...this.
902 <m_feature_name>: New member variable.
903 (riscv_register_feature::register_info::check): Update arguments.
904 (riscv_xreg_feature): Rewrite as class, create a single static
905 instance of the class.
906 (riscv_freg_feature): Likewise.
907 (riscv_virtual_feature): Likewise.
908 (riscv_csr_feature): Likewise.
909 (riscv_create_csr_aliases): Has become a member function inside
910 riscv_csr_feature class.
911 (riscv_abi_embedded): New function definition.
912 (riscv_register_name): Adjust to use new feature objects.
913 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
914 and adjust available argument registers.
915 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
916 (riscv_check_tdesc_feature): Delete.
917 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
918 (riscv_gdbarch_init): Delete target description checking code, and
919 instead call to the new feature objects to perform the checks.
920 Reorder handling of no abi information case, allows small code
922 (_initialize_riscv_tdep): Remove call, this is now done in the
923 riscv_csr_feature constructor.
924 * riscv-tdep.h (riscv_abi_embedded): Declare.
926 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
928 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
931 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
933 * riscv-tdep.c (riscv_is_unknown_csr): New function,
934 implementation moved from riscv_register_reggroup_p.
935 (riscv_register_reggroup_p): Update group handling for unknown
938 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
940 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
941 (dwarf2_get_dwz_file): Convert 'filename' to a
942 std::string. Use dwz_search_other_debugdirs to search for DWZ
943 files in the debug-file-directories provided by the user as well.
945 2020-12-01 Tom Tromey <tom@tromey.com>
947 * parse.c (expr_builder::expr_builder): Initialize expout.
948 (expr_builder::release): Use expression::resize.
949 (expression::expression, expression::~expression)
950 (expression::resize): New methods.
951 (write_exp_elt): Use expression::resize.
952 (prefixify_expression): Update.
953 (increase_expout_size): Use expression::resize.
954 * expression.h (struct expression): Add constructor, destructor.
955 <resize>: New method.
956 (expression_up): Change type.
958 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
959 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
960 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
963 2020-11-30 Tom de Vries <tdevries@suse.de>
966 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
967 is_reference parameter.
968 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
970 2020-11-30 Tom Tromey <tom@tromey.com>
972 * rust-lang.c (rust_op_name): Remove.
973 (exp_descriptor_rust): Update.
974 * parser-defs.h (op_name_standard): Don't declare.
975 (struct exp_descriptor) <op_name>: Remove.
976 * parse.c (exp_descriptor_standard): Update.
977 * opencl-lang.c (exp_descriptor_opencl): Update.
978 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
979 * f-lang.c (op_name_f): Remove.
980 (f_language::exp_descriptor_tab): Update.
981 * expression.h (op_name): Update.
982 * expprint.c (op_name): Rewrite.
983 (op_name_standard): Remove.
984 (dump_raw_expression, dump_subexp): Update.
985 * c-lang.c (exp_descriptor_c): Update.
986 * ax-gdb.c (gen_expr): Update.
987 * ada-lang.c (ada_op_name): Remove.
988 (ada_exp_descriptor): Update.
990 2020-11-30 Tom Tromey <tom@tromey.com>
992 * eval.c (init_array_element): Remove.
993 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
995 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
998 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
999 static locator win info.
1001 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
1003 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
1006 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1008 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
1009 is always initialized.
1011 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
1012 * MAINTAINERS (Write After Approval): Add myself.
1014 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1016 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1017 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
1019 2020-11-25 Tom Tromey <tom@tromey.com>
1021 * eval.c (evaluate_subexp_standard): Remove unnecessary
1024 2020-11-25 Tom Tromey <tom@tromey.com>
1026 * d-lang.c: Include parser-defs.h.
1027 * rust-lang.c: Include parser-defs.h.
1028 * c-lang.h: Do not include parser-defs.h.
1030 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1032 * regcache.h (struct cached_reg): Remove typedef.
1034 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1036 * README: Fix the URL of the MPFR library.
1038 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1040 * README: Document the --with-libgmp-prefix configure option.
1042 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1044 * NEWS: Add entry documenting support for DWARF-based fixed
1047 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1049 * NEWS: Document that building GDB now requires GMP.
1051 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1053 * typeprint.c (print_type_scalar): Add handling of
1054 TYPE_CODE_FIXED_POINT.
1056 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1058 * valarith.c (fixed_point_binop): Replace the
1059 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
1062 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1064 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
1065 replacing fixed_point_scaling_factor. All callers updated
1066 throughout this project.
1067 (fixed_point_scaling_factor): Delete declaration.
1068 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
1069 fixed_point_scaling_factor. Adjust implementation accordingly.
1071 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1073 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1074 replacing the fixed_point_type_base_type function. All callers
1075 updated throughout this project.
1076 (fixed_point_type_base_type): Remove declaration.
1077 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1078 fixed_point_type_base_type. Adjust implementation accordingly.
1080 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1082 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1084 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1085 (TYPE_FIXED_POINT_INFO): Delete macro.
1086 (allocate_fixed_point_type_info): Change return type to void.
1087 * gdbtypes.c (copy_type_recursive): Replace the use of
1088 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1089 (fixed_point_scaling_factor): Likewise.
1090 (allocate_fixed_point_type_info): Change return type to void.
1091 Adjust implementation accordingly.
1092 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1093 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1095 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1097 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1098 into one single gdb::array_view parameter.
1099 (gdb_mpz::write): Likewise.
1100 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1101 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1102 into one single gdb::array_view parameter.
1103 Adjust implementation accordingly.
1104 (gdb_mpz::write): Likewise.
1105 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1106 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1107 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1109 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1111 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1112 Change return type to std::string. Update all callers.
1113 * gmp-utils.c (gmp_string_printf): Likewise.
1115 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1117 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1118 instead of mpq_set_ui to initialize our GMP rational.
1120 2020-11-23 Tom de Vries <tdevries@suse.de>
1122 * debuginfod-support.c (debuginfod_source_query)
1123 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1125 2020-11-21 Tom Tromey <tom@tromey.com>
1127 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1129 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1131 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1133 (gdb_mpz_write_all_from_small): Likewise.
1135 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1137 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1140 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1142 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1143 ctf_arc_open_by_name.
1145 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1147 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1148 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1150 2020-11-20 Pedro Alves <pedro@palves.net>
1152 * language.c (language_arch_info::lookup_primitive_type): Use
1153 gdb::function_view instead of gdb::function.
1154 (template language_lookup_primitive_type): Rename to ...
1155 (language_lookup_primitive_type_1): ... this, and make static.
1156 (language_lookup_primitive_type(const struct language_defn *,
1157 struct gdbarch *, const char *): Make non-template.
1158 (language_lookup_primitive_type(const struct language_defn *,
1159 struct gdbarch *, std::function<bool (struct type *)>): Make
1160 non-template and use gdb::function_view.
1161 * language.h (language_arch_info::lookup_primitive_type): Use
1162 gdb::function_view instead of std::function.
1163 (language_lookup_primitive_type): No longer template.
1164 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1165 lambda instead of a std::function.
1167 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1170 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1173 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1175 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1177 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1179 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1180 in `loop_cb` parameter.
1181 * gdbarch.c: Re-generate.
1182 * gdbarch.h: Re-generate.
1183 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1185 * arch-utils.h (default_read_core_file_mappings): Likewise.
1186 * corelow.c (core_target::build_file_mappings): Likewise.
1187 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1188 (linux_core_info_proc_mappings): Likewise.
1190 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1192 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1193 * NEWS: Mention new options.
1194 * f-array-walker.h: New file.
1195 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1196 (repack_array_slices): New static global.
1197 (show_repack_array_slices): New function.
1198 (fortran_array_slicing_debug): New static global.
1199 (show_fortran_array_slicing_debug): New function.
1200 (value_f90_subarray): Delete.
1201 (skip_undetermined_arglist): Delete.
1202 (class fortran_array_repacker_base_impl): New class.
1203 (class fortran_lazy_array_repacker_impl): New class.
1204 (class fortran_array_repacker_impl): New class.
1205 (fortran_value_subarray): Complete rewrite.
1206 (set_fortran_list): New static global.
1207 (show_fortran_list): Likewise.
1208 (_initialize_f_language): Register new commands.
1209 (fortran_adjust_dynamic_array_base_address_hack): New function.
1210 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1212 * f-valprint.c: Include 'f-array-walker.h'.
1213 (class fortran_array_printer_impl): New class.
1214 (f77_print_array_1): Delete.
1215 (f77_print_array): Delete.
1216 (fortran_print_array): New.
1217 (f_value_print_inner): Update to call fortran_print_array.
1218 * gdbtypes.c: Include 'f-lang.h'.
1219 (resolve_dynamic_type_internal): Call
1220 fortran_adjust_dynamic_array_base_address_hack.
1222 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1224 * breakpoint.c (struct watch_options): New struct.
1225 (watch_option_defs): New static global.
1226 (make_watch_options_def_group): New function.
1227 (watch_maybe_just_location): Convert option parsing.
1228 (watch_command_completer): New function.
1229 (_initialize_breakpoint): Build help text using options mechanism.
1231 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1233 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1234 (watch_command_1): Update parameter types. Convert locals to
1236 (watch_command_wrapper): Change parameter type.
1237 (watch_maybe_just_location): Change locals to bool.
1238 (rwatch_command_wrapper): Update parameter type.
1239 (awatch_command_wrapper): Update parameter type.
1240 * breakpoint.h (watch_command_wrapper): Change parameter type.
1241 (rwatch_command_wrapper): Update parameter type.
1242 (awatch_command_wrapper): Update parameter type.
1243 * eval.c (fetch_subexp_value): Change parameter type.
1244 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1246 * value.h (fetch_subexp_value): Change parameter type in
1249 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1251 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1254 2020-11-18 Keith Seitz <keiths@redhat.com>
1256 * linux-tdep.c (dump_note_entry_p): Return true instead of
1257 checking `filename'.
1259 2020-11-18 Tom de Vries <tdevries@suse.de>
1261 * debuginfod-support.c (debuginfod_source_query)
1262 (debuginfod_debuginfo_query): Also do early exit if
1263 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1265 2020-11-18 Tom de Vries <tdevries@suse.de>
1267 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1270 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1272 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1273 callers. Move doc here.
1274 * gdbtypes.c (get_array_bounds): Return bool
1276 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1278 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1280 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1281 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1282 case to the default.
1284 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1286 * printcmd.c: Include 'safe-ctype.c'.
1287 (skip_over_slash_fmt): New function.
1288 (print_command_completer): Call skip_over_slash_fmt.
1289 (display_and_x_command_completer): New function.
1290 (_initialize_printcmd): Add command completion for 'x' and
1293 2020-11-16 Pedro Alves <pedro@palves.net>
1295 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1296 (get_prev_frame_always_1): ... to here.
1297 * inline-frame.c (inline_frame_this_id): Mention
1298 get_prev_frame_always_1 in comment.
1300 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1302 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1304 (value_less): Add fixed-point handling.
1306 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1308 * eval.c (binop_promote): Add fixed-point type handling.
1309 * valarith.c (fixed_point_binop): New function.
1310 (scalar_binop): Add fixed-point type handling.
1311 (value_neg): Add fixed-point type handling.
1312 * valops.c (value_cast_to_fixed_point): New function.
1313 (value_cast): Add fixed-point type handling.
1315 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1317 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1319 * c-typeprint.c (c_type_print_varspec_prefix)
1320 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1321 TYPE_CODE_FIXED_POINT handling.
1322 * p-typeprint.c (pascal_type_print_varspec_prefix)
1323 (pascal_type_print_varspec_suffix): Likewise.
1324 * typeprint.c (print_type_fixed_point): New function.
1325 * typeprint.h (print_type_fixed_point): Add declaration.
1327 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1329 * printcmd.c (print_scalar_formatted): Add fixed-point type
1330 handling when options->format is set.
1332 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1334 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1335 * dwarf2/read.c (get_dwarf2_rational_constant)
1336 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1337 (has_zero_over_zero_small_attribute): New functions.
1338 read_base_type, set_die_type): Add fixed-point type handling.
1339 * gdb-gdb.py.in: Add fixed-point type handling.
1340 * gdbtypes.c: #include "gmp-utils.h".
1341 (create_range_type, set_type_code): Add fixed-point type handling.
1342 (init_fixed_point_type): New function.
1343 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1344 (print_fixed_point_type_info): New function.
1345 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1347 (fixed_point_type_storage): New typedef.
1348 (fixed_point_objfile_key): New static global.
1349 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1350 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1352 * gdbtypes.h: #include "gmp-utils.h".
1353 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1354 (union type_specific) <fixed_point_info>: New field.
1355 (struct fixed_point_type_info): New struct.
1356 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1357 (init_fixed_point_type, is_fixed_point_type)
1358 (fixed_point_type_base_type, fixed_point_scaling_factor)
1359 (allocate_fixed_point_type_info): Add declarations.
1360 * valprint.c (generic_val_print_fixed_point): New function.
1361 (generic_value_print): Add fixed-point type handling.
1362 * value.c (value_as_address, unpack_long): Add fixed-point type
1365 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1367 * utils.h (uinteger_pow): Add declaration.
1368 * utils.c (uinteger_pow): Moved here (without changes)...
1369 * valarith.c (uinteger_pow): ... from here.
1371 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1373 * gmp-utils.h, gmp-utils.c: New file.
1374 * unittests/gmp-utils-selftests.c: New file.
1375 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1376 unittests/gmp-utils-selftests.c.
1377 (COMMON_SFILES) Add gmp-utils.c.
1378 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1380 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1382 * configure.ac: Generate an error if a usable GMP library
1384 * configure: Regenerate.
1386 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1388 * configure.ac: Add support for --with-libgmp-prefix.
1389 * Makefile.in (LIBGMP): New variable.
1390 (CLIBS): Include $(LIBGMP).
1391 * configure, config.in: Regenerate
1393 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1396 * f-exp.y (COMPLETE): New token.
1397 (exp): Two new rules for tab-completion.
1398 (saw_name_at_eof): New static global.
1399 (last_was_structop): Likewise.
1400 (yylex): Set new variables, and return COMPLETE token at the end
1401 of the input stream in some cases.
1403 2020-11-14 Tom Tromey <tom@tromey.com>
1405 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1407 2020-11-14 Tom Tromey <tom@tromey.com>
1409 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1411 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1413 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1415 2020-11-13 Tom Tromey <tom@tromey.com>
1417 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1418 (convert_escape, parse_one_string): Constify.
1420 2020-11-13 Keith Seitz <keiths@redhat.com>
1422 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1423 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1424 outside of ELF segments" warning for debugin
1426 2020-11-13 Keith Seitz <keiths@redhat.com>
1429 * elfread.c (elf_symfile_segments): Output a BFD file name
1430 for the "Loadable section ... outside of ELF segments" warning.
1432 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1435 * arm-tdep.c (class arm_instruction_reader): New.
1436 (target_arm_instruction_reader): New.
1437 (arm_analyze_prologue): Add instruction reader parameter and use
1438 it. Use arm_expand_immediate.
1439 (class target_arm_instruction_reader): Adjust.
1440 (arm_skip_prologue): Adjust.
1441 (arm_expand_immediate): New.
1442 (arm_scan_prologue): Adjust.
1443 (arm_analyze_prologue_test): New.
1444 (class test_arm_instruction_reader): New.
1446 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1448 * f-lang.c (fortran_argument_convert): Add declaration. Add
1449 header comment, taken from f-lang.h. Make static.
1450 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1451 (fortran_argument_convert): Delete declaration.
1453 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1455 * ada-exp.y (find_primitive_type): Make parameter const.
1456 * ada-lang.c (enum ada_primitive_types): Delete.
1457 (ada_language::language_arch_info): Update.
1458 * c-lang.c (enum c_primitive_types): Delete.
1459 (c_language_arch_info): Update.
1460 (enum cplus_primitive_types): Delete.
1461 (cplus_language::language_arch_info): Update.
1462 * d-lang.c (enum d_primitive_types): Delete.
1463 (d_language::language_arch_info): Update.
1464 * f-lang.c (enum f_primitive_types): Delete.
1465 (f_language::language_arch_info): Update.
1466 * go-lang.c (enum go_primitive_types): Delete.
1467 (go_language::language_arch_info): Update.
1468 * language.c (auto_or_unknown_language::language_arch_info):
1470 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1471 (language_string_char_type): Add header comment, call function in
1473 (language_bool_type): Likewise
1474 (language_arch_info::bool_type): Define.
1475 (language_lookup_primitive_type_1): Delete.
1476 (language_lookup_primitive_type): Rewrite as a templated function
1477 to call function in language_arch_info, then instantiate twice.
1478 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1479 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1480 (language_arch_info::lookup_primitive_type): Define twice with
1481 different signatures.
1482 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1483 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1484 member function in language_arch_info.
1485 * language.h (language_arch_info): Complete rewrite.
1486 (language_lookup_primitive_type): Make templated.
1487 * m2-lang.c (enum m2_primitive_types): Delete.
1488 (m2_language::language_arch_info): Update.
1489 * opencl-lang.c (OCL_P_TYPE): Delete.
1490 (enum opencl_primitive_types): Delete.
1491 (opencl_type_data): Delete.
1492 (builtin_opencl_type): Delete.
1493 (lookup_opencl_vector_type): Update.
1494 (opencl_language::language_arch_info): Update, lots of content
1496 (build_opencl_types): ...here. This function is now deleted.
1497 (_initialize_opencl_language): Delete.
1498 * p-lang.c (enum pascal_primitive_types): Delete.
1499 (pascal_language::language_arch_info): Update.
1500 * rust-lang.c (enum rust_primitive_types): Delete.
1501 (rust_language::language_arch_info): Update.
1503 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1505 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1508 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1510 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1513 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1515 * dwarf2/read.c (dwarf_read_debug_printf,
1516 dwarf_read_debug_printf_v): New macros, use throughout the file.
1518 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1521 * arc-linux-tdep.c (collect_register): Populate "eret" by
1522 "pc" value from the regcache when asked for "pc" value.
1524 2020-11-12 Tom Tromey <tom@tromey.com>
1527 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1530 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1532 * features/Makefile (XMLTOC): Add rx.xml.
1533 (FEATURE_XMLFILES): Remove rx.xml.
1534 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1535 * features/rx.c: Regenerate.
1536 * features/rx.xml: Wrap in `target` tags, and reindent.
1537 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1539 (maint_print_c_tdesc_opt_def): New typedef.
1540 (maint_print_c_tdesc_opt_defs): New static global.
1541 (make_maint_print_c_tdesc_options_def_group): New function.
1542 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1543 print single feature C file for target descriptions containing a
1545 (maint_print_c_tdesc_cmd_completer): New function.
1546 (_initialize_target_descriptions): Update call to register command
1547 completer, and include command line flag in help text.
1549 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1551 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1553 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1556 2020-11-10 Tom Tromey <tom@tromey.com>
1558 * value.h (internalvar_name): Update.
1559 * value.c (internalvar_name): Make return type const.
1561 2020-11-10 Tom Tromey <tom@tromey.com>
1563 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1564 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1567 2020-11-10 Tom Tromey <tom@tromey.com>
1569 * objc-lang.h (value_nsstring): Update.
1570 * objc-lang.c (value_nsstring): Make "ptr" const.
1572 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1574 * expprint.c (print_subexp_funcall): Increment expression position
1575 after reading argument count.
1576 * f-lang.c (print_subexp_f): Skip over opcode before calling
1578 (dump_subexp_body_f): Likewise.
1580 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1583 * configure: Regenerate.
1584 * configure.ac: Check for python modules ctypes instead of
1587 2020-11-06 Pedro Alves <pedro@palves.net>
1589 * macroexp.c (struct macro_buffer): Split in two classes. Add
1591 (struct shared_macro_buffer): New, factored out from struct
1593 (struct growable_macro_buffer): New, factored out from struct
1595 (set_token, get_comment, get_identifier, get_pp_number)
1596 (get_character_constant, get_string_literal, get_punctuator)
1597 (get_next_token_for_substitution): Constify parameters.
1598 (substitute_args): Constify locals.
1600 2020-11-05 Tom Tromey <tom@tromey.com>
1602 * dwarf2/read.c (read_cutu_die_from_dwo)
1603 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1604 (build_type_psymtabs_1): Update.
1605 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1607 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1608 Don't read section. Add assert.
1610 2020-11-04 Tom Tromey <tromey@adacore.com>
1612 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1614 2020-11-04 Tom Tromey <tromey@adacore.com>
1616 * ada-typeprint.c (ada_print_type): Handle __T types.
1618 2020-11-04 Tom Tromey <tromey@adacore.com>
1620 * dwarf2/read.c (add_partial_symbol, process_die):
1621 Handle DW_TAG_array_type.
1622 (is_type_tag_for_partial): Add "lang" parameter.
1623 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1625 2020-11-04 Tom Tromey <tromey@adacore.com>
1627 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1629 2020-11-04 Tom Tromey <tromey@adacore.com>
1631 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1634 2020-11-04 Tom Tromey <tromey@adacore.com>
1636 * gdbtypes.c (update_static_array_size): Handle bit stride.
1638 2020-11-04 Tom Tromey <tromey@adacore.com>
1640 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1642 2020-11-04 Tom Tromey <tromey@adacore.com>
1644 * ada-lang.c (ada_is_any_packed_array_type): New function.
1645 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1647 2020-11-04 Tom Tromey <tromey@adacore.com>
1649 * dwarf2/read.c (recognize_bound_expression)
1650 (quirk_ada_thick_pointer): New functions.
1651 (read_array_type): Call quirk_ada_thick_pointer.
1652 (set_die_type): Add "skip_data_location" parameter.
1653 (quirk_ada_thick_pointer): New function.
1654 (process_structure_scope): Call quirk_ada_thick_pointer.
1655 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1656 (decode_packed_array_bitsize): Handle thick pointers without
1658 (ada_is_gnat_encoded_packed_array_type): Rename from
1659 ada_is_packed_array_type.
1660 (ada_is_constrained_packed_array_type): Update.
1661 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1662 (ada_value_print_1): Use ada_get_decoded_value.
1664 2020-11-04 Tom Tromey <tromey@adacore.com>
1666 * ada-lang.c (recursively_update_array_bitsize): New function.
1667 (decode_constrained_packed_array_type): Call it.
1669 2020-11-04 Tom Tromey <tromey@adacore.com>
1671 * ada-lang.c (to_fixed_array_type): Error if
1672 decode_constrained_packed_array_type returns NULL.
1674 2020-11-04 Tom Tromey <tromey@adacore.com>
1676 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1678 2020-11-02 Tom Tromey <tromey@adacore.com>
1680 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1681 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1682 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1683 * amd64-ravenscar-thread.c: New file.
1684 * amd64-ravenscar-thread.h: New file.
1685 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1686 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1688 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1690 * main.c (execute_cmdargs): New function.
1691 (captured_main_1): Make use of execute_cmdargs.
1693 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1695 * NEWS: Mention changes to config file search path.
1698 2020-11-02 Tom Tromey <tromey@adacore.com>
1700 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1701 (python_GdbModuleDef): Move earlier. Now static.
1702 (do_start_initialization): Consolidate some IS_PY3K blocks.
1704 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1706 * aarch64-linux-tdep.c: Fix indentation.
1707 * aarch64-ravenscar-thread.c: Fix indentation.
1708 * aarch64-tdep.c: Fix indentation.
1709 * aarch64-tdep.h: Fix indentation.
1710 * ada-lang.c: Fix indentation.
1711 * ada-lang.h: Fix indentation.
1712 * ada-tasks.c: Fix indentation.
1713 * ada-typeprint.c: Fix indentation.
1714 * ada-valprint.c: Fix indentation.
1715 * ada-varobj.c: Fix indentation.
1716 * addrmap.c: Fix indentation.
1717 * addrmap.h: Fix indentation.
1718 * agent.c: Fix indentation.
1719 * aix-thread.c: Fix indentation.
1720 * alpha-bsd-nat.c: Fix indentation.
1721 * alpha-linux-tdep.c: Fix indentation.
1722 * alpha-mdebug-tdep.c: Fix indentation.
1723 * alpha-nbsd-tdep.c: Fix indentation.
1724 * alpha-obsd-tdep.c: Fix indentation.
1725 * alpha-tdep.c: Fix indentation.
1726 * amd64-bsd-nat.c: Fix indentation.
1727 * amd64-darwin-tdep.c: Fix indentation.
1728 * amd64-linux-nat.c: Fix indentation.
1729 * amd64-linux-tdep.c: Fix indentation.
1730 * amd64-nat.c: Fix indentation.
1731 * amd64-obsd-tdep.c: Fix indentation.
1732 * amd64-tdep.c: Fix indentation.
1733 * amd64-windows-tdep.c: Fix indentation.
1734 * annotate.c: Fix indentation.
1735 * arc-tdep.c: Fix indentation.
1736 * arch-utils.c: Fix indentation.
1737 * arch/arm-get-next-pcs.c: Fix indentation.
1738 * arch/arm.c: Fix indentation.
1739 * arm-linux-nat.c: Fix indentation.
1740 * arm-linux-tdep.c: Fix indentation.
1741 * arm-nbsd-tdep.c: Fix indentation.
1742 * arm-pikeos-tdep.c: Fix indentation.
1743 * arm-tdep.c: Fix indentation.
1744 * arm-tdep.h: Fix indentation.
1745 * arm-wince-tdep.c: Fix indentation.
1746 * auto-load.c: Fix indentation.
1747 * auxv.c: Fix indentation.
1748 * avr-tdep.c: Fix indentation.
1749 * ax-gdb.c: Fix indentation.
1750 * ax-general.c: Fix indentation.
1751 * bfin-linux-tdep.c: Fix indentation.
1752 * block.c: Fix indentation.
1753 * block.h: Fix indentation.
1754 * blockframe.c: Fix indentation.
1755 * bpf-tdep.c: Fix indentation.
1756 * break-catch-sig.c: Fix indentation.
1757 * break-catch-syscall.c: Fix indentation.
1758 * break-catch-throw.c: Fix indentation.
1759 * breakpoint.c: Fix indentation.
1760 * breakpoint.h: Fix indentation.
1761 * bsd-uthread.c: Fix indentation.
1762 * btrace.c: Fix indentation.
1763 * build-id.c: Fix indentation.
1764 * buildsym-legacy.h: Fix indentation.
1765 * buildsym.c: Fix indentation.
1766 * c-typeprint.c: Fix indentation.
1767 * c-valprint.c: Fix indentation.
1768 * c-varobj.c: Fix indentation.
1769 * charset.c: Fix indentation.
1770 * cli/cli-cmds.c: Fix indentation.
1771 * cli/cli-decode.c: Fix indentation.
1772 * cli/cli-decode.h: Fix indentation.
1773 * cli/cli-script.c: Fix indentation.
1774 * cli/cli-setshow.c: Fix indentation.
1775 * coff-pe-read.c: Fix indentation.
1776 * coffread.c: Fix indentation.
1777 * compile/compile-cplus-types.c: Fix indentation.
1778 * compile/compile-object-load.c: Fix indentation.
1779 * compile/compile-object-run.c: Fix indentation.
1780 * completer.c: Fix indentation.
1781 * corefile.c: Fix indentation.
1782 * corelow.c: Fix indentation.
1783 * cp-abi.h: Fix indentation.
1784 * cp-namespace.c: Fix indentation.
1785 * cp-support.c: Fix indentation.
1786 * cp-valprint.c: Fix indentation.
1787 * cris-linux-tdep.c: Fix indentation.
1788 * cris-tdep.c: Fix indentation.
1789 * darwin-nat-info.c: Fix indentation.
1790 * darwin-nat.c: Fix indentation.
1791 * darwin-nat.h: Fix indentation.
1792 * dbxread.c: Fix indentation.
1793 * dcache.c: Fix indentation.
1794 * disasm.c: Fix indentation.
1795 * dtrace-probe.c: Fix indentation.
1796 * dwarf2/abbrev.c: Fix indentation.
1797 * dwarf2/attribute.c: Fix indentation.
1798 * dwarf2/expr.c: Fix indentation.
1799 * dwarf2/frame.c: Fix indentation.
1800 * dwarf2/index-cache.c: Fix indentation.
1801 * dwarf2/index-write.c: Fix indentation.
1802 * dwarf2/line-header.c: Fix indentation.
1803 * dwarf2/loc.c: Fix indentation.
1804 * dwarf2/macro.c: Fix indentation.
1805 * dwarf2/read.c: Fix indentation.
1806 * dwarf2/read.h: Fix indentation.
1807 * elfread.c: Fix indentation.
1808 * eval.c: Fix indentation.
1809 * event-top.c: Fix indentation.
1810 * exec.c: Fix indentation.
1811 * exec.h: Fix indentation.
1812 * expprint.c: Fix indentation.
1813 * f-lang.c: Fix indentation.
1814 * f-typeprint.c: Fix indentation.
1815 * f-valprint.c: Fix indentation.
1816 * fbsd-nat.c: Fix indentation.
1817 * fbsd-tdep.c: Fix indentation.
1818 * findvar.c: Fix indentation.
1819 * fork-child.c: Fix indentation.
1820 * frame-unwind.c: Fix indentation.
1821 * frame-unwind.h: Fix indentation.
1822 * frame.c: Fix indentation.
1823 * frv-linux-tdep.c: Fix indentation.
1824 * frv-tdep.c: Fix indentation.
1825 * frv-tdep.h: Fix indentation.
1826 * ft32-tdep.c: Fix indentation.
1827 * gcore.c: Fix indentation.
1828 * gdb_bfd.c: Fix indentation.
1829 * gdbarch.sh: Fix indentation.
1830 * gdbarch.c: Re-generate
1831 * gdbarch.h: Re-generate.
1832 * gdbcore.h: Fix indentation.
1833 * gdbthread.h: Fix indentation.
1834 * gdbtypes.c: Fix indentation.
1835 * gdbtypes.h: Fix indentation.
1836 * glibc-tdep.c: Fix indentation.
1837 * gnu-nat.c: Fix indentation.
1838 * gnu-nat.h: Fix indentation.
1839 * gnu-v2-abi.c: Fix indentation.
1840 * gnu-v3-abi.c: Fix indentation.
1841 * go32-nat.c: Fix indentation.
1842 * guile/guile-internal.h: Fix indentation.
1843 * guile/scm-cmd.c: Fix indentation.
1844 * guile/scm-frame.c: Fix indentation.
1845 * guile/scm-iterator.c: Fix indentation.
1846 * guile/scm-math.c: Fix indentation.
1847 * guile/scm-ports.c: Fix indentation.
1848 * guile/scm-pretty-print.c: Fix indentation.
1849 * guile/scm-value.c: Fix indentation.
1850 * h8300-tdep.c: Fix indentation.
1851 * hppa-linux-nat.c: Fix indentation.
1852 * hppa-linux-tdep.c: Fix indentation.
1853 * hppa-nbsd-nat.c: Fix indentation.
1854 * hppa-nbsd-tdep.c: Fix indentation.
1855 * hppa-obsd-nat.c: Fix indentation.
1856 * hppa-tdep.c: Fix indentation.
1857 * hppa-tdep.h: Fix indentation.
1858 * i386-bsd-nat.c: Fix indentation.
1859 * i386-darwin-nat.c: Fix indentation.
1860 * i386-darwin-tdep.c: Fix indentation.
1861 * i386-dicos-tdep.c: Fix indentation.
1862 * i386-gnu-nat.c: Fix indentation.
1863 * i386-linux-nat.c: Fix indentation.
1864 * i386-linux-tdep.c: Fix indentation.
1865 * i386-nto-tdep.c: Fix indentation.
1866 * i386-obsd-tdep.c: Fix indentation.
1867 * i386-sol2-nat.c: Fix indentation.
1868 * i386-tdep.c: Fix indentation.
1869 * i386-tdep.h: Fix indentation.
1870 * i386-windows-tdep.c: Fix indentation.
1871 * i387-tdep.c: Fix indentation.
1872 * i387-tdep.h: Fix indentation.
1873 * ia64-libunwind-tdep.c: Fix indentation.
1874 * ia64-libunwind-tdep.h: Fix indentation.
1875 * ia64-linux-nat.c: Fix indentation.
1876 * ia64-linux-tdep.c: Fix indentation.
1877 * ia64-tdep.c: Fix indentation.
1878 * ia64-tdep.h: Fix indentation.
1879 * ia64-vms-tdep.c: Fix indentation.
1880 * infcall.c: Fix indentation.
1881 * infcmd.c: Fix indentation.
1882 * inferior.c: Fix indentation.
1883 * infrun.c: Fix indentation.
1884 * iq2000-tdep.c: Fix indentation.
1885 * language.c: Fix indentation.
1886 * linespec.c: Fix indentation.
1887 * linux-fork.c: Fix indentation.
1888 * linux-nat.c: Fix indentation.
1889 * linux-tdep.c: Fix indentation.
1890 * linux-thread-db.c: Fix indentation.
1891 * lm32-tdep.c: Fix indentation.
1892 * m2-lang.c: Fix indentation.
1893 * m2-typeprint.c: Fix indentation.
1894 * m2-valprint.c: Fix indentation.
1895 * m32c-tdep.c: Fix indentation.
1896 * m32r-linux-tdep.c: Fix indentation.
1897 * m32r-tdep.c: Fix indentation.
1898 * m68hc11-tdep.c: Fix indentation.
1899 * m68k-bsd-nat.c: Fix indentation.
1900 * m68k-linux-nat.c: Fix indentation.
1901 * m68k-linux-tdep.c: Fix indentation.
1902 * m68k-tdep.c: Fix indentation.
1903 * machoread.c: Fix indentation.
1904 * macrocmd.c: Fix indentation.
1905 * macroexp.c: Fix indentation.
1906 * macroscope.c: Fix indentation.
1907 * macrotab.c: Fix indentation.
1908 * macrotab.h: Fix indentation.
1909 * main.c: Fix indentation.
1910 * mdebugread.c: Fix indentation.
1911 * mep-tdep.c: Fix indentation.
1912 * mi/mi-cmd-catch.c: Fix indentation.
1913 * mi/mi-cmd-disas.c: Fix indentation.
1914 * mi/mi-cmd-env.c: Fix indentation.
1915 * mi/mi-cmd-stack.c: Fix indentation.
1916 * mi/mi-cmd-var.c: Fix indentation.
1917 * mi/mi-cmds.c: Fix indentation.
1918 * mi/mi-main.c: Fix indentation.
1919 * mi/mi-parse.c: Fix indentation.
1920 * microblaze-tdep.c: Fix indentation.
1921 * minidebug.c: Fix indentation.
1922 * minsyms.c: Fix indentation.
1923 * mips-linux-nat.c: Fix indentation.
1924 * mips-linux-tdep.c: Fix indentation.
1925 * mips-nbsd-tdep.c: Fix indentation.
1926 * mips-tdep.c: Fix indentation.
1927 * mn10300-linux-tdep.c: Fix indentation.
1928 * mn10300-tdep.c: Fix indentation.
1929 * moxie-tdep.c: Fix indentation.
1930 * msp430-tdep.c: Fix indentation.
1931 * namespace.h: Fix indentation.
1932 * nat/fork-inferior.c: Fix indentation.
1933 * nat/gdb_ptrace.h: Fix indentation.
1934 * nat/linux-namespaces.c: Fix indentation.
1935 * nat/linux-osdata.c: Fix indentation.
1936 * nat/netbsd-nat.c: Fix indentation.
1937 * nat/x86-dregs.c: Fix indentation.
1938 * nbsd-nat.c: Fix indentation.
1939 * nbsd-tdep.c: Fix indentation.
1940 * nios2-linux-tdep.c: Fix indentation.
1941 * nios2-tdep.c: Fix indentation.
1942 * nto-procfs.c: Fix indentation.
1943 * nto-tdep.c: Fix indentation.
1944 * objfiles.c: Fix indentation.
1945 * objfiles.h: Fix indentation.
1946 * opencl-lang.c: Fix indentation.
1947 * or1k-tdep.c: Fix indentation.
1948 * osabi.c: Fix indentation.
1949 * osabi.h: Fix indentation.
1950 * osdata.c: Fix indentation.
1951 * p-lang.c: Fix indentation.
1952 * p-typeprint.c: Fix indentation.
1953 * p-valprint.c: Fix indentation.
1954 * parse.c: Fix indentation.
1955 * ppc-linux-nat.c: Fix indentation.
1956 * ppc-linux-tdep.c: Fix indentation.
1957 * ppc-nbsd-nat.c: Fix indentation.
1958 * ppc-nbsd-tdep.c: Fix indentation.
1959 * ppc-obsd-nat.c: Fix indentation.
1960 * ppc-ravenscar-thread.c: Fix indentation.
1961 * ppc-sysv-tdep.c: Fix indentation.
1962 * ppc64-tdep.c: Fix indentation.
1963 * printcmd.c: Fix indentation.
1964 * proc-api.c: Fix indentation.
1965 * producer.c: Fix indentation.
1966 * producer.h: Fix indentation.
1967 * prologue-value.c: Fix indentation.
1968 * prologue-value.h: Fix indentation.
1969 * psymtab.c: Fix indentation.
1970 * python/py-arch.c: Fix indentation.
1971 * python/py-bpevent.c: Fix indentation.
1972 * python/py-event.c: Fix indentation.
1973 * python/py-event.h: Fix indentation.
1974 * python/py-finishbreakpoint.c: Fix indentation.
1975 * python/py-frame.c: Fix indentation.
1976 * python/py-framefilter.c: Fix indentation.
1977 * python/py-inferior.c: Fix indentation.
1978 * python/py-infthread.c: Fix indentation.
1979 * python/py-objfile.c: Fix indentation.
1980 * python/py-prettyprint.c: Fix indentation.
1981 * python/py-registers.c: Fix indentation.
1982 * python/py-signalevent.c: Fix indentation.
1983 * python/py-stopevent.c: Fix indentation.
1984 * python/py-stopevent.h: Fix indentation.
1985 * python/py-threadevent.c: Fix indentation.
1986 * python/py-tui.c: Fix indentation.
1987 * python/py-unwind.c: Fix indentation.
1988 * python/py-value.c: Fix indentation.
1989 * python/py-xmethods.c: Fix indentation.
1990 * python/python-internal.h: Fix indentation.
1991 * python/python.c: Fix indentation.
1992 * ravenscar-thread.c: Fix indentation.
1993 * record-btrace.c: Fix indentation.
1994 * record-full.c: Fix indentation.
1995 * record.c: Fix indentation.
1996 * reggroups.c: Fix indentation.
1997 * regset.h: Fix indentation.
1998 * remote-fileio.c: Fix indentation.
1999 * remote.c: Fix indentation.
2000 * reverse.c: Fix indentation.
2001 * riscv-linux-tdep.c: Fix indentation.
2002 * riscv-ravenscar-thread.c: Fix indentation.
2003 * riscv-tdep.c: Fix indentation.
2004 * rl78-tdep.c: Fix indentation.
2005 * rs6000-aix-tdep.c: Fix indentation.
2006 * rs6000-lynx178-tdep.c: Fix indentation.
2007 * rs6000-nat.c: Fix indentation.
2008 * rs6000-tdep.c: Fix indentation.
2009 * rust-lang.c: Fix indentation.
2010 * rx-tdep.c: Fix indentation.
2011 * s12z-tdep.c: Fix indentation.
2012 * s390-linux-tdep.c: Fix indentation.
2013 * score-tdep.c: Fix indentation.
2014 * ser-base.c: Fix indentation.
2015 * ser-mingw.c: Fix indentation.
2016 * ser-uds.c: Fix indentation.
2017 * ser-unix.c: Fix indentation.
2018 * serial.c: Fix indentation.
2019 * sh-linux-tdep.c: Fix indentation.
2020 * sh-nbsd-tdep.c: Fix indentation.
2021 * sh-tdep.c: Fix indentation.
2022 * skip.c: Fix indentation.
2023 * sol-thread.c: Fix indentation.
2024 * solib-aix.c: Fix indentation.
2025 * solib-darwin.c: Fix indentation.
2026 * solib-frv.c: Fix indentation.
2027 * solib-svr4.c: Fix indentation.
2028 * solib.c: Fix indentation.
2029 * source.c: Fix indentation.
2030 * sparc-linux-tdep.c: Fix indentation.
2031 * sparc-nbsd-tdep.c: Fix indentation.
2032 * sparc-obsd-tdep.c: Fix indentation.
2033 * sparc-ravenscar-thread.c: Fix indentation.
2034 * sparc-tdep.c: Fix indentation.
2035 * sparc64-linux-tdep.c: Fix indentation.
2036 * sparc64-nbsd-tdep.c: Fix indentation.
2037 * sparc64-obsd-tdep.c: Fix indentation.
2038 * sparc64-tdep.c: Fix indentation.
2039 * stabsread.c: Fix indentation.
2040 * stack.c: Fix indentation.
2041 * stap-probe.c: Fix indentation.
2042 * stubs/ia64vms-stub.c: Fix indentation.
2043 * stubs/m32r-stub.c: Fix indentation.
2044 * stubs/m68k-stub.c: Fix indentation.
2045 * stubs/sh-stub.c: Fix indentation.
2046 * stubs/sparc-stub.c: Fix indentation.
2047 * symfile-mem.c: Fix indentation.
2048 * symfile.c: Fix indentation.
2049 * symfile.h: Fix indentation.
2050 * symmisc.c: Fix indentation.
2051 * symtab.c: Fix indentation.
2052 * symtab.h: Fix indentation.
2053 * target-float.c: Fix indentation.
2054 * target.c: Fix indentation.
2055 * target.h: Fix indentation.
2056 * tic6x-tdep.c: Fix indentation.
2057 * tilegx-linux-tdep.c: Fix indentation.
2058 * tilegx-tdep.c: Fix indentation.
2059 * top.c: Fix indentation.
2060 * tracefile-tfile.c: Fix indentation.
2061 * tracepoint.c: Fix indentation.
2062 * tui/tui-disasm.c: Fix indentation.
2063 * tui/tui-io.c: Fix indentation.
2064 * tui/tui-regs.c: Fix indentation.
2065 * tui/tui-stack.c: Fix indentation.
2066 * tui/tui-win.c: Fix indentation.
2067 * tui/tui-winsource.c: Fix indentation.
2068 * tui/tui.c: Fix indentation.
2069 * typeprint.c: Fix indentation.
2070 * ui-out.h: Fix indentation.
2071 * unittests/copy_bitwise-selftests.c: Fix indentation.
2072 * unittests/memory-map-selftests.c: Fix indentation.
2073 * utils.c: Fix indentation.
2074 * v850-tdep.c: Fix indentation.
2075 * valarith.c: Fix indentation.
2076 * valops.c: Fix indentation.
2077 * valprint.c: Fix indentation.
2078 * valprint.h: Fix indentation.
2079 * value.c: Fix indentation.
2080 * value.h: Fix indentation.
2081 * varobj.c: Fix indentation.
2082 * vax-tdep.c: Fix indentation.
2083 * windows-nat.c: Fix indentation.
2084 * windows-tdep.c: Fix indentation.
2085 * xcoffread.c: Fix indentation.
2086 * xml-syscall.c: Fix indentation.
2087 * xml-tdesc.c: Fix indentation.
2088 * xstormy16-tdep.c: Fix indentation.
2089 * xtensa-config.c: Fix indentation.
2090 * xtensa-linux-nat.c: Fix indentation.
2091 * xtensa-linux-tdep.c: Fix indentation.
2092 * xtensa-tdep.c: Fix indentation.
2094 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2095 Craig Blackmore <craig.blackmore@embecosm.com>
2097 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2098 as an unsigned value.
2100 2020-11-01 Tom Tromey <tom@tromey.com>
2102 * dbxread.c (dbx_end_psymtab): Update.
2103 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2104 (build_type_psymtabs_reader): Update.
2105 * xcoffread.c (xcoff_end_psymtab): Update.
2106 * ctfread.c (scan_partial_symbols): Update.
2107 * psymtab.c (sort_pst_symbols): Remove.
2108 (partial_symtab::end): Rename from end_psymtab_common. Inline
2110 * psympriv.h (struct partial_symtab) <end>: New method.
2111 (end_psymtab_common): Don't declare.
2113 2020-11-01 Tom Tromey <tom@tromey.com>
2115 * symmisc.c (count_psyms): New function.
2116 (print_objfile_statistics): Use it.
2117 * psymtab.c (append_psymbol_to_list): Remove.
2118 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2119 * objfiles.h (struct objstats) <n_psyms>: Remove.
2121 2020-11-01 Tom Tromey <tom@tromey.com>
2123 * dbxread.c (dbx_end_psymtab): Update.
2124 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2125 (build_type_psymtabs_reader): Update.
2126 * xcoffread.c (xcoff_end_psymtab): Update.
2127 * ctfread.c (scan_partial_symbols): Update.
2128 * psympriv.h (end_psymtab_common): Update.
2129 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2130 (sort_pst_symbols): Likewise.
2132 2020-11-01 Tom Tromey <tom@tromey.com>
2134 * dbxread.c (dbx_symfile_read): Update.
2135 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2136 * xcoffread.c (xcoff_initial_scan): Update.
2137 * psympriv.h (init_psymbol_list): Don't declare.
2138 * psymtab.c (init_psymbol_list): Remove.
2140 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2142 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2143 gnat_encoded_fixed_type_info. Update all callers.
2145 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2147 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2150 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2152 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2153 cast_from_fixed. Update all callers.
2154 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2156 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2158 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2160 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2161 to print_gnat_encoded_fixed_point_type.
2162 * ada-valprint.c: Likewise.
2164 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2166 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2167 (debug_prefixed_printf): Add check of debug_displaced flag.
2168 * linux-nat.c (linux_nat_debug_printf): Add check of
2169 debug_linux_nat flag.
2171 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2173 * infrun.c (infrun_debug_printf_1): Remove.
2174 (displaced_debug_printf_1): Remove.
2175 (stop_all_threads): Use debug_prefixed_printf.
2176 * infrun.h (infrun_debug_printf_1): Remove.
2177 (infrun_debug_printf): Use debug_prefixed_printf.
2178 (displaced_debug_printf_1): Remove.
2179 (displaced_debug_printf): Use debug_prefixed_printf.
2180 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2181 (linux_nat_debug_printf): Use debug_prefixed_printf.
2183 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2185 * configure: Re-generate.
2186 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2189 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2191 * configure: Re-generate.
2193 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2195 * configure: Re-generate.
2197 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2199 * configure: Re-generate.
2201 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2203 * configure: Re-generate.
2205 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2207 * acinclude.m4: Modernize.
2208 * configure: Re-generate.
2210 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2212 * configure.ac: Modernize.
2213 * configure: Re-generate.
2215 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2217 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2218 * configure: Re-generate.
2219 * configure.ac: Remove AM_PROG_CC_STDC.
2221 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2223 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2224 AC_CANONICAL_SYSTEM.
2225 * configure: Re-generate.
2227 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
2229 * infrun.h (displaced_debug_printf): New macro. Replace
2230 displaced debug prints throughout to use it.
2231 (displaced_debug_printf_1): New declaration.
2232 (displaced_step_dump_bytes): Return string, remove ui_file
2233 parameter, update all callers.
2234 * infrun.c (displaced_debug_printf_1): New function.
2235 (displaced_step_dump_bytes): Return string, remove ui_file
2238 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2240 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2242 2020-10-30 Tom Tromey <tromey@adacore.com>
2244 * Makefile.in (stamp-init): Depend on config.status.
2246 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2248 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2250 2020-10-30 Pedro Alves <pedro@palves.net>
2252 * thread.c (lookup_selected_frame): Move ...
2253 * frame.c (lookup_selected_frame): ... here.
2255 2020-10-30 Pedro Alves <pedro@palves.net>
2257 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2259 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2260 Use save_selected_frame. Save language as well.
2261 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2262 Use restore_selected_frame, and restore language as well.
2263 (selected_frame_id, selected_frame_level): New.
2264 (selected_frame): Update comments.
2265 (save_selected_frame, restore_selected_frame): New.
2266 (get_selected_frame): Use lookup_selected_frame.
2267 (get_selected_frame_if_set): Delete.
2268 (select_frame): Record selected_frame_level and selected_frame_id.
2269 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2271 (get_selected_frame): Make 'message' parameter optional.
2272 (get_selected_frame_if_set): Delete declaration.
2273 (select_frame): Update comments.
2274 (save_selected_frame, restore_selected_frame)
2275 (lookup_selected_frame): Declare.
2276 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2277 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2279 (save_infcall_control_state): Use save_selected_frame.
2280 (restore_selected_frame): Delete.
2281 (restore_infcall_control_state): Use restore_selected_frame.
2282 * stack.c (select_frame_command_core, frame_command_core): Use
2284 * thread.c (restore_selected_frame): Rename to ...
2285 (lookup_selected_frame): ... this and make extern. Select the
2286 current frame if the frame level is -1.
2287 (scoped_restore_current_thread::restore): Also restore the
2289 (scoped_restore_current_thread::~scoped_restore_current_thread):
2291 (scoped_restore_current_thread::scoped_restore_current_thread):
2292 Save the language as well. Use save_selected_frame.
2294 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2296 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2298 * gdbarch.h: Re-generate.
2300 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2302 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2304 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2306 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2308 * arch-utils.c (default_displaced_step_hw_singlestep):
2310 * arch-utils.h (default_displaced_step_hw_singlestep):
2312 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2314 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2316 * gdbarch.c: Re-generate.
2317 * gdbarch.h: Re-generate.
2318 * infrun.c (resume_1): Adjust.
2320 2020-10-29 Tom Tromey <tom@tromey.com>
2322 * progspace.c (program_space::~program_space): Don't call
2325 2020-10-29 Tom Tromey <tom@tromey.com>
2327 * exec.c (exec_target::close): Don't change current program
2330 2020-10-29 Tom Tromey <tom@tromey.com>
2332 * symfile.c (add_symbol_file_command): Update.
2333 * exec.c (program_space::add_target_sections): Rename.
2334 * symfile-mem.c (symbol_file_add_from_memory): Update.
2335 * progspace.h (struct program_space) <add_target_sections>:
2336 Declare new overload.
2337 * exec.h (add_target_sections_of_objfile): Don't declare.
2339 2020-10-29 Tom Tromey <tom@tromey.com>
2341 * solib.c (solib_map_sections): Update.
2342 * exec.c (program_space::add_target_sections): Now a method.
2343 (exec_file_attach): Update.
2344 * exec.h (add_target_sections): Don't declare.
2345 * progspace.h (struct program_space) <add_target_sections>:
2348 2020-10-29 Tom Tromey <tom@tromey.com>
2350 * progspace.h (struct program_space) <remove_target_sections>:
2352 * exec.c (program_space::remove_target_sections): Now a method.
2353 * exec.h (remove_target_sections): Don't declare.
2355 2020-10-29 Tom Tromey <tom@tromey.com>
2357 * inferior.c (delete_inferior): Update.
2358 * progspace.c (program_space::empty): Rename from
2359 program_space_empty_p. Return bool.
2360 * progspace.h (struct program_space) <empty>: New method.
2361 (program_space_empty_p): Don't declare.
2363 2020-10-29 Tom Tromey <tom@tromey.com>
2365 * progspace.c (program_space::~program_space): Don't call
2366 clear_program_space_solib_cache.
2367 (program_space::clear_solib_cache): Rename from
2369 * solib.c (handle_solib_event): Update.
2370 * progspace.h (struct program_space) <clear_solib_cache>: New
2372 (clear_program_space_solib_cache): Don't declare.
2374 2020-10-29 Tom Tromey <tom@tromey.com>
2376 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2377 * target.c (info_target_command): Update.
2378 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2379 (symbol_file_clear, reread_symbols): Update.
2380 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2381 * stabsread.c (scan_file_globals): Update.
2382 * solib.c (update_solib_list): Update.
2383 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2384 (svr4_fetch_objfile_link_map, enable_break)
2385 (svr4_relocate_main_executable)
2386 (svr4_iterate_over_objfiles_in_search_order): Update.
2387 * solib-frv.c (lm_base, enable_break)
2388 (frv_relocate_main_executable): Update.
2389 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2390 (frv_fetch_objfile_link_map): Update.
2391 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2392 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2393 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2394 * remote.c (remote_target::get_offsets): Update.
2395 (remote_target::start_remote)
2396 (extended_remote_target::post_attach): Update.
2397 * objfiles.c (entry_point_address_query): Update.
2398 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2399 * minsyms.c (get_symbol_leading_char): Update.
2400 * frame.c (inside_main_func): Update.
2401 * progspace.h (symfile_objfile): Remove macro.
2403 2020-10-29 Tom Tromey <tom@tromey.com>
2405 * exec.c (exec_file_attach): Update.
2406 * progspace.c (program_space::exec_close): Update.
2407 * progspace.h (struct program_space) <ebfd>: Now a
2409 <set_exec_bfd>: Change argument type.
2412 2020-10-29 Tom Tromey <tom@tromey.com>
2414 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2415 * symfile.c (reread_symbols): Update.
2416 * symfile-mem.c (add_symbol_file_from_memory_command)
2417 (add_vsyscall_page): Update.
2418 * source-cache.c (source_cache::get_plain_source_lines): Update.
2419 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2420 (svr4_current_sos_direct, svr4_exec_displacement)
2421 (svr4_relocate_main_executable): Update.
2422 (svr4_iterate_over_objfiles_in_search_order): Update.
2423 * solib-frv.c (enable_break2, enable_break): Update.
2424 * solib-dsbt.c (lm_base, enable_break): Update.
2425 * solib-darwin.c (find_program_interpreter)
2426 (darwin_solib_create_inferior_hook): Update.
2427 * sol-thread.c (rw_common, ps_pdmodel): Update.
2428 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2429 * remote.c (compare_sections_command)
2430 (remote_target::trace_set_readonly_regions): Update.
2431 * remote-sim.c (get_sim_inferior_data)
2432 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2433 (gdbsim_target_open, gdbsim_target::files_info): Update.
2434 * exec.h (exec_bfd): Remove macro.
2435 * progspace.c (initialize_progspace): Update.
2436 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2438 * nto-procfs.c (nto_procfs_target::post_attach)
2439 (nto_procfs_target::create_inferior): Update.
2440 * maint.c (maintenance_info_sections): Update.
2441 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2443 * infcmd.c (post_create_inferior): Update.
2444 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2445 (objfile_find_memory_regions): Update.
2446 * exec.c (validate_exec_file, exec_file_attach)
2447 (exec_read_partial_read_only, print_section_info): Update.
2448 * corelow.c (core_target_open): Update.
2449 * corefile.c (reopen_exec_file, validate_files): Update.
2450 * arm-tdep.c (gdb_print_insn_arm): Update.
2451 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2452 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2455 2020-10-29 Tom Tromey <tom@tromey.com>
2457 * progspace.h (current_target_sections): Remove macro.
2458 * solib-svr4.c (scan_dyntag): Update.
2459 * solib-dsbt.c (scan_dyntag): Update.
2460 * exec.c (exec_target::close): Update.
2461 (add_target_sections, add_target_sections_of_objfile)
2462 (remove_target_sections, exec_target::get_section_table)
2463 (exec_target::files_info, set_section_command)
2464 (exec_set_section_address, exec_target::has_memory)
2465 (exec_target::has_memory): Update.
2467 2020-10-29 Tom Tromey <tom@tromey.com>
2469 * source-cache.c (source_cache::get_plain_source_lines): Use
2470 current_program_space.
2471 * corefile.c (reopen_exec_file): Use current_program_space.
2472 * exec.c (exec_file_attach): Use current_program_space.
2473 * exec.h (exec_bfd_mtime): Remove.
2475 2020-10-29 Tom Tromey <tom@tromey.com>
2477 * gcore.c (default_gcore_mach): Remove.
2478 (create_gcore_bfd): Update.
2480 2020-10-29 Tom Tromey <tom@tromey.com>
2482 * progspace.c (program_space::exec_close): New method, from
2483 exec_close in exec.c.
2484 * exec.c (exec_close): Move to progspace.c.
2485 (exec_target::close, exec_file_attach): Update.
2486 * progspace.h (struct program_space) <exec_close>: Declare
2489 2020-10-29 Tom Tromey <tom@tromey.com>
2491 * progspace.h (struct program_space) <exec_filename>: Rename from
2492 pspace_exec_filename. Now a unique_xmalloc_ptr.
2493 * inferior.c (print_selected_inferior): Update.
2494 (print_inferior): Update.
2495 * mi/mi-main.c (print_one_inferior): Update.
2496 * exec.h (exec_filename): Remove macro.
2497 * corefile.c (get_exec_file): Update.
2498 * exec.c (exec_close): Update.
2499 (exec_file_attach): Update.
2500 * progspace.c (clone_program_space): Update.
2501 (print_program_space): Update.
2503 2020-10-29 Tom Tromey <tom@tromey.com>
2505 * target-section.h (struct target_section): Add constructor.
2506 * exec.c (build_section_table, add_target_sections_of_objfile):
2508 * corelow.c (core_target::build_file_mappings): Update.
2510 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2513 * inferior.c (detach_inferior_command): Restore the current thread.
2514 (kill_inferior_command): Ditto.
2516 2020-10-28 Tom de Vries <tdevries@suse.de>
2519 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2520 map, check it in the "best match" loop.
2522 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2524 * m32c-tdep.c: Remove unused includes.
2526 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2528 * xtensa-tdep.c: Remove includes.
2530 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2532 * breakpoint.c (struct condition_command_opts): New struct.
2533 (condition_command_option_defs): New static global.
2534 (make_condition_command_options_def_group): New function.
2535 (condition_completer): Update to consider the '-force' flag.
2536 (condition_command): Use gdb::option for the '-force' flag.
2538 2020-10-27 Tom de Vries <tdevries@suse.de>
2540 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2541 symbols in section check.
2543 2020-10-27 Tom de Vries <tdevries@suse.de>
2545 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2547 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2549 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2550 * breakpoint.c: Update the help text of the 'condition' and 'break'
2552 (set_breakpoint_condition): Take a new bool parameter
2553 to control whether condition definition should be forced even when
2554 the condition expression is invalid in all of the current locations.
2555 (condition_command): Update the call to 'set_breakpoint_condition'.
2556 (find_condition_and_thread): Take the "-force-condition" flag into
2558 * linespec.c (linespec_keywords): Add "-force-condition" as an
2560 (FORCE_KEYWORD_INDEX): New #define.
2561 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2563 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2564 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2565 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2566 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2568 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2570 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2571 * breakpoint.c (set_breakpoint_location_condition): New function.
2572 (set_breakpoint_condition): Disable a breakpoint location if parsing
2573 the condition string gives an error.
2574 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2575 (build_target_condition_list): Ditto.
2576 (build_target_command_list): Ditto.
2577 (build_bpstat_chain): Ditto.
2578 (print_one_breakpoint_location): Ditto.
2579 (print_one_breakpoint): Ditto.
2580 (breakpoint_1): Ditto.
2581 (bp_location::bp_location): Ditto.
2582 (locations_are_equal): Ditto.
2583 (update_breakpoint_locations): Ditto.
2584 (enable_disable_bp_num_loc): Ditto.
2585 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2586 (find_condition_and_thread_for_sals): New static function.
2587 (create_breakpoint): Call find_condition_and_thread_for_sals.
2588 (location_to_sals): Call find_condition_and_thread_for_sals instead
2589 of find_condition_and_thread.
2591 2020-10-26 Tom de Vries <tdevries@suse.de>
2593 * dwarf2/read.c (process_full_comp_unit): Call
2594 dwarf2_find_base_address.
2596 2020-10-26 Tom Tromey <tromey@adacore.com>
2598 * gdbtypes.c (create_range_type): Revert previous patch. Add
2601 2020-10-26 Pedro Alves <pedro@palves.net>
2603 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2604 (my_waitpid): Use gdb::handle_eintr.
2606 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2608 * acinclude.m4: Update ptrace.m4 path.
2609 * ptrace.m4: Moved to gdbsupport.
2611 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2613 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2614 instead of target_gdbarch.
2616 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2618 * jit.c (jit_reader_load_command): Pass current inferior.
2619 (jit_inferior_init): Change parameter type to inferior, use it.
2620 (jit_inferior_created): Remove.
2621 (jit_inferior_created_hook): Pass inferior parameter down.
2622 (_initialize_jit): Use jit_inferior_created_hook instead of
2623 jit_inferior_created.
2624 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2625 * infrun.c (follow_exec): Pass inferior to
2626 jit_inferior_created_hook.
2628 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2630 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2631 parameter and use it.
2632 (thread_db_inferior_created): Pass inferior argument.
2634 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2636 * aix-thread.c (aix_thread_inferior_created): Add inferior
2638 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2639 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2640 * jit.c (jit_inferior_created): Likewise.
2641 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2642 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2643 * observable.h (inferior_created): Likewise.
2644 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2645 * symfile-mem.c (add_vsyscall_page): Likewise.
2646 * infcmd.c (post_create_inferior): Pass inferior argument.
2648 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2652 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2654 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2655 to ada_check_typedef.
2657 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2659 * f-exp.y (f_parse): Rename to...
2660 (f_language::parser): ...this.
2661 * f-lang.c (f_get_encoding): Rename to...
2662 (f_language::get_encoding): ...this.
2663 (f_op_print_tab): Rename to...
2664 (f_language::op_print_tab): ...this.
2665 (exp_descriptor_f): Rename to...
2666 (f_language::exp_descriptor_tab): ...this.
2667 (class f_language): Moved to f-lang.h.
2668 (f_language::language_arch_info): New function, moved out of class
2670 (f_language::search_name_hash): Likewise.
2671 (f_language::lookup_symbol_nonlocal): Likewise.
2672 (f_language::get_symbol_name_matcher_inner): Likewise.
2673 * f-lang.h: Add 'valprint.h' include.
2674 (class f_language): Moved here from f-lang.c.
2675 * f-typeprint.c (f_type_print_args): Delete commented out
2677 (f_print_typedef): Rename to...
2678 (f_language::print_typedef): ...this.
2679 (f_print_type): Rename to...
2680 (f_language::print_type): ...this.
2681 (f_type_print_varspec_prefix): Delete declaration and rename to...
2682 (f_language::f_type_print_varspec_prefix): ...this.
2683 (f_type_print_varspec_suffix): Delete declaration and rename to...
2684 (f_language::f_type_print_varspec_suffix): ...this.
2685 (f_type_print_base): Delete declaration and rename to...
2686 (f_language::f_type_print_base): ...this.
2687 * f-valprint.c (f_value_print_inner): Rename to...
2688 (f_language::value_print_inner): ...this.
2689 * parse.c: Delete 'f-lang.h' include.
2691 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2693 * language.h (language_defn::print_type): Add variable names in
2694 declaration, and update header comment.
2696 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2698 * ada-lang.c (ada_language::demangle): Rename to...
2699 (ada_language::demangle_symbol): ...this.
2700 * c-lang.c (cplus_language::demangle): Rename to...
2701 (cplus_language::demangle_symbol): ...this.
2702 * d-lang.c (d_language::demangle): Rename to...
2703 (d_language::demangle_symbol): ...this.
2704 * f-lang.c (f_language::demangle): Rename to...
2705 (f_language::demangle_symbol): ...this.
2706 * go-lang.c (go_language::demangle): Rename to...
2707 (go_language::demangle_symbol): ...this.
2708 * language.c (language_demangle): Update call to demangle_symbol.
2709 (auto_or_unknown_language::demangle): Rename to...
2710 (auto_or_unknown_language::demangle_symbol): ...this.
2711 * language.h (language_defn::demangle): Rename to...
2712 (language_defn::demangle_symbol): ...this.
2713 * objc-lang.c (objc_language::demangle): Rename to...
2714 (objc_language::demangle_symbol): ...this.
2715 * rust-lang.c (rust_language::demangle): Rename to...
2716 (rust_language::demangle_symbol): ...this.
2718 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2720 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2721 (iterate_over_file_blocks): Replace use of macro with the macros
2724 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2726 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2727 * valprint.c (maybe_print_array_index): Replace use of macro with
2728 the macros definition.
2730 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2732 * ada-lang.c (ada_language::print_array_index): Call value_print
2734 * language.c (language_defn::print_array_index): Likewise.
2735 * language.h (LA_VALUE_PRINT): Delete.
2736 * valprint.c (value_print): Call value_print on the
2737 current_language directly.
2739 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2741 * language.h (LA_PRINT_TYPEDEF): Delete.
2742 * typeprint.c (typedef_print): Call print_typedef directly on the
2743 current_language object.
2745 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2747 * m2-exp.y (m2_parse): Rename to...
2748 (m2_language::parser): ...this. Update function signature.
2749 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2750 (m2_op_print): Rename to...
2751 (m2_language::op_print_tab): ...this, and make const.
2752 (exp_descriptor_modula2): Rename to...
2753 (m2_language::exp_descriptor_modula2): ...this.
2754 (class m2_language): Move to m2-lang.h.
2755 (m2_language::language_arch_info): New function, moved out of
2757 (m2_language::printchar): New function, body from m2_printchar.
2758 (m2_language::printstr): New function, moved out of class
2760 (m2_language::emitchar): Likewise.
2761 * m2-lang.h (m2_parse): Delete declaration.
2762 (m2_print_typedef): Delete declaration.
2763 (m2_value_print_inner): Delete declaration.
2764 (class m2_language): Class declaration moved from m2-lang.c,
2765 larger functions are left in m2-lang.c.
2766 * m2-typeprint.c (m2_print_typedef): Rename to...
2767 (m2_language::print_typedef): ...this, and update function
2769 * m2-valprint.c (m2_value_print_inner): Rename to...
2770 (m2_language::value_print_inner): ...this, replace use of
2771 LA_PRINT_STRING with a direct call to printstr member function,
2772 and update recursive call.
2774 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2776 * language.c (default_is_string_type_p): Delete, implementation
2777 moved into auto_or_unknown_language::is_string_type_p.
2778 (unk_op_print_tab): Moved into
2779 auto_or_unknown_language::opcode_print_table.
2780 (unknown_language_arch_info): Delete, implementation moved into
2781 auto_or_unknown_language::language_arch_info.
2782 (class auto_or_unknown_language): New class, member functions
2783 copied from unknown_language class, with some updates.
2784 (class unknown_language): Most member functions moved into
2785 auto_or_unknown_language class. Inherit from
2786 auto_or_unknown_language class.
2787 (class auto_language): Inherit from auto_or_unknown_language.
2788 Delete most member functions.
2790 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2792 * stabsread.c (read_member_functions): Remove gdb_assert.
2794 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2796 * gdbtypes.c (init_complex_type): Check target type name.
2798 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2800 * target-debug.h (target_debug_print_struct_target_ops_p):
2802 (target_debug_print_async_callback_ftype_p): Remove.
2803 (target_debug_print_struct_trace_state_variable_p): Remove.
2804 (target_debug_print_struct_traceframe_info_p): Remove.
2805 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2806 (target_debug_print_enum_btrace_format): Remove.
2807 (target_debug_print_enum_info_proc_what): Remove.
2808 (target_debug_print_thread_info_pp): Remove.
2810 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2812 * target.h (struct target_ops) <make_corefile_notes>:
2813 Change return type to unique pointer.
2814 * target.c (dummy_make_corefile_notes): Likewise.
2815 * exec.c (struct exec_target) <make_corefile_notes>:
2817 (exec_target::make_corefile_notes): Likewise.
2818 * procfs.c (class procfs_target) <make_corefile_notes>:
2820 (procfs_do_thread_registers): Adjust to unique pointer.
2821 (struct procfs_corefile_thread_data): Add constructor.
2822 <note_data>: Change type to unique pointer.
2823 (procfs_corefile_thread_callback): Adjust to unique pointer.
2824 (procfs_target::make_corefile_notes): Change return type to
2826 * target-delegates.c: Re-generate.
2827 * gcore.c (write_gcore_file_1): Adjust.
2828 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2831 2020-10-22 Tom de Vries <tdevries@suse.de>
2833 * block.c (find_block_in_blockvector): Make sure the returned block
2836 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2839 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2841 (load_cu): Pass existing CU.
2842 (process_imported_unit_die): Likewise.
2843 (follow_die_offset): Likewise.
2845 2020-10-22 Luis Machado <luis.machado@linaro.org>
2847 * corelow.c (core_target::xfer_partial): Also check for an empty
2848 m_core_unavailable_mappings vector.
2850 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2852 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2853 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2854 * f-exp.y (arglist): Allow for a series of subranges.
2855 (subrange): Add cases for subranges with strides.
2856 * f-lang.c (value_f90_subarray): Catch use of array strides and
2858 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2860 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2862 * expprint.c (print_subexp_standard): Change enum range_type to
2863 range_flag and rename variables to match.
2864 (dump_subexp_body_standard): Likewise.
2865 * expression.h (enum range_type): Rename to...
2866 (enum range_flag): ...this.
2867 (range_types): Rename to...
2868 (range_flags): ...this.
2869 * f-lang.c (value_f90_subarray): Change enum range_type to
2870 range_flag and rename variables to match.
2871 * parse.c (operator_length_standard): Likewise.
2872 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2873 range_type to range_flag.
2874 * rust-lang.c (rust_evaluate_funcall): Likewise.
2875 (rust_range): Likewise.
2876 (rust_compute_range): Likewise.
2877 (rust_subscript): Likewise.
2879 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2881 * expprint.c (print_subexp_standard): Update to reflect changes to
2883 (dump_subexp_body_standard): Likewise.
2884 * expression.h (enum range_type): Convert to a bit field enum, and
2885 make the enum unsigned.
2886 * f-exp.y (subrange): Update to reflect changes to enum
2888 * f-lang.c (value_f90_subarray): Likewise.
2889 * parse.c (operator_length_standard): Likewise.
2890 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2891 * rust-lang.c (rust_range): Likewise.
2892 (rust_compute_range): Likewise.
2893 (rust_subscript): Likewise.
2895 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2897 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2898 (displaced_step_in_progress): Fix comment.
2900 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2902 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2903 * gdbarch.c: Re-generate.
2904 * gdbarch.h: Re-generate.
2905 * gcore.c (write_gcore_file_1): Adjust.
2906 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2908 <note_data>: Change type to unique pointer.
2909 <abort_iteration>: Change type to bool.
2910 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2911 (fbsd_collect_thread_registers): Return void, adjust.
2912 (struct fbsd_corefile_thread_data): Add construtor.
2913 <note_data>: Change type to unique pointer.
2914 (fbsd_corefile_thread): Adjust.
2915 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2916 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2917 to unique pointer, adjust.
2918 (struct linux_collect_regset_section_cb_data): Add constructor.
2919 <note_data>: Change type to unique pointer.
2920 <abort_iteration>: Change type to bool.
2921 (linux_collect_thread_registers): Return void, adjust.
2922 (struct linux_corefile_thread_data): Add constructor.
2923 <note_data>: Change type to unique pointer.
2924 (linux_corefile_thread): Adjust.
2925 (linux_make_corefile_notes): Return unique pointer, adjust.
2927 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2929 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2930 * gdbarch.c: Re-generate.
2931 * gdbarch.h: Re-generate.
2932 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2934 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2936 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2937 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2938 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2939 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2941 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2943 * gdbarch.sh: Make generated predicates return bool.
2944 * gdbarch.c: Re-generate.
2945 * gdbarch.h: Re-generate.
2947 2020-10-20 Tom Tromey <tom@tromey.com>
2949 * varobj-iter.h (struct varobj_item): Remove typedef.
2951 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2953 * infrun.c (currently_stepping): Change int to bool
2954 (maybe_software_singlestep): Likewise.
2955 (show_stop_on_solib_events): Likewise.
2956 (stepping_past_nonsteppable_watchpoint): Likewise.
2957 (displaced_step_in_progress_any_inferior): Likewise.
2958 (displaced_step_in_progress_thread): Likewise.
2959 (keep_going_stepped_thread): Likewise.
2960 (thread_still_needs_step_over): Likewise.
2961 (start_step_over): Likewise.
2962 (do_target_resume): Likewise.
2963 (resume_1): Likewise.
2964 (clear_proceed_status): Likewise.
2965 (thread_still_needs_step_over_bp): Likewise.
2966 (proceed): Likewise.
2967 (switch_back_to_stepped_thread): Likewise.
2968 (adjust_pc_after_break): Likewise.
2969 (stepped_in_from): Likewise.
2970 (handle_stop_requested): Likewise.
2971 (handle_syscall_event): Likewise.
2972 (handle_no_resumed): Likewise.
2973 (handle_inferior_event): Likewise.
2974 (finish_step_over): Likewise.
2975 (handle_signal_stop): Likewise.
2976 (process_event_stop_test): Likewise.
2978 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2980 * infrun.c (get_displaced_stepping_state): Fix comment.
2982 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2984 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2986 2020-10-19 Tom Tromey <tromey@adacore.com>
2989 * tui/tui-winsource.h (struct tui_source_window_base)
2990 <refresh_window>: Rename from refresh_pad.
2991 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2992 Rename from refresh_pad.
2993 (tui_source_window_base::show_source_content)
2994 (tui_source_window_base::do_scroll_horizontal): Update.
2996 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2998 * thread.c (_initialize_thread): Fine-tune the help text of
3001 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3003 * frame.c: Remove the unused 'uinteger_option_def' type alias.
3005 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
3007 * breakpoint.c (handle_jit_event): Add an argument, change how
3008 `jit_event_handler` is called.
3010 2020-10-17 Tom Tromey <tom@tromey.com>
3012 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
3013 (scan_xcoff_symtab): Update.
3014 * psymtab.h (class psymtab_storage) <global_psymbols,
3015 static_psymbols, current_global_psymbols,
3016 current_static_psymbols>: Remove.
3017 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
3018 (match_partial_symbol, lookup_partial_symbol): Update.
3019 (print_partial_symbols): Change parameters.
3020 (dump_psymtab, recursively_search_psymtabs)
3021 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
3022 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
3024 (end_psymtab_common): Simplify.
3025 (append_psymbol_to_list): Change parameters.
3026 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
3027 (init_psymbol_list): Simplify.
3028 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3029 * psympriv.h (struct partial_symtab) <empty>: New method.
3030 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
3032 <global_psymbols, static_psymbols>: New members.
3033 <add_psymbol>: New methods.
3034 (add_psymbol_to_list): Don't declare.
3035 (psymbol_placement): Move earlier.
3036 * mdebugread.c (parse_partial_symbols): Update.
3037 (handle_psymbol_enumerators): Change parameters.
3038 (mdebug_expand_psymtab): Update.
3039 * dwarf2/read.c (process_psymtab_comp_unit_reader)
3040 (add_partial_symbol): Update.
3041 * dwarf2/index-write.c (write_psymbols): Change parameters.
3042 (write_one_signatured_type): Update.
3043 (recursively_count_psymbols): Update.
3044 (recursively_write_psymbols): Update.
3045 (class debug_names) <recursively_write_psymbols>: Update.
3046 <write_psymbols>: Change parameters.
3047 <write_one_signatured_type>: Update.
3048 * dbxread.c (read_dbx_symtab): Update.
3049 (dbx_end_psymtab): Use partial_symtab::empty.
3050 * ctfread.c (struct ctf_context) <pst>: New member.
3051 (create_partial_symtab): Set it.
3052 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
3053 (scan_partial_symbols): Use the psymtab's context. Update.
3055 2020-10-17 Tom Tromey <tom@tromey.com>
3057 * valprint.c (generic_value_print): Remove comment.
3058 * m2-valprint.c (m2_value_print_inner): Remove comment.
3059 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
3062 2020-10-17 Tom de Vries <tdevries@suse.de>
3065 * source.c (select_source_symtab): Handling sal.symtab == NULL for
3068 2020-10-14 Tom de Vries <tdevries@suse.de>
3071 * solib.c (solib_contains_address_p): Handle
3072 'solib->sections == nullptr'.
3074 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3077 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3078 target can't do async.
3079 * target.c (target_wait): Assert that we don't pass
3080 TARGET_WNOHANG to a target that can't async.
3082 2020-10-13 Kamil Rytarowski <n54@gmx.com>
3084 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3085 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3086 * alpha-bsd-nat.c: Adjust include.
3087 * alpha-bsd-tdep.h: Adjust comment.
3088 * alpha-nbsd-tdep.c: Rename to ...
3089 * alpha-netbsd-tdep.c: ... this, adjust include.
3090 * amd64-nbsd-nat.c: Rename to ...
3091 * amd64-netbsd-nat.c: ... this, adjust include.
3092 * amd64-nbsd-tdep.c: Rename to ...
3093 * amd64-netbsd-tdep.c: ... this, adjust include.
3094 * amd64-tdep.h: Adjust include.
3095 * arm-nbsd-nat.c: Rename to ...
3096 * arm-netbsd-nat.c: ... this, adjust include.
3097 * arm-nbsd-tdep.c: Rename to ...
3098 * arm-netbsd-tdep.c: ... this, adjust include.
3099 * arm-nbsd-tdep.h: Rename to ...
3100 * arm-netbsd-tdep.h: ... this, adjust include.
3101 * configure.nat: Adjust file lists.
3102 * configure.tgt: Likewise.
3103 * hppa-nbsd-nat.c: Rename to ...
3104 * hppa-netbsd-nat.c: ... this, adjust include.
3105 * hppa-nbsd-tdep.c: Rename to ...
3106 * hppa-netbsd-tdep.c: ... this, adjust include.
3107 * i386-nbsd-nat.c: Rename to ...
3108 * i386-netbsd-nat.c: ... this, adjust include.
3109 * i386-nbsd-tdep.c: Rename to ...
3110 * i386-netbsd-tdep.c: ... this, adjust include.
3111 * m68k-bsd-nat.c: Adjust include.
3112 * mips-nbsd-nat.c: Rename to ...
3113 * mips-netbsd-nat.c: ... this, adjust include.
3114 * mips-nbsd-tdep.c: Rename to ...
3115 * mips-netbsd-tdep.c: ... this, adjust include.
3116 * mips-nbsd-tdep.h: Rename to ...
3117 * mips-netbsd-tdep.h: ... this.
3118 * nbsd-nat.c: Rename to ...
3119 * netbsd-nat.c: ... this, adjust include.
3120 * nbsd-nat.h: Rename to ...
3121 * netbsd-nat.h: ... this, adjust include.
3122 * nbsd-tdep.c: Rename to ...
3123 * netbsd-tdep.c: ... this, adjust include.
3124 * nbsd-tdep.h: Rename to ...
3125 * netbsd-tdep.h: ... this.
3126 * ppc-nbsd-nat.c: Rename to ...
3127 * ppc-netbsd-nat.c: ... this, adjust include.
3128 * ppc-nbsd-tdep.c: Rename to ...
3129 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3130 * ppc-nbsd-tdep.h: Rename to ...
3131 * ppc-netbsd-tdep.h: ... this.
3132 * sh-nbsd-nat.c: Rename to ...
3133 * sh-netbsd-nat.c: ... this, adjust include.
3134 * sh-nbsd-tdep.c: Rename to ...
3135 * sh-netbsd-tdep.c: ... this, adjust include.
3136 * sparc-nbsd-nat.c: Rename to ...
3137 * sparc-netbsd-nat.c: ... this.
3138 * sparc-nbsd-tdep.c: Rename to ...
3139 * sparc-netbsd-tdep.c: ... this, adjust include.
3140 * sparc64-nbsd-nat.c: Rename to ...
3141 * sparc64-netbsd-nat.c: ... this.
3142 * sparc64-nbsd-tdep.c: Rename to ...
3143 * sparc64-netbsd-tdep.c: ... this, adjust include.
3144 * sparc64-tdep.h: Adjust comment.
3145 * vax-bsd-nat.c: Adjust include.
3146 * vax-nbsd-tdep.c: Rename to ...
3147 * vax-netbsd-tdep.c: ... this, adjust include.
3149 2020-10-12 Tom Tromey <tom@tromey.com>
3151 * target.h (struct target_ops) <get_section_table>: Update.
3152 (target_get_section_table): Update.
3153 * target.c (target_get_section_table, target_section_by_addr)
3154 (memory_xfer_partial_1): Update.
3155 * target-section.h (target_section_table): Now an alias.
3156 * target-delegates.c: Rebuild.
3157 * target-debug.h (target_debug_print_target_section_table_p):
3158 Rename from target_debug_print_struct_target_section_table_p.
3159 * symfile.c (build_section_addr_info_from_section_table): Update.
3160 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3161 * solib-svr4.c (scan_dyntag): Update.
3162 * solib-dsbt.c (scan_dyntag): Update.
3163 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3165 * record-full.c (record_full_core_target::xfer_partial): Update.
3166 * progspace.h (struct program_space) <target_sections>: Update.
3167 * exec.h (print_section_info): Update.
3168 * exec.c (exec_target::close, build_section_table)
3169 (add_target_sections, add_target_sections_of_objfile)
3170 (remove_target_sections, exec_on_vfork)
3171 (section_table_available_memory)
3172 (section_table_xfer_memory_partial)
3173 (exec_target::get_section_table, exec_target::xfer_partial)
3174 (print_section_info, set_section_command)
3175 (exec_set_section_address, exec_target::has_memory): Update.
3176 * corelow.c (core_target::build_file_mappings)
3177 (core_target::xfer_partial, core_target::info_proc_mappings)
3178 (core_target::info_proc_mappings): Update.
3179 * bfd-target.c (class target_bfd): Update
3181 2020-10-12 Tom Tromey <tom@tromey.com>
3183 * progspace.c (program_space::~program_space): Don't call
3184 clear_section_table.
3185 * exec.h (clear_section_table): Don't declare.
3186 * exec.c (exec_target::close): Update.
3187 (clear_section_table): Remove.
3189 2020-10-12 Tom Tromey <tom@tromey.com>
3191 * exec.c (add_target_sections_of_objfile): Simplify.
3193 2020-10-12 Tom Tromey <tom@tromey.com>
3195 * solib.c (solib_map_sections): Update.
3196 * record-full.c (record_full_core_open_1): Update.
3197 * exec.h (build_section_table): Return a target_section_table.
3198 * exec.c (exec_file_attach): Update.
3199 (build_section_table): Return a target_section_table.
3200 * corelow.c (core_target::core_target): Update.
3201 * bfd-target.c (target_bfd::target_bfd): Update.
3203 2020-10-12 Tom Tromey <tom@tromey.com>
3205 * target.c (target_section_by_addr, memory_xfer_partial_1):
3207 * target-section.h (struct target_section_table): Use
3209 * symfile.h (build_section_addr_info_from_section_table): Take a
3210 target_section_table.
3211 * symfile.c (build_section_addr_info_from_section_table): Take a
3212 target_section_table.
3213 * solist.h (struct so_list) <sections>: Change type.
3214 <sections_end>: Remove.
3215 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3216 (solib_contains_address_p): Update.
3217 * solib-svr4.c (scan_dyntag): Update.
3218 * solib-dsbt.c (scan_dyntag): Update.
3219 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3221 * record-full.c (record_full_core_start, record_full_core_end):
3223 (record_full_core_sections): New global.
3224 (record_full_core_open_1, record_full_core_target::xfer_partial):
3226 * exec.h (build_section_table, section_table_xfer_memory_partial)
3227 (add_target_sections): Take a target_section_table.
3228 * exec.c (exec_file_attach, clear_section_table): Update.
3229 (resize_section_table): Remove.
3230 (build_section_table, add_target_sections): Take a
3231 target_section_table.
3232 (add_target_sections_of_objfile, remove_target_sections)
3233 (exec_on_vfork): Update.
3234 (section_table_available_memory): Take a target_section_table.
3235 (section_table_read_available_memory): Update.
3236 (section_table_xfer_memory_partial): Take a target_section_table.
3237 (print_section_info, set_section_command)
3238 (exec_set_section_address, exec_target::has_memory): Update.
3239 * corelow.c (class core_target) <m_core_section_table,
3240 m_core_file_mappings>: Remove braces.
3241 <~core_target>: Remove.
3242 (core_target::core_target): Update.
3243 (core_target::~core_target): Remove.
3244 (core_target::build_file_mappings)
3245 (core_target::xfer_memory_via_mappings)
3246 (core_target::xfer_partial, core_target::info_proc_mappings):
3248 * bfd-target.c (target_bfd::xfer_partial): Update.
3249 (target_bfd::target_bfd): Update.
3250 (target_bfd::~target_bfd): Remove.
3252 2020-10-12 Tom Tromey <tom@tromey.com>
3254 * target.h (struct target_section, struct target_section_table):
3255 Move to target-section.h.
3256 * target-section.h: New file.
3258 2020-10-12 Pedro Alves <pedro@palves.net>
3261 * valops.c (struct struct_field_searcher): New.
3262 (update_search_result): Rename to ...
3263 (struct_field_searcher::update_result): ... this. Simplify
3264 prototype. Record all found fields.
3265 (do_search_struct_field): Rename to ...
3266 (struct_field_searcher::search): ... this. Simplify prototype.
3267 Maintain stack of visited baseclass path. Call update_result for
3268 fields too. Keep searching fields in baseclasses instead of
3269 stopping at the first found field.
3270 (search_struct_field): Use struct_field_searcher. When looking
3271 for fields, report ambiguous access attempts.
3273 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3275 * frame.c (inside_main_func): Check full symbols as well as
3278 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3280 * ada-lang.c (advance_wild_match): Rewrite the function's
3281 description. Change the type of target0, t0 and t1 to char.
3283 2020-10-09 Tom Tromey <tromey@adacore.com>
3285 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3287 2020-10-09 Tom Tromey <tromey@adacore.com>
3289 * ada-lang.h (ada_encode): Return std::string.
3290 * ada-lang.c (ada_encode_1): Return std::string.
3291 (ada_encode): Likewise.
3292 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3294 * ada-exp.y (block_lookup, write_var_or_type): Update.
3296 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3299 * printcmd.c (print_formatted): Handle void results as
3302 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3304 * arch/aarch32.c (aarch32_create_target_description): Release the
3305 target_desc_up as late as possible.
3306 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3307 * arch/amd64.c (amd64_create_target_description): Likewise.
3308 * arch/arc.c (arc_create_target_description): Return a
3309 target_desc_up, don't release it.
3310 * arch/arc.h (arc_create_target_description): Update declaration.
3311 (arc_lookup_target_description): Move target_desc_up into the
3312 cache, and return a borrowed pointer.
3313 * arch/arm.c (arm_create_target_description): Release the
3314 target_desc_up as late as possible.
3315 * arch/i386.c (i386_create_target_description): Likewise.
3316 * arch/riscv.h (riscv_create_target_description): Update
3317 declaration to match definition.
3318 * arch/tic6x.c (tic6x_create_target_description): Release the
3319 target_desc_up as late as possible.
3321 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3323 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3324 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3326 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3328 * source.c (directory_command): Notify observers that "directories"
3329 parameter has changed.
3331 2020-10-08 Tom Tromey <tom@tromey.com>
3333 * cli/cli-cmds.c (print_disassembly): Style function name and
3334 addresses. Add _() wrappers.
3336 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3338 * NEWS: Mention ARC support in GDBserver.
3340 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3342 * arch/aarch32.c (aarch32_create_target_description): Release
3343 unique_ptr returned from allocate_target_description.
3344 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3345 * arch/amd64.c (amd64_create_target_description): Likewise.
3346 * arch/arc.c (arc_create_target_description): Likewise.
3347 * arch/arm.c (arm_create_target_description): Likewise.
3348 * arch/i386.c (i386_create_target_description): Likewise.
3349 * arch/riscv.c (riscv_create_target_description): Update return
3350 type. Handle allocate_target_description returning a unique_ptr.
3351 (riscv_lookup_target_description): Update to handle unique_ptr.
3352 * arch/tic6x.c (tic6x_create_target_description): Release
3353 unique_ptr returned from allocate_target_description.
3354 * features/microblaze-with-stack-protect.c: Regenerate.
3355 * features/microblaze.c: Regenerate.
3356 * features/mips-dsp-linux.c: Regenerate.
3357 * features/mips-linux.c: Regenerate.
3358 * features/mips64-dsp-linux.c: Regenerate.
3359 * features/mips64-linux.c: Regenerate.
3360 * features/nds32.c: Regenerate.
3361 * features/nios2.c: Regenerate.
3362 * features/or1k.c: Regenerate.
3363 * features/rs6000/powerpc-32.c: Regenerate.
3364 * features/rs6000/powerpc-32l.c: Regenerate.
3365 * features/rs6000/powerpc-403.c: Regenerate.
3366 * features/rs6000/powerpc-403gc.c: Regenerate.
3367 * features/rs6000/powerpc-405.c: Regenerate.
3368 * features/rs6000/powerpc-505.c: Regenerate.
3369 * features/rs6000/powerpc-601.c: Regenerate.
3370 * features/rs6000/powerpc-602.c: Regenerate.
3371 * features/rs6000/powerpc-603.c: Regenerate.
3372 * features/rs6000/powerpc-604.c: Regenerate.
3373 * features/rs6000/powerpc-64.c: Regenerate.
3374 * features/rs6000/powerpc-64l.c: Regenerate.
3375 * features/rs6000/powerpc-7400.c: Regenerate.
3376 * features/rs6000/powerpc-750.c: Regenerate.
3377 * features/rs6000/powerpc-860.c: Regenerate.
3378 * features/rs6000/powerpc-altivec32.c: Regenerate.
3379 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3380 * features/rs6000/powerpc-altivec64.c: Regenerate.
3381 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3382 * features/rs6000/powerpc-e500.c: Regenerate.
3383 * features/rs6000/powerpc-e500l.c: Regenerate.
3384 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3385 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3386 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3387 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3388 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3389 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3390 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3391 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3392 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3393 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3394 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3395 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3396 * features/rs6000/powerpc-vsx32.c: Regenerate.
3397 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3398 * features/rs6000/powerpc-vsx64.c: Regenerate.
3399 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3400 * features/rs6000/rs6000.c: Regenerate.
3401 * features/rx.c: Regenerate.
3402 * features/s390-gs-linux64.c: Regenerate.
3403 * features/s390-linux32.c: Regenerate.
3404 * features/s390-linux32v1.c: Regenerate.
3405 * features/s390-linux32v2.c: Regenerate.
3406 * features/s390-linux64.c: Regenerate.
3407 * features/s390-linux64v1.c: Regenerate.
3408 * features/s390-linux64v2.c: Regenerate.
3409 * features/s390-te-linux64.c: Regenerate.
3410 * features/s390-tevx-linux64.c: Regenerate.
3411 * features/s390-vx-linux64.c: Regenerate.
3412 * features/s390x-gs-linux64.c: Regenerate.
3413 * features/s390x-linux64.c: Regenerate.
3414 * features/s390x-linux64v1.c: Regenerate.
3415 * features/s390x-linux64v2.c: Regenerate.
3416 * features/s390x-te-linux64.c: Regenerate.
3417 * features/s390x-tevx-linux64.c: Regenerate.
3418 * features/s390x-vx-linux64.c: Regenerate.
3419 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3420 from allocate_target_description.
3421 * target-descriptions.c (allocate_target_description): Update
3423 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3424 allocate_target_description.
3426 2020-10-07 Tom Tromey <tromey@adacore.com>
3428 * unittests/search-memory-selftests.c: New file.
3429 * Makefile.in (SELFTESTS_SRCS): Add
3430 unittests/search-memory-selftests.c.
3432 2020-10-07 Tom Tromey <tromey@adacore.com>
3435 * findcmd.c (_initialize_mem_search): Mention that the range is
3438 2020-10-07 Tom Tromey <tromey@adacore.com>
3440 * target.h (simple_search_memory): Don't declare.
3441 * target.c (simple_search_memory): Move to gdbsupport.
3442 (default_search_memory): Update.
3443 * remote.c (remote_target::search_memory): Update.
3445 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3447 * Makefile.in (COMPILE): Add CXXFLAGS.
3448 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3449 (check-headers): Add CXXFLAGS.
3451 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3453 * arc-linux-tdep.h: New file.
3454 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3455 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3456 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3457 arc_linux_gregset, arc_linux_v2_regset,
3458 arc_linux_iterate_over_regset_sections,
3459 arc_linux_core_read_description): Implement.
3460 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3461 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3462 (arc_gdbarch_features_create): Add.
3463 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3465 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3467 * arch/arc.h: Rename "arc_gdbarch_features" to
3468 "arc_arch_features".
3469 * arc-tdep.h: Likewise.
3470 * arc-tdep.c: Likewise.
3472 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3474 * infcmd.c (attach_command): Remove the redundant call to
3475 `clear_proceed_status`.
3477 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3479 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3481 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3483 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3484 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3485 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3487 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3489 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3490 (_initialize_break_catch_sig): Don't allocate array.
3492 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3494 * symtab.c (find_pc_line): Return unmapped addresses when the
3495 requested address is also unmapped.
3497 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3499 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3502 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3504 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3505 type::is_vector instead of TYPE_VECTOR.
3507 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3509 * auto-load.c (auto_load_objfile_script_1): Don't use
3510 debugfile_holder as temporary variable when stripping drive
3513 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3515 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3516 Add TYPE_CODE_COMPLEX.
3517 (amd64_windows_return_value): Fix types returned via XMM0.
3519 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3521 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3522 AArch64/ARM maintainers.
3524 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3526 * NEWS: Mention set/show debug event-loop.
3528 2020-10-02 Tom Tromey <tromey@adacore.com>
3530 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3533 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3535 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3536 * procfs.c (procfs_inferior_created): Remove.
3537 (_initialize_procfs): Don't register procfs_inferior_created.
3539 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3541 * async-event.c (invoke_async_signal_handlers): Add debug
3543 (check_async_event_handlers): Likewise.
3544 * event-top.c (show_debug_event_loop): New function.
3545 (_initialize_event_top): Register "set debug event-loop"
3548 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3550 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3552 * infrun.c: Include gdbsupport/common-debug.h.
3553 * linux-nat.c: Likewise.
3555 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3557 * async-event.h (create_async_signal_handler): Add name
3559 (create_async_event_handler): Likewise.
3560 * async-event.c (struct async_signal_handler) <name>: New field.
3561 (struct async_event_handler) <name>: New field.
3562 (create_async_signal_handler): Assign name.
3563 (create_async_event_handler): Assign name.
3564 * event-top.c (async_init_signals): Pass name when creating
3566 * infrun.c (_initialize_infrun): Likewise.
3567 * record-btrace.c (record_btrace_push_target): Likewise.
3568 * record-full.c (record_full_open): Likewise.
3569 * remote-notif.c (remote_notif_state_allocate): Likewise.
3570 * remote.c (remote_target::open_1): Likewise.
3571 * tui/tui-win.c (tui_initialize_win): Likewise.
3573 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3575 * async-event.c (initialize_async_signal_handlers): Pass name to
3577 * event-top.c (ui_register_input_event_handler): Likewise.
3578 * linux-nat.c (linux_nat_target::async): Likewise.
3579 * run-on-main-thread.c (_initialize_run_on_main_thread):
3581 * ser-base.c (reschedule): Likewise.
3582 (ser_base_async): Likewise.
3583 * tui/tui-io.c: Likewise.
3584 * top.h (struct ui) <num>: New field.
3585 * top.c (highest_ui_num): New variable.
3586 (ui::ui): Initialize num.
3588 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3590 * observable.h <inferior_created>: Remove parameters. Update all
3592 * inferior.h (post_create_inferior): Remove target parameter.
3595 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3597 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3598 and DW_MACRO_undef_strx.
3599 (dwarf_decode_macros): Likewise
3600 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3601 which is the value of DW_AT_str_offsets_base.
3602 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3605 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3607 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3609 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3611 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3612 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3614 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3616 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3618 2020-09-30 Tom de Vries <tdevries@suse.de>
3621 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3623 2020-09-30 Tom Tromey <tromey@adacore.com>
3625 * dwarf2/read.c (handle_variant): Use constant_value.
3627 2020-09-29 Tom Tromey <tom@tromey.com>
3629 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3630 (read_file_scope, dwarf2_get_pc_bounds)
3631 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3632 (read_structure_type, handle_struct_member_die)
3633 (read_enumeration_type, read_array_type, read_set_type)
3634 (read_tag_pointer_type, read_tag_reference_type)
3635 (read_subroutine_type, read_base_type, read_subrange_type)
3636 (read_full_die_1, partial_die_info::read)
3637 (partial_die_info::read, by, new_symbol)
3638 (dwarf2_const_value_data, dwarf2_const_value_attr)
3639 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3640 (prepare_one_comp_unit): Update.
3641 * dwarf2/attribute.h (DW_UNSND): Remove.
3643 2020-09-29 Tom Tromey <tom@tromey.com>
3645 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3646 (read_subroutine_type, partial_die_info::read)
3647 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3648 (dwarf2_add_member_fn): Update.
3649 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3650 * dwarf2/attribute.c (attribute::as_boolean): New method.
3652 2020-09-29 Tom Tromey <tom@tromey.com>
3654 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3655 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3657 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3659 2020-09-29 Tom Tromey <tom@tromey.com>
3661 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3662 the attribute's form.
3664 2020-09-29 Tom Tromey <tom@tromey.com>
3666 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3667 (dwarf2_add_member_fn): Update.
3668 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3669 * dwarf2/attribute.c (attribute::defaulted): New method, from
3670 is_valid_DW_AT_defaulted.
3672 2020-09-29 Tom Tromey <tom@tromey.com>
3674 * dwarf2/read.c (dw2_get_file_names_reader)
3675 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3676 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3677 (dwarf2_symbol_mark_computed): Use as_unsigned.
3678 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3680 <form_is_section_offset>: Update comment.
3682 2020-09-29 Tom Tromey <tom@tromey.com>
3684 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3685 dwarf2_default_access_attribute. Look up attribute.
3686 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3689 2020-09-29 Tom Tromey <tom@tromey.com>
3691 * dwarf2/read.c (skip_one_die): Update.
3692 (read_full_die_1): Change how reprocessing is done.
3693 (partial_die_info::read): Update.
3694 (read_attribute_value): Remove need_reprocess parameter.
3695 (read_attribute): Likewise.
3696 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3699 2020-09-29 Tom Tromey <tom@tromey.com>
3701 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3702 (dwarf2_const_value_attr, dump_die_shallow)
3703 (dwarf2_fetch_constant_bytes): Update.
3704 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3706 <set_address>: New method.
3708 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3709 (attribute::as_string, attribute::as_address): Add assert.
3711 2020-09-29 Tom Tromey <tom@tromey.com>
3713 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3714 (read_attribute_reprocess, read_attribute_value): Update.
3715 (read_attribute): Clear requires_reprocessing.
3716 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3717 form_requires_reprocessing>: New methods.
3718 <string_init>: Clear requires_reprocessing.
3719 <set_unsigned_reprocess>: New method.
3720 <name>: Shrink by one bit.
3721 <requires_reprocessing>: New member.
3722 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3725 2020-09-29 Tom Tromey <tom@tromey.com>
3727 * dwarf2/read.c (read_attribute_value): Update.
3728 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3729 set_unsigned>: New methods.
3730 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3732 2020-09-29 Tom Tromey <tom@tromey.com>
3734 * dwarf2/read.c (get_alignment, read_array_order)
3735 (read_attribute_value, dwarf2_const_value_attr)
3736 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3737 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3741 2020-09-29 Tom Tromey <tom@tromey.com>
3743 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3744 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3746 * dwarf2/attribute.h (struct attribute) <as_signature,
3747 set_signature>: New methods.
3748 (DW_SIGNATURE): Remove.
3750 2020-09-29 Tom Tromey <tom@tromey.com>
3752 * dwarf2/read.c (read_call_site_scope)
3753 (handle_data_member_location, dwarf2_add_member_fn)
3754 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3755 (partial_die_info::read, read_attribute_value)
3756 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3757 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3758 (dwarf2_symbol_mark_computed): Update.
3759 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3762 * dwarf2/attribute.c (attribute::form_is_block): Add
3765 2020-09-29 Tom Tromey <tom@tromey.com>
3767 * dwarf2/read.c (read_cutu_die_from_dwo)
3768 (read_attribute_reprocess, read_attribute_value, read_attribute)
3769 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3770 (dwarf2_fetch_constant_bytes): Update.
3771 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3772 <set_string_noncanonical, set_string_canonical>: New methods.
3773 <string_is_canonical>: Update comment.
3774 <canonical_string_p>: Add assert.
3775 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3776 * dwarf2/attribute.c (attribute::form_is_string): New method.
3777 (attribute::string): Use it.
3779 2020-09-29 Tom Tromey <tom@tromey.com>
3781 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3782 (dump_die_shallow): Use canonical_string_p.
3783 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3786 2020-09-29 Tom Tromey <tom@tromey.com>
3788 * dwarf2/read.c (partial_die_info::read)
3789 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3790 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3791 attribute::as_string.
3793 2020-09-29 Tom Tromey <tom@tromey.com>
3795 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3797 (attribute::string): Don't use DW_STRING.
3798 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3799 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3801 2020-09-29 Tom Tromey <tom@tromey.com>
3803 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3804 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3805 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3806 * dwarf2/attribute.h (struct attribute): Rename methods.
3807 * dwarf2/attribute.c (attribute::as_address): Rename from
3809 (attribute::as_string): Rename from value_as_string.
3811 2020-09-29 Tom Tromey <tom@tromey.com>
3813 * dwarf2/read.c (partial_die_info::read) <case
3814 DW_AT_linkage_name>: Use value_as_string.
3815 (dwarf2_string_attr): Use value_as_string.
3816 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3818 * dwarf2/attribute.c (attribute::value_as_string): New method.
3820 2020-09-29 Pedro Alves <pedro@palves.net>
3822 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3823 defined before using '#pragma GCC diagnostic' instead of checking
3826 2020-09-28 Tom Tromey <tom@tromey.com>
3828 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3829 (handle_signal_stop): Update.
3830 * procfs.c (procfs_target::insert_watchpoint): Update.
3831 * target.h (target_have_steppable_watchpoint): Now a function.
3833 2020-09-28 Tom Tromey <tom@tromey.com>
3835 * infrun.c (set_schedlock_func): Update.
3836 * target.h (target_can_lock_scheduler): Now a function.
3838 2020-09-28 Tom Tromey <tom@tromey.com>
3840 * inferior.h (class inferior) <has_execution>: Update.
3841 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3842 * valops.c (find_function_in_inferior)
3843 (value_allocate_space_in_inferior): Update.
3844 * top.c (kill_or_detach): Update.
3845 * target.c (target_preopen, set_target_permissions): Update.
3846 (target_has_execution_current): Remove.
3847 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3849 * solib.c (update_solib_list, reload_shared_libraries): Update.
3850 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3851 * solib-dsbt.c (enable_break): Update.
3852 * score-tdep.c (score7_fetch_inst): Update.
3853 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3855 * remote.c (remote_target::start_remote)
3856 (remote_target::remote_check_symbols, remote_target::open_1)
3857 (remote_target::remote_detach_1, remote_target::verify_memory)
3858 (remote_target::xfer_partial, remote_target::read_description)
3859 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3860 * record-full.c (record_full_open_1): Update.
3861 * record-btrace.c (record_btrace_target_open): Update.
3862 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3863 (value_nsstring): Update.
3864 * linux-thread-db.c (add_thread_db_info)
3865 (thread_db_find_new_threads_silently, check_thread_db_callback)
3866 (try_thread_db_load_1, record_thread): Update.
3867 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3869 * linux-fork.c (checkpoint_command): Update.
3870 * infrun.c (set_non_stop, set_observer_mode)
3871 (check_multi_target_resumption, for_each_just_stopped_thread)
3872 (maybe_remove_breakpoints, normal_stop)
3873 (class infcall_suspend_state): Update.
3874 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3875 (info_program_command, attach_command): Update.
3876 * infcall.c (call_function_by_hand_dummy): Update.
3877 * inf-loop.c (inferior_event_handler): Update.
3878 * gcore.c (gcore_command, derive_heap_segment): Update.
3879 * exec.c (exec_file_command): Update.
3880 * eval.c (evaluate_subexp): Update.
3881 * compile/compile.c (compile_to_object): Update.
3882 * cli/cli-dump.c (restore_command): Update.
3883 * breakpoint.c (update_watchpoint)
3884 (update_inserted_breakpoint_locations)
3885 (insert_breakpoint_locations, get_bpstat_thread): Update.
3886 * target.h (target_has_execution): Remove macro.
3887 (target_has_execution_current): Don't declare.
3888 (target_has_execution): Rename from target_has_execution_1. Add
3891 2020-09-28 Tom Tromey <tom@tromey.com>
3893 * mi/mi-main.c (exec_reverse_continue)
3894 (mi_cmd_list_target_features): Update.
3895 * infrun.c (set_exec_direction_func): Update.
3896 * target.c (default_execution_direction): Update.
3897 * reverse.c (exec_reverse_once): Update.
3898 * target.h (target_can_execute_reverse): Now a function.
3900 2020-09-28 Tom Tromey <tom@tromey.com>
3902 * tui/tui-regs.c (tui_get_register)
3903 (tui_data_window::show_registers): Update.
3904 * thread.c (scoped_restore_current_thread::restore)
3905 (scoped_restore_current_thread::scoped_restore_current_thread):
3907 * regcache-dump.c (regcache_print): Update.
3908 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3910 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3911 * mep-tdep.c (current_me_module, current_options): Update.
3912 * linux-thread-db.c (thread_db_load): Update.
3913 * infcmd.c (registers_info, info_vector_command)
3914 (info_float_command): Update.
3915 * ia64-tdep.c (ia64_frame_prev_register)
3916 (ia64_sigtramp_frame_prev_register): Update.
3917 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3918 * gcore.c (derive_stack_segment): Update.
3919 * frame.c (get_current_frame, has_stack_frames): Update.
3920 * findvar.c (language_defn::read_var_value): Update.
3921 * arm-tdep.c (arm_pc_is_thumb): Update.
3922 * target.c (target_has_registers): Rename from
3923 target_has_registers_1.
3924 * target.h (target_has_registers): Remove macro.
3925 (target_has_registers): Rename from target_has_registers_1.
3927 2020-09-28 Tom Tromey <tom@tromey.com>
3929 * windows-tdep.c (tlb_make_value): Update.
3930 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3931 * thread.c (scoped_restore_current_thread::restore)
3932 (scoped_restore_current_thread::scoped_restore_current_thread)
3933 (thread_command): Update.
3934 * stack.c (backtrace_command_1, frame_apply_level_command)
3935 (frame_apply_all_command, frame_apply_command): Update.
3936 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3938 * gcore.c (derive_stack_segment): Update.
3939 * frame.c (get_current_frame, has_stack_frames): Update.
3940 * auxv.c (info_auxv_command): Update.
3941 * ada-tasks.c (ada_build_task_list): Update.
3942 * target.c (target_has_stack): Rename from target_has_stack_1.
3943 * target.h (target_has_stack): Remove macro.
3944 (target_has_stack): Rename from target_has_stack_1.
3946 2020-09-28 Tom Tromey <tom@tromey.com>
3948 * target.c (target_has_memory): Rename from target_has_memory_1.
3949 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3950 * thread.c (scoped_restore_current_thread::restore)
3951 (scoped_restore_current_thread::scoped_restore_current_thread):
3953 * frame.c (get_current_frame, has_stack_frames): Update.
3954 * target.h (target_has_memory): Remove macro.
3955 (target_has_memory): Rename from target_has_memory_1.
3957 2020-09-28 Tom Tromey <tom@tromey.com>
3959 * target.c (target_has_all_memory_1): Remove.
3960 * target.h (target_has_all_memory): Remove define.
3961 (target_has_all_memory_1): Don't declare.
3963 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3965 * ser-base.c: Adjust comments formatting.
3967 2020-09-27 Tom Tromey <tom@tromey.com>
3970 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3972 2020-09-27 Tom Tromey <tom@tromey.com>
3975 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3977 2020-09-27 Tom Tromey <tom@tromey.com>
3979 * unittests/tui-selftests.c: Update.
3980 * tui/tui-winsource.h (struct tui_source_window_base)
3981 <extra_margin, show_line_number, refresh_pad>: New methods.
3982 <m_max_length, m_pad>: New members.
3983 (tui_copy_source_line): Update.
3984 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3985 first_col, line_width, ndigits parameters. Add length.
3986 (tui_source_window_base::show_source_line): Write to pad. Line
3988 (tui_source_window_base::refresh_pad): New method.
3989 (tui_source_window_base::show_source_content): Write to pad. Call
3991 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3993 (tui_source_window_base::update_exec_info): Call
3995 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3997 <m_digits>: New member.
3998 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
4000 (tui_source_window::show_line_number): New method.
4001 * tui/tui-io.h (tui_puts): Fix comment.
4002 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
4005 2020-09-27 Tom Tromey <tom@tromey.com>
4007 * tui/tui-winsource.c
4008 (tui_source_window_base::set_is_exec_point_at): Don't call
4011 2020-09-27 Tom Tromey <tom@tromey.com>
4013 * python/py-tui.c (class tui_py_window) <refresh_window>: New
4016 <cursor_x, cursor_y>: Remove.
4017 <m_inner_window>: New member.
4018 (tui_py_window::rerender): Create inner window.
4019 (tui_py_window::output): Write to inner window.
4021 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
4024 * cli/cli-script.c (execute_control_commands): don't set
4025 instream to nullptr here as this breaks the from_tty argument
4026 to gdb.execute in Python.
4027 (execute_user_command): set instream to nullptr here instead.
4029 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
4031 * infrun.h (infrun_debug_printf): Fix formatting.
4032 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
4034 2020-09-25 Saagar Jha <saagar@saagarjha.com>
4036 * compile/compile-object-load.h (struct munmap_list): Add
4037 explicitly-defined move constructor.
4039 2020-09-24 Tom Tromey <tromey@adacore.com>
4042 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
4044 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
4045 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
4046 (tui_prev_win): Rewrite.
4048 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
4050 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
4051 in WOW64 processes as SIGINT.
4052 * nat/windows-nat.h: Make wow64_process a shared variable.
4053 * windows-nat.c: Remove static wow64_process variable.
4055 2020-09-23 Tom Tromey <tom@tromey.com>
4058 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
4059 offset and bit size.
4060 * printcmd.c (print_scalar_formatted): Handle zero-length
4062 (print_scalar_formatted): Use bit_size_differs_p.
4063 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
4065 (union type_specific): <int_stuff>: New member.
4066 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
4068 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
4069 TYPE_SPECIFIC_FIELD.
4070 (recursive_dump_type, copy_type_recursive): Update.
4071 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4072 DW_AT_data_bit_offset.
4074 2020-09-23 Tom Tromey <tom@tromey.com>
4076 * utils.h (class gdb_argv): Add move operators.
4077 <append>: New methods.
4078 * compile/compile.c (build_argc_argv): Remove.
4079 (compile_args_argc): Remove.
4080 (compile_args_argv): Change type.
4081 (set_compile_args): Simplify.
4082 (append_args): Remove.
4083 (filter_args): Remove argcp parameter.
4084 (get_args): Return gdb_argv. Simplify.
4085 (compile_to_object): Update.
4087 2020-09-23 Tom Tromey <tom@tromey.com>
4089 * compile/compile-object-run.c (do_module_cleanup)
4090 <~do_module_cleanup> :Remove.
4091 (do_module_cleanup): Update.
4092 * compile/compile-object-load.h (struct munmap_list): Add move
4093 assignment operator.
4094 <source_file>: Now a std::string.
4095 <munmap_list>: Rename. No longer a pointer.
4096 * compile/compile-object-load.c (struct setup_sections_data): Add
4098 <setup_one_section>: Declare.
4099 <munmap_list>: Move earlier.
4100 <m_bfd>: New member.
4101 <m_last_size, m_last_section_first, m_last_prot,
4102 m_last_max_alignment>: Rename, add initializers where needed.
4103 (setup_sections_data::setup_one_section): Rename from
4104 setup_sections. Update.
4105 (compile_object_load): Update. Don't use bfd_map_over_sections.
4107 2020-09-23 Tom Tromey <tom@tromey.com>
4109 * compile/compile-object-run.c (struct do_module_cleanup): Add
4110 parameters to constructor. Update destructor.
4111 <source_file, scope, scope_data, out_value_type, out_value_addr,
4112 munmap_list_head, objfile_name_string>: Remove.
4113 <module>: New member.
4114 (do_module_cleanup): Update.
4115 (compile_object_run): Update.
4117 2020-09-23 Tom Tromey <tom@tromey.com>
4119 * compile/compile.c (eval_compile_command): Update.
4120 * compile/compile-object-run.h (compile_object_run): Take a
4122 * compile/compile-object-run.c (compile_object_run): Take a
4124 * compile/compile-object-load.h (struct compile_module): Add
4125 constructor, destructor.
4126 (compile_module_up): New typedef.
4127 (compile_object_load): Return compile_object_up.
4128 * compile/compile-object-load.c (compile_object_load): Return
4131 2020-09-23 Tom Tromey <tom@tromey.com>
4133 * compile/compile-object-run.c (struct do_module_cleanup): Add
4134 constructor, destructor.
4135 <objfile_name_string>: Don't use struct hack.
4136 (do_module_cleanup): Use delete.
4137 (compile_object_run): Use new.
4139 2020-09-23 Tom Tromey <tom@tromey.com>
4141 * compile/compile-cplus-types.c
4142 (compile_cplus_convert_struct_or_union): Use std::vector.
4143 (compile_cplus_convert_func): Likewise.
4144 * compile/compile-c-types.c (convert_func): Use std::vector.
4146 2020-09-21 Tom Tromey <tromey@adacore.com>
4148 * sparc-tdep.c (sparc32_skip_prologue): Use
4149 skip_prologue_using_sal.
4151 2020-09-19 Tom Tromey <tom@tromey.com>
4153 * symfile.c (add_section_size_callback): Remove.
4154 (load_one_section): Rename from load_section_callback. Change
4156 (generic_load): Use foreach.
4158 2020-09-19 Tom Tromey <tom@tromey.com>
4160 * exec.c (add_to_section_table): Remove.
4161 (build_section_table): Use foreach.
4163 2020-09-19 Tom Tromey <tom@tromey.com>
4165 * elfread.c (elf_locate_sections): Change parameters.
4166 (elf_symfile_read): Use foreach.
4168 2020-09-19 Tom Tromey <tom@tromey.com>
4170 * cli/cli-dump.c (struct callback_data): Remove.
4171 (restore_one_section): Rename from restore_section_callback.
4173 (restore_binary_file): Change parameters.
4174 (restore_command): Use foreach.
4176 2020-09-19 Tom Tromey <tom@tromey.com>
4178 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4179 (gcore_copy_callback): Likewise.
4180 (gcore_memory_sections): Use foreach.
4182 2020-09-19 Tom Tromey <tom@tromey.com>
4184 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4185 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4187 (generic_elf_osabi_sniffer): Use foreach.
4188 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4189 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4191 2020-09-19 Tom Tromey <tom@tromey.com>
4193 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4194 (dwarf2_get_dwz_file): Use foreach.
4195 (dwarf2_locate_dwo_sections): Change parameters.
4196 (open_and_init_dwo_file): Use foreach.
4197 (dwarf2_locate_common_dwp_sections): Change parameters.
4198 (open_and_init_dwp_file): Use foreach.
4200 2020-09-19 Tom Tromey <tom@tromey.com>
4202 * symfile.h: (find_lowest_section): Don't declare.
4203 * symfile.c (find_lowest_section): Now static. Change
4205 (struct place_section_arg): Remove.
4206 (place_section): Change parameters.
4207 (addr_info_make_relative): Use foreach.
4208 (symfile_dummy_outputs): Remove.
4209 (default_symfile_relocate): Use foreach.
4211 2020-09-19 Tom Tromey <tom@tromey.com>
4213 * objfiles.c (add_to_objfile_sections): Rename from
4214 add_to_objfile_sections_full.
4215 (add_to_objfile_sections): Remove.
4216 (build_objfile_section_table): Use foreach.
4218 2020-09-19 Tom Tromey <tom@tromey.com>
4220 * stap-probe.c (get_stap_base_address_1): Remove.
4221 (get_stap_base_address): Use foreach.
4223 2020-09-19 Tom Tromey <tom@tromey.com>
4225 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4227 (gdb_bfd_close_or_warn): Use foreach.
4229 2020-09-19 Tom Tromey <tom@tromey.com>
4231 * corelow.c (add_to_thread_list): Change parameters.
4232 (core_target_open): Use foreach.
4234 2020-09-19 Tom Tromey <tom@tromey.com>
4236 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4239 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4241 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4244 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4246 * eval.c: Remove 'f-lang.h' include.
4247 (value_f90_subarray): Moved to f-lang.c.
4248 (eval_call): Renamed to...
4249 (evaluate_subexp_do_call): ...this, is no longer static, header
4250 comment moved into header file.
4251 (evaluate_funcall): Update call to eval_call.
4252 (skip_undetermined_arglist): Moved to f-lang.c.
4253 (fortran_value_subarray): Likewise.
4254 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4255 moved to evaluate_subexp_f.
4256 (calc_f77_array_dims): Moved to f-lang.c
4257 * expprint.c (print_subexp_funcall): New function.
4258 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4259 moved to print_subexp_f, OP_FUNCALL uses new function.
4260 (dump_subexp_body_funcall): New function.
4261 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4262 moved to dump_subexp_f, OP_FUNCALL uses new function.
4263 * expression.h (evaluate_subexp_do_call): Declare.
4264 * f-lang.c (value_f90_subarray): Moved from eval.c.
4265 (skip_undetermined_arglist): Likewise.
4266 (calc_f77_array_dims): Likewise.
4267 (fortran_value_subarray): Likewise.
4268 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4269 (operator_length_f): Likewise.
4270 (print_subexp_f): Likewise.
4271 (dump_subexp_body_f): Likewise.
4272 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4273 declaration of this operation to here.
4274 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4275 support moved to operator_length_f.
4276 * parser-defs.h (dump_subexp_body_funcall): Declare.
4277 (print_subexp_funcall): Declare.
4278 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4279 fortran-operator.def.
4281 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4283 * eval.c (fortran_value_subarray): New function, content is taken
4285 (evaluate_subexp_standard): ...here, in two places. Now arrays
4286 and strings both call the new function.
4287 (calc_f77_array_dims): Add header comment, handle strings.
4289 2020-09-18 Victor Collod <vcollod@nvidia.com>
4292 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4293 (i386_analyze_prologue): Call i386_skip_endbr.
4295 2020-09-18 Tom Tromey <tromey@adacore.com>
4297 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4298 (windows_nat_target::wait): Update.
4299 * target/wait.h (enum target_wait_flag): New. Use
4300 DEF_ENUM_FLAGS_TYPE.
4301 * target/target.h (target_wait): Change type of options.
4302 * target.h (target_options_to_string, default_target_wait):
4304 (struct target_ops) <wait>: Change type of options.
4305 * target.c (target_wait, default_target_wait, do_option): Change
4307 (target_options_to_string): Likewise.
4308 * target-delegates.c: Rebuild.
4309 * target-debug.h (target_debug_print_target_wait_flags): Rename
4310 from target_debug_print_options.
4311 * sol-thread.c (class sol_thread_target) <wait>: Update.
4312 (sol_thread_target::wait): Update.
4313 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4314 (rs6000_nat_target::wait): Update.
4315 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4317 (remote_target::wait_ns, remote_target::wait_as): Change type of
4319 (remote_target::wait): Update.
4320 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4321 (gdbsim_target::wait): Update.
4322 * record-full.c (class record_full_base_target) <wait>: Update.
4323 (record_full_wait_1): Change type of "options".
4324 (record_full_base_target::wait): Update.
4325 * record-btrace.c (class record_btrace_target) <wait>: Update.
4326 (record_btrace_target::wait): Update.
4327 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4329 (ravenscar_thread_target::wait): Update.
4330 * procfs.c (class procfs_target) <wait>: Update.
4331 (procfs_target::wait): Update.
4332 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4333 * obsd-nat.c (obsd_nat_target::wait): Update.
4334 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4335 (nto_procfs_target::wait): Update.
4336 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4337 * nbsd-nat.c (nbsd_wait): Change type of "options".
4338 (nbsd_nat_target::wait): Update.
4339 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4340 (thread_db_target::wait): Update.
4341 * linux-nat.h (class linux_nat_target) <wait>: Update.
4342 * linux-nat.c (linux_nat_target::wait): Update.
4343 (linux_nat_wait_1): Update.
4344 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4346 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4347 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4348 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4349 (go32_nat_target::wait): Update.
4350 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4351 * gnu-nat.c (gnu_nat_target::wait): Update.
4352 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4353 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4354 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4355 * darwin-nat.c (darwin_nat_target::wait): Update.
4356 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4357 (bsd_uthread_target::wait): Update.
4358 * aix-thread.c (class aix_thread_target) <wait>: Update.
4359 (aix_thread_target::wait): Update.
4361 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4363 * compile/compile-object-run.c (create_copied_type_recursive): New
4365 (compile_object_run): Use new function.
4367 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4369 * NEWS: Mention x86_64 Cygwin core file support.
4371 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4373 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4374 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4376 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4378 * windows-tdep.h: Add prototypes.
4379 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4380 (i386_windows_core_pid_to_str): Move and rename ...
4381 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4382 (windows_core_pid_to_str): ... and here.
4383 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4385 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4386 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4387 (amd64_windows_init_abi_common): ... and register.
4389 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4391 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4392 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4394 2020-09-18 Pedro Alves <pedro@palves.net>
4397 * thread.c (thread_find_command): Switch inferior before calling
4400 2020-09-17 Tom Tromey <tromey@adacore.com>
4402 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4403 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4404 (tdesc_arch_data_up): New typedef.
4405 (tdesc_use_registers, tdesc_data_alloc): Update.
4406 (tdesc_data_cleanup): Don't declare.
4407 * target-descriptions.c (tdesc_data_alloc): Return a
4409 (tdesc_arch_data_deleter::operator()): Rename from
4410 tdesc_data_cleanup. Change argument type.
4411 (tdesc_use_registers): Change early_data to an rvalue reference.
4412 (tdesc_use_registers): Don't use delete.
4413 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4414 * s390-tdep.c (s390_gdbarch_init): Update.
4415 * rx-tdep.c (rx_gdbarch_init): Update.
4416 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4417 * riscv-tdep.c (riscv_gdbarch_init): Update.
4418 * or1k-tdep.c (or1k_gdbarch_init): Update.
4419 * nios2-tdep.c (nios2_gdbarch_init): Update.
4420 * nds32-tdep.c (nds32_gdbarch_init): Update.
4421 * mips-tdep.c (mips_gdbarch_init): Update.
4422 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4423 * m68k-tdep.c (m68k_gdbarch_init): Update.
4424 * i386-tdep.c (i386_gdbarch_init): Update.
4425 * arm-tdep.c (arm_gdbarch_init): Update.
4426 * arc-tdep.c (arc_tdesc_init): Update.
4427 (arc_gdbarch_init): Update.
4428 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4430 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4432 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4433 for WOW64 processes.
4435 2020-09-17 Tom Tromey <tom@tromey.com>
4437 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4439 2020-09-17 Tom Tromey <tom@tromey.com>
4441 * value.c (preserve_values): Update.
4442 * python/py-type.c (save_objfile_types): Update.
4443 * guile/scm-type.c (save_objfile_types): Update.
4444 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4445 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4446 * compile/compile-object-run.c (compile_object_run): Update.
4448 2020-09-17 Tom Tromey <tom@tromey.com>
4450 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4452 <m_table>: Now htab_up.
4453 * typeprint.c (typedef_hash_table::recursively_update)
4454 (typedef_hash_table::add_template_parameters)
4455 (typedef_hash_table::typedef_hash_table): Update.
4456 (typedef_hash_table::~typedef_hash_table): Remove.
4457 (typedef_hash_table::typedef_hash_table)
4458 (typedef_hash_table::find_global_typedef)
4459 (typedef_hash_table::find_typedef): Update.
4461 2020-09-17 Tom Tromey <tom@tromey.com>
4463 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4465 2020-09-17 Tom Tromey <tom@tromey.com>
4467 * linespec.c (class decode_compound_collector)
4468 <~decode_compound_collector>: Remove.
4469 <m_unique_syms>: Now htab_up.
4470 (decode_compound_collector::operator ()): Update.
4471 (class symtab_collector) <~symtab_collector>: Remove.
4472 <m_symtab_table>: Now htab_up.
4473 (symtab_collector::operator ()): Update.
4475 2020-09-17 Tom Tromey <tom@tromey.com>
4477 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4478 (filename_seen_cache::clear): Update.
4479 (~filename_seen_cache): Remove.
4480 (filename_seen_cache::seen): Update.
4481 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4483 <~filename_seen_cache>: Remove.
4486 2020-09-17 Tom Tromey <tom@tromey.com>
4488 * completer.c (completion_tracker::discard_completions)
4489 (completion_tracker::~completion_tracker)
4490 (completion_tracker::maybe_add_completion)
4491 (completion_tracker::remove_completion)
4492 (completion_tracker::recompute_lowest_common_denominator)
4493 (completion_tracker::build_completion_result): Update.
4494 * completer.h (class completion_tracker) <have_completions>:
4496 <m_entries_hash>: Now htab_up.
4498 2020-09-17 Tom Tromey <tom@tromey.com>
4500 * breakpoint.c (ambiguous_names_p): Use htab_up.
4502 2020-09-17 Tom Tromey <tom@tromey.com>
4504 * auto-load.c (struct auto_load_pspace_info)
4505 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4506 <loaded_script_files, loaded_script_texts>: Change type to
4508 (~auto_load_pspace_info) Remove.
4509 (init_loaded_scripts_info, maybe_add_script_file)
4510 (maybe_add_script_text, auto_load_info_scripts): Update.
4512 2020-09-17 Tom Tromey <tromey@adacore.com>
4514 * c-exp.y (name_obstack): Now static.
4516 2020-09-17 Chungyi Chi <demonic@csie.io>
4518 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4520 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4522 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4523 (add_solib_catchpoint): Likewise.
4524 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4526 (add_solib_catchpoint): Change int parameter/variable to bool.
4527 (catch_load_or_unload): Likewise.
4528 (init_catchpoint): Likewise.
4529 (create_fork_vfork_event_catchpoint): Likewise.
4530 (catch_fork_command_1): Likewise.
4531 (catch_exec_command_1): Likewise.
4533 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4535 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4536 Change instance_flags to m_instance_flags.
4538 2020-09-16 Tom Tromey <tromey@adacore.com>
4541 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4543 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4545 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4547 (fbsd_nat_target::insert_exec_catchpoint)
4548 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4549 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4550 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4552 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4554 * configure.ac: Remove check for kinfo_getvmmap().
4555 * configure, config.in: Regenerate.
4556 * fbsd-nat.c (fbsd_read_mapping): Remove
4557 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4558 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4559 kinfo_get_vmmap() are always present.
4561 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4563 * fbsd-nat.c: Always include support for
4564 TARGET_OBJECT_SIGNAL_INFO.
4566 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4568 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4569 sysctl and remove procfs fallback.
4571 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4573 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4574 * fbsd-nat.h: Likewise.
4576 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4578 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4581 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4583 * ada-lang.c (ada_language_data): Delete.
4584 (ada_language): Remove references to ada_language_data.
4585 * c-lang.c (c_language_data): Delete.
4586 (c_language): Remove references to c_language_data.
4587 (cplus_language_data): Delete.
4588 (cplus_language): Remove references to cplus_language_data.
4589 (asm_language_data): Delete.
4590 (asm_language): Remove references to asm_language_data.
4591 (minimal_language_data): Delete.
4592 (minimal_language): Remove references to minimal_language_data.
4593 * d-lang.c (d_language_data): Delete.
4594 (d_language): Remove references to d_language_data.
4595 * f-lang.c (f_language_data): Delete.
4596 (f_language): Remove references to f_language_data.
4597 * go-lang.c (go_language_data): Delete.
4598 (go_language): Remove references to go_language_data.
4599 * language.c (unknown_language_data): Delete.
4600 (unknown_language): Remove references to unknown_language_data.
4601 (auto_language_data): Delete.
4602 (auto_language): Remove references to auto_language_data.
4603 * language.h (language_data): Delete struct.
4604 (language_defn): No longer inherit from language_data.
4605 * m2-lang.c (m2_language_data): Delete.
4606 (m2_language): Remove references to m2_language_data.
4607 * objc-lang.c (objc_language_data): Delete.
4608 (objc_language): Remove references to objc_language_data.
4609 * opencl-lang.c (opencl_language_data): Delete.
4610 (opencl_language): Remove references to opencl_language_data.
4611 * p-lang.c (pascal_language_data): Delete.
4612 (pascal_language): Remove references to pascal_language_data.
4613 * rust-lang.c (rust_language_data): Delete.
4614 (rust_language): Remove references to rust_language_data.
4616 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4618 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4620 (ada_language::opcode_print_table): New member function.
4621 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4622 (c_language::opcode_print_table): New member function.
4623 (cplus_language_data): Remove la_op_print_tab initializer.
4624 (cplus_language::opcode_print_table): New member function.
4625 (asm_language_data): Remove la_op_print_tab initializer.
4626 (asm_language::opcode_print_table): New member function.
4627 (minimal_language_data): Remove la_op_print_tab initializer.
4628 (minimal_language::opcode_print_table): New member function.
4629 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4630 (d_language::opcode_print_table): New member function.
4631 * expprint.c (print_subexp_standard): Update call to
4633 (op_string): Likewise.
4634 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4635 (f_language::opcode_print_table): New member function.
4636 * go-lang.c (go_language_data): Remove la_op_print_tab
4638 (go_language::opcode_print_table): New member function.
4639 * language.c (unknown_language_data): Remove la_op_print_tab
4641 (unknown_language::opcode_print_table): New member function.
4642 (auto_language_data): Remove la_op_print_tab initializer.
4643 (auto_language::opcode_print_table): New member function.
4644 * language.h (language_data): Remove la_op_print_tab field.
4645 (language_defn::opcode_print_table): Declare new member function.
4646 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4648 (m2_language::opcode_print_table): New member function.
4649 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4651 (objc_language::opcode_print_table): New member function.
4652 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4654 (opencl_language::opcode_print_table): New member function.
4655 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4657 (pascal_language::opcode_print_table): New member function.
4658 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4660 (rust_language::opcode_print_table): New member function.
4662 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4664 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4665 (ada_language::expression_ops): New member function.
4666 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4667 (c_language::expression_ops): New member function.
4668 (cplus_language_data): Remove la_exp_desc initializer.
4669 (cplus_language::expression_ops): New member function.
4670 (asm_language_data): Remove la_exp_desc initializer.
4671 (asm_language::expression_ops): New member function.
4672 (minimal_language_data): Remove la_exp_desc initializer.
4673 (minimal_language::expression_ops): New member function.
4674 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4675 (d_language::expression_ops): New member function.
4676 * eval.c (evaluate_subexp): Update call to expression_ops.
4677 * expprint.c (print_subexp): Likewise.
4678 (op_name): Likewise.
4679 (dump_subexp_body): Likewise.
4680 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4681 (f_language::expression_ops): New member function.
4682 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4683 (go_language::expression_ops): New member function.
4684 * language.c (language_defn::expression_ops): New function.
4685 (unknown_language_data): Remove la_exp_desc initializer.
4686 (auto_language_data): Likewise.
4687 * language.h (language_data): Remove la_exp_desc field.
4688 (language_defn::expression_ops): Declare new member function.
4689 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4690 (m2_language::expression_ops): New member function.
4691 * objc-lang.c (objc_language_data): Remove la_exp_desc
4693 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4695 (opencl_language::expression_ops): New member function.
4696 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4697 * parse.c (operator_length): Update call to expression_ops.
4698 (exp_iterate): Likewise.
4699 * rust-lang.c (rust_language_data): Remove la_exp_desc
4701 (ruse_language::expression_ops): New member function.
4703 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4705 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4707 (ada_language::varobj_ops): New member function.
4708 * c-lang.c (c_language_data): Remove la_varobj_ops
4710 (cplus_language_data): Likewise.
4711 (cplus_language::varobj_ops): New member function.
4712 (asm_language_data): Remove la_varobj_ops initializer.
4713 (minimal_language_data): Likewise.
4714 * d-lang.c (d_language_data): Likewise.
4715 * f-lang.c (f_language_data): Likewise.
4716 * go-lang.c (go_language_data): Likewise.
4717 * language.c (language_defn::varobj_ops): New function.
4718 (unknown_language_data): Remove la_varobj_ops
4720 (auto_language_data): Likewise.
4721 * language.h (language_data): Remove la_varobj_ops field.
4722 (language_defn::varobj_ops): Declare new member function.
4723 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4724 * objc-lang.c (objc_language_data): Likewise.
4725 * opencl-lang.c (opencl_language_data): Likewise.
4726 * p-lang.c (pascal_language_data): Likewise.
4727 * rust-lang.c (rust_language_data): Likewise.
4728 * varobj.c (varobj_create): Update call to varobj_ops.
4729 * varobj.h (default_varobj_ops): Delete define.
4731 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4733 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4735 * c-lang.c (c_language_data): Likewise.
4736 (c_language::macro_expansion): New member function.
4737 (cplus_language_data): Likewise.
4738 (cplus_language::macro_expansion): New member function.
4739 (asm_language_data): Likewise.
4740 (asm_language::macro_expansion): New member function.
4741 (minimal_language_data): Likewise.
4742 (minimal_language::macro_expansion): New member function.
4743 * d-lang.c (d_language_data): Remove la_macro_expansion
4745 * f-lang.c (f_language_data): Likewise.
4746 * go-lang.c (go_language_data): Likewise.
4747 * language.c (unknown_language_data): Likewise.
4748 (auto_language_data): Likewise.
4749 * language.h (language_data): Remove la_macro_expansion field.
4750 (language_defn::macro_expansion): New member function.
4751 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4753 * objc-lang.c (objc_language_data): Likewise.
4754 (objc_language::macro_expansion): New member function.
4755 * opencl-lang.c (opencl_language_data): Likewise.
4756 (opencl_language::macro_expansion): New member function.
4757 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4759 * rust-lang.c (rust_language_data): Likewise.
4760 * symtab.c (default_collect_symbol_completion_matches_break_on):
4761 Update call to macro_expansion.
4763 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4765 * ada-lang.c (ada_language_data): Remove la_array_ordering
4767 * c-lang.c (c_language_data): Likewise.
4768 (cplus_language_data): Likewise.
4769 (asm_language_data): Likewise.
4770 (minimal_language_data): Likewise.
4771 * d-lang.c (d_language_data): Likewise.
4772 * dwarf2/read.c (read_array_order): Update for call to
4774 * f-lang.c (f_language_data): Remove la_array_ordering
4776 (f_language::array_ordering): New member function.
4777 * go-lang.c (go_language_data): Remove la_array_ordering
4779 * language.c (unknown_language_data): Likewise.
4780 (auto_language_data): Likewise.
4781 * language.h (language_data): Delete la_array_ordering field.
4782 (language_defn::array_ordering): New member function.
4783 * m2-lang.c (m2_language_data): Remove la_array_ordering
4785 * objc-lang.c (objc_language_data): Likewise.
4786 * opencl-lang.c (opencl_language_data): Likewise.
4787 * p-lang.c (pascal_language_data): Likewise.
4788 * rust-lang.c (rust_language_data): Likewise.
4790 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4792 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4794 * c-lang.c (c_language_data): Likewise.
4795 (cplus_language_data): Likewise.
4796 (asm_language_data): Likewise.
4797 (minimal_language_data): Likewise.
4798 * d-lang.c (d_language_data): Likewise.
4799 * f-lang.c (f_language_data): Likewise.
4800 (f_language::case_sensitivity): New member function.
4801 * go-lang.c (go_language_data): Remove la_case_sensitivity
4803 * language.c (enum case_mode): Moved here from language.h.
4804 (case_mode): Make static.
4805 (show_case_command): Update for case_sensitivity being a method.
4806 (set_case_command): Likewise.
4807 (set_range_case): Likewise.
4808 (unknown_language_data): Remove la_case_sensitivity initializer.
4809 (auto_language_data): Likewise.
4810 * language.h (case_mode): Delete, move enum declaration to
4812 (language_data): Delete la_case_sensitivity field.
4813 (language_defn::case_sensitivity): New member function.
4814 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4816 * objc-lang.c (objc_language_data): Likewise.
4817 * opencl-lang.c (opencl_language_data): Likewise.
4818 * p-lang.c (pascal_language_data): Likewise.
4819 * rust-lang.c (rust_language_data): Likewise.
4821 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4823 * ada-lang.c (ada_language_data): Remove la_range_check
4825 * c-lang.c (c_language_data): Likewise.
4826 (cplus_language_data): Likewise.
4827 (asm_language_data): Likewise.
4828 (minimal_language_data): Likewise.
4829 * d-lang.c (d_language_data): Likewise.
4830 * f-lang.c (f_language_data): Likewise.
4831 (f_language::range_checking_on_by_default): New member function.
4832 * go-lang.c (go_language_data): Remove la_range_check initializer.
4833 * language.c (enum range_mode): Moved here from language.h.
4834 (range_mode): Made static.
4835 (show_range_command): Update to use
4836 range_checking_on_by_default.
4837 (set_range_command): Likewise.
4838 (set_range_case): Likewise.
4839 (unknown_language_data): Remove la_range_check initializer.
4840 (auto_language_data): Likewise.
4841 * language.h (range_mode): Delete. Enum definition moved to
4843 (language_data): Remove la_range_check field.
4844 (language_defn::range_checking_on_by_default): New member
4846 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4847 (m2_language::range_checking_on_by_default): New member function.
4848 * objc-lang.c (objc_language_data): Remove la_range_check
4850 * opencl-lang.c (opencl_language_data): Likewise.
4851 * p-lang.c (pascal_language_data): Likewise.
4852 (pascal_language::range_checking_on_by_default): New member
4854 * rust-lang.c (rust_language_data): Remove la_range_check
4856 (rust_language::range_checking_on_by_default): New member
4859 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4861 * dwarf2/read.c (dwarf2_physname): Remove special case for
4863 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4866 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4868 * ada-lang.c (ada_language_data): Remove
4869 la_store_sym_names_in_linkage_form_p initializer.
4870 (ada_language::store_sym_names_in_linkage_form_p): New member
4872 * c-lang.c (c_language_data): Remove
4873 la_store_sym_names_in_linkage_form_p initializer.
4874 (c_language::store_sym_names_in_linkage_form_p): New member
4876 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4878 (asm_language_data): Likewise.
4879 (asm_language::store_sym_names_in_linkage_form_p): New member
4881 (minimal_language_data): Remove
4882 la_store_sym_names_in_linkage_form_p initializer.
4883 (minimal_language::store_sym_names_in_linkage_form_p): New member
4885 * d-lang.c (d_language_data): Remove
4886 la_store_sym_names_in_linkage_form_p initializer.
4887 * dwarf2/read.c (dwarf2_physname): Update call to
4888 store_sym_names_in_linkage_form_p.
4889 * f-lang.c (f_language_data): Remove
4890 la_store_sym_names_in_linkage_form_p initializer.
4891 * go-lang.c (go_language_data): Remove
4892 la_store_sym_names_in_linkage_form_p initializer.
4893 * language.c (unknown_language_data): Remove
4894 la_store_sym_names_in_linkage_form_p initializer.
4895 (unknown_language::store_sym_names_in_linkage_form_p): New member
4897 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4899 (auto_language::store_sym_names_in_linkage_form_p): New member
4901 * language.h (language_data): Remove
4902 la_store_sym_names_in_linkage_form_p member variable.
4903 (language_defn::store_sym_names_in_linkage_form_p): New member
4905 * m2-lang.c (m2_language_data): Remove
4906 la_store_sym_names_in_linkage_form_p initializer.
4907 * objc-lang.c (objc_language_data): Likewise.
4908 * opencl-lang.c (opencl_language_data): Likewise.
4909 * p-lang.c (pascal_language_data): Likewise.
4910 * rust-lang.c (rust_language_data): Likewise.
4912 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4914 * ada-lang.c (ada_language_data): Remove string_lower_bound
4916 * c-lang.c (c_language_data): Likewise.
4917 (cplus_language_data): Likewise.
4918 (asm_language_data): Likewise.
4919 (minimal_language_data): Likewise.
4920 * d-lang.c (d_language_data): Likewise.
4921 * f-lang.c (f_language_data): Likewise.
4922 * go-lang.c (go_language_data): Likewise.
4923 * language.c (unknown_language_data): Likewise.
4924 (auto_language_data): Likewise.
4925 * language.h (language_data): Remove string_lower_bound field.
4926 (language_defn::string_lower_bound): New member function.
4927 * m2-lang.c (m2_language_data): Remove string_lower_bound
4929 (m2_language::string_lower_bound): New member function.
4930 * objc-lang.c (objc_language_data): Remove string_lower_bound
4932 * opencl-lang.c (opencl_language_data): Likewise.
4933 * p-lang.c (pascal_language_data): Likewise.
4934 * rust-lang.c (rust_language_data): Likewise.
4935 * valops.c (value_cstring): Update call to string_lower_bound.
4936 (value_string): Likewise.
4937 * value.c (allocate_repeated_value): Likewise.
4939 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4941 * valops.c (value_repeat): Fix incorrect argument name in comment.
4943 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4945 * ada-lang.c (ada_language_data): Remove c_style_arrays
4947 (ada_language::c_style_arrays_p): New member fuction.
4948 * c-lang.c (c_language_data): Remove c_style_arrays
4950 (cplus_language_data): Likewise.
4951 (asm_language_data): Likewise.
4952 (minimal_language_data): Likewise.
4953 * d-lang.c (d_language_data): Likewise.
4954 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4955 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4956 (f_language::c_style_arrays_p): New member function.
4957 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4958 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4959 * language.c (unknown_language_data): Remove c_style_arrays
4961 (auto_language_data): Likewise.
4962 * language.h (language_data): Remove c_style_arrays field.
4963 (language_defn::c_style_arrays_p): New member function.
4964 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4965 (m2_language::c_style_arrays_p): New member function.
4966 * objc-lang.c (objc_language_data): Remove c_style_arrays
4968 * opencl-lang.c (opencl_language_data): Likewise.
4969 * p-lang.c (pascal_language_data): Likewise.
4970 * rust-lang.c (rust_language_data): Likewise.
4971 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4972 and update local variable to a bool.
4973 * valops.c (value_cast): Update call to c_style_arrays_p.
4974 (value_array): Likewise.
4975 * value.c (coerce_array): Likewise.
4977 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4979 * ada-lang.c (ada_language_data): Remove la_language initializer.
4980 * c-lang.c (c_language_data): Likewise.
4981 (cplus_language_data): Likewise.
4982 (asm_language_data): Likewise.
4983 (minimal_language_data): Likewise.
4984 * d-lang.c (d_language_data): Likewise.
4985 * f-lang.c (f_language_data): Likewise.
4986 * go-lang.c (go_language_data): Likewise.
4987 * language.c (unknown_language_data): Likewise.
4988 (auto_language_data): Likewise.
4989 * language.h (language_data): Remove la_language field.
4990 (language_defn::language_defn): Initialise la_language field.
4991 (language_defn::la_language): New member variable.
4992 * m2-lang.c (m2_language_data): Remove la_language field.
4993 * objc-lang.c (objc_language_data): Likewise.
4994 * opencl-lang.c (opencl_language_data): Likewise.
4995 * p-lang.c (pascal_language_data): Likewise.
4996 * rust-lang.c (rust_language_data): Likewise.
4998 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5000 * ada-lang.c (ada_extensions): Delete, moved into
5001 ada_language::filename_extensions.
5002 (ada_language_data): Remove la_filename_extensions initializer.
5003 (ada_language::filename_extensions): New member function.
5004 * c-lang.c (c_extensions): Delete, moved into
5005 c_language::filename_extensions.
5006 (c_language_data): Remove la_filename_extensions initializer.
5007 (c_language::filename_extensions): New member function.
5008 (cplus_extensions): Delete, moved into
5009 cplus_language::filename_extensions.
5010 (cplus_language_data): Remove la_filename_extensions initializer.
5011 (cplus_language::filename_extensions): New member function.
5012 (asm_extensions): Delete, moved into
5013 asm_language::filename_extensions.
5014 (asm_language_data): Remove la_filename_extensions initializer.
5015 (asm_language::filename_extensions): New member function.
5016 (minimal_language_data): Remove la_filename_extensions
5018 * d-lang.c (d_extensions): Delete, moved into
5019 d_language::filename_extensions.
5020 (d_language_data): Remove la_filename_extensions initializer.
5021 (d_language::filename_extensions): New member function.
5022 * f-lang.c (f_extensions): Delete, moved into
5023 f_language::filename_extensions.
5024 (f_language_data): Remove la_filename_extensions initializer.
5025 (f_language::filename_extensions): New member function.
5026 * go-lang.c (go_language_data): Remove la_filename_extensions
5028 * language.c (add_set_language_command): Update now that
5029 filename_extensions returns a vector.
5030 (unknown_language_data): Remove la_filename_extensions
5032 (auto_language_data): Likewise.
5033 * language.h (language_data): Remove la_filename_extensions field.
5034 (language_defn::filename_extensions): New member function.
5035 * m2-lang.c (m2_language_data): Remove la_filename_extensions
5037 * objc-lang.c (objc_extensions): Delete, moved into
5038 objc_language::filename_extensions.
5039 (objc_language_data): Remove la_filename_extensions initializer.
5040 (objc_language::filename_extensions): New member function.
5041 * opencl-lang.c (opencl_language_data): Remove
5042 la_filename_extensions initializer.
5043 * p-lang.c (pascal_extensions): Delete, moved into
5044 pascal_language::filename_extensions.
5045 (pascal_language_data): Remove la_filename_extensions initializer.
5046 (pascal_language::filename_extensions): New member function.
5047 * rust-lang.c (rust_extensions): Delete, moved into
5048 rust_language::filename_extensions.
5049 (rust_language_data): Remove la_filename_extensions initializer.
5050 (rust_language::filename_extensions): New member function.
5051 * symfile.c (add_filename_language): Add new assert.
5053 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5055 * ada-lang.c (ada_language_data): Remove la_name and
5056 la_natural_name initializers.
5057 (ada_language::name): New member function.
5058 (ada_language::natural_name): New member function.
5059 * c-lang.c (c_language_data): Remove la_name and
5060 la_natural_name initializers.
5061 (c_language::name): New member function.
5062 (c_language::natural_name): New member function.
5063 (cplus_language_data): Remove la_name and
5064 la_natural_name initializers.
5065 (cplus_language::name): New member function.
5066 (cplus_language::natural_name): New member function.
5067 (asm_language_data): Remove la_name and
5068 la_natural_name initializers.
5069 (asm_language::name): New member function.
5070 (asm_language::natural_name): New member function.
5071 (minimal_language_data): Remove la_name and
5072 la_natural_name initializers.
5073 (minimal_language::name): New member function.
5074 (minimal_language::natural_name): New member function.
5075 * compile/compile.c (compile_to_object): Update call to
5076 lanugage_defn::name.
5077 * d-lang.c (d_language_data): Remove la_name and
5078 la_natural_name initializers.
5079 (d_language::name): New member function.
5080 (d_language::natural_name): New member function.
5081 * expprint.c (print_subexp_standard): Update call to
5082 language_defn::name.
5083 (dump_raw_expression): Likewise
5084 (dump_prefix_expression): Likewise.
5085 * f-lang.c (f_language_data): Remove la_name and
5086 la_natural_name initializers.
5087 (f_language::name): New member function.
5088 (f_language::natural_name): New member function.
5089 * go-lang.c (go_language_data): Remove la_name and
5090 la_natural_name initializers.
5091 (go_language::name): New member function.
5092 (go_language::natural_name): New member function.
5093 * language.c (show_language_command): Update call to
5094 language_defn::name.
5095 (set_language_command): Likewise.
5096 (language_enum): Likewise.
5097 (language_str): Likewise.
5098 (add_set_language_command): Likewise, use
5099 language_defn::natural_name in the doc string.
5100 (unknown_language_data): Remove la_name and
5101 la_natural_name initializers.
5102 (unknown_language::name): New member function.
5103 (unknown_language::natural_name): New member function.
5104 (auto_language_data): Remove la_name and
5105 la_natural_name initializers.
5106 (auto_language::name): New member function.
5107 (auto_language::natural_name): New member function.
5108 (language_lookup_primitive_type_as_symbol): Update call to
5109 language_defn::name.
5110 * language.h (language_data): Remove la_name and la_natural_name
5112 (language_defn::name): New member function.
5113 (language_defn::natural_name): New member function.
5114 * m2-lang.c (m2_language_data): Remove la_name and
5115 la_natural_name initializers.
5116 (m2_language::name): New member function.
5117 (m2_language::natural_name): New member function.
5118 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5119 language_defn::natural_name.
5120 * objc-lang.c (objc_language_data): Remove la_name and
5121 la_natural_name initializers.
5122 (objc_language::name): New member function.
5123 (objc_language::natural_name): New member function.
5124 * opencl-lang.c (opencl_language_data): Remove la_name and
5125 la_natural_name initializers.
5126 (opencl_language::name): New member function.
5127 (opencl_language::natural_name): New member function.
5128 * p-lang.c (pascal_language_data): Remove la_name and
5129 la_natural_name initializers.
5130 (pascal_language::name): New member function.
5131 (pascal_language::natural_name): New member function.
5132 * rust-lang.c (rust_language_data): Remove la_name and
5133 la_natural_name initializers.
5134 (rust_language::name): New member function.
5135 (rust_language::natural_name): New member function.
5136 * symtab.c (lookup_language_this): Update call to
5137 language_defn::name.
5139 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5141 * ada-lang.c (ada_language_data): Remove la_name_of_this
5143 * ax-gdb.c (gen_expr): Update call to name_of_this.
5144 * c-exp.y (classify_name): Likewise.
5145 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5146 (cplus_language_data): Likewise.
5147 (cplus_language::name_of_this): New member function.
5148 (asm_language_data): Remove la_name_of_this initializer.
5149 (minimal_language_data): Likewise.
5150 * d-lang.c (d_language_data): Likewise.
5151 (d_language::name_of_this): New member function.
5152 * expprint.c (print_subexp_standard): Update call to name_of_this.
5153 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5154 * go-lang.c (go_language_data): Likewise.
5155 * language.c (unknown_language_data): Likewise.
5156 (unknown_language::name_of_this): New member function.
5157 (auto_language_data): Remove la_name_of_this initializer.
5158 (auto_language::name_of_this): New member function.
5159 * language.h (language_data): Delete la_name_of_this member
5161 (language_defn::name_of_this): New member function.
5162 * m2-lang.c (m2_language_data): Remove la_name_of_this
5164 * objc-lang.c (objc_language_data): Likewise.
5165 (objc_language::name_of_this): New member function.
5166 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5168 * p-lang.c (pascal_language_data): Likewise.
5169 (pascal_language::name_of_this): New member function.
5170 * rust-lang.c (rust_language_data): Remove la_name_of_this
5172 * symtab.c (lookup_language_this): Update call to name_of_this.
5173 (lookup_symbol_aux): Likewise.
5174 * valops.c (value_of_this): Likewise.
5176 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5178 * ada-lang.c (ada_language_data): Remove
5179 la_struct_too_deep_ellipsis initializer.
5180 (ada_language::struct_too_deep_ellipsis): New member function.
5181 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5183 (cplus_language_data): Likewise.
5184 (asm_language_data): Likewise.
5185 (minimal_language_data): Likewise.
5186 * cp-valprint.c (cp_print_value): Update call to
5187 struct_too_deep_ellipsis.
5188 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5190 * f-lang.c (f_language_data): Likewise.
5191 (f_language::struct_too_deep_ellipsis): New member function.
5192 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5194 * language.c (unknown_language_data): Likewise.
5195 (auto_language_data): Likewise.
5196 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5198 (language_defn::struct_too_deep_ellipsis): New member function.
5199 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5201 * objc-lang.c (objc_language_data): Likewise.
5202 * opencl-lang.c (opencl_language_data): Likewise.
5203 * p-lang.c (pascal_language_data): Likewise.
5204 * rust-lang.c (rust_language_data): Likewise.
5205 * valprint.c (val_print_check_max_depth): Update call to
5206 struct_too_deep_ellipsis.
5208 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5210 * MAINTAINERS (Write After Approval): Add myself.
5212 2020-09-15 Tom Tromey <tom@tromey.com>
5214 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5217 2020-09-15 Tom Tromey <tom@tromey.com>
5219 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5220 and TYPE_CODE_METHODPTR cases.
5221 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5222 (c_value_print_inner): Update.
5223 * valprint.c (generic_value_print_memberptr): New function, from
5224 c_value_print_memberptr.
5225 (generic_value_print): Use it. Call cplus_print_method_ptr.
5227 2020-09-15 Tom Tromey <tromey@adacore.com>
5229 * python/python-internal.h (PyInt_FromLong): Remove define.
5230 * python/py-value.c (convert_value_from_python): Use
5231 gdb_py_object_from_longest.
5232 * python/py-type.c (typy_get_code): Use
5233 gdb_py_object_from_longest.
5234 * python/py-symtab.c (salpy_get_line): Use
5235 gdb_py_object_from_longest.
5236 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5237 gdb_py_object_from_longest.
5238 * python/py-record.c (recpy_gap_reason_code): Use
5239 gdb_py_object_from_longest.
5240 * python/py-record-btrace.c (recpy_bt_insn_size)
5241 (recpy_bt_func_level, btpy_list_count): Use
5242 gdb_py_object_from_longest.
5243 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5244 gdb_py_object_from_longest. Fix error handling.
5245 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5246 gdb_py_object_from_longest.
5247 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5248 gdb_py_object_from_longest.
5249 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5250 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5251 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5253 2020-09-15 Tom Tromey <tromey@adacore.com>
5255 * python/python.c (gdbpy_parameter_value): Use
5256 gdb_py_object_from_ulongest.
5258 2020-09-15 Tom Tromey <tromey@adacore.com>
5260 * python/py-infevents.c (create_register_changed_event_object):
5261 Use gdb_py_object_from_longest.
5262 * python/py-exitedevent.c (create_exited_event_object): Use
5263 gdb_py_object_from_longest.
5265 2020-09-15 Tom Tromey <tromey@adacore.com>
5267 * python/python.c (gdbpy_parameter_value): Use
5268 gdb_py_object_from_longest.
5269 * python/py-type.c (convert_field, typy_range): Use
5270 gdb_py_object_from_longest.
5271 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5272 gdb_py_object_from_longest.
5273 * python/py-lazy-string.c (stpy_get_length): Use
5274 gdb_py_object_from_longest.
5275 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5276 gdb_py_object_from_longest.
5277 * python/py-infevents.c (create_memory_changed_event_object): Use
5278 gdb_py_object_from_longest.
5279 * python/py-inferior.c (infpy_get_num): Use
5280 gdb_py_object_from_longest.
5281 (infpy_get_pid): Likewise.
5283 2020-09-15 Tom Tromey <tromey@adacore.com>
5285 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5287 * python/py-value.c (valpy_long): Use
5288 gdb_py_object_from_ulongest.
5289 * python/py-symtab.c (salpy_get_pc): Use
5290 gdb_py_object_from_ulongest.
5291 (salpy_get_last): Likewise.
5292 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5293 gdb_py_object_from_ulongest.
5294 * python/py-lazy-string.c (stpy_get_address): Use
5295 gdb_py_object_from_ulongest.
5296 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5297 * python/py-arch.c (archpy_disassemble): Use
5298 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5301 2020-09-15 Tom Tromey <tromey@adacore.com>
5303 * python/python-internal.h (gdb_py_long_from_longest): Remove
5305 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5306 * python/py-type.c (convert_field, typy_get_sizeof): Use
5307 gdb_py_object_from_longest.
5308 * python/py-record-btrace.c (btpy_list_index): Use
5309 gdb_py_object_from_longest.
5311 2020-09-15 Tom Tromey <tromey@adacore.com>
5313 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5314 * python/py-record.c (recpy_element_number): Use
5315 gdb_py_object_from_longest.
5316 (recpy_gap_number): Likewise.
5318 2020-09-15 Tom Tromey <tromey@adacore.com>
5320 * top.c (ui::ui): Update.
5321 (highest_ui_num): Remove.
5322 * top.h (struct ui) <num>: Remove.
5324 2020-09-15 Tom Tromey <tromey@adacore.com>
5326 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5327 * ui-style.c (ansi_regex_text): Now array.
5328 * rust-exp.y (number_regex_text): Now array.
5329 * linespec.c (linespec_quote_characters): Now array.
5330 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5333 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5335 * debuginfod-support.c (debuginfod_client_deleter): New.
5336 (debuginfod_client_up): New.
5337 (debuginfod_init): Return debuginfod_client_up.
5338 (debuginfod_source_query): Adjust.
5339 (debuginfod_debuginfo_query): Adjust.
5341 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5343 * debuginfod-support.c (debuginfod_source_query): Use
5344 make_unique_xstrdup.
5346 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5348 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5349 with `type::instance_flags`.
5351 2020-09-14 Michael Mullin <masmullin@gmail.com>
5353 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5354 Remove baton parameter.
5356 2020-09-14 Pedro Alves <pedro@palves.net>
5358 * Makefile.in (SELFTESTS_SRCS): Add
5359 unittests/enum-flags-selftests.c.
5360 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5361 btrace_function_flags instead of enum btrace_function_flag.
5362 * compile/compile-c-types.c (convert_qualified): Use
5364 * compile/compile-cplus-symbols.c (convert_one_symbol)
5365 (convert_symbol_bmsym):
5366 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5367 (compile_cplus_convert_struct_or_union_methods)
5368 (compile_cplus_instance::convert_qualified_base):
5369 * go-exp.y (parse_string_or_char): Add cast to int.
5370 * unittests/enum-flags-selftests.c: New file.
5371 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5372 type to btrace_thread_flags from btrace_thread_flag.
5373 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5374 local's type to btrace_thread_flags from btrace_thread_flag. Add
5377 2020-09-14 Pedro Alves <pedro@palves.net>
5379 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5380 * gdbtypes.c (address_space_name_to_int): Rename to ...
5381 (address_space_name_to_type_instance_flags): ... this.
5382 (address_space_int_to_name): Rename to ...
5383 (address_space_type_instance_flags_to_name): ... this.
5384 * gdbtypes.h (address_space_name_to_int): Rename to ...
5385 (address_space_name_to_type_instance_flags): ... this.
5386 (address_space_int_to_name): Rename to ...
5387 (address_space_type_instance_flags_to_name): ... this.
5388 * type-stack.c (type_stack::insert): Adjust to rename.
5389 * type-stack.h (type_stack::insert): Likewise.
5391 2020-09-14 Pedro Alves <pedro@palves.net>
5392 Andrew Burgess <andrew.burgess@embecosm.com>
5394 * avr-tdep.c (avr_address_class_type_flags): Return
5395 type_instance_flags.
5396 (avr_address_class_type_flags_to_name): Take a
5397 type_instance_flags.
5398 (avr_address_class_name_to_type_flags): Return bool and take a
5399 type_instance_flags.
5400 * d-lang.c (build_d_types): Use type::set_instance_flags.
5401 * ft32-tdep.c (ft32_address_class_type_flags): Return
5402 type_instance_flags.
5403 (ft32_address_class_type_flags_to_name): Take a
5404 type_instance_flags.
5405 (ft32_address_class_name_to_type_flags): Return bool and take a
5406 type_instance_flags.
5407 (ft32_gdbarch_init): Use type::set_instance_flags.
5408 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5409 * gdbarch.h, gdbarch.c: Regenerate.
5410 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5411 (address_class_name_to_type_flags): Use type_instance_flags and
5413 * gdbtypes.c (address_space_name_to_int)
5414 (address_space_int_to_name, make_qualified_type): Use
5415 type_instance_flags.
5416 (make_qualified_type): Use type_instance_flags and
5417 type::set_instance_flags.
5418 (make_type_with_address_space, make_cv_type, make_vector_type)
5419 (check_typedef): Use type_instance_flags.
5420 (recursive_dump_type): Cast type_instance_flags to unsigned for
5422 (copy_type_recursive): Use type::set_instance_flags.
5423 (gdbtypes_post_init): Use type::set_instance_flags.
5424 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5425 <m_instance_flags>: ... this.
5426 <instance_flags, set_instance_flags>: New methods.
5427 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5428 (SET_TYPE_INSTANCE_FLAGS): New.
5429 (address_space_name_to_int, address_space_int_to_name)
5430 (make_type_with_address_space): Pass flags using
5431 type_instance_flags instead of int.
5432 * stabsread.c (cleanup_undefined_types_noname): Use
5433 type::set_instance_flags.
5434 * s390-tdep.c (s390_address_class_type_flags): Return
5435 type_instance_flags.
5436 (s390_address_class_type_flags_to_name): Take a
5437 type_instance_flags.
5438 (s390_address_class_name_to_type_flags): Return bool and take a
5439 type_instance_flags.
5440 * type-stack.c (type_stack::follow_types): Use
5441 type_instance_flags.
5442 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5444 2020-09-14 Tom Tromey <tromey@adacore.com>
5446 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5447 * x86-tdep.c (x86_is_thunk_register_name)
5448 (x86_in_indirect_branch_thunk): Update.
5449 * sparc64-tdep.c (sparc64_fpu_register_names)
5450 (sparc64_cp0_register_names, sparc64_register_names)
5451 (sparc64_pseudo_register_names): Now const.
5452 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5453 cp0_registers_num>: Now const.
5454 * sparc-tdep.c (sparc_core_register_names)
5455 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5456 (sparc32_pseudo_register_names): Now const.
5457 (validate_tdesc_registers): Update.
5458 * rust-lang.c (rust_extensions): Now const.
5459 * p-lang.c (p_extensions): Now const.
5460 * objc-lang.c (objc_extensions): Now const.
5461 * nto-tdep.c (nto_thread_state_str): Now const.
5462 * moxie-tdep.c (moxie_register_names): Now const.
5463 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5465 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5466 (mips_linux_reg_names): Now const.
5467 (mips_gdbarch_init): Update.
5468 * microblaze-tdep.c (microblaze_register_names): Now const.
5469 * m68k-tdep.c (m68k_register_names): Now const.
5470 * m32r-tdep.c (m32r_register_names): Now const.
5471 * ia64-tdep.c (ia64_register_names): Now const.
5472 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5473 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5474 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5475 ymm_avx512_register_names, pkeys_register_names>: Now const.
5476 * i386-tdep.c (i386_register_names, i386_zmm_names)
5477 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5478 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5479 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5480 * f-lang.c (f_extensions): Now const.
5481 * d-lang.c (d_extensions): Now const.
5482 * csky-tdep.c (csky_register_names): Now const.
5483 * charset.c (default_charset_names, charset_enum): Now const.
5484 (_initialize_charset): Update.
5485 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5487 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5488 (bsd_uthread_solib_loaded): Update.
5489 (bsd_uthread_state): Now const.
5490 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5491 (amd64_ymm_avx512_names, amd64_ymmh_names)
5492 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5493 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5494 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5495 (amd64_dword_names): Now const.
5496 * agent.c (can_use_agent_enum): Now const.
5497 * ada-tasks.c (task_states, long_task_states): Now const.
5498 * ada-lang.c (known_runtime_file_name_patterns)
5499 (known_auxiliary_function_name_patterns, attribute_names)
5500 (standard_exc, ada_extensions): Now const.
5502 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5504 * bcache.h (struct bcache) <bcache>: Remove constructor.
5505 <m_hash_function, m_compare_function>: Remove.
5506 <~bcache>: Make virtual.
5507 <compare>: Remove static method, introduce virtual method.
5508 <default_hash>: Remove.
5509 <hash>: New virtual method.
5510 * bcache.c (bcache::expand_hash_table): Update.
5511 (bcache::insert): Update.
5512 (bcache::hash): New.
5513 (bcache::compare): Update comment and parameter names.
5514 * gdbtypes.c (types_deeply_equal): Update.
5515 * psymtab.h (struct psymbol_bcache): New struct.
5516 (class psymtab_storage) <psymtab_storage>: Make default.
5517 <psymbol_cache>: Change type to psymbol_bcache.
5518 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5519 (psymbol_hash): Change to...
5520 (psymbol_bcache::hash): ... this.
5521 (psymbol_compare): Change to...
5522 (psymbol_bcache::compare): ... this.
5524 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5526 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5527 checking for initial lwp.
5529 2020-09-14 Tom Tromey <tromey@adacore.com>
5531 * m68k-tdep.c (m68k_extract_return_value): Use
5532 pointer_result_regnum.
5533 (m68k_store_return_value): Likewise.
5534 (m68k_reg_struct_return_p): Handle vectors and arrays.
5535 (m68k_return_value): Handle arrays.
5536 (m68k_svr4_return_value): Fix single-element aggregate handling.
5537 Handle long double. Adjust for embedded ABI.
5538 (m68k_svr4_init_abi): Set pointer_result_regnum.
5539 (m68k_embedded_init_abi): New function.
5540 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5541 (m68k_osabi_sniffer): New function.
5542 (_initialize_m68k_tdep): Register osabi sniffer.
5543 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5546 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5548 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5549 with gdb::unique_xmalloc_ptr<char>.
5551 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5553 * xml-support.h (xml_fetch_another): Change type to be a
5555 (xml_process_xincludes): Remove baton parameter.
5556 (xml_fetch_content_from_file): Change baton parameter to
5558 * xml-support.c (struct xinclude_parsing_data)
5559 <xinclude_parsing_data>: Remove baton parameter.
5560 <fetcher_baton>: Remove.
5561 (xinclude_start_include): Adjust.
5562 (xml_process_xincludes): Adjust.
5563 (xml_fetch_content_from_file): Replace baton parameter with
5565 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5566 (xml_init_syscalls_info): Use a lambda.
5567 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5568 (file_read_description_xml): Use a lambda.
5569 (fetch_available_features_from_target): Change baton parameter
5571 (target_read_description_xml): Use a lambda.
5572 (target_fetch_description_xml): Use a lambda.
5573 (string_read_description_xml): Update.
5575 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5577 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5578 uses with type::endianity_is_not_default.
5580 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5582 * gdbtypes.h (struct type) <endianity_is_not_default,
5583 set_endianity_is_not_default>: New methods.
5584 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5585 type::endianity_is_not_default, change all write call sites to
5586 use type::set_endianity_is_not_default.
5588 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5590 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5591 uses with type::is_fixed_instance.
5593 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5595 * gdbtypes.h (struct type) <is_fixed_instance,
5596 set_is_fixed_instance>: New methods.
5597 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5598 write call sites to use type::set_is_fixed_instance.
5600 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5602 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5603 uses with type::is_gnu_ifunc.
5605 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5607 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5608 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5609 use type::set_is_gnu_ifunc.
5611 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5613 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5614 uses with type::stub_is_supported.
5616 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5618 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5619 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5620 use type::set_stub_is_supported.
5622 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5624 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5625 uses with type::is_vector.
5627 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5629 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5630 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5631 use type::set_is_vector.
5633 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5635 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5636 uses with type::has_varargs.
5638 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5640 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5641 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5642 use type::set_has_varargs.
5644 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5646 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5647 uses with type::is_prototyped.
5649 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5651 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5653 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5654 call sites to use type::set_is_prototyped.
5656 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5658 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5659 uses with type::target_is_stub.
5661 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5663 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5665 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5666 sites to use type::set_target_is_stub.
5668 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5670 * gdbtypes.h (TYPE_STUB): Remove, replace all
5671 uses with type::is_stub.
5673 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5675 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5676 (TYPE_STUB): Use type::is_stub, change all write call sites to
5677 use type::set_is_stub.
5679 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5681 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5682 type::has_no_signedness.
5684 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5686 * gdbtypes.h (struct type) <has_no_signedness,
5687 set_has_no_signedness>: New methods.
5688 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5689 call sites to use type::set_has_no_signedness.
5691 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5693 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5696 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5698 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5700 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5701 sites to use type::set_is_unsigned.
5703 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5704 Adam Renquinha <arenquinha@cimeq.qc.ca>
5706 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5707 pointer and stack frame offset when unwinding.
5709 2020-09-13 Pedro Alves <pedro@palves.net>
5711 * NEWS: Document "-break-insert --qualified".
5712 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5714 2020-09-13 Pedro Alves <pedro@palves.net>
5716 * linespec.c (classify_mtype, compare_msyms): Delete.
5717 (search_minsyms_for_name): Remove classification logic. Instead
5718 filter out trampoline symbols if we also found an external
5719 function of the same name.
5721 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5723 * NEWS: Create a new section for the next release branch.
5724 Rename the section of the current branch, now that it has
5727 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5729 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5730 * version.in: Bump version to 11.0.50.DATE-git.
5732 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5734 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5736 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5737 Felix Willgerodt <Felix.Willgerodt@intel.com>
5739 * gdbarch.sh: Added bfloat16 type.
5740 * gdbarch.c: Regenerated.
5741 * gdbarch.h: Regenerated.
5742 * gdbtypes.c (floatformats_bfloat16): New struct.
5743 (gdbtypes_post_init): Add builtin_bfloat16.
5744 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5745 (floatformats_bfloat16): New struct.
5746 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5747 (i386_ymm_type): Add field "v16_bfloat16"
5748 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5749 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5750 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5751 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5752 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5753 * features/i386/64bit-avx512.c: Regenerated.
5754 * features/i386/64bit-sse.xml: Add bfloat16 type.
5755 * features/i386/64bit-sse.c: Regenerated.
5757 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5759 * i386-tdep.c (i386_zmm_type): Fix field names.
5760 (i386_ymm_type): Fix field names.
5762 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5764 * breakpoint.c: Fix typo in the help message of the
5765 "set breakpoint condition-evaluation" command.
5767 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5769 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5770 * (nbsd_nat_target::pid_to_exec_file)
5771 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5772 (nbsd_nat_target::post_startup_inferior)
5773 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5774 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5775 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5776 * (nbsd_thread_lister): Remove.
5778 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5780 * fork-inferior.c (startup_inferior): Avoid double free.
5782 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5784 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5785 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5787 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5789 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5790 * netbsd-nat.c: Include <sys/ptrace.h>.
5791 * (netbsd_nat::enable_proc_events): Add.
5793 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5795 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5796 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5797 (netbsd_nat::for_each_thread): Add.
5798 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5799 "gdbsupport/common-debug.h".
5800 * (netbsd_nat::netbsd_thread_lister)
5801 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5802 (netbsd_nat::for_each_thread): Add.
5804 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5806 * netbsd-nat.h: Include <unistd.h>.
5807 * (netbsd_nat::pid_to_exec_file): Add.
5808 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5809 * (netbsd_nat::pid_to_exec_file) Add.
5811 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5813 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5815 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5817 * netbsd-nat.h: New file.
5818 * netbsd-nat.c: Likewise.
5820 2020-09-09 Tom Tromey <tromey@adacore.com>
5822 * ada-lang.c (remove_extra_symbols): Do not increment when
5825 2020-09-08 Tom Tromey <tromey@adacore.com>
5827 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5829 2020-09-08 Tom Tromey <tromey@adacore.com>
5832 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5833 (gdb_bfd_init_data): New function.
5834 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5836 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5838 * infrun.c (fetch_inferior_event): Use
5839 `switch_to_target_no_thread` to switch the target.
5841 2020-09-06 Tom Tromey <tom@tromey.com>
5843 * symfile.h (dwarf2_free_objfile): Don't declare.
5845 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5847 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5848 to match 16 byte real/complex type generated by Flang compiler.
5850 2020-09-03 Tom de Vries <tdevries@suse.de>
5853 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5854 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5856 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5858 * maint.c (index_digits): New function.
5859 (struct maint_print_section_data): Remove.
5860 (print_bfd_section_info): Remove print_data parameter, add arg
5862 (print_objfile_section_info): Likewise.
5863 (print_bfd_section_info_maybe_relocated): Likewise (plus
5865 (maintenance_info_sections): Adjust calls.
5867 2020-09-02 Tom Tromey <tromey@adacore.com>
5869 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5871 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5873 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5875 * bcache.h (struct bcache) <insert>: Change type of `added` to
5877 * bcache.c (bcache::insert): Likewise.
5878 * gdbtypes.c (check_types_worklist): Adjust.
5879 * psymtab.c (add_psymbol_to_bcache): Adjust.
5881 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5883 * corelow.c (unordered_set): Include.
5884 (class core_target): Add field 'm_core_unavailable_mappings'.
5885 (core_target::build_file_mappings): Print only one warning
5886 per inaccessible file. Add unavailable/broken mappings
5887 to m_core_unavailable_mappings.
5888 (core_target::xfer_partial): Call...
5889 (core_target::xfer_memory_via_mappings): New method.
5891 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5893 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5896 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5898 * dwarf2/read.c (struct field_info): Fix indentation.
5900 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5902 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5903 ordering in comment.
5904 * frame.c (frame_id_eq): Fix indentation.
5906 2020-08-31 Scott Linder <scott@scottlinder.com>
5907 Simon Marchi <simon.marchi@efficios.com>
5909 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5910 inline frame ids in outer frame.
5912 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5914 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5915 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5916 (outer_frame_id): Use FID_STACK_OUTER instead of
5918 (frame_id_p): Don't check for outer_frame_id.
5920 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5922 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5923 regnum/frame in value. Call allocate_value_lazy.
5924 * frame.c (frame_unwind_register_value): Use
5925 val_print_not_saved.
5927 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5929 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5931 2020-08-29 Pedro Alves <pedro@palves.net>
5933 * progspace.c (print_program_space): Use all_inferiors. Switch to
5934 the inferior before calling target_pid_to_str.
5936 2020-08-28 Tom Tromey <tom@tromey.com>
5938 * xcoffread.c (xcoff_end_psymtab): Update comment.
5939 * dbxread.c (dbx_end_psymtab): Update comment.
5941 2020-08-28 Tom de Vries <tdevries@suse.de>
5944 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5946 (create_breakpoint): Same.
5947 (base_breakpoint_decode_location): Same.
5948 (bkpt_create_sals_from_location): Same.
5949 (bkpt_decode_location): Same.
5950 (bkpt_probe_create_sals_from_location): Same.
5951 (bkpt_probe_decode_location): Same.
5952 (tracepoint_create_sals_from_location): Same.
5953 (tracepoint_decode_location): Same.
5954 (tracepoint_probe_decode_location): Same.
5955 (strace_marker_create_sals_from_location): Same.
5956 (strace_marker_decode_location): Same.
5957 (create_sals_from_location_default): Same.
5958 (decode_location_default): Same.
5959 * breakpoint.h (struct breakpoint_ops): Same.
5960 (create_breakpoint): Same.
5961 * linespec.h (decode_line_full): Same.
5962 * linespec.c (decode_line_full): Same. Throw error if
5963 result.size () == 0.
5965 2020-08-27 Pedro Alves <pedro@palves.net>
5968 * breakpoint.c (until_break_fsm) <location_breakpoint,
5969 caller_breakpoint>: Delete fields.
5970 <breakpoints>: New field.
5971 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5972 two individual breakpoints.
5973 (until_break_fsm::should_stop): Loop over breakpoints in the
5975 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5977 (until_break_command): Handle location expanding into multiple
5980 2020-08-27 Pedro Alves <pedro@palves.net>
5983 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5984 bp_until breakpoints user-specified locations. Update intro
5987 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5989 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5990 gdb_bfd_sections): New.
5991 * maint.c (print_bfd_section_info): Change param type to
5992 maint_print_section_data.
5993 (print_objfile_section_info): Likewise.
5994 (print_bfd_section_info_maybe_relocated): Likewise.
5995 (maintenance_info_sections): Use gdb_bfd_sections.
5997 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5999 * MAINTAINERS: Add ARC target and maintainer.
6001 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
6003 * configure.tgt: ARC support for GNU/Linux.
6004 * Makefile.in (ALL_TARGET_OBJS): Likewise.
6005 * arc-linux-tdep.c: New file.
6006 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
6007 * arc-tdep.c (arc_write_pc): Use it.
6009 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6011 * arc-tdep.c (arc_check_for_hardware_loop): New.
6012 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
6014 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6016 * arc-tdep.h: Include "gdbarch.h".
6018 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6021 (arc_gdbarch_features): New class to stir the selection of target XML.
6022 (arc_create_target_description): Use FEATURES to choose XML target.
6023 (arc_lookup_target_description): Use arc_create_target_description
6024 to create _new_ target descriptions or return the already created
6025 ones if the FEATURES is the same.
6026 * arch/arc.c: Implementation of prototypes described above.
6027 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
6028 (arc_gdbarch_features_init): Initialize the FEATURES struct.
6029 * arc-tdep.c (*_feature_name): Make feature names consistent.
6030 (arc_register_feature): A new struct to hold information about
6031 registers of a particular target/feature.
6032 (arc_check_tdesc_feature): Check if XML provides registers in
6033 compliance with ARC_REGISTER_FEATURE structs.
6034 (arc_update_acc_reg_names): Add aliases for r58 and r59.
6035 (determine_*_reg_feature_set): Which feature name to look for.
6036 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
6037 (mach_type_to_arc_isa): Convert from a set of binutils machine types
6038 to expected ISA enums to be used in arc_gdbarch_features structs.
6039 * features/Makefile (FEATURE_XMLFILES): Add new files.
6040 * gdb/features/arc/v1-aux.c: New file.
6041 * gdb/features/arc/v1-aux.xml: Likewise.
6042 * gdb/features/arc/v1-core.c: Likewise.
6043 * gdb/features/arc/v1-core.xml: Likewise.
6044 * gdb/features/arc/v2-aux.c: Likewise.
6045 * gdb/features/arc/v2-aux.xml: Likewise.
6046 * gdb/features/arc/v2-core.c: Likewise.
6047 * gdb/features/arc/v2-core.xml: Likewise.
6048 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
6050 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
6051 Andrew Burgess <andrew.burgess@embecosm.com>
6054 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
6055 an assert. Remove single element array indexing pattern as the
6056 MULTI_SUBSCRIPT support will handle this case too.
6058 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
6060 * value.h (valprint_check_validity): Move declaration from
6062 * valprint.h (valprint_check_validity): ... to here.
6064 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6066 * debug.h: New file.
6067 * debug.c (debug_prefixed_vprintf): New function.
6068 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6069 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
6071 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6073 * infrun.h (infrun_debug_printf_1): New function declaration.
6074 (infrun_debug_printf): New macro.
6075 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6077 (infrun_debug_printf): New function.
6078 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6079 (handle_jit_event): Likewise.
6081 2020-08-21 Mark Wielaard <mark@klomp.org>
6083 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6085 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
6087 * frame.c (enum class frame_id_status): New.
6088 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6089 (fprintf_frame): Update.
6090 (compute_frame_id): Set frame id status to "computing" on entry.
6091 Set it back to "not_computed" on failure and to "computed" on
6093 (get_frame_id): Assert the frame id is not being computed.
6094 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6095 (create_new_frame): Likewise.
6096 (frame_cleanup_after_sniffer): Update assert.
6098 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6100 * regcache.c (pid_ptid_regcache_map): New type.
6101 (target_ptid_regcache_map): Remove.
6102 (target_pid_ptid_regcache_map): New type.
6103 (regcaches): Change type to target_pid_ptid_regcache_map.
6104 (get_thread_arch_aspace_regcache): Update.
6105 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6107 (regcaches_size): Update.
6108 (regcache_count): Update.
6109 (registers_changed_ptid_target_pid_test): New.
6110 (_initialize_regcache): Register new test.
6112 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6114 * regcache.c (regcache_count): New.
6115 (struct regcache_test_data): New.
6116 (regcache_test_data_up): New.
6117 (populate_regcaches_for_test): New.
6118 (regcaches_test): Remove.
6119 (get_thread_arch_aspace_regcache_test): New.
6120 (registers_changed_ptid_all_test): New.
6121 (registers_changed_ptid_target_test): New.
6122 (registers_changed_ptid_target_ptid_test): New.
6123 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6124 (_initialize_regcache): Register new tests.
6126 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6128 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6129 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6130 gdbarch and aspace parameter. Use current inferior's aspace.
6131 Validate regcache's arch value.
6132 (regcaches_test): Update.
6134 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6136 * regcache.c (regcaches_test): Call registers_changed.
6138 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6140 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6142 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6144 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6145 to find the end of prologue for flang compiled binaries.
6146 * arm-tdep.c (arm_skip_prologue): Likewise.
6147 * i386-tdep.c (i386_skip_prologue): Likewise.
6148 * producer.c (producer_is_llvm): New function.
6149 (producer_parsing_tests): Added new tests for clang/flang.
6150 * producer.h (producer_is_llvm): New declaration.
6152 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
6154 * linux-nat.c (linux_nat_debug_printf): New function.
6155 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6157 2020-08-18 Aaron Merey <amerey@redhat.com>
6159 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6160 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6161 (CLIBS): Add DEBUGINFOD_LIBS.
6163 2020-08-17 Sergei Trofimovich <siarheit@google.com>
6165 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6168 2020-08-17 Tom Tromey <tromey@adacore.com>
6170 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6171 ada_get_decoded_value returns NULL.
6173 2020-08-17 Tom Tromey <tromey@adacore.com>
6175 * python/py-inferior.c (infpy_search_memory): Use
6176 gdb_py_object_from_ulongest.
6177 * python/py-infevents.c (create_inferior_call_event_object)
6178 (create_memory_changed_event_object): Use
6179 gdb_py_object_from_ulongest.
6180 * python/py-linetable.c (ltpy_entry_get_pc): Use
6181 gdb_py_object_from_ulongest.
6183 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6185 * loc.c (class symbol_needs_eval_context): Fix indentation.
6187 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6189 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6192 2020-08-17 Tom de Vries <tdevries@suse.de>
6195 * gdbtypes.c (dump_dynamic_prop): New function.
6196 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6198 2020-08-15 Tom de Vries <tdevries@suse.de>
6201 * stack.c (print_frame_args): Temporarily set the selected
6202 frame to FRAME while printing the frame's arguments.
6204 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6206 PR breakpoints/26385
6207 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6208 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6210 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6212 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6213 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6214 and >= to check return value instead of == -1 and != -1.
6216 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6218 * utils.h (class gdb_argv) <as_array_view>: New method.
6219 * utils.c (gdb_argv_as_array_view_test): New.
6220 (_initialize_utils): Register selftest.
6221 * maint.c (maintenance_selftest): Use the new method.
6223 2020-08-13 Kamil Rytarowski <n54@gmx.com>
6225 * target.h (supports_dumpcore, dumpcore): New
6226 function declarations.
6227 * target.c (supports_dumpcore, dumpcore): New
6229 * target-delegates.c: Rebuild.
6230 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6231 and target_dumpcore ().
6233 2020-08-13 Aaron Merey <amerey@redhat.com>
6235 * debuginfod-support.c: Replace global variables with user_data.
6237 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6239 * maint.c (maintenance_selftest): Split args and pass array_view
6242 2020-08-12 Luis Machado <luis.machado@linaro.org>
6244 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6246 Use %s and pulongest to print the length.
6248 2020-08-12 Pedro Alves <palves@redhat.com>
6250 * NEWS: Move "Multi-target debugging support" item to the
6251 "Changes since GDB 9" section.
6253 2020-08-12 Pedro Alves <palves@redhat.com>
6256 * progspace.c (program_space::remove_objfile): Invalidate the
6259 2020-08-11 Tom de Vries <tdevries@suse.de>
6261 * MAINTAINERS: Mark ms1 as deleted.
6263 2020-08-10 Luis Machado <luis.machado@linaro.org>
6267 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6269 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6270 movz/str/stur/stp skipping behavior.
6272 2020-08-10 Luis Machado <luis.machado@linaro.org>
6274 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6275 struct user_sve_header instead of struct sve_context.
6277 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6279 * read.h (dwarf2_fetch_die_loc_sect_off,
6280 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6281 `void *` parameter with function_view.
6282 * read.c (dwarf2_fetch_die_loc_sect_off,
6283 dwarf2_fetch_die_loc_cu_off): Likewise.
6284 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6285 (per_cu_dwarf_call): Adjust.
6286 (get_frame_address_in_block_wrapper): Remove.
6287 (indirect_synthetic_pointer): Adjust.
6288 (get_ax_pc): Remove.
6289 (dwarf2_compile_expr_to_ax): Adjust.
6291 2020-08-08 Tom de Vries <tdevries@suse.de>
6294 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6296 * regcache.c (get_thread_arch_aspace_regcache): Same.
6298 2020-08-07 Tom Tromey <tromey@adacore.com>
6300 * ravenscar-thread.c
6301 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6303 (ravenscar_thread_target::wait): Check
6304 runtime_initialized.
6305 (ravenscar_thread_target::prepare_to_store)
6306 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6307 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6308 (ravenscar_thread_target::stopped_by_watchpoint)
6309 (ravenscar_thread_target::stopped_data_address)
6310 (ravenscar_thread_target::core_of_thread): Use
6311 scoped_restore_current_thread and
6312 set_base_thread_from_ravenscar_task.
6314 2020-08-07 Tom Tromey <tromey@adacore.com>
6316 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6318 2020-08-07 Tom Tromey <tromey@adacore.com>
6320 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6321 update_inferior_ptid before update_thread_list.
6322 (temporarily_change_regcache_ptid): New class.
6323 (ravenscar_thread_target::fetch_registers)
6324 (ravenscar_thread_target::store_registers)
6325 (ravenscar_thread_target::prepare_to_store): Use base thread when
6326 forwarding operation.
6328 2020-08-07 Tom Tromey <tromey@adacore.com>
6330 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6333 2020-08-07 Tom Tromey <tromey@adacore.com>
6335 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6337 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6339 (ravenscar_thread_target::add_thread): Rename from
6340 ravenscar_add_thread.
6341 (ravenscar_thread_target::update_thread_list): Use a lambda.
6342 (ravenscar_thread_target::xfer_partial): New method.
6344 2020-08-07 Tom Tromey <tromey@adacore.com>
6346 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6348 (iterate_over_live_ada_tasks): Change type of argument.
6349 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6352 2020-08-07 Tom Tromey <tromey@adacore.com>
6354 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6356 (ravenscar_thread_target::extra_thread_info): Remove.
6357 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6358 defer to target beneath for non-Ravenscar threads.
6360 2020-08-07 Tom Tromey <tromey@adacore.com>
6362 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6363 get_base_thread_from_ravenscar_task>: Now methods.
6364 <m_cpu_map>: New member.
6365 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6366 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6367 (ravenscar_thread_target::task_is_currently_active): Update.
6368 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6370 (ravenscar_thread_target::add_active_thread): Put initial thread
6373 2020-08-07 Tom Tromey <tromey@adacore.com>
6375 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6378 2020-08-07 Tom Tromey <tromey@adacore.com>
6380 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6381 runtime_initialized.
6383 2020-08-07 Tom Tromey <tromey@adacore.com>
6385 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6387 (ravenscar_thread_target::add_active_thread): Now public.
6388 (ravenscar_inferior_created): Call add_active_thread after pushing
6391 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6393 * regcache.c (ptid_regcache_map): New type.
6394 (target_ptid_regcache_map): New type.
6395 (regcaches): Change type to target_ptid_regcache_map.
6396 (get_thread_arch_aspace_regcache): Update to regcaches' new
6398 (regcache_thread_ptid_changed): Likewise.
6399 (registers_changed_ptid): Likewise.
6400 (regcaches_size): Likewise.
6401 (regcaches_test): Update.
6402 (regcache_thread_ptid_changed): Update.
6403 * regcache.h (regcache_up): New type.
6404 * gdbsupport/ptid.h (hash_ptid): New struct.
6406 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6408 * observable.h (thread_ptid_changed): Add parameter
6409 `process_stratum_target *`.
6410 * infrun.c (infrun_thread_ptid_changed): Add parameter
6411 `process_stratum_target *` and use it.
6412 (selftests): New namespace.
6413 (infrun_thread_ptid_changed): New function.
6414 (_initialize_infrun): Register selftest.
6415 * regcache.c (regcache_thread_ptid_changed): Add parameter
6416 `process_stratum_target *` and use it.
6417 (regcache_thread_ptid_changed): New function.
6418 (_initialize_regcache): Register selftest.
6419 * thread.c (thread_change_ptid): Pass target to
6420 thread_ptid_changed observable.
6422 2020-08-06 Caroline Tice <cmtice@google.com>
6424 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6425 (struct dwp_sections): Update field comments. Add loclists and
6427 (struct virtual_v2_dwo_sections): Rename struct to
6428 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6429 size & offset fields for loclists and rnglists.
6430 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6431 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6432 skipping dummy type units.
6433 (create_dwp_hash_table): Update the large comment above the function to
6434 discuss Version 5 DWP files as well, with references. Update all the
6435 version checks in the function to check for version 5 as well. Add new
6436 section at the end to create dwp hash table for version 5.
6437 (create_dwp_v2_section): Rename function to
6438 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6439 Add V5 to error message text.
6440 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6441 into calls to create_dwp_v2_or_v5_section.
6442 (create_dwo_unit_in_dwp_v5): New function.
6443 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6444 check for version2; add else clause to handle version 5.
6445 (open_and_init_dwo_file): Add code to check dwarf version & only call
6446 create_debug_types_hash_table (with sections.types) if version is not 5;
6447 else call create_debug_type_hash_table, with sections.info.
6448 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6450 (dwarf2_locate_v5_dwp_sections): New function.
6451 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6452 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6454 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6456 * regcache.h (class regcache): Remove friend
6457 registers_changed_ptid.
6458 <regcache_thread_ptid_changed>: Remove.
6459 <regcaches>: Remove.
6460 * regcache.c (regcache::regcaches): Rename to...
6461 (regcaches): ... this. Make static.
6462 (get_thread_arch_aspace_regcache): Update.
6463 (regcache::regcache_thread_ptid_changed): Rename to...
6464 (regcache_thread_ptid_changed): ... this. Update.
6465 (class regcache_access): Remove.
6466 (regcaches_test): Update.
6467 (_initialize_regcache): Update.
6468 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6471 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6473 * regcache.h (class regcache) <current_regcache>: Rename to...
6474 <regcaches>: ... this. Move doc here.
6475 * regcache.c (regcache::current_regcache) Rename to...
6476 (regcache::regcaches): ... this. Move doc to header.
6477 (get_thread_arch_aspace_regcache): Update.
6478 (regcache::regcache_thread_ptid_changed): Update.
6479 (registers_changed_ptid): Update.
6480 (class regcache_access) <current_regcache_size>: Rename to...
6481 <regcaches_size>: ... this.
6482 (current_regcache_test): Rename to...
6483 (regcaches_test): ... this.
6484 (_initialize_regcache): Update.
6486 2020-08-06 Victor Collod <vcollod@nvidia.com>
6488 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6490 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6492 * corelow.c (core_target::build_file_mappings): Don't output
6493 null pathname in warning.
6495 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6497 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6498 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6499 gdb.dwarf2/dw2-single-line-discriminators.exp,
6500 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6502 2020-08-05 Tom Tromey <tromey@adacore.com>
6505 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6506 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6507 Fix off-by-one and type size errors in ordinary case.
6509 2020-08-05 Tom de Vries <tdevries@suse.de>
6511 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6512 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6514 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6516 * frame.h (frame_id_p): Return bool.
6517 (frame_id_artificial_p): Return bool.
6518 (frame_id_eq): Return bool.
6519 (has_stack_frames): Return bool.
6520 (get_selected_frame): Fix typo in comment.
6521 (get_frame_pc_if_available): Return bool.
6522 (get_frame_address_in_block_if_available): Return bool.
6523 (get_frame_func_if_available): Return bool.
6524 (read_frame_register_unsigned): Return bool.
6525 (get_frame_register_bytes): Return bool.
6526 (safe_frame_unwind_memory): Return bool.
6527 (deprecated_frame_register_read): Return bool.
6528 (frame_unwinder_is): Return bool.
6529 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6531 <this_id::p>: Likewise.
6533 (frame_stash_add): Return bool.
6534 (get_frame_id): Use bool.
6535 (frame_id_build_special) Use bool.
6536 (frame_id_build_unavailable_stack): Use bool.
6537 (frame_id_build): Use bool.
6538 (frame_id_p): Return bool, use true/false instead of 1/0.
6539 (frame_id_artificial_p): Likewise.
6540 (frame_id_eq): Likewise.
6541 (frame_id_inner): Likewise.
6542 (get_frame_func_if_available): Likewise.
6543 (read_frame_register_unsigned): Likewise.
6544 (deprecated_frame_register_read): Likewise.
6545 (get_frame_register_bytes): Likewise.
6546 (has_stack_frames): Likewise.
6547 (inside_main_func): Likewise.
6548 (inside_entry_func): Likewise.
6549 (get_frame_pc_if_available): Likewise.
6550 (get_frame_address_in_block_if_available): Likewise.
6551 (frame_unwinder_is): Likewise.
6552 (safe_frame_unwind_memory): Likewise.
6553 (frame_unwind_arch): Likewise.
6555 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6557 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6558 type to cached_copy_status.
6559 (fprintf_frame): Adjust.
6560 (get_frame_func_if_available): Adjust.
6561 (frame_cleanup_after_sniffer): Adjust.
6563 2020-08-04 Mark Wielaard <mark@klomp.org>
6565 * MAINTAINERS (Write After Approval): Update email address.
6567 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6569 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6570 dynamic_prop::const_val.
6572 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6574 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6577 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6579 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6581 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6583 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6585 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6586 Jose E. Marchesi <jose.marchesi@oracle.com>
6588 * configure.tgt: Add entry for bpf-*-*.
6589 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6590 (ALLDEPFILES): Add bpf-tdep.c.
6591 * bpf-tdep.c: New file.
6592 * MAINTAINERS: Add bpf target and maintainer.
6593 * NEWS: Mention the support for the new target.
6595 2020-08-04 Tom de Vries <tdevries@suse.de>
6598 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6601 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6603 * syscalls/freebsd.xml: Regenerate.
6605 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6607 * syscalls/update-freebsd.sh: Fix usage and year range.
6609 2020-08-03 Tom de Vries <tdevries@suse.de>
6612 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6613 DW_LNE_lo_user/DW_LNE_hi_user range.
6615 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6618 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6621 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6623 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6625 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6627 * breakpoint.c (set_breakpoint_condition): Update the condition
6628 expressions after checking that the input condition string parses
6629 successfully and does not contain junk at the end.
6631 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6633 * breakpoint.c (set_breakpoint_condition): Update the
6634 condition string after parsing the new condition successfully.
6636 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6638 * proc-api.c (_STRUCTURED_PROC): Don't define.
6639 * proc-events.c: Likewise.
6640 * proc-flags.c: Likewise.
6641 * proc-why.c: Likewise.
6642 * procfs.c: Likewise.
6644 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6645 * configure, config.in: Regenerate.
6647 2020-07-30 Tom de Vries <tdevries@suse.de>
6650 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6651 m_red/m_green/m_blue in a union.
6653 2020-07-29 Tom de Vries <tdevries@suse.de>
6656 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6658 2020-07-28 Tom Tromey <tromey@adacore.com>
6661 * symtab.h (find_pc_partial_function_sym): Declare.
6662 * cli/cli-cmds.c (disassemble_command): Use
6663 find_pc_partial_function_sym. Check asm_demangle.
6664 * blockframe.c (cache_pc_function_sym): New global.
6665 (cache_pc_function_name): Remove.
6666 (clear_pc_function_cache): Update.
6667 (find_pc_partial_function_sym): New function, from
6668 find_pc_partial_function.
6669 (find_pc_partial_function): Rewrite using
6670 find_pc_partial_function_sym.
6672 2020-07-28 Tom Tromey <tromey@adacore.com>
6674 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6677 2020-07-28 Tom Tromey <tromey@adacore.com>
6679 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6680 <DW_OP_GNU_variable_value>: Cast to address type.
6682 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6684 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6685 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6686 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6687 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6688 (nbsd_get_siginfo_type): New.
6689 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6690 (_initialize_nbsd_tdep): New.
6692 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6695 * configure: Regenerated.
6697 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6700 * configure: Regenerated.
6702 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6704 * python/py-frame.c: Remove 'user-regs.h' include.
6705 (frapy_read_register): Rewrite to make use of
6706 gdbpy_parse_register_id.
6707 * python/py-registers.c (gdbpy_parse_register_id): New function,
6708 moved here from python/py-unwind.c. Updated the return type, and
6709 also accepts register descriptor objects.
6710 * python/py-unwind.c: Remove 'user-regs.h' include.
6711 (pyuw_parse_register_id): Moved to python/py-registers.c.
6712 (unwind_infopy_add_saved_register): Update to use
6713 gdbpy_parse_register_id.
6714 (pending_framepy_read_register): Likewise.
6715 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6717 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6719 * python/py-registers.c: Add 'user-regs.h' include.
6720 (register_descriptor_iter_find): New function.
6721 (register_descriptor_iterator_object_methods): New static global
6723 (register_descriptor_iterator_object_type): Add pointer to methods
6726 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6728 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6729 for all architectures on FreeBSD 11.3 and later.
6731 2020-07-27 Tom Tromey <tromey@adacore.com>
6733 * gcore.h (load_corefile): Don't declare.
6735 2020-07-27 Tom de Vries <tdevries@suse.de>
6737 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6738 * config.in: Regenerate.
6739 * configure: Regenerate.
6741 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6743 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6744 ws2tcpip.h. When checking whether socklen_t type is defined, use
6745 ws2tcpip.h if it is available and sys/socket.h isn't.
6746 * configure: Regenerate.
6747 * config.in: Regenerate.
6749 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6753 * valops.c (value_ind): Pass address to
6754 readjust_indirect_value_type.
6755 * value.c (readjust_indirect_value_type): Make parameter
6756 non-const, and add extra address parameter. Resolve original type
6758 * value.h (readjust_indirect_value_type): Update function
6759 signature and comment.
6761 2020-07-25 Tom de Vries <tdevries@suse.de>
6764 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6767 2020-07-24 Aaron Merey <amerey@redhat.com>
6769 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6770 * configure: Rebuild.
6772 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6775 * corelow.c (_initialize_corelow): Add period to help text
6776 for "maintenance print core-file-backed-mappings".
6778 2020-07-23 Pedro Alves <pedro@palves.net>
6780 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6781 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6783 * frame.c (frame_cache_generation, get_frame_cache_generation):
6785 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6786 (get_prev_frame_if_no_cycle): On exception, don't touch
6787 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6788 * frame.h (get_frame_cache_generation): Declare.
6790 2020-07-23 Tom de Vries <tdevries@suse.de>
6793 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6794 New default constructor.
6796 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6798 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6799 exclude non-statement entries.
6801 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6803 * NEWS (New commands): Mention new command
6804 "maintenance print core-file-backed-mappings".
6806 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6808 * corelow.c (gdbcmd.h): Include.
6809 (core_target::info_proc_mappings): New method.
6810 (get_current_core_target): New function.
6811 (maintenance_print_core_file_backed_mappings): New function.
6812 (_initialize_corelow): Add core-file-backed-mappings to
6813 "maint print" commands.
6815 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6817 * linux-tdep.c (dump_note_entry_p): New function.
6818 (linux_dump_mapping_p_ftype): New typedef.
6819 (linux_find_memory_regions_full): Add new parameter,
6820 should_dump_mapping_p.
6821 (linux_find_memory_regions): Adjust call to
6822 linux_find_memory_regions_full.
6823 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6824 call to linux_find_memory_regions_full.
6826 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6828 * corelow.c (solist.h, unordered_map): Include.
6829 (class core_target): Add field m_core_file_mappings and
6830 method build_file_mappings.
6831 (core_target::core_target): Call build_file_mappings.
6832 (core_target::~core_target): Free memory associated with
6833 m_core_file_mappings.
6834 (core_target::build_file_mappings): New method.
6835 (core_target::xfer_partial): Use m_core_file_mappings
6836 for memory transfers.
6837 * linux-tdep.c (linux_read_core_file_mappings): New
6839 (linux_core_info_proc_mappings): Rewrite to use
6840 linux_read_core_file_mappings.
6841 (linux_init_abi): Register linux_read_core_file_mappings.
6843 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6845 * arch-utils.c (default_read_core_file_mappings): New function.
6846 * arch-utils.c (default_read_core_file_mappings): Declare.
6847 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6848 * gdbarch.h, gdbarch.c: Regenerate.
6850 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6853 * corelow.c (core_target:xfer_partial): Revise
6854 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6855 case after first checking the stratum beneath the core
6857 (has_all_memory): Return true.
6858 * target.c (raw_memory_xfer_partial): Revise comment
6859 regarding use of has_all_memory.
6861 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6863 * exec.h (section_table_xfer_memory): Revise declaration,
6864 replacing section name parameter with an optional callback
6866 * exec.c (section_table_xfer_memory): Likewise.
6867 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6868 of section_table_xfer_memory.
6870 2020-07-22 Tom Tromey <tromey@adacore.com>
6872 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6873 lookup_symbol_search_name.
6875 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6877 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6878 redundant local variable.
6879 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6880 reference, not pointer, update code accordingly.
6882 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6883 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6885 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6886 * jit.c (jit_breakpoint_re_set_internal): Use the
6887 `skip_jit_symbol_lookup` field.
6889 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6890 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6892 * jit.c (jit_read_descriptor): Define the descriptor address once,
6894 (jit_breakpoint_deleted): Move the declaration of the loop variable
6895 `iter` into the loop header.
6896 (jit_breakpoint_re_set_internal): Move the declaration of the local
6897 variable `objf_data` to the first point of definition.
6898 (jit_event_handler): Move the declaration of local variables
6899 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6900 Rename `objf` to `jited`.
6902 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6904 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6906 * jit.c (get_jiter_objfile_data): Update.
6908 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6909 Simon Marchi <simon.marchi@polymtl.ca>
6911 * jit.c (struct jit_program_space_data): Remove.
6912 (jit_program_space_key): Remove.
6913 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6915 (get_jit_program_space_data): Remove.
6916 (jit_breakpoint_deleted): Iterate on all of the program space's
6918 (jit_inferior_init): Likewise.
6919 (jit_breakpoint_re_set_internal): Likewise. Also change return
6921 (jit_breakpoint_re_set): Pass current_program_space to
6922 jit_breakpoint_re_set_internal.
6924 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6926 * jit.h (struct jiter_objfile_data) <cached_code_address,
6927 jit_breakpoint>: Move to here from ...
6928 * jit.c (jit_program_space_data): ... here.
6929 (jiter_objfile_data::~jiter_objfile_data): Update.
6930 (jit_breakpoint_deleted): Update.
6931 (jit_breakpoint_re_set_internal): Update.
6933 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6935 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6937 (jit_read_descriptor): Remove NULL check.
6938 (jit_event_handler): Add an assertion.
6940 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6942 * jit.h (struct jit_objfile_data): Split into...
6943 (struct jiter_objfile_data): ... this ...
6944 (struct jited_objfile_data): ... and this.
6945 * objfiles.h (struct objfile) <jit_data>: Remove.
6946 <jiter_data, jited_data>: New fields.
6947 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6948 (jiter_objfile_data::~jiter_objfile_data): ... this.
6949 (get_jit_objfile_data): Rename to ...
6950 (get_jiter_objfile_data): ... this.
6951 (add_objfile_entry): Update.
6952 (jit_read_descriptor): Use get_jiter_objfile_data.
6953 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6954 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6955 (jit_inferior_exit_hook): Use objfile's jited_data field.
6957 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6959 * jit.h: Forward-declare `struct minimal_symbol`.
6960 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6961 constructor, destructor, and an objfile* field.
6962 * jit.c (jit_objfile_data): Remove.
6963 (struct jit_objfile_data): Migrate from here to jit.h.
6964 (jit_objfile_data::~jit_objfile_data): New destructor
6965 implementation with code moved from free_objfile_data.
6966 (free_objfile_data): Delete.
6967 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6968 (jit_find_objf_with_entry_addr): Ditto.
6969 (jit_inferior_exit_hook): Ditto.
6970 (_initialize_jit): Remove the call to
6971 register_objfile_data_with_cleanup.
6972 * objfiles.h (struct objfile) <jit_data>: New field.
6974 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6976 * jit.h: Forward-declare `struct objfile`.
6977 (jit_event_handler): Add a second parameter, the JITer objfile.
6978 * jit.c (jit_read_descriptor): Change the signature to take the
6979 JITer objfile as an argument instead of the jit_program_space_data.
6980 (jit_inferior_init): Update the call to jit_read_descriptor.
6981 (jit_event_handler): Use the new JITer objfile argument when calling
6982 jit_read_descriptor.
6983 * breakpoint.c (handle_jit_event): Update the call to
6984 jit_event_handler to pass the JITer objfile.
6986 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6988 * gdbarch.c: Regenerate.
6989 * gdbarch.h: Regenerate.
6990 * gdbarch.sh (handle_segmentation_fault): Remove method.
6991 * infrun.c (handle_segmentation_fault): Remove.
6992 (print_signal_received_reason): Remove call to
6993 handle_segmentation_fault.
6995 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6997 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6998 Rename to sparc64_linux_report_signal_info and add siggnal
7000 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
7001 instead of sparc64_linux_handle_segmentation_fault.
7003 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7005 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
7006 i386_linux_report_signal_info instead of
7007 i386_linux_handle_segmentation_fault.
7008 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
7009 to i386_linux_report_signal_info and add siggnal argument.
7010 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
7011 of i386_linux_handle_segmentation_fault.
7012 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
7013 to i386_linux_report_signal_info and add siggnal argument.
7015 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7017 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
7020 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7022 * gdbarch.c: Regenerate.
7023 * gdbarch.h: Regenerate.
7024 * gdbarch.sh (report_signal_info): New method.
7025 * infrun.c (print_signal_received_reason): Invoke gdbarch
7026 report_signal_info hook if present.
7028 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7030 * python/py-registers.c : Add 'unordered_map' include.
7031 (gdbpy_new_reggroup): Renamed to...
7032 (gdbpy_get_reggroup): ...this. Update to only create register
7033 group descriptors when needed.
7034 (gdbpy_reggroup_iter_next): Update.
7036 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7038 * python/py-registers.c (gdbpy_register_object_data): New static
7040 (gdbpy_register_object_data_init): New function.
7041 (gdbpy_new_register_descriptor): Renamed to...
7042 (gdbpy_get_register_descriptor): ...this, and update to reuse
7043 existing register descriptors where possible.
7044 (gdbpy_register_descriptor_iter_next): Update.
7045 (gdbpy_initialize_registers): Register new gdbarch data.
7047 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
7049 * linux-nat.c (stopped_pids): Make static.
7051 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
7054 * gdbtypes.c (ada_discrete_type_low_bound,
7055 ada_discrete_type_high_bound): Handle undefined bounds.
7057 2020-07-21 Kamil Rytarowski <n54@gmx.com>
7059 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
7061 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
7064 2020-07-20 John Baldwin <jhb@FreeBSD.org>
7066 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
7067 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
7068 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
7069 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7070 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7073 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7075 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7076 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7077 which are deprecated in Guile 3.0.
7078 * configure.ac (try_guile_versions): Add "guile-3.0".
7079 * configure (try_guile_versions): Regenerate.
7080 * NEWS: Update entry.
7082 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7083 Doug Evans <dje@google.com>
7086 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7087 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7088 USING_GUILE_BEFORE_2_2.
7089 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7090 Change type to 'scm_t_port_type *'.
7091 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7092 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7093 parameter and honor it. Update callers.
7094 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7095 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7097 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7098 USING_GUILE_BEFORE_2_2.
7099 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7100 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7101 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7102 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7103 and 'SCM_PORT_TYPE'.
7104 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7105 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7106 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7107 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7108 [!USING_GUILE_BEFORE_2_2]: New functions.
7109 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7110 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7111 'gdbscm_memory_port_read'.
7112 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7113 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7114 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7116 (ioscm_init_memory_port): Remove.
7117 (ioscm_init_memory_port_stream): New function
7118 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7120 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7121 Return scm_from_uint (0).
7122 (gdbscm_set_memory_port_read_buffer_size_x)
7123 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7124 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7125 Return scm_from_uint (0).
7126 (gdbscm_set_memory_port_write_buffer_size_x)
7127 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7128 * configure.ac (try_guile_versions): Add "guile-2.2".
7129 * configure: Regenerate.
7132 2020-07-18 Tom Tromey <tom@tromey.com>
7134 * linux-nat.c (linux_multi_process): Remove.
7135 (linux_nat_target::supports_multi_process): Return true.
7137 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7139 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7140 (riscv_lookup_target_description): Return pointer out of
7142 * target-descriptions.c (allocate_target_description): Add
7144 (target_desc_deleter::operator()): Likewise.
7145 * target-descriptions.h (struct target_desc_deleter): Moved to
7147 (target_desc_up): Likewise.
7149 2020-07-17 Tom Tromey <tromey@adacore.com>
7151 * linux-nat.c (linux_nat_target::supports_non_stop)
7152 (linux_nat_target::always_non_stop_p): Use "true".
7153 (linux_nat_target::supports_disable_randomization): Use "true" and
7156 2020-07-16 Caroline Tice <cmtice@google.com>
7158 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7159 (RNGLIST_HEADER_SIZE64): New constant definition.
7160 (struct dwop_section_names): Add rnglists_dwo.
7161 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7162 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7163 (struct dwo_sections): Add rnglists field.
7164 (read_attribut_reprocess): Add tag parameter.
7165 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7166 (cu_debug_rnglists_section): New function (decl & definition).
7167 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7168 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7169 die whose range is being checked; get rnglist section from
7170 cu_debug_rnglists_section, to get from either objfile or dwo file as
7171 appropriate. Add cases for DW_RLE_base_addressx,
7172 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7173 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7174 test inside if-condition and updating complaint message.
7175 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7176 dwarf2_rnglists_process.
7177 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7178 dwarf2_ranges_process.
7179 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7180 need_ranges_base and update comment appropriately. Also pass die tag
7181 to dwarf2_ranges_read.
7182 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7183 need_ranges_base and update comment appropriately. Also pass die tag
7184 to dwarf2_ranges_process.
7185 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7186 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7187 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7188 need_ranges_base and update comment appropriately. Also pass die tag
7189 to read_attribute_reprocess and dwarf2_ranges_read.
7190 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7191 and update function comment appropriately.
7192 (read_loclist_index): Call read_loclists_rnglists_header instead of
7193 read_loclist_header.
7194 (read_rnglist_index): New function.
7195 (read_attribute_reprocess): Add tag parameter. Add code for
7196 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7197 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7199 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7201 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7204 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7206 * arch-utils.c (show_architecture): Update formatting of messages.
7208 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7210 * gdbtypes.h (struct type) <bounds>: Handle array and string
7212 * ada-lang.c (assign_aggregate): Use type::bounds on
7214 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7215 * c-varobj.c (c_number_of_children): Likewise.
7216 (c_describe_child): Likewise.
7217 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7218 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7219 (f_type_print_base): Likewise.
7220 * f-valprint.c (f77_array_offset_tbl): Likewise.
7221 (f77_get_upperbound): Likewise.
7222 (f77_print_array_1): Likewise.
7223 * guile/scm-type.c (gdbscm_type_range): Likewise.
7224 * m2-typeprint.c (m2_array): Likewise.
7225 (m2_is_long_set_of_type): Likewise.
7226 * m2-valprint.c (get_long_set_bounds): Likewise.
7227 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7228 * python/py-type.c (typy_range): Likewise.
7229 * rust-lang.c (rust_internal_print_type): Likewise.
7230 * type-stack.c (type_stack::follow_types): Likewise.
7231 * valarith.c (value_subscripted_rvalue): Likewise.
7232 * valops.c (value_cast): Likewise.
7234 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7236 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7237 callers to use the equivalent accessor methods.
7239 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7241 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7242 (struct type) <bit_stride>: New method.
7243 (TYPE_BIT_STRIDE): Remove.
7244 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7246 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7248 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7249 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7250 callers to use the equivalent accessor methods instead.
7252 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7254 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7255 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7256 callers to use the equivalent accessor methods instead.
7258 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7260 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7261 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7262 to use dynamic_prop::kind.
7264 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7266 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7267 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7268 to get the bound property's kind and check against
7271 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7273 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7274 all callers to use type::range_bounds followed by
7275 dynamic_prop::{low,high}.
7277 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7279 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7280 const_val, set_const_val, baton, set_locexpr, set_loclist,
7281 set_addr_offset, variant_parts, set_variant_parts,
7282 original_type, set_original_type>: New methods.
7283 <kind>: Rename to...
7284 <m_kind>: ... this. Update all users to use the new methods
7286 <data>: Rename to...
7287 <m_data>: ... this. Update all users to use the new methods
7290 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7292 * gdbtypes.c (get_discrete_bounds): Return failure if
7293 the range type's bounds are not both defined and constant
7295 (get_array_bounds): Update comment. Remove undefined bound check.
7297 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7299 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7300 the type::bounds method directly.
7302 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7304 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7305 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7306 are used to set the range type's bounds to use set_bounds.
7308 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7310 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7312 2020-07-10 Pedro Alves <pedro@palves.net>
7314 * gdbthread.h (inferior_ref): Define.
7315 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7316 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7318 (scoped_restore_current_thread::restore):
7319 Adjust to gdb::ref_ptr.
7320 (scoped_restore_current_thread::~scoped_restore_current_thread):
7321 Remove manual decref handling.
7322 (scoped_restore_current_thread::scoped_restore_current_thread):
7324 inferior_ref::new_reference/thread_info_ref::new_reference.
7325 Incref the thread before calling get_frame_id instead of after.
7326 Let TARGET_CLOSE_ERROR propagate.
7328 2020-07-10 Pedro Alves <pedro@palves.net>
7330 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7331 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7332 NOT_AVAILABLE_ERROR.
7333 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7334 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7336 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7337 Pedro Alves <pedro@palves.net>
7340 * infrun.c (threads_are_resumed_pending_p): Delete.
7341 (do_target_wait): Remove threads_are_executing and
7342 threads_are_resumed_pending_p checks from the inferior_matches
7343 lambda. Update comments.
7345 2020-07-10 Pedro Alves <pedro@palves.net>
7348 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7351 2020-07-10 Pedro Alves <pedro@palves.net>
7354 * infrun.c (handle_no_resumed): Handle multiple targets.
7356 2020-07-10 Pedro Alves <pedro@palves.net>
7359 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7362 2020-07-10 Pedro Alves <pedro@palves.net>
7365 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7366 threads, not all threads.
7368 2020-07-10 Pedro Alves <pedro@palves.net>
7371 * remote.c (remote_target::open_1): Pass remote target pointer as
7372 data to create_async_event_handler.
7373 (remote_async_inferior_event_handler): Mark async event handler
7374 before returning if the remote target still has either pending
7375 events or unacknowledged notifications.
7377 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7379 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7381 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7384 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7386 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7389 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7391 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7392 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7393 AT_FREEBSD_PS_STRINGS.
7395 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7397 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7398 of debugfile path on Windows.
7400 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7402 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7405 2020-07-08 Tom Tromey <tromey@adacore.com>
7407 * ada-lang.c (ada_exception_message_1): Use read_memory.
7409 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7412 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7413 special handling for inline frames.
7414 * findvar.c (value_of_register_lazy): Skip inline frames when
7415 creating lazy register values.
7416 * frame.c (frame_id_computed_p): Delete definition.
7417 * frame.h (frame_id_computed_p): Delete declaration.
7419 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7421 * NEWS: Mention additions to Python API.
7422 * python/py-arch.c (archpy_register_groups): New function.
7423 (arch_object_methods): Add 'register_groups' method.
7424 * python/py-registers.c (reggroup_iterator_object): New struct.
7425 (reggroup_object): New struct.
7426 (gdbpy_new_reggroup): New function.
7427 (gdbpy_reggroup_to_string): New function.
7428 (gdbpy_reggroup_name): New function.
7429 (gdbpy_reggroup_iter): New function.
7430 (gdbpy_reggroup_iter_next): New function.
7431 (gdbpy_new_reggroup_iterator): New function
7432 (gdbpy_initialize_registers): Register new types.
7433 (reggroup_iterator_object_type): Define new Python type.
7434 (gdbpy_reggroup_getset): New static global.
7435 (reggroup_object_type): Define new Python type.
7436 * python/python-internal.h
7438 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7440 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7441 * python/py-arch.c (archpy_registers): New function.
7442 (arch_object_methods): Add 'registers' method.
7443 * python/py-registers.c: New file.
7444 * python/python-internal.h
7445 (gdbpy_new_register_descriptor_iterator): Declare.
7446 (gdbpy_initialize_registers): Declare.
7447 * python/python.c (do_start_initialization): Call
7448 gdbpy_initialize_registers.
7449 * NEWS: Mention additions to the Python API.
7451 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7453 * NEWS: Mention new Python API method.
7454 * python/py-unwind.c (pending_framepy_architecture): New function.
7455 (pending_frame_object_methods): Add architecture method.
7457 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7459 * gdbarch.c: Regenerate.
7460 * gdbarch.h: Regenerate.
7461 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7462 (gdbarch_data): Use internal_error for the case where
7463 deprecated_set_gdbarch_data was originally needed.
7464 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7465 and use passed in obstack.
7466 (libunwind_frame_set_descr): Should no longer get back NULL from
7468 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7470 * user-regs.c (user_regs_init): Update parameters, and use passed
7472 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7473 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7475 2020-07-06 Tom de Vries <tdevries@suse.de>
7477 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7478 End-Of-Sequence in lte_is_less_than.
7479 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7480 "gdb: Don't reorder line table entries too much when sorting".
7482 2020-07-06 Tom de Vries <tdevries@suse.de>
7485 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7487 2020-07-05 Tom de Vries <tdevries@suse.de>
7490 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7491 std::uncaught_exceptions instead of deprecated
7492 std::uncaught_exception.
7494 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7496 * macroexp.h (macro_stringify): Return
7497 gdb::unique_xmalloc_ptr<char>.
7498 * macroexp.c (macro_stringify): Likewise.
7499 * macrotab.c (fixup_definition): Update.
7501 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7503 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7504 (lex_one_token): Update.
7505 * macroexp.c (struct macro_buffer) <release>: Return
7506 gdb::unique_xmalloc_ptr<char>.
7507 (macro_stringify): Update.
7508 (macro_expand): Update.
7509 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7510 * macroexp.h (macro_expand_next): Likewise.
7512 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7514 * macroexp.h (macro_lookup_ftype): Remove.
7515 (macro_expand, macro_expand_once, macro_expand_next): Remove
7516 lookup function parameters, add scope parameter.
7517 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7518 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7519 * macroscope.h (standard_macro_lookup): Change parameter type
7521 * macroscope.c (standard_macro_lookup): Likewise.
7522 * c-exp.y (lex_one_token): Update.
7523 * macrocmd.c (macro_expand_command): Likewise.
7524 (macro_expand_once_command): Likewise.
7526 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7528 * inf-loop.c (inferior_event_handler): Remove client_data param.
7529 * inf-loop.h (inferior_event_handler): Likewise.
7530 * infcmd.c (step_1): Adjust.
7531 * infrun.c (proceed): Adjust.
7532 (fetch_inferior_event): Remove client_data param.
7533 (infrun_async_inferior_event_handler): Adjust.
7534 * infrun.h (fetch_inferior_event): Remove `void *` param.
7535 * linux-nat.c (handle_target_event): Adjust.
7536 * record-btrace.c (record_btrace_handle_async_inferior_event):
7538 * record-full.c (record_full_async_inferior_event_handler):
7540 * remote.c (remote_async_inferior_event_handler): Adjust.
7542 2020-07-01 Tom Tromey <tom@tromey.com>
7544 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7545 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7547 2020-07-01 Tom Tromey <tom@tromey.com>
7549 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7551 (tui_win_info::make_window): Merge with
7552 tui_gen_win_info::make_window.
7553 (tui_win_info::make_visible): Move from tui_gen_win_info.
7554 * tui/tui-win.c (tui_win_info::max_width): Move from
7556 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7558 <window_factory>: Likewise.
7559 * tui/tui-layout.c (tui_win_info::resize): Move from
7561 (make_standard_window): Change return type.
7562 (get_locator_window, tui_get_window_by_name): Likewise.
7563 (tui_layout_window::apply): Remove a cast.
7564 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7565 (struct tui_win_info): Merge with tui_gen_win_info.
7566 (struct tui_gen_win_info): Remove.
7568 2020-07-01 Tom Tromey <tom@tromey.com>
7570 * tui/tui-stack.h (struct tui_locator_window): Derive from
7572 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7573 <can_box>: New method.
7575 2020-07-01 Tom Tromey <tom@tromey.com>
7577 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7579 2020-07-01 Tom Tromey <tom@tromey.com>
7581 * tui/tui-regs.c (tui_data_window::display_registers_from)
7582 (tui_data_window::display_registers_from)
7583 (tui_data_window::first_data_item_displayed)
7584 (tui_data_window::delete_data_content_windows): Update.
7585 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7587 (tui_data_window::check_register_values): Update.
7588 (tui_data_item_window::rerender): Add parameters. Update.
7589 (tui_data_item_window::refresh_window): Remove.
7590 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7592 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7594 <refresh_window, max_height, min_height>: Remove.
7595 <rerender>: Add parameters.
7596 <x, y, visible>: New members.
7597 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7598 <m_item_width>: New member.
7600 2020-07-01 Tom Tromey <tom@tromey.com>
7602 * tui/tui-regs.c (tui_data_window::show_register_group)
7603 (tui_data_window::check_register_values): Update.
7604 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7607 2020-07-01 Tom Tromey <tom@tromey.com>
7609 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7612 2020-07-01 Tom Tromey <tom@tromey.com>
7614 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7615 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7617 2020-07-01 Tom Tromey <tom@tromey.com>
7619 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7620 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7621 (struct tui_line_or_address): Move from tui-data.h.
7622 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7623 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7624 (tui_cmd_window, tui_source_window_base, tui_source_window)
7625 (tui_disasm_window): Don't declare.
7626 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7628 (SINGLE_KEY): Move to tui-stack.c.
7630 2020-07-01 Tom Tromey <tom@tromey.com>
7632 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7634 * tui/tui-regs.c (class tab_expansion_file): New.
7635 (tab_expansion_file::write): New method.
7636 (tui_register_format): Change return type. Use
7638 (tui_get_register, tui_data_window::display_registers_from)
7639 (tui_data_item_window::rerender): Update.
7640 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7641 * tui/tui-io.c (tui_expand_tabs): Remove.
7643 2020-07-01 Tom Tromey <tom@tromey.com>
7645 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7647 2020-07-01 Fangrui Song <maskray@google.com>
7649 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7651 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7653 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7654 forms for DW_AT_associated and DW_AT_allocated attributes,
7655 which is already checked in function attr_to_dynamic_prop.
7657 2020-06-30 Tom Tromey <tromey@adacore.com>
7659 * dwarf2/read.c (quirk_rust_enum): Correctly call
7660 alloc_rust_variant for default-less enum.
7662 2020-06-30 Tom Tromey <tromey@adacore.com>
7665 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7668 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7670 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7671 * gdbarch.h: Re-generate.
7673 2020-06-28 Tom Tromey <tom@tromey.com>
7675 * command.h (cmd_types): Remove.
7676 (cmd_type): Don't declare.
7677 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7679 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7680 * cli/cli-decode.c (cmd_type): Remove.
7682 2020-06-27 Pedro Alves <palves@redhat.com>
7684 * fork-child.c (prefork_hook): Adjust.
7685 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7687 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7688 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7689 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7690 Remove declarations.
7691 (struct inferior) <set_tty, tty>: New methods.
7692 (struct inferior) <terminal>: Rename to ...
7693 (struct inferior) <m_terminal>: ... this and make private.
7694 * main.c (captured_main_1): Adjust.
7695 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7696 (mi_cmd_inferior_tty_show): Adjust.
7697 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7698 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7700 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7702 * configure.ac: Add --enable-libctf: handle --disable-static
7704 * acinclude.m4: sinclude ../config/enable.m4.
7705 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7706 (LIBCTF): Substitute in.
7707 (CTF_DEPS): New, likewise.
7708 (CLIBS): libctf needs symbols from libbfd: move earlier.
7709 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7711 * ctfread.c: Surround in ENABLE_LIBCTF.
7712 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7713 * configure: Regenerate.
7714 * config.in: Likewise.
7716 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7718 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7720 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7722 * inferior.h (struct inferior) <terminal>: Change type to
7723 gdb::unique_xmalloc_ptr<char>.
7724 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7725 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7726 field, adjust to unique pointer.
7727 (get_inferior_io_terminal): Adjust to unique pointer.
7729 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7731 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7732 registers, not just the known core set of registers.
7734 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7736 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7737 fflags, frm, and fcsr registers.
7738 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7740 (riscv_tdesc_unknown_reg): New function.
7741 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7742 tdesc_use_registers.
7743 * riscv-tdep.h (struct gdbarch_tdep): Add
7744 unknown_csrs_first_regnum, unknown_csrs_count,
7745 duplicate_fflags_regnum, duplicate_frm_regnum, and
7746 duplicate_fcsr_regnum fields.
7748 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7750 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7751 callback, use the callback (when not null) to help number unknown
7753 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7754 (tdesc_use_registers): Add extra parameter to declaration.
7756 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7758 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7760 (class riscv_pending_register_alias): Likewise.
7761 (riscv_register_feature::register_info): Change 'required_p' field
7762 to 'required', and change its type. Add 'check' member function.
7763 (riscv_register_feature::register_info::check): Define new member
7765 (riscv_xreg_feature): Change initialisation of 'required' field.
7766 (riscv_freg_feature): Likewise.
7767 (riscv_virtual_feature): Likewise.
7768 (riscv_csr_feature): Likewise.
7769 (riscv_check_tdesc_feature): Take extra parameter, the csr
7770 tdesc_feature, rewrite the function to use the new
7771 riscv_register_feature::register_info::check function.
7772 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7774 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7776 * features/Makefile: Remove all references to the deleted files
7778 * features/riscv/32bit-csr.c: Deleted.
7779 * features/riscv/32bit-csr.xml: Deleted.
7780 * features/riscv/64bit-csr.c: Deleted.
7781 * features/riscv/64bit-csr.xml: Deleted.
7782 * features/riscv/rebuild-csr-xml.sh: Deleted.
7784 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7786 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7787 whitespace error for declaration of names member variable.
7788 (struct riscv_register_feature): Add new prefer_first_name member
7789 variable, and fix whitespace error in declaration of registers.
7790 (riscv_xreg_feature): Initialize prefer_first_name field.
7791 (riscv_freg_feature): Likewise.
7792 (riscv_virtual_feature): Likewise.
7793 (riscv_csr_feature): Likewise.
7794 (riscv_register_name): Expand on comments. Remove register name
7795 modifications for CSR and virtual registers.
7797 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7799 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7802 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7804 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7806 (class riscv_pending_register_alias): New class.
7807 (riscv_check_tdesc_feature): Take vector of pending aliases and
7808 populate it as appropriate.
7809 (riscv_setup_register_aliases): Delete.
7810 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7811 to riscv_check_tdesc_feature in all cases. Use the vector to
7812 create the register aliases.
7814 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7816 * sol2-tdep.c (sol2_static_transform_name): Remove.
7817 (sol2_init_abi): Don't register it.
7818 * gdbarch.sh (static_transform_name): Remove.
7819 * gdbarch.c, gdbarch.h: Regenerate.
7821 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7822 gdbarch_static_transform_name.
7823 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7824 * stabsread.c (define_symbol) <'X'>: Remove.
7825 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7828 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7829 <'S'>: Remove call to gdbarch_static_transform_name.
7831 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7833 * procfs.c (procfs_pre_trace): New function.
7834 (procfs_target::create_inferior): Pass it to fork_inferior.
7836 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7838 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7839 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7840 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7841 sol2-tdep.o, sparc-sol2-tdep.o.
7842 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7843 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7844 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7845 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7847 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7849 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7850 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7852 Remove calls to set_gdbarch_skip_solib_resolver,
7853 set_gdbarch_core_pid_to_str.
7854 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7855 (i386_sol2_static_transform_name): Remove.
7856 (i386_sol2_init_abi): Call sol2_init_abi.
7857 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7858 set_gdbarch_static_transform_name,
7859 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7860 Use sol2_sigtramp_p.
7861 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7862 (sol2_sigtramp_p): New function.
7863 (sol2_static_transform_name): New function.
7864 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7865 (sol2_init_abi): New function.
7866 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7867 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7868 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7869 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7870 (sparc_sol2_static_transform_name): Remove.
7871 (sparc32_sol2_init_abi): Call sol2_init_abi.
7872 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7873 set_gdbarch_static_transform_name,
7874 set_gdbarch_skip_solib_resolver,
7875 set_gdbarch_core_pid_to_str.
7876 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7877 (sparc_sol2_static_transform_name): Remove
7878 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7879 call sol2_sigtramp_p.
7880 (sparc64_sol2_init_abi): Call sol2_init_abi.
7881 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7882 set_gdbarch_static_transform_name,
7883 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7885 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7887 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7888 * exec.c (validate_exec_file): If from_tty, set both
7889 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7890 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7891 and from_tty, unconditionally ask a confirmation.
7893 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7895 * target-descriptions.c (tdesc_architecture_name): Protect against
7896 NULL pointer dereference.
7897 (maint_print_xml_tdesc_cmd): New function.
7898 (_initialize_target_descriptions): Register new 'maint print
7899 xml-tdesc' command and give it the filename completer.
7900 * NEWS: Mention new 'maint print xml-tdesc' command.
7902 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7904 * target-descriptions.c (class tdesc_compatible_info): New class.
7905 (struct target_desc): Change type of compatible vector.
7906 (tdesc_compatible_p): Update for change in type of
7907 target_desc::compatible.
7908 (tdesc_compatible_info_list): New function.
7909 (tdesc_compatible_info_arch_name): New function.
7910 (tdesc_add_compatible): Update for change in type of
7911 target_desc::compatible.
7912 (print_c_tdesc::visit_pre): Likewise.
7914 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7916 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7917 whitespace to underscore.
7918 (maint_print_c_tdesc_cmd): Use fake filename for target
7919 descriptions that came from the target.
7920 (_initialize_target_descriptions): Add filename command completion
7921 for 'maint print c-tdesc'.
7923 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7925 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7928 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7930 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7932 (dwarf2_find_location_expression): Likewise.
7933 (call_site_parameter_matches): Likewise.
7934 (dwarf2_compile_expr_to_ax): Likewise.
7935 (disassemble_dwarf_expression): Likewise.
7936 (loclist_describe_location): Likewise.
7938 2020-06-23 Pedro Alves <palves@redhat.com>
7940 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7941 progspace-and-thread.h. Include scoped-mock-context.h instead.
7942 (register_to_value_test): Use scoped_mock_context.
7943 * regcache.c: Include "scoped-mock-context.h".
7944 (cooked_read_test): Don't error out if a target is already pushed.
7945 Use scoped_mock_context. Adjust.
7946 * scoped-mock-context.h: New file.
7948 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7950 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7952 (ada_language::is_string_type_p): New member function.
7953 * c-lang.c (c_language_data): Delete la_is_string_type_p
7955 (cplus_language_data): Likewise.
7956 (asm_language_data): Likewise.
7957 (minimal_language_data): Likewise.
7958 * d-lang.c (d_language_data): Likewise.
7959 * f-lang.c (f_is_string_type_p): Delete function, implementation
7960 moved to f_language::is_string_type_p.
7961 (f_language_data): Delete la_is_string_type_p initializer.
7962 (f_language::is_string_type_p): New member function,
7963 implementation from f_is_string_type_p.
7964 * go-lang.c (go_is_string_type_p): Delete function, implementation
7965 moved to go_language::is_string_type_p.
7966 (go_language_data): Delete la_is_string_type_p initializer.
7967 (go_language::is_string_type_p): New member function,
7968 implementation from go_is_string_type_p.
7969 * language.c (language_defn::is_string_type_p): Define new member
7971 (default_is_string_type_p): Make static, add comment copied from
7973 (unknown_language_data): Delete la_is_string_type_p initializer.
7974 (unknown_language::is_string_type_p): New member function.
7975 (auto_language_data): Delete la_is_string_type_p initializer.
7976 (auto_language::is_string_type_p): New member function.
7977 * language.h (language_data): Delete la_is_string_type_p field.
7978 (language_defn::is_string_type_p): Declare new function.
7979 (default_is_string_type_p): Delete desclaration, move comment to
7981 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7982 moved to m2_language::is_string_type_p.
7983 (m2_language_data): Delete la_is_string_type_p initializer.
7984 (m2_language::is_string_type_p): New member function,
7985 implementation from m2_is_string_type_p.
7986 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7988 * opencl-lang.c (opencl_language_data): Likewise.
7989 * p-lang.c (pascal_is_string_type_p): Delete function,
7990 implementation moved to pascal_language::is_string_type_p.
7991 (pascal_language_data): Delete la_is_string_type_p initializer.
7992 (pascal_language::is_string_type_p): New member function,
7993 implementation from pascal_is_string_type_p.
7994 * rust-lang.c (rust_is_string_type_p): Delete function,
7995 implementation moved to rust_language::is_string_type_p.
7996 (rust_language_data): Delete la_is_string_type_p initializer.
7997 (rust_language::is_string_type_p): New member function,
7998 implementation from rust_is_string_type_p.
7999 * valprint.c (val_print_scalar_or_string_type_p): Update call to
8002 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8004 * ada-lang.c (ada_language_data): Delete la_print_typedef
8006 (ada_language::print_typedef): New member function.
8007 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
8008 (cplus_language_data): Likewise.
8009 (asm_language_data): Likewise.
8010 (minimal_language_data): Likewise.
8011 * d-lang.c (d_language_data): Likewise.
8012 * f-lang.c (f_language_data): Likewise.
8013 (f_language::print_typedef): New member function.
8014 * go-lang.c (go_language_data): Delete la_print_typedef
8016 * language.c (language_defn::print_typedef): Define member
8018 (unknown_language_data): Delete la_print_typedef initializer.
8019 (unknown_language::print_typedef): New member function.
8020 (auto_language_data): Delete la_print_typedef initializer.
8021 (auto_language::print_typedef): New member function.
8022 * language.h (language_data): Delete la_print_typedef field.
8023 (language_defn::print_typedef): Declare new member function.
8024 (LA_PRINT_TYPEDEF): Update call to print_typedef.
8025 (default_print_typedef): Delete declaration.
8026 * m2-lang.c (m2_language_data): Delete la_print_typedef
8028 (m2_language::print_typedef): New member function.
8029 * objc-lang.c (objc_language_data): Delete la_print_typedef
8031 * opencl-lang.c (opencl_language_data): Likewise.
8032 * p-lang.c (pascal_language_data): Likewise.
8033 (pascal_language::print_typedef): New member function.
8034 * rust-lang.c (rust_print_typedef): Delete function,
8035 implementation moved to rust_language::print_typedef.
8036 (rust_language): Delete la_print_typedef initializer.
8037 (rust_language::print_typedef): New member function,
8038 implementation from rust_print_typedef.
8039 * typeprint.c (default_print_typedef): Delete.
8041 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8043 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
8044 (ada_language::printstr): New member function.
8045 * c-lang.c (c_language_data): Delete la_printstr initializer.
8046 (cplus_language_data): Likewise.
8047 (asm_language_data): Likewise.
8048 (minimal_language_data): Likewise.
8049 * d-lang.c (d_language_data): Likewise.
8050 * f-lang.c (f_printstr): Rename to f_language::printstr.
8051 (f_language_data): Delete la_printstr initializer.
8052 (f_language::printstr): New member function, implementation from
8054 * go-lang.c (go_language_data): Delete la_printstr initializer.
8055 * language.c (language_defn::printstr): Define new member
8057 (unk_lang_printstr): Delete.
8058 (unknown_language_data): Delete la_printstr initializer.
8059 (unknown_language::printstr): New member function.
8060 (auto_language_data): Delete la_printstr initializer.
8061 (auto_language::printstr): New member function.
8062 * language.h (language_data): Delete la_printstr field.
8063 (language_defn::printstr): Declare new member function.
8064 (LA_PRINT_STRING): Update call to printstr.
8065 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
8066 (m2_language_data): Delete la_printstr initializer.
8067 (m2_language::printstr): New member function, implementation from
8069 * objc-lang.c (objc_language_data): Delete la_printstr
8071 * opencl-lang.c (opencl_language_data): Likewise.
8072 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8073 (pascal_language_data): Delete la_printstr initializer.
8074 (pascal_language::printstr): New member function, implementation
8075 from pascal_printstr.
8076 * p-lang.h (pascal_printstr): Delete declaration.
8077 * rust-lang.c (rust_printstr): Update header comment.
8078 (rust_language_data): Delete la_printstr initializer.
8079 (rust_language::printstr): New member function.
8081 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8083 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8084 (ada_language::printchar): New member function.
8085 * c-lang.c (c_language_data): Delete la_printchar initializer.
8086 (cplus_language_data): Likewise.
8087 (asm_language_data): Likewise.
8088 (minimal_language_data): Likewise.
8089 * d-lang.c (d_language_data): Likewise.
8090 * f-lang.c (f_printchar): Rename to f_language::printchar.
8091 (f_language_data): Delete la_printchar initializer.
8092 (f_language::printchar): New member function, implementation from
8094 * go-lang.c (go_language_data): Delete la_printchar initializer.
8095 * language.c (unk_lang_printchar): Delete.
8096 (language_defn::printchar): Define new member function.
8097 (unknown_language_data): Delete la_printchar initializer.
8098 (unknown_language::printchar): New member function.
8099 (auto_language_data): Delete la_printchar initializer.
8100 (auto_language::printchar): New member function.
8101 * language.h (language_data): Delete la_printchar field.
8102 (language_defn::printchar): Declare new member function.
8103 (LA_PRINT_CHAR): Update call to printchar.
8104 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8105 (m2_language::printchar): New member function.
8106 * objc-lang.c (objc_language_data): Delete la_printchar
8108 * opencl-lang.c (opencl_language_data): Likewise.
8109 * p-lang.c (pascal_language_data): Delete la_printchar
8111 (pascal_language::printchar): New member function.
8112 * rust-lang.c (rust_printchar): Rename to
8113 rust_language::printchar.
8114 (rust_language_data): Delete la_printchar initializer.
8115 (rust_language::printchar): New member function, implementation
8116 from rust_printchar.
8118 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8120 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8121 (ada_language_data): Delete la_emitchar initializer.
8122 (ada_language::emitchar): New member function, implementation from
8124 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8125 (cplus_language_data): Likewise.
8126 (asm_language_data): Likewise.
8127 (minimal_language_data): Likewise.
8128 * d-lang.c (d_language_data): Likewise.
8129 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8130 (f_language_data): Delete la_emitchar initializer.
8131 (f_language::emitchar): New member function, implementation from
8133 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8134 * language.c (unk_lang_emit_char): Delete.
8135 (language_defn::emitchar): New member function definition.
8136 (unknown_language_data): Delete la_emitchar initializer.
8137 (unknown_language::emitchar): New member function.
8138 (auto_language_data): Delete la_emitchar initializer.
8139 (auto_language::emitchar): New member function.
8140 * language.h (language_data): Delete la_emitchar field.
8141 (language_defn::emitchar): New member field declaration.
8142 (LA_EMIT_CHAR): Update call to emitchar.
8143 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8144 (m2_language_data): Delete la_emitchar initializer.
8145 (m2_language::emitchar): New member function, implementation from
8147 * objc-lang.c (objc_language_data): Delete la_emitchar
8149 * opencl-lang.c (opencl_language_data): Likewise.
8150 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8151 (pascal_language_data): Delete la_emitchar initializer.
8152 (pascal_language::emitchar): New member function, implementation
8153 from pascal_emit_char.
8154 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8155 (rust_language_data): Delete la_emitchar initializer.
8156 (rust_language::emitchar): New member function, implementation
8159 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8161 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8162 (ada_language_data): Delete la_post_parser initializer.
8163 (ada_language::post_parser): New member function.
8164 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8165 (cplus_language_data): Likewise.
8166 (asm_language_data): Likewise.
8167 (minimal_language_data): Likewise.
8168 * d-lang.c (d_language_data): Likewise.
8169 * f-lang.c (f_language_data): Likewise.
8170 * go-lang.c (go_language_data): Likewise.
8171 * language.c (unknown_language_data): Likewise.
8172 (auto_language_data): Likewise.
8173 * language.h (language_data): Delete la_post_parser field.
8174 (language_defn::post_parser): New member function.
8175 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8176 * objc-lang.c (objc_language_data): Likewise.
8177 * opencl-lang.c (opencl_language_data): Likewise.
8178 * p-lang.c (pascal_language_data): Likewise.
8179 * parse.c (parse_exp_in_context): Update call to post_parser.
8180 (null_post_parser): Delete definition.
8181 * parser-defs.h (null_post_parser): Delete declaration.
8182 * rust-lang.c (rust_language_data): Delete la_post_parser
8185 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8187 * ada-lang.c (parse): Rename to ada_language::parser.
8188 (ada_language_data): Delete la_parser initializer.
8189 (ada_language::parser): New member function, implementation from
8191 * c-lang.c (c_language_data): Delete la_parser initializer.
8192 (cplus_language_data): Likewise.
8193 (asm_language_data): Likewise.
8194 (minimal_language_data): Likewise.
8195 * d-lang.c (d_language_data): Likewise.
8196 (d_language::parser): New member function.
8197 * f-lang.c (f_language_data): Delete la_parser initializer.
8198 (f_language::parser): New member function.
8199 * go-lang.c (go_language_data): Delete la_parser initializer.
8200 (go_language::parser): New member function.
8201 * language.c (unk_lang_parser): Delete.
8202 (language_defn::parser): Define new member function.
8203 (unknown_language_data): Delete la_parser initializer.
8204 (unknown_language::parser): New member function.
8205 (auto_language_data): Delete la_parser initializer.
8206 (auto_language::parser): New member function.
8207 * language.h (language_data): Delete la_parser field.
8208 (language_defn::parser): Declare new member function.
8209 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8210 (m2_language::parser): New member function.
8211 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8212 * opencl-lang.c (opencl_language_data): Likewise.
8213 * p-lang.c (pascal_language_data): Likewise.
8214 (pascal_language::parser): New member function.
8215 * parse.c (parse_exp_in_context): Update call to parser.
8216 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8217 (rust_language::parser): New member function.
8219 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8221 * top.c (print_gdb_configuration): Print --with-python-libdir
8222 configuration value.
8224 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8226 * NEWS: Mention change to the alias command.
8228 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8230 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8231 (alias_command_completer)
8232 (make_alias_options_def_group): New functions.
8233 (alias_opts, alias_option_defs): New struct and array.
8234 (alias_usage_error): Update usage.
8235 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8236 Use option framework.
8237 (_initialize_cli_cmds): Update alias command help.
8238 Update aliases command help.
8240 Add NULL for new default_args lookup_cmd argument.
8241 (valid_command_p): Rename to validate_aliased_command.
8242 Add NULL for new default_args lookup_cmd argument. Verify that the
8243 aliased_command has no default args.
8244 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8245 (lookup_cmd_1, lookup_cmd): New argument default_args.
8247 Add NULL for new default_args lookup_cmd argument.
8248 (print_help_for_command): Show default args under the layout
8249 alias some_alias = some_aliased_cmd some_alias_default_arg.
8250 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8251 xfree default_args in destructor.
8252 * cli/cli-script.c (process_next_line, do_define_command):
8253 Add NULL for new default_args lookup_cmd argument.
8254 * command.h: Declare new default_args argument in lookup_cmd
8256 * completer.c (complete_line_internal_1):
8257 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8258 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8259 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8261 * infcmd.c (_initialize_infcmd): Likewise.
8262 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8263 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8264 * python/py-param.c (add_setshow_generic): Likewise.
8265 * remote.c (_initialize_remote): Likewise.
8266 * top.c (execute_command): Prepend default_args if command has some.
8268 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8269 * tracepoint.c (validate_actionline, encode_actions_1):
8270 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8272 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8274 * jit.c (jit_read_descriptor): Use bool as the return type.
8275 (jit_breakpoint_re_set_internal): Use bool as the return type.
8276 Invert the return value logic; return true if the jit breakpoint
8277 has been successfully initialized.
8278 (jit_inferior_init): Update the call to
8279 jit_breakpoint_re_set_internal.
8281 2020-06-22 Pedro Alves <palves@redhat.com>
8284 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8285 Use the current inferior instead. Don't return
8286 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8288 * sol-thread.c (sol_thread_target::wait): Don't reference
8290 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8291 (sol_update_thread_list_callback): Use the current inferior's pid
8292 instead of inferior_ptid.
8294 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8296 * procfs.c: Cleanup many comments.
8298 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8299 (AFTER_WATCHFLAG): Replace by value.
8301 (MAIN_PROC_NAME_FORMAT): Inline ...
8302 (create_procinfo): ... here.
8304 (procfs_debug_inferior): Remove SYS_exec handling.
8305 (syscall_is_exec): Likewise.
8306 (procfs_set_exec_trap): Likewise.
8308 (syscall_is_lwp_exit): Inline in callers.
8309 (syscall_is_exit): Likewise.
8310 (syscall_is_exec): Likewise.
8311 (syscall_is_lwp_create): Likewise.
8313 (invalidate_cache): Remove #if 0 code.
8315 (make_signal_thread_runnable): Remove.
8316 (procfs_target::resume): Remove #if 0 code.
8318 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8321 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8323 (procfs_target::create_inferior): ... here.
8325 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8327 * exec.c (validate_exec_file): Ensure the build-id is up to
8328 date by calling reopen_exec_file (that checks file timestamp
8329 to decide to re-read the file).
8331 2020-06-18 Pedro Alves <palves@redhat.com>
8334 * gdbthread.h (delete_thread, delete_thread_silent)
8335 (find_thread_ptid): Update comments.
8336 * thread.c (current_thread_): New global.
8337 (is_current_thread): Move higher, and reimplement.
8338 (inferior_thread): Reimplement.
8339 (set_thread_exited): Use bool. Add assertions.
8340 (add_thread_silent): Simplify thread-reuse handling by always
8341 calling delete_thread.
8342 (delete_thread): Remove intro comment.
8343 (find_thread_ptid): Skip exited threads.
8344 (switch_to_thread_no_regs): Write to current_thread_.
8345 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8346 INFERIOR_PTID. Clear current_thread_.
8348 2020-06-18 Pedro Alves <palves@redhat.com>
8350 * aix-thread.c (pd_update): Use switch_to_thread.
8352 2020-06-18 Pedro Alves <palves@redhat.com>
8354 * ravenscar-thread.c (ravenscar_thread_target): Update.
8355 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8356 (ravenscar_thread_target::add_active_thread): ... this. Don't
8357 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8358 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8360 2020-06-18 Pedro Alves <palves@redhat.com>
8362 * nat/windows-nat.c (current_windows_thread): Remove.
8363 * nat/windows-nat.h (current_windows_thread): Remove.
8364 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8366 (display_selectors): Adjust to fetch the current
8367 windows_thread_info based on inferior_ptid.
8368 (fake_create_process): No longer write to current_windows_thread.
8369 (windows_nat_target::get_windows_debug_event):
8370 Don't set inferior_ptid or current_windows_thread.
8371 (windows_nat_target::wait): Adjust to not rely on
8372 current_windows_thread.
8373 (do_initial_windows_stuff): Now a method of windows_nat_target.
8374 Switch to the last_ptid thread.
8375 (windows_nat_target::attach): Adjust.
8376 (windows_nat_target::detach): Use switch_to_no_thread instead of
8377 writing to inferior_ptid directly.
8378 (windows_nat_target::create_inferior): Adjust.
8380 2020-06-18 Pedro Alves <palves@redhat.com>
8382 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8384 2020-06-18 Pedro Alves <palves@redhat.com>
8386 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8387 after creating it, instead of writing to inferior_ptid. Don't
8388 write to inferior_ptid.
8390 2020-06-18 Pedro Alves <palves@redhat.com>
8392 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8394 2020-06-18 Pedro Alves <palves@redhat.com>
8396 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8397 it, instead of writing to inferior_ptid.
8399 2020-06-18 Pedro Alves <palves@redhat.com>
8401 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8404 2020-06-18 Pedro Alves <palves@redhat.com>
8406 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8407 instead of writing to inferior_ptid directly.
8409 2020-06-18 Pedro Alves <palves@redhat.com>
8411 * corelow.c (core_target::close): Use switch_to_no_thread instead
8412 of writing to inferior_ptid directly.
8413 (add_to_thread_list, core_target_open): Use switch_to_thread
8414 instead of writing to inferior_ptid directly.
8416 2020-06-18 Pedro Alves <palves@redhat.com>
8418 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8420 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8422 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8423 inferior_ptid directly.
8424 (darwin_nat_target::init_thread_list): Switch to thread, instead
8425 of writing to inferior_ptid.
8426 (darwin_nat_target::attach): Don't write to inferior_ptid.
8427 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8429 2020-06-18 Pedro Alves <palves@redhat.com>
8431 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8433 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8434 Instead use switch_to_thread.
8435 (gnu_nat_target::detach): Use switch_to_no_thread
8436 instead of writing to inferior_ptid directly. Used passed-in
8437 inferior instead of looking up the inferior by pid.
8439 2020-06-18 Pedro Alves <palves@redhat.com>
8441 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8444 2020-06-18 Pedro Alves <palves@redhat.com>
8446 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8448 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8450 (nto_procfs_target::detach): Avoid referencing
8451 inferior_ptid. Use switch_to_no_thread instead of writing to
8452 inferior_ptid directly.
8453 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8454 instead of writing to inferior_ptid directly.
8455 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8458 2020-06-18 Pedro Alves <palves@redhat.com>
8460 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8461 after creating it, instead of writing to inferior_ptid.
8462 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8463 to inferior_ptid directly.
8464 (gdbsim_target::wait): Don't write to inferior_ptid.
8466 2020-06-18 Pedro Alves <palves@redhat.com>
8468 * remote.c (remote_target::remote_notice_new_inferior): Use
8469 switch_to_thread instead of writing to inferior_ptid directly.
8470 (remote_target::add_current_inferior_and_thread): Use
8471 switch_to_no_thread instead of writing to inferior_ptid directly.
8472 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8473 and switch_to_thread instead of using set_current_inferior or
8474 writing to inferior_ptid directly.
8476 2020-06-18 Pedro Alves <palves@redhat.com>
8478 * tracectf.c (ctf_target_open): Switch to added thread instead of
8479 writing to inferior_ptid directly.
8480 (ctf_target::close): Use switch_to_no_thread instead of writing to
8481 inferior_ptid directly.
8483 2020-06-18 Pedro Alves <palves@redhat.com>
8485 * tracefile-tfile.c (tfile_target_open): Don't write to
8486 inferior_ptid directly, instead switch to added thread.
8487 (tfile_target::close): Use switch_to_no_thread instead of writing
8488 to inferior_ptid directly.
8490 2020-06-18 Pedro Alves <palves@redhat.com>
8492 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8493 (procfs_target::detach): Use switch_to_no_thread
8494 instead of writing to inferior_ptid directly.
8495 (do_attach): Change return type to void. Switch to the added
8497 (procfs_target::create_inferior): Switch to the added thread.
8498 (procfs_do_thread_registers): Don't write to inferior_ptid.
8500 2020-06-18 Pedro Alves <palves@redhat.com>
8502 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8503 of writing to inferior_ptid.
8504 (scoped_restore_exited_inferior): Delete.
8505 (handle_vfork_child_exec_or_exit): Simplify using
8506 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8507 instead of writing to inferior_ptid.
8508 (THREAD_STOPPED_BY): Delete.
8509 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8510 (thread_stopped_by_hw_breakpoint): Delete.
8511 (save_waitstatus): Use
8512 scoped_restore_current_thread+switch_to_thread, and call
8513 target_stopped_by_watchpoint instead of
8514 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8515 instead of thread_stopped_by_sw_breakpoint, and
8516 target_stopped_by_hw_breakpoint instead of
8517 thread_stopped_by_hw_breakpoint.
8518 (handle_inferior_event)
8519 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8520 inferior_ptid directly, nor
8521 set_current_inferior/set_current_program_space. Use
8522 switch_to_thread / switch_to_inferior_no_thread instead.
8524 2020-06-18 Pedro Alves <palves@redhat.com>
8526 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8527 instead of writing to inferior_ptid.
8529 2020-06-18 Pedro Alves <palves@redhat.com>
8531 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8533 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8534 to the added thread.
8535 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8536 instead of writing to inferior_ptid.
8538 2020-06-18 Pedro Alves <palves@redhat.com>
8540 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8541 (register_to_value_test): Mock a program_space too. Heap-allocate
8542 the address space. Don't write to inferior_ptid. Use
8543 switch_to_thread instead.
8545 2020-06-18 Pedro Alves <palves@redhat.com>
8547 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8549 (find_signalled_thread()): New, factored out from
8550 linux_make_corefile_notes and adjusted to handle exited threads.
8551 (linux_make_corefile_notes): Adjust to use the new
8552 find_signalled_thread.
8554 2020-06-18 Pedro Alves <palves@redhat.com>
8556 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8557 of saving/restoring inferior_ptid.
8559 2020-06-17 Tom Tromey <tom@tromey.com>
8561 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8562 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8564 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8566 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8568 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8571 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8573 * regformats/reg-arm.dat: Remove.
8574 * regformats/reg-bfin.dat: Remove.
8575 * regformats/reg-cris.dat: Remove.
8576 * regformats/reg-crisv32.dat: Remove.
8577 * regformats/reg-m32r.dat: Remove.
8578 * regformats/reg-tilegx.dat: Remove.
8579 * regformats/reg-tilegx32.dat: Remove.
8581 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8583 * features/Makefile (WHICH): Remove arm files.
8584 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8585 * regformats/arm/arm-with-neon.dat: Remove.
8586 * regformats/arm/arm-with-vfpv2.dat: Remove.
8587 * regformats/arm/arm-with-vfpv3.dat: Remove.
8589 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8591 * features/Makefile (XMLTOC): Remove rx.xml.
8593 2020-06-17 Pedro Alves <palves@redhat.com>
8595 * gdbthread.h (thread_control_state) <trap_expected> Update
8598 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8600 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8601 ada_language::lookup_symbol_nonlocal.
8602 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8603 (ada_language::lookup_symbol_nonlocal): New member function,
8604 implementation from ada_lookup_symbol_nonlocal.
8605 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8607 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8609 (cplus_language::lookup_symbol_nonlocal): New member function.
8610 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8611 (minimal_language_data) Likewise.
8612 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8613 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8615 (d_language::lookup_symbol_nonlocal): New member function.
8616 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8618 (f_language::lookup_symbol_nonlocal): New member function.
8619 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8621 * language.c (unknown_language_data): Likewise.
8622 (auto_language_data): Likewise.
8623 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8625 (language_defn::lookup_symbol_nonlocal): New member function.
8626 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8628 * objc-lang.c (objc_language_data): Likewise.
8629 * opencl-lang.c (opencl_language_data): Likewise.
8630 * p-lang.c (pascal_language_data): Likewise.
8631 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8632 rust_language::lookup_symbol_nonlocal.
8633 (rust_language_data): Delete la_lookup_symbol_nonlocal
8635 (rust_language::lookup_symbol_nonlocal): New member function,
8636 implementation from rust_lookup_symbol_nonlocal.
8637 * symtab.c (lookup_symbol_aux): Update call to
8638 lookup_symbol_nonlocal.
8639 (basic_lookup_symbol_nonlocal): Rename to...
8640 (language_defn::lookup_symbol_nonlocal): ...this, and update
8641 header comment. Remove language_defn parameter, and replace with
8643 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8645 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8647 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8649 (ada_language::value_print_inner): New member function.
8650 * c-lang.c (c_language_data): Delete la_value_print_inner
8652 (cplus_language_data): Likewise.
8653 (asm_language_data): Likewise.
8654 (minimal_language_data): Likewise.
8655 * d-lang.c (d_language_data): Likewise.
8656 (d_language::value_print_inner): New member function.
8657 * f-lang.c (f_language_data): Delete la_value_print_inner
8659 (f_language::value_print_inner): New member function.
8660 * f-lang.h (f_value_print_innner): Rename to...
8661 (f_value_print_inner): ...this (note spelling of 'inner').
8662 * f-valprint.c (f_value_print_innner): Rename to...
8663 (f_value_print_inner): ...this (note spelling of 'inner').
8664 * go-lang.c (go_language_data): Delete la_value_print_inner
8666 (go_language::value_print_inner): New member function.
8667 * language.c (language_defn::value_print_inner): Define new member
8669 (unk_lang_value_print_inner): Delete.
8670 (unknown_language_data): Delete la_value_print_inner initializer.
8671 (unknown_language::value_print_inner): New member function.
8672 (auto_language_data): Delete la_value_print_inner initializer.
8673 (auto_language::value_print_inner): New member function.
8674 * language.h (language_data): Delete la_value_print_inner field.
8675 (language_defn::value_print_inner): Delcare new member function.
8676 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8678 (m2_language::value_print_inner): New member function.
8679 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8681 * opencl-lang.c (opencl_language_data): Likewise.
8682 * p-lang.c (pascal_language_data): Likewise.
8683 (pascal_language::value_print_inner): New member function.
8684 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8686 (rust_language::value_print_inner): New member function.
8687 * valprint.c (do_val_print): Update call to value_print_inner.
8689 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8691 * ada-lang.c (ada_language_data): Delete la_value_print
8693 (ada_language::value_print): New member function.
8694 * c-lang.c (c_language_data): Delete la_value_print initializer.
8695 (cplus_language_data): Likewise.
8696 (asm_language_data): Likewise.
8697 (minimal_language_data): Likewise.
8698 * d-lang.c (d_language_data): Likewise.
8699 * f-lang.c (f_language_data): Likewise.
8700 * go-lang.c (go_language_data): Likewise.
8701 * language.c (unk_lang_value_print): Delete.
8702 (language_defn::value_print): Define new member function.
8703 (unknown_language_data): Delete la_value_print initializer.
8704 (unknown_language::value_print): New member function.
8705 (auto_language_data): Delete la_value_print initializer.
8706 (auto_language::value_print): New member function.
8707 * language.h (language_data): Delete la_value_print field.
8708 (language_defn::value_print): Declare new member function.
8709 (LA_VALUE_PRINT): Update call to value_print.
8710 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8711 * objc-lang.c (objc_language_data): Likewise.
8712 * opencl-lang.c (opencl_language_data): Likewise.
8713 * p-lang.c (pascal_language_data): Likewise.
8714 (pascal_language::value_print): New member function.
8715 * rust-lang.c (rust_language_data): Delete la_value_print
8718 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8720 * ada-lang.c (ada_watch_location_expression): Rename to
8721 ada_language::watch_location_expression.
8722 (ada_language_data): Delete la_watch_location_expression
8724 (ada_language::watch_location_expression): New member function,
8725 implementation from ada_watch_location_expression.
8726 * breakpoint.c (watch_command_1): Update call to
8727 watch_location_expression.
8728 * c-lang.c (c_watch_location_expression): Rename to
8729 language_defn::watch_location_expression.
8730 (c_language_data): Delete la_watch_location_expression
8732 (cplus_language_data): Likewise.
8733 (asm_language_data): Likewise.
8734 (minimal_language_data): Likewise.
8735 * c-lang.h (c_watch_location_expression): Delete declaration.
8736 * d-lang.c (d_language_data): Delete la_watch_location_expression
8738 * f-lang.c (f_language_data): Likewise.
8739 * go-lang.c (go_language_data): Likewise.
8740 * language.c (language_defn::watch_location_expression): Member
8741 function implementation from c_watch_location_expression.
8742 (unknown_language_data): Delete la_watch_location_expression
8744 (auto_language_data): Likewise.
8745 * language.h (language_data): Delete la_watch_location_expression
8747 (language_defn::watch_location_expression): Declare new member
8749 * m2-lang.c (m2_language_data): Delete
8750 la_watch_location_expression initializer.
8751 * objc-lang.c (objc_language_data): Likewise.
8752 * opencl-lang.c (opencl_language_data): Likewise.
8753 * p-lang.c (pascal_language_data): Likewise.
8754 * rust-lang.c (rust_watch_location_expression): Rename to
8755 rust_language::watch_location_expression.
8756 (rust_language_data): Delete la_watch_location_expression
8758 (rust_language::watch_location_expression): New member function,
8759 implementation from rust_watch_location_expression.
8761 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8763 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8764 ada_language::collect_symbol_completion_matches.
8765 (ada_language_data): Delete la_collect_symbol_completion_matches
8767 (ada_language::collect_symbol_completion_matches): New member
8768 function, implementation from
8769 ada_collect_symbol_completion_matches.
8770 * c-lang.c (c_language_data): Delete
8771 la_collect_symbol_completion_matches initializer.
8772 (cplus_language_data): Likewise.
8773 (asm_language_data): Likewise.
8774 (minimal_language_data): Likewise.
8775 * d-lang.c (d_language_data): Likewise.
8776 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8777 f_language::collect_symbol_completion_matches.
8778 (f_language_data): Delete la_collect_symbol_completion_matches
8780 (f_language::collect_symbol_completion_matches) New member
8781 function, implementation from f_collect_symbol_completion_matches.
8782 * go-lang.c (go_language_data): Delete
8783 la_collect_symbol_completion_matches initializer.
8784 * language.c (unknown_language_data): Likewise.
8785 (auto_language_data): Likewise.
8786 * language.h (language_data): Delete
8787 la_collect_symbol_completion_matches field.
8788 (language_defn::collect_symbol_completion_matches): New member
8790 * m2-lang.c (m2_language_data): Delete
8791 la_collect_symbol_completion_matches initializer.
8792 * objc-lang.c (objc_language_data): Likewise.
8793 * opencl-lang.c (opencl_language_data): Likewise.
8794 * p-lang.c (pascal_language_data): Likewise.
8795 * rust-lang.c (rust_language_data): Likewise.
8796 * symtab.c (default_collect_symbol_completion_matches): Delete.
8797 (collect_symbol_completion_matches): Update call to
8798 collect_symbol_completion_matches.
8799 (collect_symbol_completion_matches_type): Likewise.
8800 * symtab.h (default_collect_symbol_completion_matches): Delete
8803 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8805 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8806 (ada_language_data): Delete la_word_break_characters initializer.
8807 (ada_language::word_break_characters): New member function.
8808 * c-lang.c (c_language_data): Delete la_word_break_characters
8810 (cplus_language_data): Likewise.
8811 (asm_language_data): Likewise.
8812 (minimal_language_data): Likewise.
8813 * completer.c: Update global comment.
8814 (advance_to_expression_complete_word_point): Update call to
8815 word_break_characters.
8816 (complete_files_symbols): Likewise.
8817 (complete_line_internal_1): Likewise.
8818 (default_completer_handle_brkchars): Likewise.
8819 (skip_quoted_chars): Likewise.
8820 * d-lang.c (d_language_data): Delete la_word_break_characters
8822 * f-lang.c (f_word_break_characters): Delete.
8823 (f_language_data): Delete la_word_break_characters initializer.
8824 (f_language::word_break_characters): New member function.
8825 * go-lang.c (go_language_data): Delete la_word_break_characters
8827 * language.c (unknown_language_data): Likewise.
8828 (auto_language_data): Likewise.
8829 * language.h (default_word_break_characters): Move declaration to
8830 earlier in the file.
8831 (language_data): Delete la_word_break_characters field.
8832 (language_defn::word_break_characters): New member function.
8833 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8835 * objc-lang.c (objc_language_data): Likewise.
8836 * opencl-lang.c (opencl_language_data): Likewise.
8837 * p-lang.c (pascal_language_data): Likewise.
8838 * rust-lang.c (rust_language_data): Likewise.
8840 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8842 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8843 (ada_language_data): Delete la_get_symbol_name_matcher
8845 (language_defn::get_symbol_name_matcher_inner): New member
8847 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8849 (cplus_language_data): Likewise.
8850 (cplus_language::get_symbol_name_matcher_inner): New member
8852 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8853 (minimal_language_data): Likewise.
8854 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8855 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8857 * dictionary.c (iter_match_first_hashed): Update call to
8858 get_symbol_name_matcher.
8859 (iter_match_next_hashed): Likewise.
8860 (iter_match_next_linear): Likewise.
8861 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8862 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8864 (f_language::get_symbol_name_matcher_inner): New member function.
8865 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8867 * language.c (default_symbol_name_matcher): Update header comment,
8869 (language_defn::get_symbol_name_matcher): New definition.
8870 (language_defn::get_symbol_name_matcher_inner): Likewise.
8871 (get_symbol_name_matcher): Delete.
8872 (unknown_language_data): Delete la_get_symbol_name_matcher
8874 (auto_language_data): Likewise.
8875 * language.h (language_data): Delete la_get_symbol_name_matcher
8877 (language_defn::get_symbol_name_matcher): New member function.
8878 (language_defn::get_symbol_name_matcher_inner): Likewise.
8879 (default_symbol_name_matcher): Delete declaration.
8880 * linespec.c (find_methods): Update call to
8881 get_symbol_name_matcher.
8882 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8884 * minsyms.c (lookup_minimal_symbol): Update call to
8885 get_symbol_name_matcher.
8886 (iterate_over_minimal_symbols): Likewise.
8887 * objc-lang.c (objc_language_data): Delete
8888 la_get_symbol_name_matcher initializer.
8889 * opencl-lang.c (opencl_language_data): Likewise.
8890 * p-lang.c (pascal_language_data): Likewise.
8891 * psymtab.c (psymbol_name_matches): Update call to
8892 get_symbol_name_matcher.
8893 * rust-lang.c (rust_language_data): Delete
8894 la_get_symbol_name_matcher initializer.
8895 * symtab.c (symbol_matches_search_name): Update call to
8896 get_symbol_name_matcher.
8897 (compare_symbol_name): Likewise.
8899 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8901 * ada-lang.c (ada_language_data): Delete la_compute_program
8903 * c-lang.c (c_language_data): Likewise.
8904 (c_language::compute_program): New member function.
8905 (cplus_language_data): Delete la_compute_program initializer.
8906 (cplus_language::compute_program): New member function.
8907 (asm_language_data): Delete la_compute_program initializer.
8908 (minimal_language_data): Likewise.
8909 * c-lang.h (c_compute_program): Update comment.
8910 (cplus_compute_program): Likewise.
8911 * compile/compile-c-support.c (c_compute_program): Likewise.
8912 (cplus_compute_program): Likewise.
8913 * compile/compile.c (compile_to_object): Update call to
8915 * d-lang.c (d_language_data): Delete la_compute_program
8917 * f-lang.c (f_language_data): Likewise.
8918 * go-lang.c (go_language_data): Likewise.
8919 * language.c (unknown_language_data): Likewise.
8920 (auto_language_data): Likewise.
8921 * language.h (language_data): Delete la_compute_program field.
8922 (language_defn::compute_program): New member function.
8923 * m2-lang.c (m2_language_data): Delete la_compute_program
8925 * objc-lang.c (objc_language_data): Likewise.
8926 * opencl-lang.c (opencl_language_data): Likewise.
8927 * p-lang.c (pascal_language_data): Likewise.
8928 * rust-lang.c (rust_language_data): Likewise.
8930 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8932 * ada-lang.c (ada_language_data) Delete
8933 la_class_name_from_physname initializer.
8934 * c-lang.c (c_language_data): Likewise.
8935 (cplus_language_data): Likewise.
8936 (cplus_language::class_name_from_physname): New member function.
8937 (asm_language_data): Delete la_class_name_from_physname
8939 (minimal_language_data): Likewise.
8940 * d-lang.c (d_language_data): Likewise.
8941 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8942 method on language_defn class.
8943 (guess_full_die_structure_name): Likewise.
8944 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8946 * go-lang.c (go_language_data): Likewise.
8947 * language.c (language_class_name_from_physname): Delete.
8948 (unk_lang_class_name): Delete.
8949 (unknown_language_data): Delete la_class_name_from_physname
8951 (auto_language_data): Likewise.
8952 * language.h (language_data): Delete la_class_name_from_physname
8954 (language_defn::class_name_from_physname): New function.
8955 (language_class_name_from_physname): Delete declaration.
8956 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8958 * objc-lang.c (objc_language_data): Likewise.
8959 * opencl-lang.c (opencl_language_data): Likewise.
8960 * p-lang.c (pascal_language_data): Likewise.
8961 * rust-lang.c (rust_language_data): Likewise.
8963 2020-06-16 Tom Tromey <tom@tromey.com>
8965 * tui/tui-data.h (STATUS_NAME): New macro.
8966 * tui/tui-layout.c (tui_remove_some_windows)
8967 (initialize_known_windows, tui_register_window)
8968 (tui_layout_split::remove_windows, initialize_layouts)
8969 (tui_new_layout_command): Don't use hard-coded window names.
8971 2020-06-16 Tom Tromey <tom@tromey.com>
8974 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8975 tui_initialize_readline. Only run once. Call rl_initialize.
8976 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8977 tui_initialize_readline.
8978 * tui/tui-io.c (tui_setup_io): Call
8979 tui_ensure_readline_initialized.
8980 * tui/tui-interp.c (tui_interp::init): Update.
8982 2020-06-16 Tom Tromey <tom@tromey.com>
8984 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8985 Also preserve the status window.
8987 2020-06-16 Tom Tromey <tom@tromey.com>
8989 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8990 where m_window==nullptr.
8992 2020-06-15 Tom Tromey <tromey@adacore.com>
8994 * windows-nat.c (windows_nat::handle_output_debug_string):
8996 (windows_nat::handle_ms_vc_exception): Update.
8997 * target.h (target_read_string): Change API.
8998 * target.c (target_read_string): Change API.
8999 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9001 * solib-frv.c (frv_current_sos): Update.
9002 * solib-dsbt.c (dsbt_current_sos): Update.
9003 * solib-darwin.c (darwin_current_sos): Update.
9004 * linux-thread-db.c (inferior_has_bug): Update.
9005 * expprint.c (print_subexp_standard): Update.
9006 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
9007 (ada_exception_message_1): Update.
9009 2020-06-15 Tom Tromey <tromey@adacore.com>
9011 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
9013 2020-06-15 Tom Tromey <tromey@adacore.com>
9015 * valprint.c (read_string): Update comment.
9016 * target.c (MIN): Remove.
9017 (target_read_string): Rewrite.
9019 2020-06-15 Tom Tromey <tromey@adacore.com>
9021 * corefile.c (read_memory_string): Remove.
9022 * ada-valprint.c (ada_value_print_ptr): Update.
9023 * ada-lang.h (ada_tag_name): Change return type.
9024 * ada-lang.c (type_from_tag): Update.
9025 (ada_tag_name_from_tsd): Change return type. Use
9027 (ada_tag_name): Likewise.
9028 * gdbcore.h (read_memory_string): Don't declare.
9030 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
9032 * symtab.c (rbreak_command): Ignore Windows drive colon.
9034 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
9036 * NEWS: Mention removed GDBserver host support.
9038 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
9040 * features/riscv/rebuild-csr-xml.sh: Updated.
9042 2020-06-11 Tom Tromey <tom@tromey.com>
9045 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
9047 2020-06-09 Jonny Grant <jg@jguk.org>
9048 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
9050 * main.c (captured_main_1): Don't print new line after help.
9051 (print_gdb_help): add mailing list and IRC channel information
9052 to --help. Add new lines between items in the footer. Remove
9053 quotes around bug url.
9055 2020-06-11 Keith Seitz <keiths@redhat.com>
9058 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
9059 Resolve typedefs for type length calculations.
9061 2020-06-10 Tom de Vries <tdevries@suse.de>
9064 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
9065 (write_psymbols): Enable .gdb_index for ada.
9066 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
9069 2020-06-10 Tom de Vries <tdevries@suse.de>
9071 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9072 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9073 namei" instead of "const char *name" argument.
9074 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9075 dw2_symtab_iter_init.
9077 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9079 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9080 to use type::field and field::type instead.
9082 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9084 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9085 to use field::type instead.
9087 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9089 * gdbtypes.h (struct field) <type, set_type>: New methods.
9090 Rename `type` field to...
9091 <m_type>: ... this. Change references throughout to use type or
9093 (FIELD_TYPE): Use field::type. Change call sites that modify
9094 the field's type to use field::set_type instead.
9096 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9098 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9099 to use type::index_type instead.
9101 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9103 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9105 (TYPE_INDEX_TYPE): Use type::index_type.
9106 * gdbtypes.c (create_array_type_with_stride): Likewise.
9108 2020-06-07 Tom Tromey <tom@tromey.com>
9110 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9112 (generic_value_print): Update.
9114 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9116 Revert commit 982a38f60b0.
9117 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9119 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9121 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9122 avoid use after free.
9124 2020-06-05 Tom de Vries <tdevries@suse.de>
9128 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
9130 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9132 (dwarf2_read_debug_names): Likewise.
9133 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9134 object when re-using a per_bfd object with an index.
9136 2020-06-03 Tom de Vries <tdevries@suse.de>
9139 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9141 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9144 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9146 * ada-lang.c (ada_language_data): Delete skip_trampoline
9148 * c-lang.c (c_language_data): Likewise.
9149 (cplus_language_data): Likewise.
9150 (cplus_language::skip_trampoline): New member function.
9151 (asm_language_data): Delete skip_trampoline initializer.
9152 (minimal_language_data): Likewise.
9153 * d-lang.c (d_language_data): Likewise.
9154 * f-lang.c (f_language_data): Likewise.
9155 * go-lang.c (go_language_data): Likewise.
9156 * language.c (unk_lang_trampoline): Delete function.
9157 (skip_language_trampoline): Update.
9158 (unknown_language_data): Delete skip_trampoline initializer.
9159 (auto_language_data): Likewise.
9160 * language.h (language_data): Delete skip_trampoline field.
9161 (language_defn::skip_trampoline): New function.
9162 * m2-lang.c (m2_language_data): Delete skip_trampoline
9164 * objc-lang.c (objc_skip_trampoline): Delete function, move
9165 implementation to objc_language::skip_trampoline.
9166 (objc_language_data): Delete skip_trampoline initializer.
9167 (objc_language::skip_trampoline): New member function with
9168 implementation from objc_skip_trampoline.
9169 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9171 * p-lang.c (pascal_language_data): Likewise.
9172 * rust-lang.c (rust_language_data): Likewise.
9174 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9176 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9177 (ada_language::demangle): New member function.
9178 * c-lang.c (c_language_data): Delete la_demangle initializer.
9179 (cplus_language_data): Delete la_demangle initializer.
9180 (cplus_language::demangle): New member function.
9181 (asm_language_data): Delete la_demangle initializer.
9182 (minimal_language_data): Delete la_demangle initializer.
9183 * d-lang.c (d_language_data): Delete la_demangle initializer.
9184 (d_language::demangle): New member function.
9185 * f-lang.c (f_language_data): Delete la_demangle initializer.
9186 (f_language::demangle): New member function.
9187 * go-lang.c (go_language_data): Delete la_demangle initializer.
9188 (go_language::demangle): New member function.
9189 * language.c (language_demangle): Update.
9190 (unk_lang_demangle): Delete.
9191 (unknown_language_data): Delete la_demangle initializer.
9192 (unknown_language::demangle): New member function.
9193 (auto_language_data): Delete la_demangle initializer.
9194 (auto_language::demangle): New member function.
9195 * language.h (language_data): Delete la_demangle field.
9196 (language_defn::demangle): New function.
9197 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9198 * objc-lang.c (objc_language_data): Delete la_demangle
9200 (objc_language::demangle): New member function.
9201 * opencl-lang.c (opencl_language_data): Delete la_demangle
9203 * p-lang.c (pascal_language_data): Likewise.
9204 * rust-lang.c (rust_language_data): Likewise.
9205 (rust_language::demangle): New member function.
9207 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9209 * ada-lang.c (ada_language_data): Delete la_print_type
9211 (ada_language::print_type): New member function.
9212 * c-lang.c (c_language_data): Delete la_print_type initializer.
9213 (c_language::print_type): New member function.
9214 (cplus_language_data): Delete la_print_type initializer.
9215 (cplus_language::print_type): New member function.
9216 (asm_language_data): Delete la_print_type initializer.
9217 (asm_language::print_type): New member function.
9218 (minimal_language_data): Delete la_print_type initializer.
9219 (minimal_language::print_type): New member function.
9220 * d-lang.c (d_language_data): Delete la_print_type initializer.
9221 (d_language::print_type): New member function.
9222 * f-lang.c (f_language_data): Delete la_print_type initializer.
9223 (f_language::print_type): New member function.
9224 * go-lang.c (go_language_data): Delete la_print_type initializer.
9225 (go_language::print_type): New member function.
9226 * language.c (unk_lang_print_type): Delete.
9227 (unknown_language_data): Delete la_print_type initializer.
9228 (unknown_language::print_type): New member function.
9229 (auto_language_data): Delete la_print_type initializer.
9230 (auto_language::print_type): New member function.
9231 * language.h (language_data): Delete la_print_type field.
9232 (language_defn::print_type): New function.
9233 (LA_PRINT_TYPE): Update.
9234 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9235 (m2_language::print_type): New member function.
9236 * objc-lang.c (objc_language_data): Delete la_print_type
9238 (objc_language::print_type): New member function.
9239 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9240 to opencl_language::print_type.
9241 (opencl_language_data): Delete la_print_type initializer.
9242 (opencl_language::print_type): New member function, implementation
9243 from opencl_print_type.
9244 * p-lang.c (pascal_language_data): Delete la_print_type
9246 (pascal_language::print_type): New member function.
9247 * rust-lang.c (rust_print_type): Delete, implementation moved to
9248 rust_language::print_type.
9249 (rust_language_data): Delete la_print_type initializer.
9250 (rust_language::print_type): New member function, implementation
9251 from rust_print_type.
9253 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9255 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9256 implementation moves to...
9257 (ada_language::sniff_from_mangled_name): ...here. Update return
9259 (ada_language_data): Delete la_sniff_from_mangled_name
9261 * c-lang.c (c_language_data): Likewise.
9262 (cplus_language_data): Likewise.
9263 (cplus_language::sniff_from_mangled_name): New member function,
9264 implementation taken from gdb_sniff_from_mangled_name.
9265 (asm_language_data): Delete la_sniff_from_mangled_name
9267 (minimal_language_data): Likewise.
9268 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9269 implementation moves to cplus_language::sniff_from_mangled_name.
9270 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9271 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9273 (d_language::sniff_from_mangled_name): ...here.
9274 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9275 * f-lang.c (f_language_data): Likewise.
9276 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9278 (go_language::sniff_from_mangled_name): ...here.
9279 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9280 * language.c (language_sniff_from_mangled_name): Delete.
9281 (unknown_language_data): Delete la_sniff_from_mangled_name
9283 (auto_language_data): Likewise.
9284 * language.h (language_data): Delete la_sniff_from_mangled_name
9286 (language_defn::sniff_from_mangled_name): New function.
9287 (language_sniff_from_mangled_name): Delete declaration.
9288 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9290 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9291 implementation moves to...
9292 (objc_language::sniff_from_mangled_name): ...here.
9293 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9294 * opencl-lang.c (opencl_language_data): Likewise.
9295 * p-lang.c (pascal_language_data): Likewise.
9296 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9297 implementation moves to...
9298 (rust_language::sniff_from_mangled_name): ...here.
9299 (rust_language_data): Delete la_sniff_from_mangled_name
9301 * symtab.c (symbol_find_demangled_name): Call
9302 sniff_from_mangled_name member function.
9304 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9306 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9308 * c-lang.c (c_language_data): Likewise.
9309 (cplus_language_data): Likewise.
9310 (cplus_language::search_name_hash): New member function.
9311 (asm_language_data): Delete la_search_name_hash initializer.
9312 (minimal_language_data): Likewise.
9313 * d-lang.c (d_language_data): Likewise.
9314 * dictionary.c (default_search_name_hash): Rename to...
9315 (language_defn::search_name_hash): ...this.
9316 * f-lang.c (f_language_data): Likewise.
9317 (f_language::search_name_hash): New member function.
9318 * go-lang.c (go_language_data): Delete la_search_name_hash
9320 * language.c (unknown_language_data): Likewise.
9321 (auto_language_data): Likewise.
9322 * language.h (struct language_data): Delete la_search_name_hash
9324 (language_defn::search_name_hash): Declare new member function.
9325 (default_search_name_hash): Delete declaration.
9326 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9328 * objc-lang.c (objc_language_data): Likewise.
9329 * opencl-lang.c (opencl_language_data): Likewise.
9330 * p-lang.c (pascal_language_data): Likewise.
9331 * rust-lang.c (rust_language_data): Likewise.
9332 * symtab.c (search_name_hash): Update call.
9334 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9336 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9338 * c-lang.c (class compile_instance): Declare.
9339 (c_language_data): Delete la_get_compile_instance initializer.
9340 (c_language::get_compile_instance): New member function.
9341 (cplus_language_data): Delete la_get_compile_instance initializer.
9342 (cplus_language::get_compile_instance): New member function.
9343 (asm_language_data): Delete la_get_compile_instance initializer.
9344 (minimal_language_data): Likewise.
9345 * c-lang.h (c_get_compile_context): Update comment.
9346 (cplus_get_compile_context): Update comment.
9347 * compile/compile.c (compile_to_object): Update calls, don't rely
9348 on function pointer being NULL.
9349 * d-lang.c (d_language_data): Delete la_get_compile_instance
9351 * f-lang.c (f_language_data): Likewise.
9352 * go-lang.c (go_language_data): Likewise.
9353 * language.c (unknown_language_data): Likewise.
9354 (auto_language_data): Likewise.
9355 * language.h (language_data): Delete la_get_compile_instance field.
9356 (language_defn::get_compile_instance): New member function.
9357 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9359 * objc-lang.c (objc_language_data): Likewise.
9360 * opencl-lang.c (opencl_language_data): Likewise.
9361 * p-lang.c (pascal_language_data): Likewise.
9362 * rust-lang.c (rust_language_data): Likewise.
9364 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9366 * ada-lang.c (ada_add_all_symbols): Update comment.
9367 (ada_iterate_over_symbols): Delete, move implementation to...
9368 (ada_language::iterate_over_symbols): ...here, a new member
9369 function, rewrite to use range based for loop.
9370 (ada_language_data): Delete la_iterate_over_symbols initializer.
9371 * c-lang.c (c_language_data): Likewise.
9372 (cplus_language_data): Likewise.
9373 (asm_language_data): Likewise.
9374 (minimal_language_data): Likewise.
9375 * d-lang.c (d_language_data): Likewise.
9376 * f-lang.c (f_language_data): Likewise.
9377 * go-lang.c (go_language_data): Likewise.
9378 * language.c (unknown_language_data): Likewise.
9379 (auto_language_data): Likewise.
9380 * language.h (language_data): Delete la_iterate_over_symbols field.
9381 (language_defn::iterate_over_symbols): New member function.
9382 (LA_ITERATE_OVER_SYMBOLS): Update.
9383 * linespec.c (iterate_over_all_matching_symtabs): Update.
9384 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9386 * objc-lang.c (objc_language_data): Likewise.
9387 * opencl-lang.c (opencl_language_data): Likewise.
9388 * p-lang.c (pascal_language_data): Likewise.
9389 * rust-lang.c (rust_language_data): Likewise.
9391 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9393 * ada-lang.c (ada_language_data): Delete
9394 la_lookup_transparent_type initializer.
9395 * c-lang.c (c_language_data): Likewise.
9396 (cplus_language_data): Likewise.
9397 (cplus_language::lookup_transparent_type): New member function.
9398 (asm_language_data): Delete la_lookup_transparent_type
9400 (minimal_language_data): Likewise.
9401 * d-lang.c (d_language_data): Likewise.
9402 * f-lang.c (f_language_data): Likewise.
9403 * go-lang.c (go_language_data): Likewise.
9404 * language.c (unknown_language_data): Likewise.
9405 (auto_language_data): Likewise.
9406 * language.h (struct language_data): Delete
9407 la_lookup_transparent_type field.
9408 (language_defn::lookup_transparent_type): New member function.
9409 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9411 * objc-lang.c (objc_language_data): Likewise.
9412 * opencl-lang.c (opencl_language_data): Likewise.
9413 * p-lang.c (pascal_language_data): Likewise.
9414 * rust-lang.c (rust_language_data): Likewise.
9415 * symtab.c (symbol_matches_domain): Update call.
9417 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9419 * ada-lang.c (ada_language_arch_info): Delete function, move
9420 implementation to...
9421 (ada_language::language_arch_info): ...here, a new member
9423 (ada_language_data): Delete la_language_arch_info.
9424 * c-lang.c (c_language_data): Likewise.
9425 (c_language::language_arch_info): New member function.
9426 (cplus_language_arch_info): Delete function, move
9427 implementation to...
9428 (cplus_language::language_arch_info): ...here, a new member
9430 (cplus_language_data): Delete la_language_arch_info.
9431 (asm_language_data): Likewise.
9432 (asm_language::language_arch_info): New member function.
9433 (minimal_language_data): Delete la_language_arch_info.
9434 (minimal_language::language_arch_info): New member function.
9435 * d-lang.c (d_language_arch_info): Delete function, move
9436 implementation to...
9437 (d_language::language_arch_info): ...here, a new member
9439 (d_language_data): Delete la_language_arch_info.
9440 * f-lang.c (f_language_arch_info): Delete function, move
9441 implementation to...
9442 (f_language::language_arch_info): ...here, a new member
9444 (f_language_data): Delete la_language_arch_info.
9445 * go-lang.c (go_language_arch_info): Delete function, move
9446 implementation to...
9447 (go_language::language_arch_info): ...here, a new member
9449 (go_language_data): Delete la_language_arch_info.
9450 * language.c (unknown_language_data): Likewise.
9451 (unknown_language::language_arch_info): New member function.
9452 (auto_language_data): Delete la_language_arch_info.
9453 (auto_language::language_arch_info): New member function.
9454 (language_gdbarch_post_init): Update call to
9455 la_language_arch_info.
9456 * language.h (language_data): Delete la_language_arch_info
9458 (language_defn::language_arch_info): New function.
9459 * m2-lang.c (m2_language_arch_info): Delete function, move
9460 implementation to...
9461 (m2_language::language_arch_info): ...here, a new member
9463 (m2_language_data): Delete la_language_arch_info.
9464 * objc-lang.c (objc_language_arch_info): Delete function, move
9465 implementation to...
9466 (objc_language::language_arch_info): ...here, a new member
9468 (objc_language_data): Delete la_language_arch_info.
9469 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9470 implementation to...
9471 (opencl_language::language_arch_info): ...here, a new member
9473 (opencl_language_data): Delete la_language_arch_info.
9474 * p-lang.c (pascal_language_arch_info): Delete function, move
9475 implementation to...
9476 (pascal_language::language_arch_info): ...here, a new member
9478 (pascal_language_data): Delete la_language_arch_info.
9479 * rust-lang.c (rust_language_arch_info): Delete function, move
9480 implementation to...
9481 (rust_language::language_arch_info): ...here, a new member
9483 (rust_language_data): Delete la_language_arch_info.
9485 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9487 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9489 * c-lang.c (c_language_data): Likewise.
9490 (cplus_language_data): Likewise.
9491 (cplus_language::pass_by_reference_info): New method.
9492 (asm_language_data): Delete la_pass_by_reference initializer.
9493 (minimal_language_data): Likewise.
9494 * cp-abi.c (cp_pass_by_reference): Remove use of
9495 default_pass_by_reference.
9496 * d-lang.c (d_language_data): Likewise.
9497 * f-lang.c (f_language_data): Likewise.
9498 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9499 default_pass_by_reference.
9500 * go-lang.c (go_language_data): Likewise.
9501 * language.c (language_pass_by_reference): Update.
9502 (default_pass_by_reference): Delete.
9503 (unknown_language_data): Delete la_pass_by_reference
9505 (auto_language_data): Likewise.
9506 * language.h (struct language_data): Delete la_pass_by_reference
9508 (language_defn::pass_by_reference_info): New member function.
9509 (default_pass_by_reference): Delete declaration.
9510 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9512 * objc-lang.c (objc_language_data): Likewise.
9513 * opencl-lang.c (opencl_language_data): Likewise.
9514 * p-lang.c (pascal_language_data): Likewise.
9515 * rust-lang.c (rust_language_data): Likewise.
9517 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9519 * ada-lang.c (ada_read_var_value): Delete function, move
9520 implementation to...
9521 (ada_language::read_var_value): ...here.
9522 (ada_language_data): Delete la_read_var_value initializer.
9523 * c-lang.c (c_language_data): Likewise.
9524 (cplus_language_data): Likewise.
9525 (minimal_language_data): Likewise.
9526 * d-lang.c (d_language_data): Likewise.
9527 * f-lang.c (f_language_data): Likewise.
9528 * findvar.c (default_read_var_value): Rename to...
9529 (language_defn::read_var_value): ...this.
9530 * findvar.c (read_var_value): Update header comment, and change to
9531 call member function instead of function pointer.
9532 * go-lang.c (go_language_data): Likewise.
9533 * language.c (unknown_language_data): Delete la_read_var_value
9535 (auto_language_data): Likewise.
9536 * language.h (struct language_data): Delete la_read_var_value
9538 (language_defn::read_var_value): New member function.
9539 (default_read_var_value): Delete declaration.
9540 * m2-lang.c (m2_language_data): Delete la_read_var_value
9542 * objc-lang.c (objc_language_data): Likewise.
9543 * opencl-lang.c (opencl_language_data): Likewise.
9544 * p-lang.c (pascal_language_data): Likewise.
9545 * rust-lang.c (rust_language_data): Likewise.
9546 * value.h (default_read_var_value): Delete declaration.
9548 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9550 * ada-lang.c (ada_print_array_index): Delete function, move
9551 implementation to...
9552 (ada_language::print_array_index): ...here.
9553 (ada_language_data): Delete la_print_array_index initializer.
9554 * c-lang.c (c_language_data): Likewise.
9555 (cplus_language_data): Likewise.
9556 (minimal_language_data): Likewise.
9557 * d-lang.c (d_language_data): Likewise.
9558 * f-lang.c (f_language_data): Likewise.
9559 * go-lang.c (go_language_data): Likewise.
9560 * language.c (default_print_array_index): Delete function, move
9561 implementation to...
9562 (language_defn::print_array_index): ...here.
9563 (unknown_language_data): Delete la_print_array_index initializer.
9564 (auto_language_data): Likewise.
9565 * language.h (struct language_data): Delete la_print_array_index
9567 (language_defn::print_array_index): New member function.
9568 (LA_PRINT_ARRAY_INDEX): Update.
9569 (default_print_array_index): Delete declaration.
9570 * m2-lang.c (m2_language_data): Delete la_print_array_index
9572 * objc-lang.c (objc_language_data): Likewise.
9573 * opencl-lang.c (opencl_language_data): Likewise.
9574 * p-lang.c (pascal_language_data): Likewise.
9575 * rust-lang.c (rust_language_data): Likewise.
9577 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9579 * gdb/ada-lang.c (ada_language_defn): Convert to...
9580 (ada_language_data): ...this.
9581 (class ada_language): New class.
9582 (ada_language_defn): New static global.
9583 * gdb/c-lang.c (c_language_defn): Convert to...
9584 (c_language_data): ...this.
9585 (class c_language): New class.
9586 (c_language_defn): New static global.
9587 (cplus_language_defn): Convert to...
9588 (cplus_language_data): ...this.
9589 (class cplus_language): New class.
9590 (cplus_language_defn): New static global.
9591 (asm_language_defn): Convert to...
9592 (asm_language_data): ...this.
9593 (class asm_language): New class.
9594 (asm_language_defn): New static global.
9595 (minimal_language_defn): Convert to...
9596 (minimal_language_data): ...this.
9597 (class minimal_language): New class.
9598 (minimal_language_defn): New static global.
9599 * gdb/d-lang.c (d_language_defn): Convert to...
9600 (d_language_data): ...this.
9601 (class d_language): New class.
9602 (d_language_defn): New static global.
9603 * gdb/f-lang.c (f_language_defn): Convert to...
9604 (f_language_data): ...this.
9605 (class f_language): New class.
9606 (f_language_defn): New static global.
9607 * gdb/go-lang.c (go_language_defn): Convert to...
9608 (go_language_data): ...this.
9609 (class go_language): New class.
9610 (go_language_defn): New static global.
9611 * gdb/language.c (unknown_language_defn): Remove declaration.
9612 (current_language): Initialize to nullptr, real initialization is
9613 moved to _initialize_language.
9614 (languages): Delete global.
9615 (language_defn::languages): Define.
9616 (set_language_command): Use language_defn::languages.
9617 (set_language): Likewise.
9618 (range_error): Likewise.
9619 (language_enum): Likewise.
9620 (language_def): Likewise.
9621 (add_set_language_command): Use language_def::languages for the
9622 language list, and language_def to lookup language pointers.
9623 (skip_language_trampoline): Use language_defn::languages.
9624 (unknown_language_defn): Convert to...
9625 (unknown_language_data): ...this.
9626 (class unknown_language): New class.
9627 (unknown_language_defn): New static global.
9628 (auto_language_defn): Convert to...
9629 (auto_language_data): ...this.
9630 (class auto_language): New class.
9631 (auto_language_defn): New static global.
9632 (language_gdbarch_post_init): Use language_defn::languages.
9633 (_initialize_language): Initialize current_language.
9634 * gdb/language.h (struct language_defn): Rename to...
9635 (struct language_data): ...this.
9636 (struct language_defn): New.
9637 (auto_language_defn): Delete.
9638 (unknown_language_defn): Delete.
9639 (minimal_language_defn): Delete.
9640 (ada_language_defn): Delete.
9641 (asm_language_defn): Delete.
9642 (c_language_defn): Delete.
9643 (cplus_language_defn): Delete.
9644 (d_language_defn): Delete.
9645 (f_language_defn): Delete.
9646 (go_language_defn): Delete.
9647 (m2_language_defn): Delete.
9648 (objc_language_defn): Delete.
9649 (opencl_language_defn): Delete.
9650 (pascal_language_defn): Delete.
9651 (rust_language_defn): Delete.
9652 * gdb/m2-lang.c (m2_language_defn): Convert to...
9653 (m2_language_data): ...this.
9654 (class m2_language): New class.
9655 (m2_language_defn): New static global.
9656 * gdb/objc-lang.c (objc_language_defn): Convert to...
9657 (objc_language_data): ...this.
9658 (class objc_language): New class.
9659 (objc_language_defn): New static global.
9660 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9661 (opencl_language_data): ...this.
9662 (class opencl_language): New class.
9663 (opencl_language_defn): New static global.
9664 * gdb/p-lang.c (pascal_language_defn): Convert to...
9665 (pascal_language_data): ...this.
9666 (class pascal_language): New class.
9667 (pascal_language_defn): New static global.
9668 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9669 language pointer, update comment format.
9670 * gdb/rust-lang.c (rust_language_defn): Convert to...
9671 (rust_language_data): ...this.
9672 (class rust_language): New class.
9673 (rust_language_defn): New static global.
9675 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9677 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9679 <m_stmt_at_address>: New member variable.
9680 (lnp_state_machine::record_line): Don't record some lines, update
9681 tracking of is_stmt at the same address.
9682 (lnp_state_machine::lnp_state_machine): Initialise new member
9685 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9687 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9688 "-include gnu-nat-mig.h".
9689 * gnu-nat-mig.h: New file.
9690 * gnu-nat.c: Include "gnu-nat-mig.h".
9691 (exc_server, msg_reply_server, notify_server,
9692 process_reply_server): Remove declarations.
9694 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9696 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9697 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9698 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9699 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9700 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9701 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9702 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9703 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9704 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9705 to gnu_nat_target class.
9706 * gnu-nat.c: Likewise.
9707 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9708 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9709 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9711 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9712 instead of `gnu_target'.
9714 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9716 * i386-gnu-tdep.c: Include "gdbcore.h"
9717 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9718 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9719 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9720 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9721 i386_gnu_sigcontext_addr): New functions
9722 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9723 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9726 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9728 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9729 before fork_inferior call. Avoid calling it if target_is_pushed returns
9732 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9734 * gnu-nat.h (gnu_target): New variable declaration.
9735 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9737 * gnu-nat.c (gnu_target): New variable.
9738 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9739 add_thread_silent, and add_thread calls.
9740 (gnu_nat_target::create_inferior): Pass gnu_target to
9741 add_thread_silent, thread_change_ptid call.
9742 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9745 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9747 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9748 (gnu_nat_target::find_memory_regions): Remove unused
9749 `old_address' variable.
9751 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9753 * gnu-nat.c: Include "gdbarch.h".
9755 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9757 * reply_mig_hack.awk (Error return): Cast function through
9758 void *, to bypass compiler function call check.
9760 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9762 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9763 $(srcdir)/reply_mig_hack.awk.
9765 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9767 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9769 2020-05-30 Jonny Grant <jg@jguk.org>
9771 * configure.ac (ACX_BUGURL): change bug URL to https.
9773 2020-05-30 Pedro Alves <palves@redhat.com>
9775 * cp-support.c (replace_typedefs_template): New.
9776 (replace_typedefs_qualified_name): Handle
9777 DEMANGLE_COMPONENT_TEMPLATE.
9779 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9781 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9782 dwarf2/index-cache.h, dwarf2/index-write.c,
9783 dwarf2/index-write.h, dwarf2/line-header.c,
9784 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9785 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9786 variables and fields from `dwarf2_per_objfile` to just
9787 `per_objfile` throughout.
9789 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9791 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9792 <push_dwarf_reg_entry_value>: Add comment.
9794 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9795 Keith Seitz <keiths@redhat.com>
9797 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9798 instead of PyEval_ReleaseLock.
9799 (class gdbpy_gil): Move to earlier in file.
9800 (finalize_python): Set gdb_python_initialized.
9801 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9802 when not initialized.
9804 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9806 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9807 <push_dwarf_reg_entry_value>: Remove assert. Override
9808 per_objfile with caller_per_objfile.
9810 2020-05-28 Tom de Vries <tdevries@suse.de>
9812 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9813 PR gold/15646 workaround to symbol kind "type".
9815 2020-05-27 Tom Tromey <tromey@adacore.com>
9817 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9819 2020-05-27 Tom Tromey <tromey@adacore.com>
9821 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9822 Use htab_find_with_hash.
9823 <add_abbrev>: Remove "abbrev_number" parameter.
9824 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9825 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9826 (hash_abbrev): Add comment.
9827 (abbrev_table::lookup_abbrev): Move to header file.
9828 (abbrev_table::read): Update.
9830 2020-05-27 Tom Tromey <tromey@adacore.com>
9832 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9834 <canonical_name>: New member.
9835 <raw_name>: Rename from "name".
9836 (partial_die_info): Initialize canonical_name.
9837 (scan_partial_symbols): Check raw_name.
9838 (partial_die_parent_scope, partial_die_full_name)
9839 (add_partial_symbol, add_partial_subprogram)
9840 (add_partial_enumeration, load_partial_dies): Use "name" method.
9841 (partial_die_info::name): New method.
9842 (partial_die_info::read, guess_partial_die_structure_name)
9843 (partial_die_info::fixup): Update.
9845 2020-05-27 Tom Tromey <tromey@adacore.com>
9847 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9848 <get_ref_die_offset>: Inline.
9849 <get_ref_die_offset_complaint>: New method.
9850 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9851 (attribute::get_ref_die_offset_complaint): Rename from
9852 get_ref_die_offset. Just issue complaint.
9854 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9856 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9858 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9860 * exec.c (exec_file_attach): Use errno value of first openp failure.
9862 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9864 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9865 Don't close thread handle.
9867 2020-05-27 Tom Tromey <tom@tromey.com>
9868 Simon Marchi <simon.marchi@efficios.com>
9870 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9872 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9874 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9875 dwarf2_per_bfd_objfile_data_key>: New globals.
9876 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9877 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9878 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9880 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9881 short-circuit when sharing.
9882 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9883 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9885 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9887 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9889 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9890 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9892 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9894 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9895 build_name_components, find_name_components_bounds>:
9896 Add per_objfile parameter.
9897 (struct mapped_index) <symbol_name_at>: Likewise.
9898 (struct mapped_debug_names): Remove constructor.
9899 <dwarf2_per_objfile>: Remove field.
9900 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9901 (mapped_index_base::find_name_components_bounds,
9902 mapped_index_base::build_name_components,
9903 dw2_expand_symtabs_matching_symbol): Likewise.
9904 (class mock_mapped_index) <symbol_name_at>: Likewise.
9905 (check_match): Likewise.
9906 (check_find_bounds_finds): Likewise.
9907 (test_mapped_index_find_name_component_bounds): Update.
9908 (CHECK_MATCH): Update.
9909 (dw2_expand_symtabs_matching): Update.
9910 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9911 per_objfile parameter.
9912 <find_vec_in_debug_names>: Likewise.
9913 <m_per_objfile>: New field.
9914 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9916 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9917 (dw2_debug_names_iterator::next): Update.
9918 (dw2_debug_names_lookup_symbol): Update.
9919 (dw2_debug_names_expand_symtabs_for_function): Update.
9920 (dw2_debug_names_map_matching_symbols): Update.
9921 (dw2_debug_names_expand_symtabs_matching): Update.
9922 (dwarf2_read_debug_names): Update.
9924 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9926 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9927 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9928 move to dwarf2_per_objfile.
9929 <read_in_chain>: Remove.
9930 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9931 remove_all_cus, age_comp_units>: New methods.
9932 <m_dwarf2_cus>: New member.
9933 (struct dwarf2_per_cu_data) <cu>: Remove.
9934 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9935 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9936 moved to methods of dwarf2_per_objfile.
9937 (dwarf2_clear_marks): Remove.
9938 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9939 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9940 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9941 (dwarf2_per_objfile::remove_all_cus): New.
9942 (class free_cached_comp_units) <~free_cached_comp_units>:
9945 (dw2_do_instantiate_symtab): Adjust.
9946 (fill_in_sig_entry_from_dwo_entry): Adjust.
9947 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9948 (cutu_reader::cutu_reader): Likewise.
9949 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9950 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9951 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9952 and dwarf2_per_objfile::age_comp_units.
9953 (load_partial_comp_unit): Update.
9954 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9955 (process_queue): Likewise.
9956 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9958 (dwarf2_read_addr_index): Likewise.
9959 (follow_die_offset): Likewise.
9960 (dwarf2_fetch_die_loc_sect_off): Likewise.
9961 (dwarf2_fetch_constant_bytes): Likewise.
9962 (dwarf2_fetch_die_type_sect_off): Likewise.
9963 (follow_die_sig_1): Likewise.
9964 (load_full_type_unit): Likewise.
9965 (read_signatured_type): Likewise.
9966 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9967 (dwarf2_cu::~dwarf2_cu): Remove.
9968 (dwarf2_per_objfile::get_cu): New.
9969 (dwarf2_per_objfile::set_cu): New.
9970 (age_cached_comp_units): Rename to...
9971 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9972 to std::unordered_map.
9973 (free_one_cached_comp_unit): Rename to...
9974 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9975 to std::unordered_map.
9976 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9977 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9978 a dwarf2_per_objfile in data.
9979 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9980 (dwarf2_clear_marks): Remove.
9982 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9984 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9985 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9986 (init_tu_and_read_dwo_dies): Likewise.
9987 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9988 (cutu_reader::cutu_reader): Likewise.
9989 (load_partial_comp_unit): Likewise.
9990 (process_psymtab_comp_unit): Update.
9991 (build_type_psymtabs_1): Update.
9992 (process_skeletonless_type_unit): Update.
9993 (load_full_comp_unit): Update.
9994 (find_partial_die): Update.
9995 (dwarf2_read_addr_index): Update.
9996 (read_signatured_type): Update.
9998 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10000 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
10001 m_header_read_in>: New fields.
10002 <get_header>: New method.
10003 * dwarf2/read.c (per_cu_header_read_in): Remove.
10004 (dwarf2_per_cu_data::get_header): New.
10005 (dwarf2_per_cu_data::addr_size): Update.
10006 (dwarf2_per_cu_data::offset_size): Update.
10007 (dwarf2_per_cu_data::ref_addr_size): Update.
10009 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10011 * dwarf2/read.c (load_cu): Return dwarf2_cu.
10012 (dw2_do_instantiate_symtab): Update.
10013 (queue_and_load_all_dwo_tus): Change parameter from
10014 dwarf2_per_cu_data to dwarf2_cu.
10015 (dwarf2_fetch_die_loc_sect_off): Update.
10016 (dwarf2_fetch_constant_bytes): Update.
10017 (dwarf2_fetch_die_type_sect_off): Update.
10019 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10021 * dwarf2/read.c (process_full_comp_unit,
10022 process_full_type_unit): Remove per_cu, per_objfile paramters.
10023 Add dwarf2_cu parameter.
10024 (process_queue): Update.
10026 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10028 * dwarf2/read.c (create_cu_from_index_list): Replace
10029 dwarf2_per_objfile parameter with dwarf2_per_bfd.
10030 (create_cus_from_index_list): Likewise.
10031 (create_cus_from_index): Likewise.
10032 (create_signatured_type_table_from_index): Likewise.
10033 (create_cus_from_debug_names_list): Likewise.
10034 (create_cus_from_debug_names): Likewise.
10035 (dwarf2_read_gdb_index): Update.
10036 (dwarf2_read_debug_names): Update.
10038 2020-05-27 Tom Tromey <tom@tromey.com>
10039 Simon Marchi <simon.marchi@efficios.com>
10041 * dwarf2/read.h (struct dwarf2_per_objfile)
10042 <get_type_for_signatured_type, set_type_for_signatured_type>:
10044 <m_type_map>: New member.
10045 (struct signatured_type) <type>: Remove.
10047 (dwarf2_per_objfile::get_type_for_signatured_type,
10048 dwarf2_per_objfile::set_type_for_signatured_type): New.
10049 (get_signatured_type): Use new methods.
10051 2020-05-27 Tom Tromey <tom@tromey.com>
10052 Simon Marchi <simon.marchi@efficios.com>
10054 * dwarf2/read.h (struct type_unit_group_unshareable): New.
10055 (struct dwarf2_per_objfile) <type_units>: New member.
10056 <get_type_unit_group_unshareable>: New method.
10057 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
10058 num_symtabs, symtabs>: Remove; move to
10059 type_unit_group_unshareable.
10060 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
10061 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
10062 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
10064 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10066 * dwarf2/read.h (struct dwarf2_per_cu_data):
10067 <dwarf2_per_objfile>: Remove.
10068 * dwarf2/read.c (create_cu_from_index_list): Don't assign
10069 dwarf2_per_objfile.
10070 (create_signatured_type_table_from_index): Likewise.
10071 (create_signatured_type_table_from_debug_names): Likewise.
10072 (create_debug_type_hash_table): Likewise.
10073 (fill_in_sig_entry_from_dwo_entry): Likewise.
10074 (create_type_unit_group): Likewise.
10075 (read_comp_units_from_section): Likewise.
10076 (create_cus_hash_table): Likewise.
10078 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10080 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10081 dwarf2_per_cu_data::dwarf2_per_objfile.
10082 (compute_compunit_symtab_includes): Likewise.
10083 (dwarf2_cu::start_symtab): Likewise.
10085 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10087 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10089 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10090 (read_namespace_alias): Update.
10091 (lookup_die_type): Update.
10092 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10093 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10095 (disassemble_dwarf_expression): Update.
10097 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10099 * dwarf2/read.h (struct dwarf2_queue_item): Add
10100 dwarf2_per_objfile parameter, assign new parameter.
10101 <per_objfile>: New field.
10102 * dwarf2/read.c (free_one_cached_comp_unit): Add
10103 dwarf2_per_objfile parameter.
10104 (queue_comp_unit): Likewise.
10105 (dw2_do_instantiate_symtab): Update.
10106 (process_psymtab_comp_unit): Update.
10107 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10108 (process_imported_unit_die): Update.
10109 (queue_and_load_dwo_tu): Update.
10110 (follow_die_offset): Update.
10111 (follow_die_sig_1): Update.
10113 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10115 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10116 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10117 (read_call_site_scope): Assign per_objfile.
10118 (dwarf2_per_cu_data::objfile): Remove.
10119 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10120 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10121 dwarf2_per_objfile parameter.
10122 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10123 dwarf2_per_objfile parameter.
10124 (dwarf_expr_reg_to_entry_parameter): Add output
10125 dwarf2_per_objfile parameter.
10126 (locexpr_get_frame_base): Update.
10127 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10128 <push_dwarf_reg_entry_value>: Update.
10129 <call_site_to_target_addr>: Update.
10130 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10132 (value_of_dwarf_reg_entry): Update.
10133 (rw_pieced_value): Update.
10134 (indirect_synthetic_pointer): Update.
10135 (dwarf2_evaluate_property): Update.
10136 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10138 (locexpr_read_variable): Update.
10139 (locexpr_get_symbol_read_needs): Update.
10140 (loclist_read_variable): Update.
10142 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10144 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10145 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10146 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10148 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10149 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10150 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10152 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10153 sect_variable_value): Add dwarf2_per_objfile parameter.
10154 (class dwarf_evaluate_loc_desc) <dwarf_call,
10155 dwarf_variable_value>: Update.
10156 (fetch_const_value_from_synthetic_pointer): Add
10157 dwarf2_per_objfile parameter.
10158 (fetch_const_value_from_synthetic_pointer): Update.
10159 (coerced_pieced_ref): Update.
10160 (class symbol_needs_eval_context) <dwarf_call,
10161 dwarf_variable_value>: Update.
10162 (dwarf2_compile_expr_to_ax): Update.
10164 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10166 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10168 (dwarf2_evaluate_loc_desc_full): Update.
10170 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10172 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10174 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10175 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10176 dwarf2_per_objfile parameter.
10177 (decode_debug_loc_dwo_addresses): Likewise.
10178 (dwarf2_find_location_expression): Update.
10179 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10180 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10182 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10184 (locexpr_describe_location_1): Likewise.
10185 (locexpr_describe_location): Update.
10187 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10189 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10191 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10192 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10193 (dwarf2_compile_property_to_c): Update.
10194 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10195 use text offset from objfile.
10196 (locexpr_tracepoint_var_ref): Update.
10197 (locexpr_generate_c_location): Update.
10198 (loclist_describe_location): Update.
10199 (loclist_tracepoint_var_ref): Update.
10200 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10201 dwarf2_per_objfile parameter.
10202 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10203 use text offset from objfile.
10204 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10206 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10208 * dwarf2/expr.h (struct dwarf_expr_context)
10209 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10211 <per_objfile>: New member.
10212 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10213 dwarf2_per_objfile parameter. Don't set offset, set
10215 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10216 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10217 a dwarf2_per_objfile object instead of an offset.
10218 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10220 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10221 to dwarf2_expr_executor constructor. Don't set offset.
10222 (dwarf2_fetch_cfa_info): Update.
10223 (struct dwarf2_frame_cache) <text_offset>: Remove.
10224 <per_objfile>: New field.
10225 (dwarf2_frame_cache): Update.
10226 (dwarf2_frame_prev_register): Update.
10227 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10228 <dwarf_evaluate_loc_desc>: Add constructor.
10229 (dwarf2_evaluate_loc_desc_full): Update.
10230 (dwarf2_locexpr_baton_eval): Update.
10231 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10233 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10235 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10237 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10238 addr_sized_int_type>: Move to dwarf2_cu.
10239 <int_type>: Move to dwarf2_per_objfile.
10240 (struct dwarf2_per_objfile) <int_type>: Move here.
10241 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10242 addr_sized_int_type>: Move here.
10243 (read_func_scope): Update.
10244 (read_array_type): Update.
10245 (read_tag_string_type): Update.
10246 (attr_to_dynamic_prop): Update.
10247 (dwarf2_per_cu_data::int_type): Rename to...
10248 (dwarf2_per_objfile::int_type): ... this.
10249 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10250 (dwarf2_cu::addr_sized_int_type): ... this.
10251 (read_subrange_type): Update.
10252 (dwarf2_per_cu_data::addr_type): Rename to...
10253 (dwarf2_cu::addr_type): ... this.
10254 (set_die_type): Update.
10256 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10258 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10259 data through per_cu->cu.
10261 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10263 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10264 dwarf2_per_cu_data parameter fo dwarf2_cu.
10265 (lookup_dwo_type_unit): Likewise.
10266 (read_cutu_die_from_dwo): Likewise.
10267 (lookup_dwo_unit): Likewise.
10268 (open_and_init_dwo_file): Likewise.
10269 (lookup_dwo_cutu): Likewise.
10270 (lookup_dwo_comp_unit): Likewise.
10271 (lookup_dwo_type_unit): Likewise.
10272 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10273 (cutu_reader::cutu_reader): Update.
10275 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10277 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10279 (process_full_type_unit): Likewise.
10280 (process_queue): Update.
10282 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10284 * dwarf2/read.c (recursively_compute_inclusions): Add
10285 dwarf2_per_objfile parameter.
10286 (compute_compunit_symtab_includes): Likewise.
10287 (process_cu_includes): Update.
10289 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10291 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10293 (create_type_unit_group): Update.
10294 (process_psymtab_comp_unit_reader): Update.
10295 (build_type_psymtabs_reader): Update.
10297 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10299 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10300 object through m_this_cu->cu.
10302 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10304 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10305 the info parameter.
10306 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10308 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10310 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10311 per_objfile parameter.
10312 (load_full_type_unit): Add per_objfile parameter.
10313 (read_signatured_type): Likewise.
10314 (load_full_comp_unit): Likewise.
10315 (load_cu): Likewise.
10316 (dw2_do_instantiate_symtab): Likewise.
10317 (dw2_get_file_names): Likewise.
10318 (dw2_map_symtabs_matching_filename): Update.
10319 (dw_expand_symtabs_matching_file_matcher): Update.
10320 (dw2_map_symbol_filenames): Update.
10321 (process_psymtab_comp_unit): Add per_objfile parameter.
10322 (build_type_psymtabs_1): Update.
10323 (process_skeletonless_type_unit): Update.
10324 (dwarf2_build_psymtabs_hard): Update.
10325 (load_partial_comp_unit): Add per_objfile parameter.
10326 (scan_partial_symbols): Update.
10327 (load_full_comp_unit): Add per_objfile parameter.
10328 (process_imported_unit_die): Update.
10329 (create_cus_hash_table): Update.
10330 (find_partial_die): Update.
10331 (dwarf2_read_addr_index): Update.
10332 (follow_die_offset): Update.
10333 (dwarf2_fetch_die_loc_sect_off): Update.
10334 (dwarf2_fetch_constant_bytes): Update.
10335 (dwarf2_fetch_die_type_sect_off): Update.
10336 (follow_die_sig_1): Update.
10337 (load_full_type_unit): Add per_objfile parameter.
10338 (read_signatured_type): Likewise.
10340 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10342 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10345 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10347 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10348 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10349 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10351 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10352 (create_cus_from_index): Update.
10353 (dwarf2_read_gdb_index): Update.
10354 (create_cus_from_debug_names): Update.
10355 (dwarf2_read_debug_names): Update.
10356 (get_abbrev_section_for_cu): Update.
10357 (create_all_comp_units): Update.
10358 (read_attribute_value): Update.
10359 (get_debug_line_section): Update.
10360 * dwarf2/index-cache.c (index_cache::store): Update.
10361 * dwarf2/index-write.c (save_gdb_index_command): Update.
10362 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10364 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10366 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10368 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10369 dwarf2_per_cu_data::per_bfd.
10370 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10371 (create_type_unit_group): Likewise.
10372 (queue_comp_unit): Remove reference to
10373 per_cu->dwarf2_per_objfile.
10374 (maybe_queue_comp_unit): Likewise.
10375 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10376 (create_cus_hash_table): Assign new field.
10378 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10380 * dwarf2/read.c: Replace
10381 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10382 dwarf2_cu->per_objfile throughout.
10384 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10386 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10387 parameter, don't use per_cu->dwarf2_per_objfile.
10388 (dw2_instantiate_symtab): Likewise.
10389 (dw2_find_last_source_symtab): Update.
10390 (dw2_map_expand_apply): Update.
10391 (dw2_lookup_symbol): Update.
10392 (dw2_expand_symtabs_for_function): Update.
10393 (dw2_expand_all_symtabs): Update.
10394 (dw2_expand_symtabs_with_fullname): Update.
10395 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10396 don't use per_cu->dwarf2_per_objfile.
10397 (dw2_expand_marked_cus): Update.
10398 (dw2_find_pc_sect_compunit_symtab): Update.
10399 (dw2_debug_names_lookup_symbol): Update.
10400 (dw2_debug_names_expand_symtabs_for_function): Update.
10401 (dw2_debug_names_map_matching_symbols): Update.
10402 (dwarf2_psymtab::expand_psymtab): Update.
10404 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10406 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10407 <per_objfile>: New member.
10408 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10409 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10411 (cutu_reader::cutu_reader): Update.
10412 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10414 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10416 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10417 struct dwarf2_per_objfile.
10418 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10420 * dwarf2/read.c (set_die_type): Update.
10421 (get_die_type_at_offset): Update.
10423 2020-05-27 Tom Tromey <tom@tromey.com>
10424 Simon Marchi <simon.marchi@efficios.com>
10426 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10428 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10429 get_symtab, set_symtab>: New methods.
10430 <m_symtabs>: New field.
10431 (struct dwarf2_psymtab): Derive from partial_symtab.
10432 <readin_p, get_compunit_symtab>: Declare methods.
10433 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10434 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10436 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10437 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10438 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10439 (dw2_symtab_iter_next, dw2_print_stats)
10440 (dw2_expand_symtabs_with_fullname)
10441 (dw2_expand_symtabs_matching_one)
10442 (dw_expand_symtabs_matching_file_matcher)
10443 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10444 (dw2_debug_names_iterator::next)
10445 (dw2_debug_names_map_matching_symbols)
10446 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10447 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10448 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10450 (get_compunit_symtab, process_full_comp_unit)
10451 (process_full_type_unit): Update.
10452 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10454 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10456 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10457 then introduce a new dwarf2_per_objfile type.
10458 <read_line_string>: Move to the new dwarf2_per_objfile type.
10459 <objfile>: Likewise.
10460 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10461 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10462 dwarf2_per_objfile->per_bfd.
10463 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10464 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10465 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10466 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10467 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10468 (dwarf2_per_objfile::locate_sections): Rename to...
10469 (dwarf2_per_bfd::locate_sections): ... this.
10470 (dwarf2_per_objfile::get_cutu): Rename to...
10471 (dwarf2_per_bfd::get_cutu): ... this.
10472 (dwarf2_per_objfile::get_cu): Rename to...
10473 (dwarf2_per_bfd::get_cu): ... this.
10474 (dwarf2_per_objfile::get_tu): Rename to...
10475 (dwarf2_per_bfd::get_tu): ... this.
10476 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10477 (dwarf2_per_bfd::allocate_per_cu): ... this.
10478 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10479 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10480 (get_gdb_index_contents_ftype): Change parameter from
10481 dwarf2_per_objfile to dwarf2_per_bfd.
10482 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10483 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10485 2020-05-27 Tom Tromey <tom@tromey.com>
10486 Simon Marchi <simon.marchi@efficios.com>
10488 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10489 (allocate_piece_closure): Set "per_objfile" member.
10490 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10491 (locexpr_describe_location, loclist_describe_location): Use new
10493 * dwarf2/read.c (read_call_site_scope)
10494 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10495 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10496 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10497 handle_data_member_location): Set per_objfile member.
10498 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10500 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10502 2020-05-27 Tom Tromey <tom@tromey.com>
10504 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10505 allocate_signatured_type>: Declare new methods.
10506 <m_num_psymtabs>: New member.
10507 (struct dwarf2_per_cu_data) <index>: New member.
10508 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10509 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10510 (create_cu_from_index_list): Use allocate_per_cu.
10511 (create_signatured_type_table_from_index)
10512 (create_signatured_type_table_from_debug_names)
10513 (create_debug_type_hash_table, add_type_unit)
10514 (read_comp_units_from_section): Use allocate_signatured_type.
10516 2020-05-27 Tom Tromey <tom@tromey.com>
10518 * psymtab.c (partial_map_expand_apply)
10519 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10520 (psym_lookup_global_symbol_language)
10521 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10522 (psym_print_stats, psym_expand_symtabs_for_function)
10523 (psym_map_symbol_filenames, psym_map_matching_symbols)
10524 (psym_expand_symtabs_matching)
10525 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10526 (maintenance_check_psymtabs): Update.
10527 * psympriv.h (struct partial_symtab) <readin_p,
10528 get_compunit_symtab>: Add objfile parameter.
10529 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10531 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10532 get_compunit_symtab>: Likewise.
10533 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10535 2020-05-27 Tom Tromey <tom@tromey.com>
10537 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10539 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10540 (create_cu_from_index_list)
10541 (create_signatured_type_table_from_index)
10542 (create_signatured_type_table_from_debug_names)
10543 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10544 (dwarf2_create_include_psymtab)
10545 (create_debug_type_hash_table, add_type_unit)
10546 (create_type_unit_group, read_comp_units_from_section)
10547 (dwarf2_compute_name, create_cus_hash_table)
10548 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10549 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10551 (dw2_get_real_path): Likewise. Change argument to
10552 dwarf2_per_objfile.
10554 2020-05-27 Luis Machado <luis.machado@linaro.org>
10557 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10558 for ldrd (immediate).
10560 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10562 * command.h: Add comment giving the name of class_tui.
10563 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10564 create the fake command for the help for class_tui.
10566 2020-05-26 Tom Tromey <tromey@adacore.com>
10568 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10569 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10570 (val_atr): New function.
10571 (value_val_atr): Use it.
10572 * ada-valprint.c (print_optional_low_bound): Change low bound
10573 handling for enums.
10574 (val_print_packed_array_elements): Don't call discrete_position.
10575 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10576 discrete_position for enum types.
10577 * language.c (default_print_array_index): Change type.
10578 * language.h (struct language_defn) <la_print_array_index>: Add
10579 index_type parameter, change type of index_value.
10580 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10581 (default_print_array_index): Update.
10582 * valprint.c (maybe_print_array_index): Don't call
10583 value_from_longest. Update.
10584 (value_print_array_elements): Don't call discrete_position.
10586 2020-05-26 Tom Tromey <tromey@adacore.com>
10588 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10589 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10591 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10594 * avr-tdep.c (avr_integer_to_address): Return data or code
10595 address accordingly to the second 'type' argument of the
10598 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10600 * infcmd.c, inferior.h: (construct_inferior_arguments):
10601 Moved function from here to gdbsupport/common-inferior.{h,cc}
10603 2020-05-23 Tom Tromey <tom@tromey.com>
10605 Revert commit eca1f90c:
10606 * NEWS: Remove entry for completion styling.
10607 * completer.c (_rl_completion_prefix_display_length): Move
10609 (gdb_fnprint): Revert.
10610 (gdb_display_match_list_1): Likewise.
10611 * cli/cli-style.c (completion_prefix_style)
10612 (completion_difference_style, completion_suffix_style): Remove.
10613 (_initialize_cli_style): Revert.
10614 * cli/cli-style.h (completion_prefix_style)
10615 (completion_difference_style, completion_suffix_style): Don't
10618 2020-05-24 Pedro Alves <palves@redhat.com>
10620 * symtab.c (completion_list_add_name): Return boolean indication
10621 of whether the symbol matched.
10622 (completion_list_add_symbol): Don't try to remove C++ aliases if
10623 the symbol didn't match in the first place.
10624 * symtab.h (completion_list_add_name): Return bool.
10626 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10628 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10631 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10635 2020-05-23 Tom Tromey <tom@tromey.com>
10637 * NEWS: Add entry for completion styling.
10638 * completer.c (_rl_completion_prefix_display_length): Move
10639 declaration earlier.
10640 (gdb_fnprint): Use completion_style.
10641 (gdb_display_match_list_1): Likewise.
10642 * cli/cli-style.c (completion_prefix_style)
10643 (completion_difference_style, completion_suffix_style): New
10645 (_initialize_cli_style): Register new globals.
10646 * cli/cli-style.h (completion_prefix_style)
10647 (completion_difference_style, completion_suffix_style): Declare.
10649 2020-05-23 Pedro Alves <palves@redhat.com>
10651 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10652 (parse_escape): Use ISDIGIT instead of isdigit.
10653 (puts_debug): Use gdb_isprint instead of isprint.
10654 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10655 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10656 ISSPACE instead of isspace.
10657 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10658 instead of isspace.
10659 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10660 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10661 instead of isxdigit and ISDIGIT instead of isdigit.
10663 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10665 * gdbtypes.h (struct type) <field>: New method.
10666 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10669 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10671 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10672 (TYPE_FIELDS): Use type::fields. Change all call sites that
10673 modify the propery to use type::set_fields instead.
10675 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10677 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10678 type::num_fields instead.
10680 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10682 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10684 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10685 that modify the number of fields to use type::set_num_fields
10688 2020-05-22 Tom Tromey <tromey@adacore.com>
10690 * compile/compile-object-load.h (munmap_list_free): Don't
10693 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10695 * annotate.c (annotate_source_line): Update return type, add call
10696 to update current symtab and line.
10697 * annotate.h (annotate_source_line): Update return type, and
10698 extend header comment.
10699 * source.c (info_line_command): Check annotation_level before
10700 calling annotate_source_line.
10701 * stack.c (print_frame_info): If calling annotate_source_line
10702 returns true, then don't print any other source line information.
10704 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10706 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10708 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10710 * coffread.c (patch_type): Remove NULL check before xfree.
10711 * corefile.c (set_gnutarget): Likewise.
10712 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10713 * exec.c (build_section_table): Likewise.
10714 * remote.c (remote_target::pass_signals): Likewise.
10715 * utils.c (n_spaces): Likewise.
10716 * cli/cli-script.c (document_command): Likewise.
10717 * i386-windows-tdep.c (core_process_module_section): Likewise.
10718 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10720 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10722 * symfile.c (reread_symbols): Clear objfile's section_offsets
10723 vector and section indices, re-compute them by calling
10726 2020-05-20 Tom Tromey <tromey@adacore.com>
10728 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10729 (desc_one_bound, desc_index_type): Compute field name.
10731 2020-05-20 Tom de Vries <tdevries@suse.de>
10734 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10736 2020-05-20 Alan Modra <amodra@gmail.com>
10739 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10741 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10742 passed to bfd_set_filename.
10743 * symfile-mem.c (add_vsyscall_page): Likewise for string
10744 passed to symbol_file_add_from_memory.
10745 (symbol_file_add_from_memory): Make name param a const char* and
10748 2020-05-20 Alan Modra <amodra@gmail.com>
10750 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10751 rather than accessing bfd->filename directly.
10752 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10753 and use bfd_section_name.
10754 * dwarf2/frame.c (decode_frame_entry): Likewise.
10755 * exec.c (exec_set_section_address): Likewise.
10756 * solib-aix.c (solib_aix_bfd_open): Likewise.
10757 * stap-probe.c (get_stap_base_address): Likewise.
10758 * symfile.c (reread_symbols): Likewise.
10760 2020-05-19 Tom Tromey <tromey@adacore.com>
10762 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10764 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10766 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10768 2020-05-19 Pedro Alves <palves@redhat.com>
10770 * NEWS (set exec-file-mismatch): Adjust entry.
10771 * exec.c: Include "build-id.h".
10772 (validate_exec_file): Try to match build IDs instead of filenames.
10773 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10774 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10775 and pass down 'warn_if_slow'.
10776 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10777 gdb_bfd_open_closure to pass it down.
10778 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10780 2020-05-19 Pedro Alves <palves@redhat.com>
10782 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10783 * target.c (target_fileio_open_1): Rename to target_fileio_open
10784 and make extern. Use bool.
10785 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10786 (target_fileio_read_alloc_1): Adjust.
10787 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10788 (target_fileio_open_warn_if_slow): Delete declaration.
10790 2020-05-19 Pedro Alves <palves@redhat.com>
10792 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10793 Adjust all callers.
10795 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10797 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10798 whether disp is negative.
10800 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10802 * symfile.h (struct symfile_segment_data)
10803 <~symfile_segment_data>: Remove.
10804 <segment_info>: Change to std::vector.
10805 * symfile.c (default_symfile_segments): Update.
10806 * elfread.c (elf_symfile_segments): Update.
10808 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10810 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10812 <segment_bases, segment_sizes>: Remove.
10813 * symfile.c (default_symfile_segments): Update.
10814 * elfread.c (elf_symfile_segments): Update.
10815 * remote.c (remote_target::get_offsets): Update.
10816 * solib-target.c (solib_target_relocate_section_addresses):
10819 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10821 * symfile.h (struct symfile_segment_data): Initialize fields.
10822 <~symfile_segment_data>: Add.
10823 (symfile_segment_data_up): New.
10824 (struct sym_fns) <sym_segments>: Return a
10825 symfile_segment_data_up.
10826 (default_symfile_segments): Return a symfile_segment_data_up.
10827 (free_symfile_segment_data): Remove.
10828 (get_symfile_segment_data): Return a symfile_segment_data_up.
10829 * symfile.c (default_symfile_segments): Likewise.
10830 (get_symfile_segment_data): Likewise.
10831 (free_symfile_segment_data): Remove.
10832 (symfile_find_segment_sections): Update.
10833 * elfread.c (elf_symfile_segments): Return a
10834 symfile_segment_data_up.
10835 * remote.c (remote_target::get_offsets): Update.
10836 * solib-target.c (solib_target_relocate_section_addresses):
10838 * symfile-debug.c (debug_sym_segments): Return a
10839 symfile_segment_data_up.
10841 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10844 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10845 Hardcode register numbers.
10848 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10849 procfs_find_LDT_entry): Remove.
10850 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10851 procfs_find_LDT_entry): Remove.
10852 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10855 2020-05-17 Pedro Alves <palves@redhat.com>
10856 Andrew Burgess <andrew.burgess@embecosm.com>
10857 Keno Fischer <keno@juliacomputing.com>
10860 * breakpoint.c (build_target_condition_list): Update comments.
10861 (build_target_command_list): Update comments and skip matching
10863 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10864 a separate function. Simplify "set breakpoint auto-hw off"
10866 (insert_breakpoints): Update comment.
10867 (tracepoint_locations_match): New parameter. For breakpoints,
10868 compare location types too, if the caller wants to.
10869 (handle_automatic_hardware_breakpoints): New functions.
10870 (bp_location_is_less_than): Also sort by location type and
10871 hardware breakpoint length.
10872 (update_global_location_list): Handle "set breakpoint auto-hw on"
10874 (update_breakpoint_locations): Ask breakpoint_locations_match to
10875 ignore location types.
10877 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10879 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10880 type::name instead.
10882 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10884 * gdbtypes.h (struct type) <name, set_name>: New methods.
10885 (TYPE_CODE): Use type::name. Change all call sites used to set
10886 the name to use type::set_name instead.
10888 2020-05-16 Tom Tromey <tom@tromey.com>
10890 * top.c (quit_force): Update.
10891 * infrun.c (handle_no_resumed): Update.
10892 * top.h (all_uis): New function.
10895 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10897 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10899 2020-05-16 Pedro Alves <palves@redhat.com>
10902 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10904 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10906 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10908 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10909 (sparc64_adi_info): Likewise.
10911 2020-05-15 Tom Tromey <tom@tromey.com>
10913 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10915 (lookup_objfile_from_block): Remove.
10916 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10917 (lookup_global_symbol): Use block_objfile.
10918 * symtab.h (lookup_objfile_from_block): Don't declare.
10919 * printcmd.c (clear_dangling_display_expressions): Use
10921 * parse.c (operator_check_standard): Use block_objfile.
10923 2020-05-15 Tom Tromey <tom@tromey.com>
10925 * language.c (language_alloc_type_symbol): Set
10927 * symtab.c (initialize_objfile_symbol): Remove.
10928 (allocate_symbol): Remove.
10929 (allocate_template_symbol): Remove.
10930 * dwarf2/read.c (fixup_go_packaging): Use "new".
10931 (new_symbol): Use "new".
10932 (read_variable): Don't call initialize_objfile_symbol. Use
10934 (read_func_scope): Use "new".
10935 * xcoffread.c (process_xcoff_symbol): Don't call
10936 initialize_objfile_symbol.
10937 (SYMBOL_DUP): Remove.
10938 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10940 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10941 (allocate_template_symbol): Don't declare.
10942 (struct symbol): Add copy constructor. Change defaults.
10943 * jit.c (finalize_symtab): Use "new".
10944 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10946 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10947 (common_block_end): Use "new".
10948 * mdebugread.c (parse_symbol): Use "new".
10949 (new_symbol): Likewise.
10951 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10953 * NEWS: Mention changes to help and apropos.
10955 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10957 * command.h (enum command_class): Improve comments, document
10958 that class_alias is for user-defined aliases, give the class
10959 name for each class, remove unused class_xdb.
10960 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10961 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10962 by a precise class.
10963 * infcmd.c (_initialize_infcmd): Likewise.
10964 * reverse.c (_initialize_reverse): Likewise.
10965 * stack.c (_initialize_stack): Likewise.
10966 * symfile.c (_initialize_symfile): Likewise.
10967 * tracepoint.c (_initialize_tracepoint): Likewise.
10969 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10971 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10972 when their aliased command is traversed.
10973 (help_cmd): Add fput_command_names_styled call to
10974 output command name and aliases when command has an alias.
10976 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10978 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10979 * cli/cli-decode.c (help_cmd_list): Declare as static,
10980 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10981 a command together with the command.
10982 (fput_command_name_styled, fput_command_names_styled): New functions.
10983 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10984 fput_command_name_styled.
10985 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10986 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10988 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10990 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10991 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10992 * command.h (cmd_show_list): Likewise.
10993 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10994 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10996 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10998 * unittests/command-def-selftests.c (traverse_command_structure):
10999 Verify all commands of a list have the same prefix command and
11000 that only the top cmdlist commands have a null prefix.
11002 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11004 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
11005 as prefix, not one of its aliases.
11006 (set_cmd_prefix): Remove.
11007 (do_add_cmd): Centralize the setting of the prefix of a command, when
11008 command is defined after its full chain of prefix commands.
11009 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
11010 (add_setshow_cmd_full): Likewise.
11011 (update_prefix_field_of_prefixed_commands): New function.
11012 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
11013 update_prefix_field_of_prefixed_commands.
11014 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
11015 addresses of remote_set_cmdlist and remote_show_cmdlist given
11016 as argument, not the address of an argument.
11017 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
11018 * gdb/remote.c (_initialize_remote): Likewise.
11020 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11022 * cli/cli-cmds.c (alias_command): Check for an existing alias
11023 using lookup_cmd_composition, as valid_command_p is too strict
11024 and forbids aliases that are the prefix of an existing alias
11026 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
11027 command is properly recognised as a valid command.
11029 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11031 * unittests/help-doc-selftests.c: Rename to
11032 unittests/command-def-selftests.c
11033 * unittests/command-def-selftests.c (help_doc_tests): Update some
11035 (command_structure_tests, traverse_command_structure): New namespace
11037 (command_structure_invariants_tests): New function.
11038 (_initialize_command_def_selftests) Renamed from
11039 _initialize_help_doc_selftests, register command_structure_invariants
11042 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11044 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
11045 an alias of 'show'.
11047 2020-05-15 Joel Brobecker <brobecker@adacore.com>
11049 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
11050 ada_is_fixed_point_type. Update all callers.
11051 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
11053 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
11054 Update all callers.
11055 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
11056 print_fixed_point_type. Update all callers.
11057 * ada-valprint.c (ada_value_print_num): Replace call to
11058 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
11060 2020-05-14 Kevin Buettner <kevinb@redhat.com>
11062 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
11064 (cpu_supports_bts): Add CV_AMD case.
11066 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
11067 Simon Marchi <simon.marchi@efficios.com>
11069 * infrun.c (stop_all_threads): Collect multiple wait events at
11072 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11074 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11075 type::code instead.
11077 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11079 * gdbtypes.h (struct type) <code, set_code>: New methods.
11080 (TYPE_CODE): Use type::code. Change all call sites used to set
11081 the code to use type::set_code instead.
11083 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11084 Tom de Vries <tdevries@suse.de>
11085 Pedro Alves <palves@redhat.com>
11088 * infrun.c (stop_all_threads): Do NOT ignore
11089 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11090 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11092 (handle_no_resumed): Remove code handling a live inferior with no
11094 * remote.c (has_single_non_exited_thread): New.
11095 (remote_target::update_thread_list): Do not delete a thread if is
11096 the last thread of the process.
11097 * thread.c (thread_select): Call delete_exited_threads instead of
11100 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11102 * infrun.c (stop_all_threads): Enable/disable thread events of all
11103 targets. Move a debug message denoting the end of the function
11104 into the SCOPED_EXIT block.
11106 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11108 * process-stratum-target.h: Include <set>.
11109 (all_non_exited_process_targets, switch_to_target_no_thread): New
11110 function declarations.
11111 * process-stratum-target.c (all_non_exited_process_targets)
11112 (switch_to_target_no_thread): New function implementations.
11114 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11116 * infrun.c (handle_inferior_event): Extract out a piece of code
11118 (mark_non_executing_threads): ...this new function.
11120 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11122 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11125 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11127 * regcache.c (regcache_read_pc_protected): New function
11128 implementation that returns 0 if the PC cannot read via
11129 'regcache_read_pc'.
11130 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11131 instead of 'regcache_read_pc'.
11132 (keep_going_pass_signal): Ditto.
11134 2020-05-13 Tom Tromey <tromey@adacore.com>
11136 * ada-lang.c (align_value): Remove.
11137 (ada_template_to_fixed_record_type_1): Use align_up.
11139 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11141 * async-event.c: Update the copyright year.
11142 * async-event.h: Update the copyright year.
11144 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
11146 * objfiles.h (is_addr_in_objfile,
11147 shared_objfile_contains_address_p): Return bool.
11148 * objfile.c (is_addr_in_objfile,
11149 shared_objfile_contains_address_p): Return bool.
11151 2020-05-11 Tom Tromey <tromey@adacore.com>
11153 * cli/cli-cmds.c (info_command): Restore.
11154 (_initialize_cli_cmds): Use add_prefix_command for "info".
11155 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11157 2020-05-11 Tom Tromey <tromey@adacore.com>
11159 * ada-lang.c (ada_value_primitive_field): Now public.
11160 * ada-lang.h (ada_value_primitive_field): Declare.
11161 * ada-valprint.c (print_field_values): Use
11162 ada_value_primitive_field for wrapper fields.
11164 2020-05-11 Tom de Vries <tdevries@suse.de>
11166 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11169 2020-05-11 Tom de Vries <tdevries@suse.de>
11172 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11173 with length 0, if not gdb-produced.
11174 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11176 2020-05-09 Tom de Vries <tdevries@suse.de>
11179 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11182 2020-05-09 Tom Tromey <tom@tromey.com>
11184 * top.c (server_command): Now bool.
11185 * top.h (server_command): Now bool.
11187 2020-05-08 Tom Tromey <tromey@adacore.com>
11189 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11190 already being processed.
11192 2020-05-08 Tom Tromey <tom@tromey.com>
11194 * printcmd.c (struct display) <next>: Remove.
11195 <display>: New constructor.
11196 <exp_string>: Now a std::string.
11197 <enabled_p>: Now a bool.
11198 (display_number): Move definition earlier.
11199 (displays): Rename from display_chain. Now a std::vector.
11200 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11201 (display_command): Update.
11202 (do_one_display, disable_display)
11203 (enable_disable_display_command, do_enable_disable_display):
11205 (free_display): Remove.
11206 (clear_displays): Rewrite.
11207 (delete_display): Update.
11208 (map_display_numbers): Use function_view. Remove "data"
11210 (do_delete_display): Remove.
11211 (undisplay_command): Update.
11212 (do_one_display, do_displays, disable_display)
11213 (info_display_command): Update.
11214 (do_enable_disable_display): Remove.
11215 (enable_disable_display_command)
11216 (clear_dangling_display_expressions): Update.
11218 2020-05-08 Tom Tromey <tom@tromey.com>
11220 * symtab.c (set_symbol_cache_size)
11221 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11222 (maintenance_print_symbol_cache_statistics): Update.
11223 * symmisc.c (print_symbol_bcache_statistics)
11224 (print_objfile_statistics, maintenance_print_objfiles)
11225 (maintenance_info_symtabs, maintenance_check_symtabs)
11226 (maintenance_expand_symtabs, maintenance_info_line_tables):
11228 * symfile-debug.c (set_debug_symfile): Update.
11229 * source.c (forget_cached_source_info): Update.
11230 * python/python.c (gdbpy_progspaces): Update.
11231 * psymtab.c (maintenance_info_psymtabs): Update.
11232 * probe.c (parse_probes): Update.
11233 * linespec.c (iterate_over_all_matching_symtabs)
11234 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11235 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11236 * exec.c (exec_target::close): Update.
11237 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11238 * breakpoint.c (print_one_breakpoint_location)
11239 (create_longjmp_master_breakpoint)
11240 (create_std_terminate_master_breakpoint): Update.
11241 * progspace.c (program_spaces): Now a std::vector.
11242 (maybe_new_address_space): Update.
11243 (add_program_space): Remove.
11244 (program_space::program_space): Update.
11245 (remove_program_space): Update.
11246 (number_of_program_spaces): Remove.
11247 (print_program_space, update_address_spaces): Update.
11248 * progspace.h (program_spaces): Change type.
11249 (ALL_PSPACES): Remove.
11250 (number_of_program_spaces): Don't declare.
11251 (struct program_space) <next>: Remove.
11253 2020-05-08 Tom Tromey <tom@tromey.com>
11255 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11256 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11257 (enable_break): Update.
11258 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11259 (frv_fdpic_find_canonical_descriptor): Update.
11260 (frv_fetch_objfile_link_map): Update.
11261 * progspace.c (program_space::free_all_objfiles): Update.
11262 (program_space::solibs): New method.
11263 * progspace.h (struct program_space) <solibs>: New method.
11264 * solist.h (master_so_list): Don't declare.
11265 (ALL_SO_LIBS): Remove.
11266 * solib.h (so_list_head): Remove.
11267 (update_solib_list): Update comment.
11268 * solib.c (master_so_list): Remove.
11269 (solib_used, update_solib_list, solib_add)
11270 (info_sharedlibrary_command, clear_solib)
11271 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11273 2020-05-08 Tom Tromey <tom@tromey.com>
11275 * extension.c (extension_languages): Now a std::array.
11276 (ALL_EXTENSION_LANGUAGES): Remove.
11277 (get_ext_lang_defn, get_ext_lang_of_file)
11278 (eval_ext_lang_from_control_command): Update.
11279 (finish_ext_lang_initialization)
11280 (auto_load_ext_lang_scripts_for_objfile)
11281 (ext_lang_type_printers::ext_lang_type_printers)
11282 (apply_ext_lang_type_printers)
11283 (ext_lang_type_printers::~ext_lang_type_printers)
11284 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11285 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11286 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11287 (get_matching_xmethod_workers, ext_lang_colorize)
11288 (ext_lang_before_prompt): Update.
11289 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11291 2020-05-08 Tom Tromey <tom@tromey.com>
11293 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11295 <swap_string, m_string>: Remove.
11296 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11298 * stabsread.c (define_symbol, read_type): Update.
11299 * linespec.c (find_linespec_symbols): Update.
11300 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11301 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11302 * dbxread.c (read_dbx_symtab): Update.
11303 * cp-support.h (cp_canonicalize_string_full)
11304 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11305 Return unique_xmalloc_ptr.
11306 * cp-support.c (inspect_type): Update.
11307 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11308 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11310 * c-typeprint.c (print_name_maybe_canonical): Update.
11311 * break-catch-throw.c (check_status_exception_catchpoint):
11314 2020-05-08 Tom de Vries <tdevries@suse.de>
11316 * infrun.c (follow_fork): Copy current_line and current_symtab to
11319 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11321 * async-event.c (struct async_signal_handler, struct
11322 async_event_handler): Reformat, remove typedef.
11324 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11326 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11327 access thistype->main_type->dyn_prop_list directly.
11329 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11331 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11332 (remove_dyn_prop): Remove. Update all users to use
11333 type::remove_dyn_prop.
11334 * gdbtypes.c (remove_dyn_prop): Rename to...
11335 (type::remove_dyn_prop): ... this.
11337 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11339 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11340 (add_dyn_prop): Remove. Update all users to use
11341 type::add_dyn_prop.
11342 * gdbtypes.c (add_dyn_prop): Rename to...
11343 (type::add_dyn_prop): ... this.
11345 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11347 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11348 (get_dyn_prop): Remove. Update all users to use
11350 * gdbtypes.c (get_dyn_prop): Rename to...
11351 (type::dyn_prop): ... this.
11353 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11355 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11357 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11359 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11360 instruction, skip it if it's there.
11362 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11364 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11366 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11368 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11369 * gdbtypes.c (recursive_dump_type): Remove use of
11372 2020-05-03 Tom Tromey <tom@tromey.com>
11374 * breakpoint.c (catch_command, tcatch_command): Remove.
11375 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11376 add_show_prefix_cmd.
11377 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11378 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11380 (add_internal_problem_command): Use add_basic_prefix_cmd,
11381 add_show_prefix_cmd.
11382 * mips-tdep.c (set_mipsfpu_command): Remove.
11383 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11384 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11385 (_initialize_index_cache): Use add_basic_prefix_cmd.
11386 * memattr.c (dummy_cmd): Remove.
11387 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11388 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11389 (_initialize_tui_win): Use add_basic_prefix_cmd,
11390 add_show_prefix_cmd.
11391 * cli/cli-logging.c (set_logging_command): Remove.
11392 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11393 add_show_prefix_cmd.
11394 (show_logging_command): Remove.
11395 * target.c (target_command): Remove.
11396 (add_target): Use add_basic_prefix_cmd.
11398 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11400 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11402 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11404 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11407 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11409 * nbsd-nat.c (nbsd_enable_proc_events)
11410 (nbsd_nat_target::post_startup_inferior): Add.
11411 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11412 (nbsd_nat_target::update_thread_list): Rewrite.
11413 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11414 "PTRACE_LWP_CREATE".
11415 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11417 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11419 * stack.c (_initialize_stack): Remove duplicated creation
11420 of "frame" command and "f" alias.
11422 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11425 * gdbtypes.c (check_typedef): Calculate size of array of
11428 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11431 * i386-tdep.c (i386_push_dummy_call): Call
11432 i386_thiscall_push_dummy_call.
11433 (i386_thiscall_push_dummy_call): New function.
11434 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11435 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11436 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11438 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11440 * gdbarch.sh (do_read): Add shellcheck disable directive for
11443 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11445 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11446 "referenced but not assigned" warning.
11448 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11450 * gdbarch.sh: Remove code that sets fallbackdefault.
11452 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11454 * gdbarch.sh: Use shell operators && and || instead of
11457 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11459 * gdbarch.sh: Use $(...) instead of `...`.
11461 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11463 * gdbarch.sh: Use double quotes around variables.
11465 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11467 * gdbarch.sh: Use %s with printf, instead of variables in the
11470 2020-04-29 Tom Tromey <tromey@adacore.com>
11473 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11475 (read_enumeration_type): Call
11476 update_enumeration_type_from_children later. Update comments.
11477 (process_enumeration_scope): Don't create type fields.
11479 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11481 * nbsd-tdep.c: Include "xml-syscall.h".
11482 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11484 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11486 * nbsd-nat.c: Include "sys/wait.h".
11487 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11488 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11489 (nbsd_nat_target::remove_exec_catchpoint)
11490 (nbsd_nat_target::set_syscall_catchpoint): Add.
11491 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11492 (nbsd_nat_target::insert_exec_catchpoint)
11493 (nbsd_nat_target::remove_exec_catchpoint)
11494 (nbsd_nat_target::set_syscall_catchpoint): Add.
11495 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11496 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11497 `nbsd_get_syscall_number'.
11499 2020-04-29 Tom Tromey <tom@tromey.com>
11501 * stack.c (print_block_frame_labels): Remove.
11503 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11506 * ada-valprint.c (val_print_packed_array_elements): Move array
11507 end bracket to new line.
11508 (ada_val_print_string): Remove extra spaces before first array
11510 * c-valprint.c (c_value_print_array): Likewise.
11511 * m2-valprint.c (m2_print_array_contents): Likewise.
11512 (m2_value_print_inner): Likewise.
11513 * p-valprint.c (pascal_value_print_inner): Likewise.
11514 * valprint.c (generic_val_print_array): Likewise.
11515 (value_print_array_elements): Move first array element and array
11516 end bracket to new line.
11518 2020-04-29 Tom de Vries <tdevries@suse.de>
11521 * linespec.c (find_method): Fix ix calculation.
11523 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11525 * syscalls/update-netbsd.sh: New file.
11526 * syscalls/netbsd.xml: Regenerate.
11527 * data-directory/Makefile.in: Register `netbsd.xml' in
11530 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11532 * syscalls/update-freebsd.sh: Add double quotes.
11534 2020-04-28 Tom Tromey <tom@tromey.com>
11537 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11538 (cmdpy_init): Allow class_tui.
11540 2020-04-28 Mark Williams <mark@myosotissp.com>
11543 * dwarf2read.c: Add missing assingments to list_in_scope when
11544 start_symtab was already called.
11546 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11549 * dwarf2/read.c (offset_map_type): Use
11550 gdb:hash_enum<sect_offset> as hash function.
11552 2020-04-28 Tom de Vries <tdevries@suse.de>
11554 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11555 with DW_AT_signature.
11557 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11559 * configure.ac: Remove check for fs_base/gs_base in
11561 * configure: Re-generate.
11562 * config.in: Re-generate.
11563 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11564 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11565 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11567 2020-04-27 Luis Machado <luis.machado@linaro.org>
11569 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11570 problematic inline frame unwinding situation.
11571 * frame.c (frame_id_computed_p): New function.
11572 * frame.h (frame_id_computed_p): New prototype.
11574 2020-04-26 Tom Tromey <tom@tromey.com>
11576 * command.h (enum command_class) <class_pseudo>: Remove.
11578 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11580 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11583 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11585 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11586 `PT_GET_PROCESS_STATE' block.
11588 2020-04-24 Tom Tromey <tom@tromey.com>
11590 * symtab.h (symbol_get_demangled_name): Don't declare.
11591 * symtab.c (symbol_get_demangled_name): Remove.
11592 (general_symbol_info::natural_name)
11593 (general_symbol_info::demangled_name): Update.
11595 2020-04-24 Tom Tromey <tom@tromey.com>
11598 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11600 2020-04-24 Tom Tromey <tom@tromey.com>
11603 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11605 (new_symbol): Likewise.
11606 * compile/compile-object-load.c (get_out_value_type): Use
11607 symbol_matches_search_name.
11609 2020-04-24 Tom Tromey <tom@tromey.com>
11611 * dwarf2/read.c (add_partial_symbol): Do not call
11612 compute_and_set_names.
11614 2020-04-24 Tom Tromey <tom@tromey.com>
11616 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11619 2020-04-24 Tom Tromey <tom@tromey.com>
11621 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11622 (add_psymbol_to_list): New overload. Make old overload call new
11624 * psympriv.h (add_psymbol_to_list): New overload.
11626 2020-04-24 Tom Tromey <tom@tromey.com>
11628 * dwarf2/read.c (partial_die_info::read) <case
11629 DW_AT_linkage_name>: Use value_as_string.
11630 (dwarf2_string_attr): Use value_as_string.
11631 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11633 * dwarf2/attribute.c (attribute::value_as_string): New method.
11635 2020-04-24 Tom Tromey <tom@tromey.com>
11637 * symtab.c (general_symbol_info::natural_name)
11638 (general_symbol_info::demangled_name): Check for language_rust.
11640 2020-04-24 Tom Tromey <tom@tromey.com>
11642 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11643 (dwarf2_physname): ... from here.
11644 (partial_die_info::read): Add Rust "{" hack.
11646 2020-04-24 Tom Tromey <tom@tromey.com>
11648 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11650 (symbol_set_demangled_name): Don't declare.
11651 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11652 symbol_set_demangled_name.
11653 (general_symbol_info::set_language)
11654 (general_symbol_info::compute_and_set_names): Update.
11655 * minsyms.c (minimal_symbol_reader::install): Update.
11656 * dwarf2/read.c (new_symbol): Update.
11658 2020-04-24 Tom Tromey <tromey@adacore.com>
11661 * python/py-type.c (convert_field): Handle
11662 FIELD_LOC_KIND_DWARF_BLOCK.
11663 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11664 (typy_get_dynamic): Nw function.
11665 (type_object_getset): Add "dynamic".
11668 2020-04-24 Tom Tromey <tromey@adacore.com>
11670 * ada-typeprint.c (print_choices, print_variant_part)
11671 (print_record_field_types_dynamic): New functions.
11672 (print_record_field_types): Use print_record_field_types_dynamic.
11674 2020-04-24 Tom Tromey <tromey@adacore.com>
11676 * dwarf2/read.c (handle_data_member_location): New overload.
11677 (dwarf2_add_field): Use it.
11678 (decode_locdesc): Add "computed" parameter. Update comment.
11679 * gdbtypes.c (is_dynamic_type_internal): Also look for
11680 FIELD_LOC_KIND_DWARF_BLOCK.
11681 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11682 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11683 virtual base classes.
11684 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11685 FIELD_LOC_KIND_DWARF_BLOCK.
11687 2020-04-24 Tom Tromey <tromey@adacore.com>
11689 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11690 * gdbtypes.c (is_dynamic_type_internal): Check
11691 TYPE_HAS_DYNAMIC_LENGTH.
11692 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11693 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11695 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11698 2020-04-24 Tom Tromey <tromey@adacore.com>
11700 * dwarf2/read.c (struct variant_field): Rewrite.
11701 (struct variant_part_builder): New.
11702 (struct nextfield): Remove "variant" field. Add "offset".
11703 (struct field_info): Add "current_variant_part" and
11705 (alloc_discriminant_info): Remove.
11706 (alloc_rust_variant): New function.
11707 (quirk_rust_enum): Update.
11708 (dwarf2_add_field): Set "offset" member. Don't handle
11709 DW_TAG_variant_part.
11710 (offset_map_type): New typedef.
11711 (convert_variant_range, create_one_variant)
11712 (create_one_variant_part, create_variant_parts)
11713 (add_variant_property): New functions.
11714 (dwarf2_attach_fields_to_type): Call add_variant_property.
11715 (read_structure_type): Don't handle DW_TAG_variant_part.
11716 (handle_variant_part, handle_variant): New functions.
11717 (handle_struct_member_die): Use them.
11718 (process_structure_scope): Don't handle variant parts.
11719 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11720 (struct discriminant_info): Remove.
11721 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11722 (struct main_type) <flag_discriminated_union>: Remove.
11723 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11724 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11725 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11727 * valops.c (value_union_variant): Remove.
11728 * value.h (value_union_variant): Don't declare.
11730 2020-04-24 Tom Tromey <tromey@adacore.com>
11732 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11733 (ada_value_primitive_packed_val): Update.
11734 * ada-valprint.c (ada_value_print_1): Update.
11735 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11736 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11737 just an address. Use evaluate_for_locexpr_baton.
11738 (dwarf2_evaluate_property): Update.
11739 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11741 * findvar.c (default_read_var_value): Update.
11742 * gdbtypes.c (compute_variant_fields_inner)
11743 (resolve_dynamic_type_internal): Update.
11744 (resolve_dynamic_type): Change type of valaddr parameter.
11745 * gdbtypes.h (resolve_dynamic_type): Update.
11746 * valarith.c (value_subscripted_rvalue): Update.
11747 * value.c (value_from_contents_and_address): Update.
11749 2020-04-24 Tom Tromey <tromey@adacore.com>
11751 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11752 "push_initial_value" parameter.
11753 (dwarf2_evaluate_property): Likewise.
11754 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11756 2020-04-24 Tom Tromey <tromey@adacore.com>
11758 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11759 (variant::matches, compute_variant_fields_recurse)
11760 (compute_variant_fields_inner, compute_variant_fields): New
11762 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11763 Use resolved_type after type is made.
11764 (operator==): Add new cases.
11765 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11766 (struct discriminant_range, struct variant, struct variant_part):
11768 (union dynamic_prop_data) <variant_parts, original_type>: New
11770 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11771 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11773 * value.c (unpack_bits_as_long): Now public.
11774 * value.h (unpack_bits_as_long): Declare.
11776 2020-04-24 Tom Tromey <tromey@adacore.com>
11778 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11779 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11781 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11783 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11785 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11787 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11788 (remove_fork_catchpoint, post_startup_inferior)
11789 (post_attach): Move...
11790 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11791 (remove_fork_catchpoint, post_startup_inferior)
11792 (post_attach): ...here.
11793 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11794 (remove_fork_catchpoint, post_startup_inferior)
11795 (post_attach): Move...
11796 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11797 (remove_fork_catchpoint, post_startup_inferior)
11798 (post_attach): ...here.
11800 2020-04-24 Tom Tromey <tromey@adacore.com>
11802 * nat/windows-nat.h (struct windows_thread_info)
11803 <pc_adjusted>: New member.
11804 * windows-nat.c (windows_fetch_one_register): Check
11806 (windows_nat_target::get_windows_debug_event)
11807 (windows_nat_target::wait): Set pc_adjusted.
11809 2020-04-24 Tom de Vries <tdevries@suse.de>
11811 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11812 Run gdb-add-index inside temp dir.
11814 2020-04-23 Tom Tromey <tromey@adacore.com>
11816 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11819 2020-04-23 Luis Machado <luis.machado@linaro.org>
11821 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11822 get_frame_register instead of gdbarch_unwind_pc.
11824 2020-04-23 Tom de Vries <tdevries@suse.de>
11826 * symtab.c (lookup_global_symbol): Prefer def over decl.
11828 2020-04-23 Tom de Vries <tdevries@suse.de>
11831 * block.c (best_symbol, better_symbol): Promote to external.
11832 * block.h (best_symbol, better_symbol): Declare.
11833 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11836 2020-04-23 Tom Tromey <tromey@adacore.com>
11839 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11840 "const char *", not a "const std::string &".
11841 <name_and_matcher::operator==>: Update.
11842 * unittests/lookup_name_info-selftests.c: Change type of
11845 2020-04-23 Tom Tromey <tom@tromey.com>
11847 * inferior.h (iterate_over_inferiors): Don't declare.
11848 * inferior.c (iterate_over_inferiors): Remove.
11849 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11851 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11852 use iterate_over_inferiors.
11853 (darwin_resume_inferior_it)
11854 (struct resume_inferior_threads_param)
11855 (darwin_resume_inferior_threads_it): Remove.
11856 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11858 2020-04-23 Tom de Vries <tdevries@suse.de>
11860 * blockframe.c (find_pc_partial_function): Use
11861 find_pc_sect_compunit_symtab rather than
11862 objfile->sf->qf->find_pc_sect_compunit_symtab.
11864 2020-04-22 Tom de Vries <tdevries@suse.de>
11867 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11870 2020-04-22 Tom de Vries <tdevries@suse.de>
11873 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11876 2020-04-22 Tom de Vries <tdevries@suse.de>
11879 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11880 CU if already created.
11882 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11884 * infrun.c (displaced_step_fixup): Switch to the event_thread
11885 before calling displaced_step_restore, not after.
11887 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11889 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11890 its inferior is not recorded by us.
11891 (record_btrace_target_open): Replace call to
11892 all_non_exited_threads () with call to current_inferior
11893 ()->non_exited_threads ().
11894 (record_btrace_target::stop_recording): Likewise.
11895 (record_btrace_target::close): Likewise.
11896 (record_btrace_target::wait): Likewise.
11897 (record_btrace_target::record_stop_replaying): Likewise.
11899 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11901 * btrace.c (btrace_enable): Throw an error on double enables and
11902 when enabling recording fails.
11903 (btrace_disable): Throw an error if the thread is not recorded.
11905 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11907 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11908 request if we do not have a thread_info.
11910 2020-04-21 Tom de Vries <tdevries@suse.de>
11914 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11915 exception in get_frame_id.
11917 2020-04-20 Tom Tromey <tromey@adacore.com>
11919 * python/python.c (struct gdbpy_event): Mark move constructor as
11921 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11922 constructor as noexcept.
11923 * completer.h (struct completion_result): Mark move constructor as
11925 * completer.c (completion_result::completion_result): Use
11926 initialization style. Don't call reset_match_list.
11928 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11930 * MAINTAINERS (Write After Approval): Add myself.
11932 2020-04-18 Tom Tromey <tom@tromey.com>
11934 * windows-tdep.c (init_w32_command_list)
11935 (w32_prefix_command_valid): Restore.
11936 (_initialize_windows_tdep): Call init_w32_command_list.
11938 2020-04-18 Tom Tromey <tom@tromey.com>
11940 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11941 * value.c (value_fn_field): Update.
11942 * valops.c (find_function_in_inferior)
11943 (value_allocate_space_in_inferior): Update.
11944 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11946 * tui/tui-source.c (tui_source_window::set_contents): Update.
11947 * symtab.c (lookup_global_or_static_symbol)
11948 (find_function_start_sal_1, skip_prologue_sal)
11949 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11950 * symmisc.c (dump_msymbols, dump_symtab_1)
11951 (maintenance_print_one_line_table): Update.
11952 * symfile.c (init_entry_point_info, section_is_mapped)
11953 (list_overlays_command, simple_read_overlay_table)
11954 (simple_overlay_update_1): Update.
11955 * stap-probe.c (handle_stap_probe): Update.
11956 * stabsread.c (dbx_init_float_type, define_symbol)
11957 (read_one_struct_field, read_enum_type, read_range_type): Update.
11958 * source.c (info_line_command): Update.
11959 * python/python.c (gdbpy_source_objfile_script)
11960 (gdbpy_execute_objfile_script): Update.
11961 * python/py-type.c (save_objfile_types): Update.
11962 * python/py-objfile.c (py_free_objfile): Update.
11963 * python/py-inferior.c (python_new_objfile): Update.
11964 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11965 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11966 (maintenance_check_psymtabs): Update.
11967 * printcmd.c (info_address_command): Update.
11968 * objfiles.h (struct objfile) <arch>: New method, from
11970 (get_objfile_arch): Don't declare.
11971 * objfiles.c (get_objfile_arch): Remove.
11972 (filter_overlapping_sections): Update.
11973 * minsyms.c (msymbol_is_function): Update.
11974 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11975 (output_nondebug_symbol): Update.
11976 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11977 (mdebug_expand_psymtab): Update.
11978 * machoread.c (macho_add_oso_symfile): Update.
11979 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11981 * linux-fork.c (checkpoint_command): Update.
11982 * linespec.c (convert_linespec_to_sals): Update.
11983 * jit.c (finalize_symtab): Update.
11984 * infrun.c (insert_exception_resume_from_probe): Update.
11985 * ia64-tdep.c (ia64_find_unwind_table): Update.
11986 * hppa-tdep.c (internalize_unwinds): Update.
11987 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11989 * gcore.c (call_target_sbrk): Update.
11990 * elfread.c (record_minimal_symbol, elf_symtab_read)
11991 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11992 (elf_gnu_ifunc_resolve_by_got): Update.
11993 * dwarf2/read.c (create_addrmap_from_index)
11994 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11995 (read_debug_names_from_section)
11996 (process_psymtab_comp_unit_reader, add_partial_symbol)
11997 (add_partial_subprogram, process_full_comp_unit)
11998 (read_file_scope, read_func_scope, read_lexical_block_scope)
11999 (read_call_site_scope, dwarf2_ranges_read)
12000 (dwarf2_record_block_ranges, dwarf2_add_field)
12001 (mark_common_block_symbol_computed, read_tag_pointer_type)
12002 (read_tag_string_type, dwarf2_init_float_type)
12003 (dwarf2_init_complex_target_type, read_base_type)
12004 (partial_die_info::read, partial_die_info::read)
12005 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
12006 (dwarf2_fetch_die_loc_sect_off): Update.
12007 * dwarf2/loc.c (dwarf2_find_location_expression)
12008 (class dwarf_evaluate_loc_desc, rw_pieced_value)
12009 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
12010 (dwarf2_loc_desc_get_symbol_read_needs)
12011 (locexpr_describe_location_piece, locexpr_describe_location_1)
12012 (loclist_describe_location): Update.
12013 * dwarf2/index-write.c (write_debug_names): Update.
12014 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
12015 * dtrace-probe.c (dtrace_process_dof): Update.
12016 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
12017 (process_one_symbol): Update.
12018 * ctfread.c (ctf_init_float_type, read_base_type): Update.
12019 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
12020 (coff_read_enum_type): Update.
12021 * cli/cli-cmds.c (edit_command, list_command): Update.
12022 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
12023 * breakpoint.c (create_overlay_event_breakpoint)
12024 (create_longjmp_master_breakpoint)
12025 (create_std_terminate_master_breakpoint)
12026 (create_exception_master_breakpoint, get_sal_arch): Update.
12027 * block.c (block_gdbarch): Update.
12028 * annotate.c (annotate_source_line): Update.
12030 2020-04-17 Tom Tromey <tromey@adacore.com>
12032 * auto-load.c (show_auto_load_cmd): Remove.
12033 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
12034 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
12035 (maintenance_print_arc_command): Remove.
12036 * tui/tui-win.c (tui_command): Remove.
12037 (tui_get_cmd_list): Use add_basic_prefix_cmd.
12038 * tui/tui-layout.c (tui_layout_command): Remove.
12039 (_initialize_tui_layout): Use add_basic_prefix_cmd.
12040 * python/python.c (user_set_python, user_show_python): Remove.
12041 (_initialize_python): Use add_basic_prefix_cmd,
12042 add_show_prefix_cmd.
12043 * guile/guile.c (set_guile_command, show_guile_command): Remove.
12044 (install_gdb_commands): Use add_basic_prefix_cmd,
12045 add_show_prefix_cmd.
12046 (info_guile_command): Remove.
12047 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
12048 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
12049 add_show_prefix_cmd.
12050 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
12051 Remove do_set and do_show parameters.
12052 * cli/cli-style.c (set_style, show_style): Remove.
12053 (_initialize_cli_style): Use add_basic_prefix_cmd,
12054 add_show_prefix_cmd.
12055 (cli_style_option::add_setshow_commands): Remove do_set and
12056 do_show parameters.
12057 (cli_style_option::add_setshow_commands): Use
12058 add_basic_prefix_cmd, add_show_prefix_cmd.
12059 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
12060 (set_style_name): Remove.
12061 * cli/cli-dump.c (dump_command, append_command): Remove.
12062 (srec_dump_command, ihex_dump_command, verilog_dump_command)
12063 (tekhex_dump_command, binary_dump_command)
12064 (binary_append_command): Remove.
12065 (_initialize_cli_dump): Use add_basic_prefix_cmd.
12066 * windows-tdep.c (w32_prefix_command_valid): Remove global.
12067 (init_w32_command_list): Remove; move into ...
12068 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
12069 * valprint.c (set_print, show_print, set_print_raw)
12070 (show_print_raw): Remove.
12071 (_initialize_valprint): Use add_basic_prefix_cmd,
12072 add_show_prefix_cmd.
12073 * typeprint.c (set_print_type, show_print_type): Remove.
12074 (_initialize_typeprint): Use add_basic_prefix_cmd,
12075 add_show_prefix_cmd.
12076 * record.c (set_record_command, show_record_command): Remove.
12077 (_initialize_record): Use add_basic_prefix_cmd,
12078 add_show_prefix_cmd.
12079 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12080 add_show_prefix_cmd.
12081 (info_command, show_command, set_debug, show_debug): Remove.
12082 * top.h (set_history, show_history): Don't declare.
12083 * top.c (set_history, show_history): Remove.
12084 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12085 (unset_tdesc_cmd): Remove.
12086 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12087 add_show_prefix_cmd.
12088 * symtab.c (info_module_command): Remove.
12089 (_initialize_symtab): Use add_basic_prefix_cmd.
12090 * symfile.c (overlay_command): Remove.
12091 (_initialize_symfile): Use add_basic_prefix_cmd.
12092 * sparc64-tdep.c (info_adi_command): Remove.
12093 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12094 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12095 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12096 add_show_prefix_cmd.
12097 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12098 (_initialize_serial): Use add_basic_prefix_cmd,
12099 add_show_prefix_cmd.
12100 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12101 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12102 add_show_prefix_cmd.
12103 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12104 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12105 add_show_prefix_cmd.
12106 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12107 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12108 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12109 add_show_prefix_cmd.
12110 * remote.c (remote_command, set_remote_cmd): Remove.
12111 (_initialize_remote): Use add_basic_prefix_cmd.
12112 * record-full.c (set_record_full_command)
12113 (show_record_full_command): Remove.
12114 (_initialize_record_full): Use add_basic_prefix_cmd,
12115 add_show_prefix_cmd.
12116 * record-btrace.c (cmd_set_record_btrace)
12117 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12118 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12119 (cmd_show_record_btrace_pt): Remove.
12120 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12121 add_show_prefix_cmd.
12122 * ravenscar-thread.c (set_ravenscar_command)
12123 (show_ravenscar_command): Remove.
12124 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12125 add_show_prefix_cmd.
12126 * mips-tdep.c (show_mips_command, set_mips_command)
12127 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12128 add_show_prefix_cmd.
12129 * maint.c (maintenance_command, maintenance_info_command)
12130 (maintenance_check_command, maintenance_print_command)
12131 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12132 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12133 add_show_prefix_cmd.
12134 (show_per_command_cmd): Remove.
12135 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12137 (maintenance_show_test_settings_cmd): Remove.
12138 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12139 add_show_prefix_cmd.
12140 * maint-test-options.c (maintenance_test_options_command):
12142 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12143 * macrocmd.c (macro_command): Remove
12144 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12145 * language.c (set_check, show_check): Remove.
12146 (_initialize_language): Use add_basic_prefix_cmd,
12147 add_show_prefix_cmd.
12148 * infcmd.c (unset_command): Remove.
12149 (_initialize_infcmd): Use add_basic_prefix_cmd.
12150 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12151 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12152 add_show_prefix_cmd.
12153 * go32-nat.c (go32_info_dos_command): Remove.
12154 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12155 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12156 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12157 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12158 (_initialize_frame): Use add_basic_prefix_cmd,
12159 add_show_prefix_cmd.
12160 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12161 (_initialize_dcache): Use add_basic_prefix_cmd,
12162 add_show_prefix_cmd.
12163 * cp-support.c (maint_cplus_command): Remove.
12164 (_initialize_cp_support): Use add_basic_prefix_cmd.
12165 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12166 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12167 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12168 add_basic_prefix_cmd, add_show_prefix_cmd.
12169 * breakpoint.c (save_command): Remove.
12170 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12171 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12172 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12173 add_show_prefix_cmd.
12174 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12175 (set_ada_command, show_ada_command): Remove.
12176 (_initialize_ada_language): Use add_basic_prefix_cmd,
12177 add_show_prefix_cmd.
12178 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12180 2020-04-16 Kamil Rytarowski <n54@gmx.com>
12182 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12183 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12185 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12187 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12190 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12192 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12193 import table is not at beginning of .idata section.
12195 2020-04-16 Pedro Alves <palves@redhat.com>
12197 * inferior.c (delete_inferior): Use delete operator directly
12198 instead of delete_program_space.
12199 * progspace.c (add_program_space): New, factored out from
12200 program_space::program_space.
12201 (remove_program_space): New, factored out from
12202 delete_program_space.
12203 (program_space::program_space): Remove intro comment. Rewrite.
12204 (program_space::~program_space): Remove intro comment. Call
12205 remove_program_space.
12206 (delete_program_space): Delete.
12207 * progspace.h (program_space::program_space): Make explicit. Move
12208 intro comment here, adjusted.
12209 (program_space::~program_space): Move intro comment here,
12211 (delete_program_space): Remove.
12213 2020-04-16 Tom Tromey <tromey@adacore.com>
12215 * windows-nat.c (windows_nat::handle_access_violation): New
12217 * nat/windows-nat.h (handle_access_violation): Declare.
12218 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12219 windows-nat.c. Call handle_access_violation.
12221 2020-04-16 Tom de Vries <tdevries@suse.de>
12224 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12225 CUs without psymtab.
12227 2020-04-16 Kevin Buettner <kevinb@redhat.com>
12229 * python/python.c (do_start_initialization): Don't call
12230 PyEval_InitThreads for Python 3.9 and beyond.
12232 2020-04-15 Kamil Rytarowski <n54@gmx.com>
12234 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12236 (obsd_nat_target::wait): Likewise.
12238 2020-04-15 Tom Tromey <tromey@adacore.com>
12240 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12241 (DEBUG_EXCEPT): Use debug_printf.
12243 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12245 * completer.c (class completion_tracker::completion_hash_entry)
12246 <hash_name>: New member function.
12247 (completion_tracker::discard_completions): New callback to hash a
12248 completion_hash_entry, pass this to htab_create_alloc.
12250 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12252 * windows-nat.c (windows_make_so): Warn rather than stopping with
12253 an error if realpath() fails.
12255 2020-04-14 Kamil Rytarowski <n54@gmx.com>
12257 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12258 (nbsd_nat_target::info_proc): Add do_status.
12260 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12261 Tom de Vries <tdevries@suse.de>
12264 * psympriv.h (struct partial_symtab::read_symtab)
12265 (struct partial_symtab::expand_psymtab)
12266 (struct partial_symtab::read_dependencies): Update comments.
12267 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12268 read_symtab for includer.
12269 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12270 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12271 (struct dwarf2_include_psymtab::m_readin): Remove.
12272 (struct dwarf2_include_psymtab::includer): New member function.
12273 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12275 2020-04-14 Tom de Vries <tdevries@suse.de>
12278 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12279 with NULL symbol_matcher and lookup_name.
12280 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12282 * dwarf2/read.c (dw2_expand_symtabs_matching)
12283 (dw2_debug_names_expand_symtabs_matching): Same.
12284 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12285 Make lookup_name a pointer. Update comment.
12286 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12287 lookup_name being a pointer.
12288 * symfile.c (expand_symtabs_matching): Same.
12289 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12290 * linespec.c (iterate_over_all_matching_symtabs): Same.
12292 2020-04-13 Tom Tromey <tom@tromey.com>
12294 * run-on-main-thread.c: Update include.
12295 * unittests/main-thread-selftests.c: Update include.
12296 * tui/tui-win.c: Update include.
12297 * tui/tui-io.c: Update include.
12298 * tui/tui-interp.c: Update include.
12299 * tui/tui-hooks.c: Update include.
12300 * top.h: Update include.
12301 * top.c: Update include.
12302 * ser-base.c: Update include.
12303 * remote.c: Update include.
12304 * remote-notif.c: Update include.
12305 * remote-fileio.c: Update include.
12306 * record-full.c: Update include.
12307 * record-btrace.c: Update include.
12308 * python/python.c: Update include.
12309 * posix-hdep.c: Update include.
12310 * mingw-hdep.c: Update include.
12311 * mi/mi-main.c: Update include.
12312 * mi/mi-interp.c: Update include.
12313 * main.c: Update include.
12314 * linux-nat.c: Update include.
12315 * interps.c: Update include.
12316 * infrun.c: Update include.
12317 * inf-loop.c: Update include.
12318 * event-top.c: Update include.
12319 * event-loop.c: Move to ../gdbsupport/.
12320 * event-loop.h: Move to ../gdbsupport/.
12321 * async-event.h: Update include.
12322 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12324 2020-04-13 Tom Tromey <tom@tromey.com>
12326 * tui/tui-win.c: Include async-event.h.
12327 * remote.c: Include async-event.h.
12328 * remote-notif.c: Include async-event.h.
12329 * record-full.c: Include async-event.h.
12330 * record-btrace.c: Include async-event.h.
12331 * infrun.c: Include async-event.h.
12332 * event-top.c: Include async-event.h.
12333 * event-loop.h: Move some declarations to async-event.h.
12334 * event-loop.c: Don't include ser-event.h or top.h. Move some
12335 code to async-event.c.
12336 * async-event.h: New file.
12337 * async-event.c: New file.
12338 * Makefile.in (COMMON_SFILES): Add async-event.c.
12339 (HFILES_NO_SRCDIR): Add async-event.h.
12341 2020-04-13 Tom Tromey <tom@tromey.com>
12343 * utils.c (flush_streams): New function.
12344 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12346 2020-04-13 Tom Tromey <tom@tromey.com>
12348 * event-loop.c (handle_file_event): Use warning, not
12351 2020-04-13 Tom Tromey <tom@tromey.com>
12353 * event-loop.c: Include <chrono>.
12355 2020-04-13 Tom Tromey <tom@tromey.com>
12357 * gdb_select.h: Move to ../gdbsupport/.
12358 * event-loop.c: Update include path.
12359 * top.c: Update include path.
12360 * ser-base.c: Update include path.
12361 * ui-file.c: Update include path.
12362 * ser-tcp.c: Update include path.
12363 * guile/scm-ports.c: Update include path.
12364 * posix-hdep.c: Update include path.
12365 * ser-unix.c: Update include path.
12366 * gdb_usleep.c: Update include path.
12367 * mingw-hdep.c: Update include path.
12368 * inflow.c: Update include path.
12369 * infrun.c: Update include path.
12370 * event-top.c: Update include path.
12372 2020-04-13 Tom Tromey <tom@tromey.com>
12374 * configure: Rebuild.
12375 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12377 2020-04-13 Tom Tromey <tom@tromey.com>
12379 * event-loop.h (start_event_loop): Don't declare.
12380 * event-loop.c (start_event_loop): Move...
12381 * main.c (start_event_loop): ...here. Now static.
12383 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12385 * MAINTAINERS: Update my email address.
12387 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12389 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12392 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12394 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12395 (nbsd_nat_target::info_proc): Add do_cmdline.
12397 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12399 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12400 (nbsd_nat_target::info_proc): Add do_cwd.
12402 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12404 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12406 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12408 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12409 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12410 (nbsd_nat_target::info_proc): New functions.
12411 * nbsd-nat.c (kinfo_get_vmmap): New function.
12412 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12413 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12414 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12415 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12417 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12418 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12419 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12420 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12421 (KINFO_VME_FLAG_GROWS_DOWN): New.
12423 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12425 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12428 2020-04-10 Tom Tromey <tromey@adacore.com>
12430 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12432 2020-04-10 Tom Tromey <tromey@adacore.com>
12434 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12435 separate debug files.
12437 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12439 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12441 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12443 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12444 Check for STATUS_WX86_BREAKPOINT.
12445 (windows_nat_target::wait): Same.
12447 2020-04-10 Tom de Vries <tdevries@suse.de>
12450 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12452 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12454 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12455 (Write After Approval): Remove Tom de Vries.
12457 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12460 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12462 * buildsym.c (record_line): Fix undefined behavior and preserve
12465 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12467 * auxv.h (svr4_auxv_parse): New.
12468 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12469 and generic_auxv_parse.
12470 (svr4_auxv_parse): Add.
12471 * obsd-tdep.c: Include "auxv.h".
12472 (obsd_auxv_parse): Remove.
12473 (obsd_init_abi): Remove comment.
12474 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12475 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12476 * nbsd-tdep.c: Include "auxv.h".
12477 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12479 2020-04-08 Tom Tromey <tromey@adacore.com>
12481 * nat/windows-nat.h (last_wait_event): Don't declare.
12482 (wait_for_debug_event): Update comment.
12483 * nat/windows-nat.c (last_wait_event): Now static.
12485 2020-04-08 Tom Tromey <tromey@adacore.com>
12487 * windows-nat.c (wait_for_debug_event): Move to
12489 * nat/windows-nat.h (wait_for_debug_event): Declare.
12490 * nat/windows-nat.c (wait_for_debug_event): Move from
12491 windows-nat.c. No longer static.
12493 2020-04-08 Tom Tromey <tromey@adacore.com>
12495 * windows-nat.c (get_windows_debug_event): Use
12496 fetch_pending_stop.
12497 * nat/windows-nat.h (fetch_pending_stop): Declare.
12498 * nat/windows-nat.c (fetch_pending_stop): New function.
12500 2020-04-08 Tom Tromey <tromey@adacore.com>
12502 * windows-nat.c (windows_continue): Use matching_pending_stop and
12503 continue_last_debug_event.
12504 * nat/windows-nat.h (matching_pending_stop)
12505 (continue_last_debug_event): Declare.
12506 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12507 (matching_pending_stop, continue_last_debug_event): New
12510 2020-04-08 Tom Tromey <tromey@adacore.com>
12512 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12513 (handle_exception_result): Move to nat/windows-nat.h.
12514 (DEBUG_EXCEPTION_SIMPLE): Remove.
12515 (windows_nat::handle_ms_vc_exception): New function.
12516 (handle_exception): Move to nat/windows-nat.c.
12517 (get_windows_debug_event): Update.
12518 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12520 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12521 (handle_exception_result): Move from windows-nat.c.
12522 (handle_exception): Declare.
12523 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12524 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12527 2020-04-08 Tom Tromey <tromey@adacore.com>
12529 * windows-nat.c (exception_count, event_count): Remove.
12530 (handle_exception, get_windows_debug_event)
12531 (do_initial_windows_stuff): Update.
12533 2020-04-08 Tom Tromey <tromey@adacore.com>
12535 * windows-nat.c (windows_nat::handle_load_dll)
12536 (windows_nat::handle_unload_dll): Rename. No longer static.
12537 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12540 2020-04-08 Tom Tromey <tromey@adacore.com>
12542 * complaints.h (stop_whining): Declare at top-level.
12543 (complaint): Don't declare stop_whining.
12545 2020-04-08 Tom Tromey <tromey@adacore.com>
12547 * windows-nat.c (windows_nat::handle_output_debug_string):
12548 Rename. No longer static.
12549 * nat/windows-nat.h (handle_output_debug_string): Declare.
12551 2020-04-08 Tom Tromey <tromey@adacore.com>
12553 * windows-nat.c (current_process_handle, current_process_id)
12554 (main_thread_id, last_sig, current_event, last_wait_event)
12555 (current_windows_thread, desired_stop_thread_id, pending_stops)
12556 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12557 (display_selectors, fake_create_process)
12558 (get_windows_debug_event): Update.
12559 * nat/windows-nat.h (current_process_handle, current_process_id)
12560 (main_thread_id, last_sig, current_event, last_wait_event)
12561 (current_windows_thread, desired_stop_thread_id, pending_stops)
12562 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12563 * nat/windows-nat.c (current_process_handle, current_process_id)
12564 (main_thread_id, last_sig, current_event, last_wait_event)
12565 (current_windows_thread, desired_stop_thread_id, pending_stops)
12566 (siginfo_er): New globals. Move from windows-nat.c.
12568 2020-04-08 Tom Tromey <tromey@adacore.com>
12570 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12571 (handle_load_dll): Update.
12572 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12574 2020-04-08 Tom Tromey <tromey@adacore.com>
12576 * windows-nat.c (enum thread_disposition_type): Move to
12578 (windows_nat::thread_rec): Rename from thread_rec. No longer
12580 (windows_add_thread, windows_nat_target::fetch_registers)
12581 (windows_nat_target::store_registers, handle_exception)
12582 (windows_nat_target::resume, get_windows_debug_event)
12583 (windows_nat_target::get_tib_address)
12584 (windows_nat_target::thread_name)
12585 (windows_nat_target::thread_alive): Update.
12586 * nat/windows-nat.h (enum thread_disposition_type): Move from
12588 (thread_rec): Declare.
12590 2020-04-08 Tom Tromey <tromey@adacore.com>
12592 * windows-nat.c: Add "using namespace".
12593 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12594 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12596 2020-04-08 Tom Tromey <tromey@adacore.com>
12598 * nat/windows-nat.h (struct windows_thread_info): Declare
12600 * nat/windows-nat.c (~windows_thread_info): New.
12602 2020-04-08 Tom Tromey <tromey@adacore.com>
12605 * windows-nat.c (current_event): Update comment.
12606 (last_wait_event, desired_stop_thread_id): New globals.
12607 (struct pending_stop): New.
12608 (pending_stops): New global.
12609 (windows_nat_target) <stopped_by_sw_breakpoint>
12610 <supports_stopped_by_sw_breakpoint>: New methods.
12611 (windows_fetch_one_register): Add assertions. Adjust PC.
12612 (windows_continue): Handle pending stops. Suspend other threads
12613 when stepping. Use last_wait_event
12614 (wait_for_debug_event): New function.
12615 (get_windows_debug_event): Use wait_for_debug_event. Handle
12616 pending stops. Queue spurious stops.
12617 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12618 (windows_nat_target::kill): Use wait_for_debug_event.
12619 * nat/windows-nat.h (struct windows_thread_info)
12620 <stopped_at_software_breakpoint>: New field.
12621 * nat/windows-nat.c (windows_thread_info::resume): Clear
12622 stopped_at_software_breakpoint.
12624 2020-04-08 Tom Tromey <tromey@adacore.com>
12626 * windows-nat.c (enum thread_disposition_type): New.
12627 (thread_rec): Replace "get_context" parameter with "disposition";
12629 (windows_add_thread, windows_nat_target::fetch_registers)
12630 (windows_nat_target::store_registers, handle_exception)
12631 (windows_nat_target::resume, get_windows_debug_event)
12632 (windows_nat_target::get_tib_address)
12633 (windows_nat_target::thread_name)
12634 (windows_nat_target::thread_alive): Update.
12636 2020-04-08 Tom Tromey <tromey@adacore.com>
12638 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12639 (windows_continue): Use windows_continue::resume.
12640 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12641 resume>: Declare new methods.
12642 * nat/windows-nat.c: New file.
12643 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12645 2020-04-08 Tom Tromey <tromey@adacore.com>
12647 * windows-nat.c (windows_add_thread, windows_delete_thread)
12648 (windows_nat_target::fetch_registers)
12649 (windows_nat_target::store_registers, fake_create_process)
12650 (windows_nat_target::resume, windows_nat_target::resume)
12651 (get_windows_debug_event, windows_nat_target::wait)
12652 (windows_nat_target::pid_to_str)
12653 (windows_nat_target::get_tib_address)
12654 (windows_nat_target::get_ada_task_ptid)
12655 (windows_nat_target::thread_name)
12656 (windows_nat_target::thread_alive): Use lwp, not tid.
12658 2020-04-08 Tom Tromey <tromey@adacore.com>
12660 * windows-nat.c (handle_exception)
12661 (windows_nat_target::thread_name): Update.
12662 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12663 <name>: Now unique_xmalloc_ptr.
12665 2020-04-08 Tom Tromey <tromey@adacore.com>
12667 * windows-nat.c (thread_rec)
12668 (windows_nat_target::fetch_registers): Update.
12669 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12671 <debug_registers_changed, reload_context>: Now bool.
12673 2020-04-08 Tom Tromey <tromey@adacore.com>
12675 * windows-nat.c (windows_add_thread): Use new.
12676 (windows_init_thread_list, windows_delete_thread): Use delete.
12677 (get_windows_debug_event): Update.
12678 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12679 destructor, and initializers.
12681 2020-04-08 Tom Tromey <tromey@adacore.com>
12683 * windows-nat.c (struct windows_thread_info): Remove.
12684 * nat/windows-nat.h: New file.
12686 2020-04-08 Tom Tromey <tromey@adacore.com>
12688 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12689 (thread_rec, windows_add_thread, windows_delete_thread)
12690 (windows_continue): Update.
12692 2020-04-08 Tom Tromey <tromey@adacore.com>
12694 * windows-nat.c (struct windows_thread_info): Remove typedef.
12695 (thread_head): Remove.
12696 (thread_list): New global.
12697 (thread_rec, windows_add_thread, windows_init_thread_list)
12698 (windows_delete_thread, windows_continue): Update.
12700 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12702 * windows-tdep.h (windows_init_abi): Add comment.
12703 (cygwin_init_abi): New declaration.
12704 * windows-tdep.c: Split signal enumeration in two, one for
12705 Windows and one for Cygwin.
12706 (windows_gdb_signal_to_target): Only deal with signal of the
12708 (cygwin_gdb_signal_to_target): New function.
12709 (windows_init_abi): Rename to windows_init_abi_common, don't set
12710 gdb_signal_to_target gdbarch method. Add new new function with
12712 (cygwin_init_abi): New function.
12713 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12714 comment. Don't call windows_init_abi.
12715 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12716 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12717 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12718 i386_windows_init_abi_common, don't call windows_init_abi. Add
12719 a new function of this name.
12720 (i386_cygwin_init_abi): New function.
12721 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12724 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12726 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12728 (dwarf2_read_gdb_index): Update.
12730 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12732 * nbsd-tdep.c: Include "objfiles.h".
12733 (nbsd_skip_solib_resolver): New.
12734 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12736 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12738 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12739 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12740 with DW_LLE_base_addressx are being emitted in DWARFv5.
12741 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12742 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12745 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12747 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12748 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12749 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12750 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12751 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12752 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12753 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12756 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12758 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12759 (read_loclist_index): New function definition.
12760 (lookup_loclist_base): New function definition.
12761 (read_loclist_header): New function definition.
12762 (dwarf2_cu): Add loclist_base and loclist_header field.
12763 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12764 (read_full_die_1): Read the value of DW_AT_loclists_base.
12765 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12766 (read_attribute_value): Handle DW_FORM_loclistx.
12767 (skip_one_die): Handle DW_FORM_loclistx.
12768 (loclist_header): New structure declaration.
12769 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12771 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12773 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12774 constructor. Remove `addr` parameter from other constructor and
12775 add `per_cu` parameter.
12776 * dwarf2/read.c (create_partial_symtab): Update.
12778 2020-04-07 Tom de Vries <tdevries@suse.de>
12781 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12782 (partial_die_info::fixup): Inherit has_const_value.
12784 2020-04-07 Tom de Vries <tdevries@suse.de>
12786 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12787 symbols without address.
12789 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12791 * nbsd-nat.h (struct thread_info): Add forward declaration.
12792 (nbsd_nat_target::thread_alive): Add.
12793 (nbsd_nat_target::thread_name): Likewise.
12794 (nbsd_nat_target::update_thread_list): Likewise.
12795 (update_thread_list::post_attach): Likewise.
12796 (post_attach::pid_to_str): Likewise.
12797 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12798 (nbsd_thread_lister): Add.
12799 (nbsd_nat_target::thread_alive): Likewise.
12800 (nbsd_nat_target::thread_name): Likewise.
12801 (nbsd_add_threads): Likewise.
12802 (update_thread_list::post_attach): Likewise.
12803 (nbsd_nat_target::update_thread_list): Likewise.
12804 (post_attach::pid_to_str): Likewise.
12806 2020-04-06 Tom Tromey <tromey@adacore.com>
12808 * ada-valprint.c (print_variant_part): Extract the variant field.
12809 (print_field_values): Use the field as the outer value when
12812 2020-04-06 Tom Tromey <tromey@adacore.com>
12814 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12815 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12816 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12817 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12818 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12820 2020-04-06 Tom Tromey <tromey@adacore.com>
12822 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12825 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12827 * nbsd-tdep.c: Include "gdbarch.h".
12828 Define enum with NetBSD signal numbers.
12829 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12830 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12831 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12832 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12833 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12834 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12835 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12836 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12837 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12838 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12839 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12840 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12842 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12845 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12847 2020-04-03 Tom Tromey <tromey@adacore.com>
12849 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12850 Read constant block.
12852 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12854 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12855 (gdb_bfd_get_full_section_contents): New declaration.
12856 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12857 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12858 gdb_bfd_get_full_section_contents.
12860 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12862 * exec.c (build_section_table): Replace internal_error with
12864 (section_table_xfer_memory_partial): Likewise.
12865 * mdebugread.c (parse_partial_symbols): Likewise.
12866 * psymtab.c (lookup_partial_symbol): Likewise.
12867 * utils.c (wrap_here): Likewise.
12869 2020-04-02 Tom Tromey <tromey@adacore.com>
12871 * f-lang.c (build_fortran_types): Use arch_type to initialize
12872 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12874 2020-04-02 Tom Tromey <tromey@adacore.com>
12876 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12879 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12880 Bernd Edlinger <bernd.edlinger@hotmail.de>
12881 Tom Tromey <tromey@adacore.com>
12883 * buildsym.c (buildsym_compunit::record_line): Remove
12884 deduplication code.
12886 2020-04-02 Tom de Vries <tdevries@suse.de>
12889 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12891 2020-04-02 Tom de Vries <tdevries@suse.de>
12893 * dwarf2/read.c (dwarf2_gdb_index_functions,
12894 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12896 * psymtab.c (psym_lookup_global_symbol_language): New function.
12897 (psym_functions): Init psym_lookup_global_symbol_language with
12898 psym_lookup_global_symbol_language.
12899 * symfile-debug.c (debug_sym_quick_functions): Init
12900 lookup_global_symbol_language with NULL.
12901 * symfile.c (set_initial_language): Remove fixme comment.
12902 * symfile.h (struct quick_symbol_functions): Add
12903 lookup_global_symbol_language.
12904 * symtab.c (find_quick_global_symbol_language): New function.
12905 (find_main_name): Use find_quick_global_symbol_language.
12907 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12909 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12911 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12913 * buildsym.c (record_line): Fix undefined behavior and preserve
12916 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12918 * buildsym.c (record_line): Fix the resizing condition.
12920 2020-04-01 Tom Tromey <tom@tromey.com>
12922 * value.h (value_literal_complex): Add comment.
12923 * valops.c (value_literal_complex): Refer to value.h.
12925 2020-04-01 Tom Tromey <tom@tromey.com>
12927 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12928 (scalar_type): New rule, from typebase.
12929 (typebase): Use scalar_type. Recognize complex types.
12930 (field_name): Handle FLOAT_KEYWORD.
12931 (ident_tokens): Add _Complex and __complex__.
12933 2020-04-01 Tom Tromey <tom@tromey.com>
12936 * valarith.c (promotion_type, complex_binop): New functions.
12937 (scalar_binop): Handle complex numbers. Use promotion_type.
12938 (value_pos, value_neg, value_complement): Handle complex numbers.
12940 2020-04-01 Tom Tromey <tom@tromey.com>
12942 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12943 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12944 (parse_number): Handle complex numbers.
12946 2020-04-01 Tom Tromey <tom@tromey.com>
12948 * c-valprint.c (c_decorations): Change complex suffix to "i".
12950 2020-04-01 Tom Tromey <tom@tromey.com>
12952 * valprint.c (generic_value_print_complex): Use accessors.
12953 * value.h (value_real_part, value_imaginary_part): Declare.
12954 * valops.c (value_real_part, value_imaginary_part): New
12956 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12958 2020-04-01 Tom Tromey <tom@tromey.com>
12960 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12961 (read_range_type): Update.
12962 * mdebugread.c (basic_type): Update.
12963 * go-lang.c (build_go_types): Use init_complex_type.
12964 * gdbtypes.h (struct main_type) <complex_type>: New member.
12965 (init_complex_type): Update.
12966 (arch_complex_type): Don't declare.
12967 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12968 Make name if none given. Use alloc_type_copy. Look for cached
12970 (arch_complex_type): Remove.
12971 (gdbtypes_post_init): Use init_complex_type.
12972 * f-lang.c (build_fortran_types): Use init_complex_type.
12973 * dwarf2/read.c (read_base_type): Update.
12974 * d-lang.c (build_d_types): Use init_complex_type.
12975 * ctfread.c (read_base_type): Update.
12977 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12979 * infrun.c (stop_all_threads): Update assertion, plus when
12980 stopping threads, take into account that we might be trying
12981 to stop an all-stop target.
12982 (stop_waiting): Call 'stop_all_threads' if there exists a
12985 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12987 * target.h (exists_non_stop_target): New function declaration.
12988 * target.c (exists_non_stop_target): New function.
12990 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12993 * eval.c (is_integral_or_integral_reference): New function.
12994 (evaluate_subexp_standard): Allow integer references in
12995 pointer arithmetic.
12997 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12999 * remote.c (remote_target::remote_parse_stop_reply): Remove the
13000 check for no ptid in the stop reply when the target is non-stop.
13002 2020-04-01 Tom Tromey <tromey@adacore.com>
13004 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
13005 "name" parameter to rvalue reference. Initialize m_name_holder.
13006 <lookup_name_info>: New overloads.
13007 <name>: Return gdb::string_view.
13008 <c_str>: New method.
13009 <make_ignore_params>: Update.
13010 <search_name_hash>: Update.
13011 <language_lookup_name>: Return const char *.
13012 <m_name>: Change type.
13013 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
13014 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
13015 (lookup_name_info::match_any): Update.
13016 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
13018 * minsyms.c (linkage_name_str): Update.
13019 * language.c (default_symbol_name_matcher): Update.
13020 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
13022 * ada-lang.c (ada_fold_name): Change parameter to string_view.
13023 (ada_lookup_name_info::ada_lookup_name_info): Update.
13024 (literal_symbol_name_matcher): Update.
13026 2020-04-01 Tom Tromey <tromey@adacore.com>
13028 * psymtab.c (psymtab_search_name): Remove function.
13029 (psym_lookup_symbol): Create search name and lookup name here.
13030 (lookup_partial_symbol): Remove "name" parameter; add
13032 (psym_expand_symtabs_for_function): Update.
13034 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
13037 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
13039 2020-03-31 Tom Tromey <tromey@adacore.com>
13041 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
13044 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
13046 * features/riscv/32bit-csr.xml: Regenerated.
13047 * features/riscv/64bit-csr.xml: Regenerated.
13049 2020-03-30 Tom Tromey <tromey@adacore.com>
13051 * ada-valprint.c (print_variant_part): Update.
13052 * ada-lang.h (ada_which_variant_applies): Update.
13053 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
13054 outer_valaddr parameters; replace with "outer" value parameter.
13055 (to_fixed_variant_branch_type): Update.
13057 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13059 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
13060 <list>. Remove inclusion of observable.h.
13061 (PPC_DEBUG_CURRENT_VERSION): Move up define.
13062 (struct arch_lwp_info): New struct.
13063 (class ppc_linux_dreg_interface): New class.
13064 (struct ppc_linux_process_info): New struct.
13065 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
13066 <low_new_clone, low_forget_process, low_prepare_to_resume>
13067 <copy_thread_dreg_state, mark_thread_stale>
13068 <mark_debug_registers_changed, register_hw_breakpoint>
13069 <clear_hw_breakpoint, register_wp, clear_wp>
13070 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
13071 <num_memory_accesses, get_trigger_type>
13072 <create_watchpoint_request, hwdebug_point_cmp>
13073 <init_arch_lwp_info, get_arch_lwp_info>
13074 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13076 <struct ptid_hash>: New inner struct.
13077 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13079 (saved_dabr_value, hwdebug_info, max_slots_number)
13080 (struct hw_break_tuple, struct thread_points, ppc_threads)
13081 (have_ptrace_hwdebug_interface)
13082 (hwdebug_find_thread_points_by_tid)
13083 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13084 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13085 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13086 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13087 use m_dreg_interface.
13088 (hwdebug_point_cmp): Change to...
13089 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13090 reference arguments instead of pointers.
13091 (ppc_linux_nat_target::ranged_break_num_registers): Use
13093 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13094 m_dreg_interface. Call register_hw_breakpoint.
13095 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13096 m_dreg_interface. Call clear_hw_breakpoint.
13097 (get_trigger_type): Change to...
13098 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13100 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13101 use m_dreg_interface. Call register_hw_breakpoint.
13102 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13103 use m_dreg_interface. Call clear_hw_breakpoint.
13104 (can_use_watchpoint_cond_accel): Change to...
13105 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13106 method. Update comment, use m_dreg_interface and
13108 (calculate_dvc): Change to...
13109 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13111 (num_memory_accesses): Change to...
13112 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13113 (check_condition): Change to...
13114 (ppc_linux_nat_target::check_condition): ...this method.
13115 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13116 comment, use m_dreg_interface.
13117 (create_watchpoint_request): Change to...
13118 (ppc_linux_nat_target::create_watchpoint_request): ...this
13119 method. Use m_dreg_interface.
13120 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13121 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13122 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13123 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13124 (ppc_linux_nat_target::low_forget_process)
13125 (ppc_linux_nat_target::low_new_fork)
13126 (ppc_linux_nat_target::low_new_clone)
13127 (ppc_linux_nat_target::low_delete_thread)
13128 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13129 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13130 only call mark_thread_stale.
13131 (ppc_linux_thread_exit): Remove.
13132 (ppc_linux_nat_target::stopped_data_address): Change to...
13133 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13134 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13135 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13136 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13137 comment. Call low_stopped_data_address.
13138 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13140 (ppc_linux_nat_target::masked_watch_num_registers): Use
13142 (ppc_linux_nat_target::copy_thread_dreg_state)
13143 (ppc_linux_nat_target::mark_thread_stale)
13144 (ppc_linux_nat_target::mark_debug_registers_changed)
13145 (ppc_linux_nat_target::register_hw_breakpoint)
13146 (ppc_linux_nat_target::clear_hw_breakpoint)
13147 (ppc_linux_nat_target::register_wp)
13148 (ppc_linux_nat_target::clear_wp)
13149 (ppc_linux_nat_target::init_arch_lwp_info)
13150 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13151 (_initialize_ppc_linux_nat): Remove observer callback.
13153 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13155 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13156 (ppc_linux_nat_target::auxv_parse)
13157 (ppc_linux_nat_target::read_description)
13158 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13161 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13163 * linux-nat.h (low_new_clone): New method.
13164 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13166 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13168 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13169 (dbx_expand_psymtab): ... this.
13170 (start_psymtab): Update.
13171 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13172 (mdebug_expand_psymtab): ... this.
13173 (parse_partial_symbols): Update.
13174 (new_psymtab): Update.
13175 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13176 (xcoff_expand_psymtab): ... this.
13177 (xcoff_start_psymtab): Update.
13179 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13181 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13182 <expand_dependencies>: ... this.
13183 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13184 (partial_symtab::expand_dependencies): ... this.
13185 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13187 (dwarf2_psymtab::expand_psymtab): Update.
13188 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13189 * mdebugread.c (psymtab_to_symtab_1): Update.
13190 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13192 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13194 * psympriv.h (discard_psymtab): Remove.
13195 * dbxread.c (dbx_end_psymtab): Update.
13196 * xcoffread.c (xcoff_end_psymtab): Update.
13198 2020-03-28 Tom Tromey <tom@tromey.com>
13200 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13203 2020-03-28 Tom Tromey <tom@tromey.com>
13205 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13207 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
13209 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13211 2020-03-26 John Baldwin <jhb@FreeBSD.org>
13213 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13215 2020-03-26 Tom Tromey <tom@tromey.com>
13217 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13218 (mark_common_block_symbol_computed, read_tag_string_type)
13219 (attr_to_dynamic_prop, read_subrange_type): Update.
13220 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13221 to be methods on struct attribute.
13222 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13223 (read_call_site_scope, partial_die_info::read)
13224 (partial_die_info::read, lookup_die_type, follow_die_ref):
13226 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13227 from dwarf2_get_ref_die_offset.
13228 (attribute::constant_value): New method, from
13229 dwarf2_get_attr_constant_value.
13230 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13232 <constant_value>: New method.
13234 2020-03-26 Tom Tromey <tom@tromey.com>
13236 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13237 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13238 (dwarf_type_encoding_name): Move to stringify.c.
13239 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13240 * dwarf2/stringify.c: New file.
13241 * dwarf2/stringify.h: New file.
13243 2020-03-26 Tom Tromey <tom@tromey.com>
13245 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13248 2020-03-26 Tom Tromey <tom@tromey.com>
13250 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13252 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13253 (lookup_ranges_base): Likewise.
13254 (read_cutu_die_from_dwo, read_full_die_1): Update.
13256 2020-03-26 Tom Tromey <tom@tromey.com>
13258 * dwarf2/read.c (read_import_statement, read_file_scope)
13259 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13260 (read_lexical_block_scope, read_call_site_scope)
13261 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13262 (handle_struct_member_die, process_structure_scope)
13263 (update_enumeration_type_from_children)
13264 (process_enumeration_scope, read_array_type, read_common_block)
13265 (read_namespace, read_module, read_subroutine_type): Update.
13266 (sibling_die): Remove.
13268 2020-03-26 Tom Tromey <tom@tromey.com>
13270 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13271 (build_type_psymtabs_reader, read_structure_type)
13272 (read_enumeration_type, read_full_die_1): Update.
13273 (dwarf2_attr_no_follow): Move to die.h.
13274 * dwarf2/die.h (struct die_info) <attr>: New method.
13276 2020-03-26 Tom Tromey <tom@tromey.com>
13278 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13279 <base_address>: Now an optional.
13280 (dwarf2_find_base_address, dwarf2_rnglists_process)
13281 (dwarf2_ranges_process, fill_in_loclist_baton)
13282 (dwarf2_symbol_mark_computed): Update.
13284 2020-03-26 Tom Tromey <tom@tromey.com>
13286 * dwarf2/read.c (struct die_info): Move to die.h.
13287 * dwarf2/die.h: New file.
13289 2020-03-26 Tom Tromey <tom@tromey.com>
13291 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13293 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13294 Move to line-header.c.
13295 (read_checked_initial_length_and_offset, read_formatted_entries):
13297 (dwarf_decode_line_header): Split into two.
13298 * dwarf2/line-header.c
13299 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13301 (read_checked_initial_length_and_offset, read_formatted_entries):
13303 (dwarf_decode_line_header): New function, split from read.c.
13305 2020-03-26 Tom Tromey <tom@tromey.com>
13307 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13309 * dwarf2/read.c (read_attribute_value): Update.
13310 (dwarf2_per_objfile::read_line_string): Rename from
13311 read_indirect_line_string.
13312 (read_formatted_entries): Update.
13314 2020-03-26 Tom Tromey <tom@tromey.com>
13316 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13319 2020-03-26 Tom Tromey <tom@tromey.com>
13321 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13323 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13324 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13327 2020-03-26 Tom Tromey <tom@tromey.com>
13329 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13330 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13331 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13332 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13334 2020-03-26 Tom Tromey <tom@tromey.com>
13336 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13337 file_names_size, file_full_name, file_file_name>: Use const.
13338 <file_name_at, file_names>: Add const overload.
13339 * dwarf2/line-header.c (line_header::file_file_name)
13340 (line_header::file_full_name): Update.
13342 2020-03-26 Tom Tromey <tom@tromey.com>
13344 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13345 (macro_start_file, consume_improper_spaces)
13346 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13347 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13348 (dwarf_decode_macros): Move to macro.c.
13349 * dwarf2/macro.c: New file.
13350 * dwarf2/macro.h: New file.
13351 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13353 2020-03-26 Tom Tromey <tom@tromey.com>
13355 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13357 * dwarf2/section.c: New method. From
13358 read_indirect_string_at_offset_from.
13359 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13360 (read_indirect_string_at_offset_from): Move to section.c.
13361 (read_indirect_string_at_offset): Rewrite.
13362 (read_indirect_line_string_at_offset): Remove.
13363 (read_indirect_string, read_indirect_line_string)
13364 (dwarf_decode_macro_bytes): Update.
13366 2020-03-26 Tom Tromey <tom@tromey.com>
13368 * dwarf2/section.h (struct dwarf2_section_info)
13369 <overload_complaint>: Declare.
13370 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13371 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13372 Rename from dwarf2_section_buffer_overflow_complaint.
13373 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13374 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13376 2020-03-26 Tom Tromey <tom@tromey.com>
13378 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13380 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13382 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13385 2020-03-26 Tom Tromey <tom@tromey.com>
13387 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13389 2020-03-26 Tom Tromey <tom@tromey.com>
13391 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13393 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13395 (dwarf_decode_macros): Update.
13397 2020-03-26 Tom Tromey <tom@tromey.com>
13399 * dwarf2/read.c (read_attribute_value): Update.
13400 (read_indirect_string_from_dwz): Move to dwz.c; change into
13402 (dwarf_decode_macro_bytes): Update.
13403 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13404 * dwarf2/dwz.c: New file.
13405 * Makefile.in (COMMON_SFILES): Add dwz.c.
13407 2020-03-26 Tom Tromey <tom@tromey.com>
13409 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13410 * dwarf2/read.c: Add include.
13411 * dwarf2/index-write.c: Add include.
13412 * dwarf2/index-cache.c: Add include.
13413 * dwarf2/dwz.h: New file.
13415 2020-03-25 Tom Tromey <tom@tromey.com>
13417 * compile/compile-object-load.c (get_out_value_type): Mention
13418 correct symbol name in error message.
13420 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13422 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13424 2020-03-25 Tom de Vries <tdevries@suse.de>
13426 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13427 * symmisc.c (dump_symtab_1): Print user and includes fields.
13428 (maintenance_info_symtabs): Same.
13430 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13433 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13434 (riscv_regcache_cooked_write): New function.
13435 (riscv_push_dummy_call): Use new function.
13436 (riscv_return_value): Likewise.
13438 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13440 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13441 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13442 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13443 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13444 * infrun.c (follow_fork): Likewise.
13445 (follow_fork_inferior): Likewise.
13446 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13447 * linux-nat.h (class linux_nat_target): Likewise.
13448 * remote.c (class remote_target) <follow_fork>: Likewise.
13449 (remote_target::follow_fork): Likewise.
13450 * target-delegates.c: Re-generate.
13451 * target.c (default_follow_fork): Likewise.
13452 (target_follow_fork): Likewise.
13453 * target.h (struct target_ops) <follow_fork>: Likewise.
13454 (target_follow_fork): Likewise.
13456 2020-03-24 Tom de Vries <tdevries@suse.de>
13458 * psymtab.c (maintenance_info_psymtabs): Print user field.
13460 2020-03-20 Tom Tromey <tromey@adacore.com>
13462 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13464 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13467 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13469 * ptrace.m4: Don't check for ptrace declaration.
13470 * config.in: Re-generate.
13471 * configure: Re-generate.
13472 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13475 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13477 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13479 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13480 * sparc-nat.c (gdb_ptrace): Likewise.
13481 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13483 2020-03-20 Tom Tromey <tromey@adacore.com>
13485 * c-exp.y (lex_one_token): Fix assert.
13487 2020-03-20 Tom Tromey <tromey@adacore.com>
13489 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13490 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13493 2020-03-20 Tom Tromey <tromey@adacore.com>
13495 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13497 2020-03-20 Tom Tromey <tromey@adacore.com>
13499 * ada-valprint.c (print_variant_part): Remove parameters; switch
13500 to value-based API.
13501 (print_field_values): Likewise.
13502 (ada_val_print_struct_union): Likewise.
13503 (ada_value_print_1): Update.
13505 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13507 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13508 nbsd_nat_target instead of inf_ptrace_target.
13509 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13512 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13514 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13515 it to the ptrace call.
13516 * (store_registers): Likewise.
13518 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13520 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13521 it to the ptrace call.
13522 * (store_registers): Likewise.
13524 2020-03-19 Luis Machado <luis.machado@linaro.org>
13526 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13527 valid, fetch vg value from ptrace.
13529 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13530 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13531 * inf-ptrace.c: Likewise.
13532 * (gdb_ptrace): Add.
13533 * (inf_ptrace_target::resume): Update.
13534 * (inf_ptrace_target::xfer_partial): Likewise.
13535 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13536 * (inf_ptrace_peek_poke): Update.
13538 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13540 * x86-bsd-nat.c (gdb_ptrace): New.
13541 * (x86bsd_dr_set): Add new argument `ptid'.
13542 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13543 x86bsd_dr_set_addr): Update.
13545 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13547 * remote.c (remote_target::process_stop_reply): Handle events for
13548 all threads differently.
13550 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13552 * completer.c (completion_tracker::remove_completion): Define new
13554 * completer.h (completion_tracker::remove_completion): Declare new
13556 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13557 when adding a C++ function symbol.
13559 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13561 * completer.c (completion_tracker::completion_hash_entry): Define
13563 (advance_to_filename_complete_word_point): Call
13564 recompute_lowest_common_denominator.
13565 (completion_tracker::completion_tracker): Call discard_completions
13566 to setup the hash table.
13567 (completion_tracker::discard_completions): Allow for being called
13568 from the constructor, pass new equal function, and element deleter
13569 when constructing the hash table. Initialise new class member
13571 (completion_tracker::maybe_add_completion): Remove use of
13572 m_entries_vec, and store more information into m_entries_hash.
13573 (completion_tracker::recompute_lcd_visitor): New function, most
13574 content taken from...
13575 (completion_tracker::recompute_lowest_common_denominator):
13576 ...here, this now just visits each item in the hash calling the
13578 (completion_tracker::build_completion_result): Remove use of
13579 m_entries_vec, call recompute_lowest_common_denominator.
13580 * completer.h (completion_tracker::have_completions): Remove use
13582 (completion_tracker::completion_hash_entry): Declare new class.
13583 (completion_tracker::recompute_lowest_common_denominator): Change
13584 function signature.
13585 (completion_tracker::recompute_lcd_visitor): Declare new function.
13586 (completion_tracker::m_entries_vec): Delete.
13587 (completion_tracker::m_entries_hash): Initialize to NULL.
13588 (completion_tracker::m_lowest_common_denominator_valid): New
13590 (completion_tracker::m_lowest_common_denominator_max_length): New
13593 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13595 * regformats/regdef.h: Put reg in gdb namespace.
13597 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13599 * i386-bsd-nat.c (gdb_ptrace): New.
13600 * (i386bsd_fetch_inferior_registers,
13601 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13602 * (i386bsd_fetch_inferior_registers,
13603 i386bsd_store_inferior_registers) Use gdb_ptrace.
13605 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13607 * amd64-bsd-nat.c (gdb_ptrace): New.
13608 * (amd64bsd_fetch_inferior_registers,
13609 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13610 * (amd64bsd_fetch_inferior_registers,
13611 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13613 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13615 * user-regs.c (user_reg::read): Rename to...
13616 (user_reg::xread): ...this.
13617 * (append_user_reg): Rename argument `read' to `xread'.
13618 * (user_reg_add_builtin): Likewise.
13619 * (user_reg_add): Likewise.
13620 * (value_of_user_reg): Likewise.
13622 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13624 * sparc-nat.c (gdb_ptrace): New.
13625 * sparc-nat.c (sparc_fetch_inferior_registers)
13626 (sparc_store_inferior_registers) Remove obsolete comment.
13627 * sparc-nat.c (sparc_fetch_inferior_registers)
13628 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13629 * sparc-nat.c (sparc_fetch_inferior_registers)
13630 (sparc_store_inferior_registers) Use gdb_ptrace.
13632 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13634 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13635 it to the ptrace call.
13636 * sh-nbsd-nat.c (store_registers): Likewise.
13638 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13640 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13641 nbsd_nat_target instead of inf_ptrace_target.
13642 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13645 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13647 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13649 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13651 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13653 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13655 2020-03-17 Tom de Vries <tdevries@suse.de>
13658 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13660 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13662 (process_imported_unit_die): Skip import of c++ CUs.
13664 2020-03-16 Tom Tromey <tom@tromey.com>
13666 * p-valprint.c (pascal_object_print_value): Initialize
13669 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13670 Shahab Vahedi <shahab@synopsys.com>
13672 * Makefile.in: Add arch/arc.o
13673 * configure.tgt: Likewise.
13674 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13675 (_initialize_arc_tdep): Don't initialize old target descriptions.
13676 (arc_read_description): New function to cache target descriptions.
13677 * arc-tdep.h (arc_read_description): Add proto type.
13678 * arch/arc.c: New file.
13679 * arch/arc.h: Likewise.
13680 * features/Makefile: Replace old target descriptions with new.
13681 * features/arc-arcompact.c: Remove.
13682 * features/arc-arcompact.xml: Likewise.
13683 * features/arc-v2.c: Likewise
13684 * features/arc-v2.xml: Likewise
13685 * features/arc/aux-arcompact.xml: New file.
13686 * features/arc/aux-v2.xml: Likewise.
13687 * features/arc/core-arcompact.xml: Likewise.
13688 * features/arc/core-v2.xml: Likewise.
13689 * features/arc/aux-arcompact.c: Generate.
13690 * features/arc/aux-v2.c: Likewise.
13691 * features/arc/core-arcompact.c: Likewise.
13692 * features/arc/core-v2.c: Likewise.
13693 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13695 2020-03-16 Tom Tromey <tromey@adacore.com>
13698 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13699 putting value into bcache.
13701 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13704 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13706 (amd64_windows_init_abi_common): ... this. Don't set size of
13708 (amd64_windows_init_abi): New function.
13709 (amd64_cygwin_init_abi): New function.
13710 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13712 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13715 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13717 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13718 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13719 (pe_import_directory_entry): New struct type.
13720 (is_linked_with_cygwin_dll): New function.
13721 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13722 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13723 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13725 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13727 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13728 i386_cygwin_core_osabi_sniffer.
13730 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13732 * i386-cygwin-tdep.c: Rename to...
13733 * i386-windows-tdep.c: ... this.
13734 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13735 i386-windows-tdep.c.
13736 * configure.tgt: Likewise.
13738 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13740 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13741 * osabi.c (gdb_osabi_names): Add "Windows".
13742 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13743 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13744 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13745 i386_cygwin_osabi_sniffer.
13746 (_initialize_i386_cygwin_tdep): Register OS ABI
13747 GDB_OSABI_WINDOWS for i386.
13748 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13749 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13750 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13752 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13753 when the target matches '*-*-mingw*'.
13755 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13757 * defs.h (enum gdb_osabi): Move to...
13758 * osabi.h (enum gdb_osabi): ... here.
13759 * gdbarch.sh: Include osabi.h in gdbarch.h.
13760 * gdbarch.h: Re-generate.
13762 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13764 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13766 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13768 2020-03-14 Tom Tromey <tom@tromey.com>
13770 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13772 (c_type_print_modifier): Likewise. Add "language" parameter.
13773 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13774 (c_type_print_base_1): Update.
13775 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13777 * type-stack.c (type_stack::insert): Handle tp_atomic and
13779 (type_stack::follow_type_instance_flags): Likewise.
13780 (type_stack::follow_types): Likewise. Merge type-following code.
13781 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13782 (space_identifier, cv_with_space_id)
13783 (const_or_volatile_or_space_identifier_noopt)
13784 (const_or_volatile_or_space_identifier): Remove.
13785 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13787 (ptr_operator, typebase): Update.
13788 (enum token_flag) <FLAG_C>: New constant.
13789 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13791 (lex_one_token): Handle FLAG_C.
13793 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13795 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13796 it to the ptrace call.
13797 * m68k-bsd-nat.c (store_registers): Likewise.
13799 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13801 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13803 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13804 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13805 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13807 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13809 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13810 nbsd_nat_target instead of inf_ptrace_target.
13811 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13814 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13816 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13819 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13821 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13822 it to the ptrace call.
13823 * alpha-bsd-nat.c (store_registers): Likewise.
13825 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13827 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13829 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13830 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13831 fill_fpregset): Likewise.
13833 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13835 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13836 nbsd_nat_target instead of inf_ptrace_target.
13837 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13840 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13842 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13845 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13847 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13848 it to the ptrace call.
13849 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13850 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13851 * arm-nbsd-nat.c (store_register): Likewise.
13852 * arm-nbsd-nat.c (store_regs): Likewise.
13853 * arm-nbsd-nat.c (store_fp_register): Likewise.
13854 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13856 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13858 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13859 nbsd_nat_target instead of inf_ptrace_target.
13860 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13863 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13865 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13866 it to the ptrace call.
13867 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13869 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13871 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13872 it to the ptrace call.
13873 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13875 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13877 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13879 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13881 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13883 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13884 instead of inf_ptrace_target.
13885 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13888 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13890 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13893 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13895 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13898 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13900 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13903 2020-03-13 Tom Tromey <tom@tromey.com>
13905 * value.h (val_print): Don't declare.
13906 * valprint.h (val_print_array_elements)
13907 (val_print_scalar_formatted, generic_val_print): Don't declare.
13908 * valprint.c (generic_val_print_array): Take a struct value.
13909 (generic_val_print_ptr, generic_val_print_memberptr)
13910 (generic_val_print_bool, generic_val_print_int)
13911 (generic_val_print_char, generic_val_print_complex)
13912 (generic_val_print): Remove.
13913 (generic_value_print): Update.
13914 (do_val_print): Remove unused parameters. Don't call
13916 (val_print): Remove.
13917 (common_val_print): Update. Don't call value_check_printable.
13918 (val_print_scalar_formatted, val_print_array_elements): Remove.
13919 * rust-lang.c (rust_val_print): Remove.
13920 (rust_language_defn): Update.
13921 * p-valprint.c (pascal_val_print): Remove.
13922 (pascal_value_print_inner): Update.
13923 (pascal_object_print_val_fields, pascal_object_print_val):
13925 (pascal_object_print_static_field): Update.
13926 * p-lang.h (pascal_val_print): Don't declare.
13927 * p-lang.c (pascal_language_defn): Update.
13928 * opencl-lang.c (opencl_language_defn): Update.
13929 * objc-lang.c (objc_language_defn): Update.
13930 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13931 * m2-lang.h (m2_val_print): Don't declare.
13932 * m2-lang.c (m2_language_defn): Update.
13933 * language.h (struct language_defn) <la_val_print>: Remove.
13934 * language.c (unk_lang_value_print_inner): Rename. Change
13936 (unknown_language_defn, auto_language_defn): Update.
13937 * go-valprint.c (go_val_print): Remove.
13938 * go-lang.h (go_val_print): Don't declare.
13939 * go-lang.c (go_language_defn): Update.
13940 * f-valprint.c (f_val_print): Remove.
13941 * f-lang.h (f_value_print): Don't declare.
13942 * f-lang.c (f_language_defn): Update.
13943 * d-valprint.c (d_val_print): Remove.
13944 * d-lang.h (d_value_print): Don't declare.
13945 * d-lang.c (d_language_defn): Update.
13946 * cp-valprint.c (cp_print_value_fields)
13947 (cp_print_value_fields_rtti, cp_print_value): Remove.
13948 (cp_print_static_field): Update.
13949 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13950 (c_val_print_struct, c_val_print_union, c_val_print_int)
13951 (c_val_print_memberptr, c_val_print): Remove.
13952 * c-lang.h (c_val_print_array, cp_print_value_fields)
13953 (cp_print_value_fields_rtti): Don't declare.
13954 * c-lang.c (c_language_defn, cplus_language_defn)
13955 (asm_language_defn, minimal_language_defn): Update.
13956 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13957 (ada_val_print_enum): Take a struct value.
13958 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13959 (ada_val_print): Remove.
13960 (ada_value_print_1): Update.
13961 (printable_val_type): Remove.
13962 * ada-lang.h (ada_val_print): Don't declare.
13963 * ada-lang.c (ada_language_defn): Update.
13965 2020-03-13 Tom Tromey <tom@tromey.com>
13967 * valprint.c (do_val_print): Update.
13968 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13970 (value_to_value_object_no_release): Declare.
13971 * python/py-value.c (value_to_value_object_no_release): New
13973 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13975 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13977 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13979 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13981 (gdbscm_apply_val_pretty_printer): Take a struct value.
13982 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13984 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13986 * extension-priv.h (struct extension_language_ops)
13987 <apply_val_pretty_printer>: Take a struct value.
13988 * cp-valprint.c (cp_print_value): Create a struct value.
13989 (cp_print_value): Update.
13991 2020-03-13 Tom Tromey <tom@tromey.com>
13993 * ada-valprint.c (print_field_values): Call common_val_print.
13995 2020-03-13 Tom Tromey <tom@tromey.com>
13997 * ada-valprint.c (val_print_packed_array_elements): Remove
13998 bitoffset and val parameters. Call common_val_print.
13999 (ada_val_print_string): Remove offset, address, and original_value
14001 (ada_val_print_array): Update.
14002 (ada_value_print_array): New function.
14003 (ada_value_print_1): Call it.
14005 2020-03-13 Tom Tromey <tom@tromey.com>
14007 * ada-valprint.c (ada_value_print): Use common_val_print.
14009 2020-03-13 Tom Tromey <tom@tromey.com>
14011 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
14013 2020-03-13 Tom Tromey <tom@tromey.com>
14015 * ada-valprint.c (ada_value_print_num): New function.
14016 (ada_value_print_1): Use it.
14018 2020-03-13 Tom Tromey <tom@tromey.com>
14020 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
14022 2020-03-13 Tom Tromey <tom@tromey.com>
14024 * ada-valprint.c (ada_value_print_ptr): New function.
14025 (ada_value_print_1): Use it.
14027 2020-03-13 Tom Tromey <tom@tromey.com>
14029 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
14030 call common_val_print.
14031 (ada_val_print_1): Update.
14032 (ada_value_print_1): New function.
14033 (ada_value_print_inner): Rewrite.
14035 2020-03-13 Tom Tromey <tom@tromey.com>
14037 * cp-valprint.c (cp_print_value_fields): Update.
14038 (cp_print_value): New function.
14040 2020-03-13 Tom Tromey <tom@tromey.com>
14042 * m2-valprint.c (m2_value_print_inner): Use
14043 cp_print_value_fields.
14044 * cp-valprint.c (cp_print_value_fields): New function.
14045 * c-valprint.c (c_value_print_struct): New function.
14046 (c_value_print_inner): Use c_value_print_struct.
14047 * c-lang.h (cp_print_value_fields): Declare.
14049 2020-03-13 Tom Tromey <tom@tromey.com>
14051 * c-valprint.c (c_value_print_array): New function.
14052 (c_value_print_inner): Use it.
14054 2020-03-13 Tom Tromey <tom@tromey.com>
14056 * c-valprint.c (c_value_print_memberptr): New function.
14057 (c_value_print_inner): Use it.
14059 2020-03-13 Tom Tromey <tom@tromey.com>
14061 * c-valprint.c (c_value_print_int): New function.
14062 (c_value_print_inner): Use it.
14064 2020-03-13 Tom Tromey <tom@tromey.com>
14066 * c-valprint.c (c_value_print_ptr): New function.
14067 (c_value_print_inner): Use it.
14069 2020-03-13 Tom Tromey <tom@tromey.com>
14071 * c-valprint.c (c_value_print_inner): Rewrite.
14073 2020-03-13 Tom Tromey <tom@tromey.com>
14075 * valprint.c (generic_value_print_complex): New function.
14076 (generic_value_print): Use it.
14078 2020-03-13 Tom Tromey <tom@tromey.com>
14080 * valprint.c (generic_val_print_float): Don't call
14081 val_print_scalar_formatted.
14082 (generic_val_print, generic_value_print): Update.
14084 2020-03-13 Tom Tromey <tom@tromey.com>
14086 * valprint.c (generic_value_print_char): New function
14087 (generic_value_print): Use it.
14089 2020-03-13 Tom Tromey <tom@tromey.com>
14091 * valprint.c (generic_value_print_int): New function.
14092 (generic_value_print): Use it.
14094 2020-03-13 Tom Tromey <tom@tromey.com>
14096 * valprint.c (generic_value_print_bool): New function.
14097 (generic_value_print): Use it.
14099 2020-03-13 Tom Tromey <tom@tromey.com>
14101 * valprint.c (generic_val_print_func): Simplify.
14102 (generic_val_print, generic_value_print): Update.
14104 2020-03-13 Tom Tromey <tom@tromey.com>
14106 * valprint.c (generic_val_print_flags): Remove.
14107 (generic_val_print, generic_value_print): Update.
14108 (val_print_type_code_flags): Add original_value parameter.
14110 2020-03-13 Tom Tromey <tom@tromey.com>
14112 * valprint.c (generic_val_print): Update.
14113 (generic_value_print): Update.
14114 * valprint.c (generic_val_print_enum): Don't call
14115 val_print_scalar_formatted.
14117 2020-03-13 Tom Tromey <tom@tromey.com>
14119 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14120 * valprint.c (generic_value_print_ptr): New function.
14122 2020-03-13 Tom Tromey <tom@tromey.com>
14124 * valprint.c (generic_value_print): Rewrite.
14126 2020-03-13 Tom Tromey <tom@tromey.com>
14128 * p-valprint.c (pascal_object_print_value_fields)
14129 (pascal_object_print_value): New functions.
14131 2020-03-13 Tom Tromey <tom@tromey.com>
14133 * p-valprint.c (pascal_value_print_inner): Rewrite.
14135 2020-03-13 Tom Tromey <tom@tromey.com>
14137 * f-valprint.c (f_value_print_innner): Rewrite.
14139 2020-03-13 Tom Tromey <tom@tromey.com>
14141 * m2-valprint.c (m2_print_unbounded_array): New overload.
14142 (m2_print_unbounded_array): Update.
14143 (m2_print_array_contents): Take a struct value.
14144 (m2_value_print_inner): Rewrite.
14146 2020-03-13 Tom Tromey <tom@tromey.com>
14148 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14149 (d_value_print_inner): New function.
14150 * d-lang.h (d_value_print_inner): Declare.
14151 * d-lang.c (d_language_defn): Use d_value_print_inner.
14153 2020-03-13 Tom Tromey <tom@tromey.com>
14155 * go-valprint.c (go_value_print_inner): New function.
14156 * go-lang.h (go_value_print_inner): Declare.
14157 * go-lang.c (go_language_defn): Use go_value_print_inner.
14159 2020-03-13 Tom Tromey <tom@tromey.com>
14161 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14163 (rust_val_print): Rewrite.
14164 (rust_value_print_inner): New function, from rust_val_print.
14165 (rust_language_defn): Use rust_value_print_inner.
14167 2020-03-13 Tom Tromey <tom@tromey.com>
14169 * ada-valprint.c (ada_value_print_inner): New function.
14170 * ada-lang.h (ada_value_print_inner): Declare.
14171 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14173 2020-03-13 Tom Tromey <tom@tromey.com>
14175 * f-valprint.c (f_value_print_innner): New function.
14176 * f-lang.h (f_value_print_innner): Declare.
14177 * f-lang.c (f_language_defn): Use f_value_print_innner.
14179 2020-03-13 Tom Tromey <tom@tromey.com>
14181 * p-valprint.c (pascal_value_print_inner): New function.
14182 * p-lang.h (pascal_value_print_inner): Declare.
14183 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14185 2020-03-13 Tom Tromey <tom@tromey.com>
14187 * m2-valprint.c (m2_value_print_inner): New function.
14188 * m2-lang.h (m2_value_print_inner): Declare.
14189 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14191 2020-03-13 Tom Tromey <tom@tromey.com>
14193 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14194 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14195 * c-valprint.c (c_value_print_inner): New function.
14196 * c-lang.h (c_value_print_inner): Declare.
14197 * c-lang.c (c_language_defn, cplus_language_defn)
14198 (asm_language_defn, minimal_language_defn): Use
14199 c_value_print_inner.
14201 2020-03-13 Tom Tromey <tom@tromey.com>
14203 * p-valprint.c (pascal_object_print_value_fields): Now static.
14204 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14206 2020-03-13 Tom Tromey <tom@tromey.com>
14208 * c-valprint.c (c_val_print_array): Simplify.
14210 2020-03-13 Tom Tromey <tom@tromey.com>
14212 * valprint.c (value_print_array_elements): New function.
14213 * valprint.h (value_print_array_elements): Declare.
14215 2020-03-13 Tom Tromey <tom@tromey.com>
14217 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14218 * mips-tdep.c (mips_print_register): Use
14219 value_print_scalar_formatted.
14221 2020-03-13 Tom Tromey <tom@tromey.com>
14223 * valprint.h (value_print_scalar_formatted): Declare.
14224 * valprint.c (value_print_scalar_formatted): New function.
14226 2020-03-13 Tom Tromey <tom@tromey.com>
14228 * valprint.h (generic_value_print): Declare.
14229 * valprint.c (generic_value_print): New function.
14231 2020-03-13 Tom Tromey <tom@tromey.com>
14233 * valprint.c (do_val_print): Call la_value_print_inner, if
14235 * rust-lang.c (rust_language_defn): Update.
14236 * p-lang.c (pascal_language_defn): Update.
14237 * opencl-lang.c (opencl_language_defn): Update.
14238 * objc-lang.c (objc_language_defn): Update.
14239 * m2-lang.c (m2_language_defn): Update.
14240 * language.h (struct language_defn) <la_value_print_inner>: New
14242 * language.c (unknown_language_defn, auto_language_defn): Update.
14243 * go-lang.c (go_language_defn): Update.
14244 * f-lang.c (f_language_defn): Update.
14245 * d-lang.c (d_language_defn): Update.
14246 * c-lang.c (c_language_defn, cplus_language_defn)
14247 (asm_language_defn, minimal_language_defn): Update.
14248 * ada-lang.c (ada_language_defn): Update.
14250 2020-03-13 Tom Tromey <tom@tromey.com>
14252 * c-valprint.c (c_value_print): Use common_val_print.
14254 2020-03-13 Tom Tromey <tom@tromey.com>
14256 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14258 2020-03-13 Tom Tromey <tom@tromey.com>
14260 * f-valprint.c (f77_print_array_1, f_val_print): Use
14263 2020-03-13 Tom Tromey <tom@tromey.com>
14265 * riscv-tdep.c (riscv_print_one_register_info): Use
14268 2020-03-13 Tom Tromey <tom@tromey.com>
14270 * mi/mi-main.c (output_register): Use common_val_print.
14272 2020-03-13 Tom Tromey <tom@tromey.com>
14274 * infcmd.c (default_print_one_register_info): Use
14277 2020-03-13 Tom Tromey <tom@tromey.com>
14279 * valprint.h (common_val_print_checked): Declare.
14280 * valprint.c (common_val_print_checked): New function.
14281 * stack.c (print_frame_arg): Use common_val_print_checked.
14283 2020-03-13 Tom Tromey <tom@tromey.com>
14285 * valprint.c (do_val_print): New function, from val_print.
14286 (val_print): Use do_val_print.
14287 (common_val_print): Use do_val_print.
14289 2020-03-13 Tom Tromey <tom@tromey.com>
14291 * valprint.c (value_print): Use scoped_value_mark.
14293 2020-03-13 Tom de Vries <tdevries@suse.de>
14296 * psymtab.c (partial_symtab::partial_symtab): Don't set
14297 globals_offset and statics_offset. Push element onto
14298 current_global_psymbols and current_static_psymbols stacks.
14299 (concat): New function.
14300 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14301 element from current_global_psymbols and current_static_psymbols
14302 stacks. Concat popped elements to global_psymbols and
14304 (add_psymbol_to_list): Use current_global_psymbols and
14305 current_static_psymbols stacks.
14306 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14307 current_static_psymbols fields.
14309 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14311 * corelow.c (sniff_core_bfd): Remove.
14312 (class core_target) <m_core_vec>: Remove.
14313 (core_target::core_target): Update.
14314 (core_file_fns): Remove.
14315 (deprecated_add_core_fns): Remove.
14316 (default_core_sniffer): Remove.
14317 (sniff_core_bfd): Remove.
14318 (default_check_format): Remove.
14319 (gdb_check_format): Remove.
14320 (core_target_open): Update.
14321 (core_target::get_core_register_section): Update.
14322 (get_core_registers_cb): Update.
14323 (core_target::fetch_registers): Update.
14324 * gdbcore.h (struct core_fns): Remove.
14325 (deprecated_add_core_fns): Remove.
14326 (default_core_sniffer): Remove.
14327 (default_check_format): Remove.
14329 2020-03-12 Tom Tromey <tom@tromey.com>
14331 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14333 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14335 2020-03-12 Tom Tromey <tom@tromey.com>
14337 * remote.c (remote_target::download_tracepoint)
14338 (remote_target::enable_tracepoint)
14339 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14340 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14343 2020-03-12 Tom Tromey <tom@tromey.com>
14345 * symfile-mem.c: Update CORE_ADDR size assert.
14347 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14349 * selftest.m4: Move to gdbsupport/.
14350 * acinclude.m4: Update path to selftest.m4.
14352 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14354 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14355 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14356 gdbarch-selfselftests.c and selftest-arch.c.
14357 (SUBDIR_UNITTESTS_OBS): Rename to...
14358 (SELFTESTS_OBS): ... this.
14359 (COMMON_SFILES): Remove disasm-selftests.c and
14360 gdbarch-selftests.c.
14361 * configure.ac: Don't add selftest-arch.{c,o} to
14363 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14364 preprocessor conditions.
14366 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14368 * configure.ac: Don't source bfd/development.sh.
14369 * selftest.m4: Modify comment.
14370 * configure: Re-generate.
14372 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14374 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14375 not "true" or "false".
14376 * configure: Re-generate.
14378 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14380 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14381 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14382 renamed to arm_nbsd_supply_gregset.
14383 (fetch_register): Update to call arm_nbsd_supply_gregset.
14384 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14385 (arm_netbsd_nat_target::fetch_registers): Update.
14386 (fetch_elfcore_registers): Removed.
14387 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14388 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14389 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14390 not require NetBSD system headers.
14391 (arm_nbsd_regset): New struct.
14392 (arm_nbsd_iterate_over_regset_sections): New function.
14393 (arm_netbsd_init_abi_common): Updated to call
14394 set_gdbarch_iterate_over_regset_sections.
14395 * arm-nbsd-tdep.h: New file.
14397 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14399 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14402 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14404 * configure: Re-generate.
14406 2020-03-11 Tom Tromey <tromey@adacore.com>
14408 * ada-typeprint.c (print_choices): Fix comment.
14410 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14412 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14413 previous item in the list, when the list has no items.
14415 2020-03-11 Tom de Vries <tdevries@suse.de>
14417 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14418 PROP_LOCLIST handling code.
14420 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14422 * buildsym-legacy.c (record_line): Pass extra parameter to
14424 * buildsym.c (buildsym_compunit::record_line): Take an extra
14425 parameter, reduce duplication in the line table, and record the
14426 is_stmt flag in the line table.
14427 * buildsym.h (buildsym_compunit::record_line): Add extra
14429 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14430 non-statement lines.
14431 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14432 this to the symtab builder.
14433 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14434 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14435 through to dwarf_record_line_1.
14436 * infrun.c (process_event_stop_test): When stepping, don't stop at
14437 a non-statement instruction, and only refresh the step info when
14438 we land in the middle of a line's range. Also add an extra
14440 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14442 * record-btrace.c (btrace_find_line_range): Only record lines
14443 marked as is-statement.
14444 * stack.c (frame_show_address): Show the frame address if we are
14445 in a non-statement sal.
14446 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14447 (maintenance_print_one_line_table): Print a header for the is_stmt
14448 column, and include is_stmt information in the output.
14449 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14450 preference to non-statements.
14451 (find_pcs_for_symtab_line): Prefer is-statement entries.
14452 (find_line_common): Likewise.
14453 * symtab.h (struct linetable_entry): Add is_stmt field.
14454 (struct symtab_and_line): Likewise.
14455 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14456 arranging the line table.
14458 2020-03-07 Tom de Vries <tdevries@suse.de>
14460 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14463 2020-03-07 Tom Tromey <tom@tromey.com>
14465 * valops.c (value_literal_complex): Remove obsolete comment.
14466 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14469 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14471 * infrun.h: Forward-declare thread_info.
14472 (set_step_info): Add thread_info parameter, add doc.
14473 * infrun.c (set_step_info): Add thread_info parameter, move doc
14475 * infrun.c (process_event_stop_test): Pass thread to
14476 set_step_info call.
14477 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14479 (prepare_one_step): Add thread_info parameter, pass it to
14480 set_step_frame and prepare_one_step (recursive) call.
14481 (step_1): Pass thread to prepare_one_step call.
14482 (step_command_fsm::should_stop): Pass thread to
14484 (until_next_fsm): Pass thread to set_step_frame call.
14485 (finish_command): Pass thread to set_step_info call.
14487 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14489 * windows-tdep.c (windows_solib_create_inferior_hook):
14490 Check if inferior is running.
14492 2020-03-06 Tom de Vries <tdevries@suse.de>
14494 * NEWS: Fix "the the".
14497 2020-03-06 Tom de Vries <tdevries@suse.de>
14499 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14501 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14503 * .dir-locals.el: Add a comment referencing the other copies of
14506 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14508 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14511 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14513 * .gitattributes: New file.
14515 2020-03-04 Tom Tromey <tom@tromey.com>
14517 * symmisc.c (print_symbol_bcache_statistics)
14518 (print_objfile_statistics): Update.
14519 * symfile.c (allocate_symtab): Use intern.
14520 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14521 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14522 macro_cache>: Remove.
14523 <string_cache>: New member.
14524 (struct objfile) <intern>: New methods.
14525 * elfread.c (elf_symtab_read): Use intern.
14526 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14527 (dwarf2_compute_name, dwarf2_physname)
14528 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14530 (guess_partial_die_structure_name): Update.
14531 (partial_die_info::fixup): Intern name.
14532 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14534 (dwarf2_name): Intern name. Update.
14535 * buildsym.c (buildsym_compunit::get_macro_table): Use
14538 2020-03-04 Tom Tromey <tom@tromey.com>
14540 * jit.c (bfd_open_from_target_memory): Make "target" const.
14541 * corefile.c (gnutarget): Now const.
14542 * gdbcore.h (gnutarget): Now const.
14544 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14546 * NEWS: Mention support for WOW64 processes.
14547 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14548 (amd64_windows_segment_register_p): Remove static.
14549 (_initialize_amd64_windows_nat): Update.
14550 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14551 * i386-windows-nat.c (context_offset): Update.
14552 (i386_mappings): Rename and remove static.
14553 (i386_windows_segment_register_p): Remove static.
14554 (_initialize_i386_windows_nat): Update.
14555 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14556 (STATUS_WX86_SINGLE_STEP): New macro.
14557 (EnumProcessModulesEx): New macro.
14558 (Wow64SuspendThread): New macro.
14559 (Wow64GetThreadContext): New macro.
14560 (Wow64SetThreadContext): New macro.
14561 (Wow64GetThreadSelectorEntry): New macro.
14562 (windows_set_context_register_offsets): Add static.
14563 (windows_set_segment_register_p): Likewise.
14564 (windows_add_thread): Adapt for WOW64 processes.
14565 (windows_fetch_one_register): Likewise.
14566 (windows_nat_target::fetch_registers): Likewise.
14567 (windows_store_one_register): Likewise.
14568 (display_selector): Likewise.
14569 (display_selectors): Likewise.
14570 (handle_exception): Likewise.
14571 (windows_continue): Likewise.
14572 (windows_nat_target::resume): Likewise.
14573 (windows_add_all_dlls): Likewise.
14574 (do_initial_windows_stuff): Likewise.
14575 (windows_nat_target::attach): Likewise.
14576 (windows_get_exec_module_filename): Likewise.
14577 (windows_nat_target::create_inferior): Likewise.
14578 (windows_xfer_siginfo): Likewise.
14579 (_initialize_loadable): Initialize Wow64SuspendThread,
14580 Wow64GetThreadContext, Wow64SetThreadContext,
14581 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14582 * windows-nat.h (windows_set_context_register_offsets):
14583 Remove declaration.
14584 (windows_set_segment_register_p): Likewise.
14585 (i386_windows_segment_register_p): Add declaration.
14586 (amd64_windows_segment_register_p): Likewise.
14588 2020-03-04 Luis Machado <luis.machado@linaro.org>
14590 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14591 in "info registers" for AArch64/ARM.
14593 The change caused "info registers" to not print GPR's.
14597 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14599 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14600 when reg->group is empty and reggroup is not.
14602 2020-03-03 Tom Tromey <tromey@adacore.com>
14604 * dwarf2/frame.c (struct dwarf2_frame_cache)
14605 <checked_tailcall_bottom, entry_cfa_sp_offset,
14606 entry_cfa_sp_offset_p>: Remove members.
14607 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14608 (dwarf2_frame_prev_register): Don't call
14609 dwarf2_tailcall_sniffer_first.
14610 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14611 * frame-unwind.c (add_unwinder): New fuction.
14612 (frame_unwind_init): Use it. Add tailcall unwinder.
14614 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14615 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14617 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14618 value should be printed as true.
14620 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14622 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14623 (windows_init_abi): Set and use windows_so_ops.
14625 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14627 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14628 when verifying if dealing with a convenience variable.
14630 2020-03-03 Luis Machado <luis.machado@linaro.org>
14632 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14634 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14636 * infrun.c (gdbarch_supports_displaced_stepping): New.
14637 (use_displaced_stepping): Break up conditions in smaller pieces.
14638 Use gdbarch_supports_displaced_stepping.
14639 (displaced_step_prepare_throw): Use
14640 gdbarch_supports_displaced_stepping.
14642 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14644 * NEWS: Mention new behaviour of the history filename.
14645 * top.c (write_history_p): Add comment.
14646 (show_write_history_p): Add header comment, give a different
14647 message when history writing is on, but the history filename is
14649 (history_filename): Add comment.
14650 (history_filename_empty): New function.
14651 (show_history_filename): Add header comment, give a different
14652 message when the filename is empty.
14653 (init_history): Compare history_filename against nullptr, and only
14654 read history if the filename is not empty.
14655 (set_history_filename): Add header comment, and only make
14656 non-empty filenames absolute.
14657 (init_main): Make the filename argument to 'set history filename'
14660 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14662 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14663 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14664 (fetch_fp_register): Update.
14665 (fetch_fp_regs): Update.
14666 (store_fp_register): Update.
14667 (store_fp_regs): Update.
14668 (arm_netbsd_nat_target::read_description): New function.
14669 (fetch_elfcore_registers): Update.
14671 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14673 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14674 general_thread if the stop reply is missing a thread-id.
14675 (remote_target::process_stop_reply): Use the first non-exited
14676 thread if the target didn't pass a thread-id.
14677 * infrun.c (do_target_wait): Move call to
14678 switch_to_inferior_no_thread to ....
14679 (do_target_wait_1): ... here.
14681 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14683 * debuginfod-support.c: Include defs.h first.
14685 2020-02-28 Tom de Vries <tdevries@suse.de>
14687 * symfile.c (set_initial_language): Use default language for lookup.
14689 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14691 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14692 reader variable, pass `this` to read_cutu_die_from_dwo.
14694 2020-02-27 Aaron Merey <amerey@redhat.com>
14696 * source.c (open_source_file): Check for nullptr when computing
14699 2020-02-27 Tom Tromey <tromey@adacore.com>
14701 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14703 (dwarf2_add_field): Don't update nfields.
14704 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14706 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14708 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14711 2020-02-26 Tom Tromey <tom@tromey.com>
14713 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14714 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14715 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14716 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14719 2020-02-26 Tom Tromey <tom@tromey.com>
14721 * dwarf2/index-write.c (psym_index_map): Change type.
14722 (add_address_entry_worker, write_one_signatured_type)
14723 (recursively_count_psymbols, recursively_write_psymbols)
14724 (class debug_names, psyms_seen_size, write_gdbindex)
14725 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14727 2020-02-26 Aaron Merey <amerey@redhat.com>
14729 * Makefile.in: Handle optional debuginfod support.
14731 * README: Add --with-debuginfod summary.
14732 * config.in: Regenerate.
14733 * configure: Regenerate.
14734 * configure.ac: Handle optional debuginfod support.
14735 * debuginfod-support.c: debuginfod helper functions.
14736 * debuginfod-support.h: Ditto.
14737 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14739 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14740 when a dwz file cannot be found.
14741 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14742 debuginfo file cannot be found.
14743 * source.c (open_source_file): Query debuginfod servers when a
14744 source file cannot be found.
14745 * top.c (print_gdb_configuration): Include
14746 --{with,without}-debuginfod in the output.
14748 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14750 * thread.c (thr_try_catch_cmd): Print thread name.
14752 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14754 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14755 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14756 dwarf2_fetch_die_type_sect_off): Move to...
14757 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14758 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14759 dwarf2_fetch_die_type_sect_off): ... here.
14760 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14761 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14762 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14764 2020-02-26 Tom de Vries <tdevries@suse.de>
14767 * symfile.c (set_initial_language): Exit-early if
14768 language_mode == language_mode_manual.
14770 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14772 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14773 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14774 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14776 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14778 * gdbtypes.c (create_array_type_with_stride): Handle negative
14780 * valarith.c (value_subscripted_rvalue): Likewise.
14782 2020-02-25 Luis Machado <luis.machado@linaro.org>
14784 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14786 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14788 * loc.h (dwarf2_get_die_type): Move to...
14789 * read.h (dwarf2_get_die_type): ... here.
14790 * read.c (dwarf2_get_die_type): Move doc to header.
14792 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14794 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14795 'gnulib/Makefile.in' to the list.
14797 2020-02-24 Tom Tromey <tom@tromey.com>
14799 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14801 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14804 2020-02-24 Tom Tromey <tom@tromey.com>
14806 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14808 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14809 (dw2_do_instantiate_symtab, dw2_get_file_names)
14810 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14812 2020-02-24 Tom Tromey <tom@tromey.com>
14814 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14815 make_scoped_restore.
14816 (dwarf2_psymtab::read_symtab): Don't clear
14817 reading_partial_symbols.
14819 2020-02-24 Tom de Vries <tdevries@suse.de>
14822 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14824 2020-02-24 Tom de Vries <tdevries@suse.de>
14826 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14827 commands layout next/prev/regs.
14829 2020-02-22 Tom Tromey <tom@tromey.com>
14831 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14832 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14834 2020-02-22 Tom Tromey <tom@tromey.com>
14836 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14838 2020-02-22 Tom Tromey <tom@tromey.com>
14840 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14841 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14842 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14843 * tui/tui.c (_initialize_tui): Add usage text.
14845 2020-02-22 Tom Tromey <tom@tromey.com>
14847 * tui/tui-win.c (tui_set_focus_command)
14848 (tui_set_win_height_command): Use error_no_arg.
14849 (_initialize_tui_win): Update help text.
14850 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14852 2020-02-22 Tom Tromey <tom@tromey.com>
14854 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14855 * tui/tui-disasm.h (struct tui_disasm_window)
14856 <display_start_addr>: Declare.
14857 * tui/tui-source.h (struct tui_source_window)
14858 <display_start_addr>: Declare.
14859 * tui/tui-winsource.h (struct tui_source_window_base)
14860 <show_source_line, display_start_addr>: New methods.
14861 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14862 Rename and move to protected section.
14863 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14864 (tui_source_window_base::do_erase_source_content): Update.
14865 (tui_source_window_base::show_source_line): Now a method.
14866 (tui_source_window_base::show_source_content)
14867 (tui_source_window_base::tui_source_window_base)
14868 (tui_source_window_base::rerender)
14869 (tui_source_window_base::refill)
14870 (tui_source_window_base::do_scroll_horizontal)
14871 (tui_source_window_base::set_is_exec_point_at)
14872 (tui_source_window_base::update_breakpoint_info)
14873 (tui_source_window_base::update_exec_info): Update.
14874 * tui/tui-source.c (tui_source_window::set_contents)
14875 (tui_source_window::showing_source_p)
14876 (tui_source_window::do_scroll_vertical)
14877 (tui_source_window::location_matches_p)
14878 (tui_source_window::line_is_displayed): Update.
14879 (tui_source_window::display_start_addr): New method.
14880 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14881 (tui_disasm_window::do_scroll_vertical)
14882 (tui_disasm_window::location_matches_p): Update.
14883 (tui_disasm_window::display_start_addr): New method.
14885 2020-02-22 Tom Tromey <tom@tromey.com>
14887 * NEWS: Add entry for gdb.register_window_type.
14888 * tui/tui-layout.h (window_factory): New typedef.
14889 (tui_register_window): Declare.
14890 * tui/tui-layout.c (saved_tui_windows): New global.
14891 (tui_apply_current_layout): Use it.
14892 (tui_register_window): New function.
14893 * python/python.c (do_start_initialization): Call
14894 gdbpy_initialize_tui.
14895 (python_GdbMethods): Add "register_window_type" function.
14896 * python/python-internal.h (gdbpy_register_tui_window)
14897 (gdbpy_initialize_tui): Declare.
14898 * python/py-tui.c: New file.
14899 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14901 2020-02-22 Tom Tromey <tom@tromey.com>
14903 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14905 2020-02-22 Tom Tromey <tom@tromey.com>
14907 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14908 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14909 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14910 (tui_set_win_focus_to): Move from tui-win.c.
14912 2020-02-22 Tom Tromey <tom@tromey.com>
14914 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14916 (known_window_types): New global.
14917 (tui_get_window_by_name): Reimplement.
14918 (initialize_known_windows): New function.
14919 (validate_window_name): Rewrite.
14920 (_initialize_tui_layout): Call initialize_known_windows.
14922 2020-02-22 Tom Tromey <tom@tromey.com>
14924 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14926 * tui/tui-winsource.h (struct tui_source_window_base)
14927 <tui_source_window_base>: Remove parameter.
14928 * tui/tui-winsource.c
14929 (tui_source_window_base::tui_source_window_base): Remove
14931 (tui_source_window_base::refill): Update.
14932 * tui/tui-stack.h (struct tui_locator_window)
14933 <tui_locator_window>: Update.
14934 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14935 Default the constructor.
14936 * tui/tui-regs.h (struct tui_data_item_window)
14937 <tui_data_item_window>: Default the constructor.
14938 (struct tui_data_window) <tui_data_window>: Likewise.
14939 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14940 Default the constructor.
14941 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14942 Default the constructor.
14944 (struct tui_win_info) <tui_win_info>: Default the constructor.
14945 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14946 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14947 Default the constructor.
14949 2020-02-22 Tom Tromey <tom@tromey.com>
14951 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14952 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14953 * tui/tui-win.c (tui_resize_all): Don't call
14954 tui_delete_invisible_windows.
14955 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14957 (tui_set_layout): Update.
14958 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14959 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14960 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14962 2020-02-22 Tom Tromey <tom@tromey.com>
14964 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14967 2020-02-22 Tom Tromey <tom@tromey.com>
14969 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14971 2020-02-22 Tom Tromey <tom@tromey.com>
14973 * tui/tui-winsource.h (struct tui_source_window_iterator)
14974 <inner_iterator>: New etytypedef.
14975 <tui_source_window_iterator>: Take "end" parameter.
14976 <tui_source_window_iterator>: Take iterator.
14977 <operator*, advance>: Update.
14978 <m_iter>: Change type.
14979 <m_end>: New field.
14980 (struct tui_source_windows) <begin, end>: Update.
14981 * tui/tui-layout.c (tui_windows): New global.
14982 (tui_apply_current_layout): Clear tui_windows.
14983 (tui_layout_window::apply): Update tui_windows.
14984 * tui/tui-data.h (tui_windows): Declare.
14985 (all_tui_windows): Now inline function.
14986 (class tui_window_iterator, struct all_tui_windows): Remove.
14988 2020-02-22 Tom Tromey <tom@tromey.com>
14991 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14992 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14994 (class tui_layout_window) <get_sizes>: Likewise.
14995 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14997 <get_sizes>: Add "height" argument.
14998 <m_vertical>: New field.
14999 * tui/tui-layout.c (tui_layout_split::clone): Update.
15000 (tui_layout_split::get_sizes): Add "height" argument.
15001 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
15002 (tui_new_layout_command): Parse "-horizontal".
15003 (_initialize_tui_layout): Update help string.
15004 (tui_layout_split::specification): Add "-horizontal" when needed.
15005 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
15007 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
15010 2020-02-22 Tom Tromey <tom@tromey.com>
15012 * tui/tui-layout.h (enum tui_adjust_result): New.
15013 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
15014 (class tui_layout_window) <adjust_size>: Return
15015 tui_adjust_result. Rewrite.
15016 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
15017 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
15019 2020-02-22 Tom Tromey <tom@tromey.com>
15021 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
15022 parameter and return types.
15023 (class tui_layout_base) <specification>: Add "depth".
15024 (class tui_layout_window) <specification>: Add "depth".
15025 (class tui_layout_split) <specification>: Add "depth".
15026 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
15028 (tui_new_layout_command): Parse sub-layouts.
15029 (_initialize_tui_layout): Update help string.
15030 (tui_layout_window::specification): Add "depth".
15031 (add_layout_command): Update.
15033 2020-02-22 Tom Tromey <tom@tromey.com>
15035 * NEWS: Add "tui new-layout" item.
15036 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
15037 Add new-layout command to help text.
15038 (validate_window_name): New function.
15039 (tui_new_layout_command): New function.
15040 (_initialize_tui_layout): Register "new-layout".
15041 (tui_layout_window::specification): New method.
15042 (tui_layout_window::specification): New method.
15043 * tui/tui-layout.h (class tui_layout_base) <specification>: New
15045 (class tui_layout_window) <specification>: New method.
15046 (class tui_layout_split) <specification>: New method.
15048 2020-02-22 Tom Tromey <tom@tromey.com>
15050 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
15051 * tui/tui-win.c (window_name_completer): Update comment.
15052 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
15054 (class tui_layout_window) <replace_window>: Likewise.
15055 (class tui_layout_split) <replace_window>: Likewise.
15056 (tui_set_layout): Don't declare.
15057 (tui_set_initial_layout): Declare function.
15058 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
15059 (asm_regs_layout): New globals.
15060 (tui_current_layout, show_layout): Remove.
15061 (tui_set_layout, tui_add_win_to_layout): Rewrite.
15062 (find_layout, tui_apply_layout): New function.
15063 (layout_completer): Remove.
15064 (tui_next_layout): Reimplement.
15065 (tui_next_layout_command): New function.
15066 (tui_set_initial_layout, tui_prev_layout_command): New functions.
15067 (tui_regs_layout): Reimplement.
15068 (tui_regs_layout_command): New function.
15069 (extract_display_start_addr): Rewrite.
15070 (next_layout, prev_layout): Remove.
15071 (tui_layout_window::replace_window): New method.
15072 (tui_layout_split::replace_window): New method.
15073 (destroy_layout): New function.
15074 (layout_list): New global.
15075 (add_layout_command): New function.
15076 (initialize_layouts): Update.
15077 (tui_layout_command): New function.
15078 (_initialize_tui_layout): Install "layout" commands.
15079 * tui/tui-data.h (enum tui_layout_type): Remove.
15080 (tui_current_layout): Don't declare.
15082 2020-02-22 Tom Tromey <tom@tromey.com>
15084 * tui/tui-regs.c (tui_reg_layout): Remove.
15085 (tui_reg_command): Use tui_regs_layout.
15086 * tui/tui-layout.h (tui_reg_command): Declare.
15087 * tui/tui-layout.c (tui_reg_command): New function.
15089 2020-02-22 Tom Tromey <tom@tromey.com>
15091 * tui/tui.c (tui_rl_delete_other_windows): Call
15092 tui_remove_some_windows.
15093 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15095 (class tui_layout_window) <remove_windows>: New method.
15096 (class tui_layout_split) <remove_windows>: Declare.
15097 (tui_remove_some_windows): Declare.
15098 * tui/tui-layout.c (tui_remove_some_windows): New function.
15099 (tui_layout_split::remove_windows): New method.
15101 2020-02-22 Tom Tromey <tom@tromey.com>
15103 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15104 * tui/tui-layout.h (tui_next_layout): Declare.
15105 * tui/tui-layout.c (tui_next_layout): New function.
15107 2020-02-22 Tom Tromey <tom@tromey.com>
15109 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15110 correct coordinates.
15112 2020-02-22 Tom Tromey <tom@tromey.com>
15114 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15115 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15118 2020-02-22 Tom Tromey <tom@tromey.com>
15120 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15121 TUI_DISASM_WIN, not tui_win_list.
15123 2020-02-22 Tom Tromey <tom@tromey.com>
15125 * valprint.c (generic_val_print_enum_1)
15126 (val_print_type_code_flags): Style member names.
15127 * rust-lang.c (val_print_struct, rust_print_enum)
15128 (rust_print_struct_def, rust_internal_print_type): Style member
15130 * p-valprint.c (pascal_object_print_value_fields): Style member
15131 names. Only call fprintf_symbol_filtered for static members.
15132 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15133 * f-valprint.c (f_val_print): Style member names.
15134 * f-typeprint.c (f_type_print_base): Style member names.
15135 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15136 call fprintf_symbol_filtered for static members.
15137 (cp_print_class_member): Style member names.
15138 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15140 * ada-valprint.c (ada_print_scalar): Style enum names.
15141 (ada_val_print_enum): Likewise.
15142 * ada-typeprint.c (print_enum_type): Style enum names.
15144 2020-02-21 Tom Tromey <tom@tromey.com>
15146 * psympriv.h (struct partial_symtab): Update comment.
15148 2020-02-21 Tom Tromey <tromey@adacore.com>
15150 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15153 2020-02-21 Tom de Vries <tdevries@suse.de>
15156 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15157 if dependencies[i]->user != NULL.
15159 2020-02-21 Ali Tamur <tamur@google.com>
15161 * dwarf2/read.c (dwarf2_name): Add null check.
15163 2020-02-20 Tom Tromey <tom@tromey.com>
15165 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15166 ">=", in binary search.
15167 (dwarf2_find_containing_comp_unit): New overload.
15168 (run_test): New self-test.
15169 (_initialize_dwarf2_read): Register new test.
15171 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
15173 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15174 * riscv-tdep.h: Likewise.
15175 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15177 * features/riscv/64bit-csr.xml: Regenerated.
15179 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15180 Tom Tromey <tom@tromey.com>
15182 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15183 of 'fputc_unfiltered'.
15184 (putchar_unfiltered): Call 'fputc_unfiltered'.
15185 (fputc_unfiltered): Call 'fputs_unfiltered'.
15187 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15189 * config.in: Regenerate.
15190 * configure: Regenerate.
15191 * configure.ac: Add --with-python-libdir option.
15192 * main.c: Use WITH_PYTHON_LIBDIR.
15194 2020-02-19 Tom Tromey <tom@tromey.com>
15196 * symtab.c (general_symbol_info::compute_and_set_names): Use
15197 obstack_strndup. Simplify call to symbol_set_demangled_name.
15199 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
15201 * dwarf2/read.c (allocate_signatured_type_table,
15202 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15203 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15204 Remove objfile parameter, update all callers.
15206 2020-02-19 Doug Evans <dje@google.com>
15209 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15210 rust_enum_variant calculation.
15212 2020-02-19 Tom Tromey <tromey@adacore.com>
15214 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15216 2020-02-19 Tom Tromey <tromey@adacore.com>
15218 * ada-lang.c (cache_symbol): Use obstack_strdup.
15220 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15222 * configure: Regenerate.
15224 2020-02-19 Tom Tromey <tromey@adacore.com>
15226 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15229 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
15231 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15233 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15235 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15236 if GDBSERVER is not defined.
15237 (riscv_tdesc_cache): Likewise, also store const target_desc.
15238 (STATIC_IN_GDB): Define.
15239 (riscv_create_target_description): Update declaration with
15241 (riscv_lookup_target_description): New function, only define if
15242 GDBSERVER is not defined.
15243 * arch/riscv.h (riscv_create_target_description): Declare only
15244 when GDBSERVER is defined.
15245 (riscv_lookup_target_description): New declaration when GDBSERVER
15247 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15248 (riscv_linux_read_features): ...this, and return
15249 riscv_gdbarch_features instead of target_desc.
15250 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15251 (riscv_linux_read_description): Rename to...
15252 (riscv_linux_read_features): ...this.
15253 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15254 Update to use riscv_gdbarch_features and
15255 riscv_lookup_target_description.
15256 * riscv-tdep.c (riscv_find_default_target_description): Use
15257 riscv_lookup_target_description instead of
15258 riscv_create_target_description.
15260 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15262 * valprint.c (generic_val_print_enum_1): When printing a flag
15263 enum with value 0 and there is no enumerator with value 0, print
15264 just "0" instead of "(unknown: 0x0)".
15266 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15268 * valprint.c (generic_val_print_enum_1): Print unknown part of
15271 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15273 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15274 flag enums to contain duplicate enumerators.
15275 * valprint.c (generic_val_print_enum_1): Update comment.
15277 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15279 * dwarf2/read.c: Include "count-one-bits.h".
15280 (update_enumeration_type_from_children): If an enumerator has
15281 multiple bits set, don't treat the enumeration as a "flag enum".
15282 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15283 of flag enums have 0 or 1 bit set.
15285 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15287 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15289 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15290 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15291 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15292 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15293 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15295 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15297 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15299 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15301 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15302 displaced_step_closure_up.
15303 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15304 (struct displaced_step_closure_up):
15305 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15306 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15307 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15309 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15310 * gdbarch.c, gdbarch.h: Re-generate.
15311 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15312 displaced_step_closure_up.
15313 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15314 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15315 * infrun.h (displaced_step_closure_up): New type alias.
15316 (struct displaced_step_inferior_state) <step_closure>: Change
15317 type to displaced_step_closure_up.
15318 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15319 displaced_step_closure_up.
15320 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15322 2020-02-14 Tom Tromey <tom@tromey.com>
15324 * minidebug.c (gnu_debug_key): New global.
15325 (find_separate_debug_file_in_section): Use it.
15327 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15329 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15331 * gdbarch.c: Re-generate.
15332 * gdbarch.h: Re-generate.
15333 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15335 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15336 type to std::unique_ptr.
15337 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15338 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15339 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15340 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15341 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15342 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15343 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15344 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15345 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15347 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15349 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15351 (displaced_step_clear): Rename to...
15352 (displaced_step_reset): ... this. Just call displaced->reset ().
15353 (displaced_step_clear_cleanup): Rename to...
15354 (displaced_step_reset_cleanup): ... this.
15355 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15356 (displaced_step_fixup): Likewise.
15357 (resume_1): Likewise.
15358 (handle_inferior_event): Restore child's memory before calling
15359 displaced_step_fixup on the parent.
15360 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15361 to std::unique_ptr.
15362 <step_closure>: Change type to std::unique_ptr.
15364 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15366 * arm-tdep.c: Include count-one-bits.h.
15367 (cleanup_block_store_pc): Use count_one_bits.
15368 (cleanup_block_load_pc): Use count_one_bits.
15369 (arm_copy_block_xfer): Use count_one_bits.
15370 (thumb2_copy_block_xfer): Use count_one_bits.
15371 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15372 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15373 (thumb_get_next_pcs_raw): Use count_one_bits.
15374 (arm_get_next_pcs_raw): Use count_one_bits_l.
15375 * arch/arm.c (bitcount): Remove.
15376 * arch/arm.h (bitcount): Remove.
15378 2020-02-14 Tom Tromey <tromey@adacore.com>
15380 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15382 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15383 * dwarf2/loc.c (call_site_find_chain_1): Return
15384 unique_xmalloc_ptr.
15385 (call_site_find_chain): Likewise.
15387 2020-02-14 Richard Biener <rguenther@suse.de>
15389 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15390 on expression with division operators.
15392 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15394 * MAINTAINERS (Write After Approval): Adding myself.
15396 2020-02-12 Tom Tromey <tom@tromey.com>
15398 * event-loop.c (event_data, gdb_event, event_handler_func):
15401 2020-02-12 Tom Tromey <tom@tromey.com>
15403 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15404 (dwarf2_frame_objfile_data): Add comment.
15405 (find_comp_unit, set_comp_unit): New functions.
15406 (dwarf2_frame_find_fde): Use find_comp_unit.
15407 (dwarf2_build_frame_info): Use set_comp_unit.
15409 2020-02-12 Tom Tromey <tom@tromey.com>
15411 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15412 (comp_unit): Don't initialize objfile.
15413 (execute_cfa_program): Add text_offset parameter.
15414 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15415 (dwarf2_frame_cache): Update.
15416 (dwarf2_build_frame_info): Don't set "objfile" member.
15418 2020-02-12 Tom Tromey <tom@tromey.com>
15420 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15421 (decode_frame_entry): Likewise.
15422 (dwarf2_build_frame_info): Update.
15424 2020-02-12 Tom Tromey <tom@tromey.com>
15426 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15427 (decode_frame_entry_1): Use the comp_unit obstack.
15429 2020-02-12 Tom Tromey <tom@tromey.com>
15431 * dwarf2/frame.c (struct comp_unit): Add initializers and
15433 (dwarf2_frame_objfile_data): Store a comp_unit.
15434 (dwarf2_frame_find_fde): Update.
15435 (dwarf2_build_frame_info): Use "new".
15437 2020-02-12 Tom Tromey <tom@tromey.com>
15439 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15440 (dwarf2_fde_table): Typedef for std::vector.
15441 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15442 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15443 (decode_frame_entry): Update.
15444 (dwarf2_build_frame_info): Use "new".
15446 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15448 * arm-tdep.c (arm_gdbarch_init): Update.
15449 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15450 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15451 have_neon, is_m>: Change to bool.
15453 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15455 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15457 2020-02-12 Tom Tromey <tom@tromey.com>
15459 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15461 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15463 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15464 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15466 2020-02-11 Tom Tromey <tom@tromey.com>
15468 * psymtab.h: Update comment.
15470 2020-02-11 Tom Tromey <tom@tromey.com>
15472 * gdb_obstack.h (struct auto_obstack): Use
15473 DISABLE_COPY_AND_ASSIGN.
15475 2020-02-11 Tom Tromey <tom@tromey.com>
15477 * dwarf2/frame.h (struct objfile): Don't forward declare.
15479 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15481 * cris-tdep.c (cris_supply_gregset): Change signature to match
15482 what struct regset expects.
15483 (cris_regset): New struct.
15484 (fetch_core_registers): Remove.
15485 (cris_iterate_over_regset_sections): New function.
15486 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15487 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15489 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15491 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15494 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15496 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15498 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15500 * configure: Re-generate.
15502 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15504 * configure: Re-generate.
15506 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15508 * acinclude: Update warning.m4 path.
15509 * warning.m4: Move to gdbsupport.
15511 2020-02-11 Tom Tromey <tromey@adacore.com>
15513 * remote.c (remote_console_output): Update.
15514 * printcmd.c (printf_command): Update.
15515 * event-loop.c (gdb_wait_for_event): Update.
15516 * linux-nat.c (sigchld_handler): Update.
15517 * remote-sim.c (gdb_os_write_stdout): Update.
15518 (gdb_os_flush_stdout): Update.
15519 (gdb_os_flush_stderr): Update.
15520 (gdb_os_write_stderr): Update.
15521 * exceptions.c (print_exception): Update.
15522 * remote-fileio.c (remote_fileio_func_read): Update.
15523 (remote_fileio_func_write): Update.
15524 * tui/tui.c (tui_enable): Update.
15525 * tui/tui-interp.c (tui_interp::init): Update.
15526 * utils.c (init_page_info): Update.
15527 (putchar_unfiltered, fputc_unfiltered): Update.
15528 (gdb_flush): Update.
15529 (emit_style_escape): Update.
15530 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15531 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15532 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15533 (stderr_file::write): Update.
15534 (stderr_file::puts): Update.
15535 * ui-file.h (ui_file_isatty, ui_file_write)
15536 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15537 (ui_file_puts): Don't declare.
15539 2020-02-10 Tom de Vries <tdevries@suse.de>
15541 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15542 sentinel to char *.
15544 2020-02-09 Tom de Vries <tdevries@suse.de>
15546 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15547 filename if it matches "<artificial>".
15549 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15551 * windows-tdep.c (struct enum_value_name): New struct.
15552 (create_enum): New function.
15553 (windows_get_siginfo_type): Create and use enum types.
15555 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15557 * NEWS: Mention $_siginfo support for Windows.
15558 * windows-nat.c (handle_exception): Set siginfo_er.
15559 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15560 (windows_xfer_siginfo): New function.
15561 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15562 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15563 (init_windows_gdbarch_data): New function.
15564 (get_windows_gdbarch_data): New function.
15565 (windows_get_siginfo_type): New function.
15566 (windows_init_abi): Register windows_get_siginfo_type.
15567 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15569 2020-02-08 Tom Tromey <tom@tromey.com>
15571 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15572 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15573 <keep>: Declare method.
15574 <m_keep>: Remove member.
15575 <~cutu_reader>: Remove.
15576 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15577 (cutu_reader::cutu_reader): Update.
15578 (cutu_reader::keep): Rename from ~cutu_reader.
15579 (process_psymtab_comp_unit, build_type_psymtabs_1)
15580 (process_skeletonless_type_unit, load_partial_comp_unit)
15581 (load_full_comp_unit, dwarf2_read_addr_index)
15582 (read_signatured_type): Update.
15584 2020-02-08 Tom Tromey <tom@tromey.com>
15586 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15587 "want_partial_unit" parameter.
15588 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15589 Inline check for DW_TAG_partial_unit.
15590 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15592 2020-02-08 Tom Tromey <tom@tromey.com>
15594 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15596 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15599 2020-02-08 Tom Tromey <tom@tromey.com>
15601 * dwarf2/read.c (read_address): Move to comp-unit.c.
15602 (dwarf2_rnglists_process, dwarf2_ranges_process)
15603 (read_attribute_value, dwarf_decode_lines_1)
15604 (var_decode_location, decode_locdesc): Update.
15605 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15606 read.c. Remove "cu" parameter.
15607 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15610 2020-02-08 Tom Tromey <tom@tromey.com>
15612 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15613 (read_indirect_line_string): Update.
15614 * dwarf2/comp-unit.c (read_offset): Remove.
15615 (read_comp_unit_head): Update.
15616 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15618 (read_offset): Don't declare.
15620 2020-02-08 Tom Tromey <tom@tromey.com>
15622 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15623 * dwarf2/read.c (struct comp_unit_head): Move to
15624 dwarf2/comp-unit.h.
15625 (enum class rcuh_kind): Move to comp-unit.h.
15626 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15627 (read_comp_unit_head, error_check_comp_unit_head)
15628 (read_and_check_comp_unit_head): Move to comp-unit.c.
15629 (read_offset, dwarf_unit_type_name): Likewise.
15630 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15631 (cutu_reader::cutu_reader, read_call_site_scope)
15632 (find_partial_die, follow_die_offset): Update.
15633 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15635 2020-02-08 Tom Tromey <tom@tromey.com>
15637 * dwarf2/read.c (read_offset_1): Move to leb.c.
15638 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15639 (dwarf_decode_macro_bytes): Update.
15640 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15641 * dwarf2/leb.h (read_offset): Declare.
15643 2020-02-08 Tom Tromey <tom@tromey.com>
15645 * dwarf2/read.c (dwarf2_section_size): Remove.
15646 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15648 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15650 2020-02-08 Tom Tromey <tom@tromey.com>
15652 * dwarf2/read.c (read_initial_length): Move to leb.c.
15653 * dwarf2/leb.h (read_initial_length): Declare.
15654 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15655 handle_nonstd parameter.
15656 * dwarf2/frame.c (read_initial_length): Remove.
15657 (decode_frame_entry_1): Update.
15659 2020-02-08 Tom Tromey <tom@tromey.com>
15661 * dwarf2/loc.c (dwarf2_find_location_expression)
15662 (dwarf_evaluate_loc_desc::get_tls_address)
15663 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15664 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15665 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15666 (dwarf2_compile_property_to_c)
15667 (dwarf2_loc_desc_get_symbol_read_needs)
15668 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15669 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15670 (loclist_describe_location, loclist_tracepoint_var_ref)
15671 (loclist_generate_c_location): Update.
15672 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15673 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15674 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15675 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15676 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15677 (dwarf2_per_cu_data::addr_size)
15678 (dwarf2_per_cu_data::ref_addr_size)
15679 (dwarf2_per_cu_data::text_offset)
15680 (dwarf2_per_cu_data::addr_type): Now methods.
15681 (per_cu_header_read_in): Make per_cu "const".
15682 (dwarf2_version): Remove.
15683 (dwarf2_per_cu_data::int_type): Now a method.
15684 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15685 (set_die_type, read_array_type, read_subrange_index_type)
15686 (read_tag_string_type, read_subrange_type): Update.
15687 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15688 offset_size, ref_addr_size, text_offset, addr_type, version,
15689 objfile, int_type, addr_sized_int_type>: Declare methods.
15691 2020-02-08 Tom Tromey <tom@tromey.com>
15693 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15696 2020-02-08 Tom Tromey <tom@tromey.com>
15698 * dwarf2/read.h (dwarf_line_debug): Declare.
15699 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15700 * dwarf2/read.c: Move line_header code to new files.
15701 (dwarf_line_debug): No longer static.
15702 * dwarf2/line-header.c: New file.
15703 * dwarf2/line-header.h: New file.
15705 2020-02-08 Tom Tromey <tom@tromey.com>
15707 * dwarf2/read.c (struct line_header) <file_full_name,
15708 file_file_name>: Return unique_xmalloc_ptr.
15709 (line_header::file_file_name): Update.
15710 (line_header::file_full_name): Update.
15711 (dw2_get_file_names_reader): Update.
15712 (macro_start_file): Update.
15714 2020-02-08 Tom Tromey <tom@tromey.com>
15716 * dwarf2/read.c (struct line_header) <file_full_name,
15717 file_file_name>: Declare methods.
15718 (dw2_get_file_names_reader): Update.
15719 (file_file_name): Now a method.
15720 (file_full_name): Likewise.
15721 (macro_start_file): Update.
15723 2020-02-08 Tom Tromey <tom@tromey.com>
15725 * dwarf2/read.c (dwarf_always_disassemble)
15726 (show_dwarf_always_disassemble): Move to loc.c.
15727 (_initialize_dwarf2_read): Move "always-disassemble" registration
15729 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15730 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15732 (show_dwarf_always_disassemble): Move from read.c.
15733 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15735 2020-02-08 Tom Tromey <tom@tromey.com>
15737 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15738 (create_quick_file_names_table): Return htab_up.
15739 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15741 * dwarf2/read.h (struct dwarf2_per_objfile)
15742 <quick_file_names_table>: Now htab_up.
15744 2020-02-08 Tom Tromey <tom@tromey.com>
15746 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15748 2020-02-08 Tom Tromey <tom@tromey.com>
15750 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15752 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15753 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15754 (abbrev_table::abbrev_table): No longer inline.
15755 (ABBREV_HASH_SIZE): Remove.
15756 (abbrev_table::m_abbrevs): Now an htab_up.
15758 2020-02-08 Tom Tromey <tom@tromey.com>
15760 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15761 (cutu_reader): Update.
15762 (build_type_psymtabs_1): Update.
15763 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15764 (abbrev_table::alloc_abbrev): Update.
15765 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15766 (abbrev_table::read): New static method, renamed from
15767 abbrev_table_read_table.
15768 (abbrev_table::alloc_abbrev)
15769 (abbrev_table::add_abbrev): Now private.
15770 (abbrev_table::abbrev_table): Now private.
15771 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15773 2020-02-08 Tom Tromey <tom@tromey.com>
15775 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15776 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15779 2020-02-08 Tom Tromey <tom@tromey.com>
15781 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15783 (lookup_dwo_unit_in_dwp): Update.
15784 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15787 2020-02-08 Tom Tromey <tom@tromey.com>
15789 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15792 2020-02-08 Tom Tromey <tom@tromey.com>
15794 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15796 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15797 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15798 Change type to htab_up.
15800 2020-02-08 Tom Tromey <tom@tromey.com>
15802 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15803 htab_up. Don't allocate on obstack.
15804 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15805 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15806 Change type to htab_up.
15808 2020-02-08 Tom Tromey <tom@tromey.com>
15810 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15811 Change type to htab_up.
15812 * dwarf2/read.c (create_signatured_type_table_from_index)
15813 (create_signatured_type_table_from_debug_names)
15814 (create_all_type_units, add_type_unit)
15815 (lookup_dwo_signatured_type, lookup_signatured_type)
15816 (process_skeletonless_type_unit): Update.
15817 (create_debug_type_hash_table, create_debug_types_hash_table):
15818 Change type of types_htab.
15819 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15820 htab_up. Don't allocate on obstack.
15821 (create_cus_hash_table): Change type of cus_htab parameter.
15822 (struct dwo_file) <cus, tus>: Now htab_up.
15823 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15824 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15825 (queue_and_load_all_dwo_tus): Update.
15826 * dwarf2/index-write.c (write_gdbindex): Update.
15827 (write_debug_names): Update.
15829 2020-02-08 Tom Tromey <tom@tromey.com>
15831 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15832 dwarf2/read.c. Remove "next" member. Add constructor ntad
15834 (struct dwarf2_per_objfile) <queue>: New member.
15835 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15837 (dwarf2_queue, dwarf2_queue_tail): Remove.
15838 (class dwarf2_queue_guard): Add parameter to constructor. Use
15839 DISABLE_COPY_AND_ASSIGN.
15840 <m_per_objfile>: New member.
15841 <~dwarf2_queue_guard>: Rewrite.
15842 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15844 (~dwarf2_queue_item): New.
15846 2020-02-08 Tom Tromey <tom@tromey.com>
15848 * dwarf2/read.c (struct die_info) <has_children>: New member.
15849 (dw2_get_file_names_reader): Remove has_children.
15850 (dw2_get_file_names): Update.
15851 (read_cutu_die_from_dwo): Remove has_children.
15852 (cutu_reader::init_tu_and_read_dwo_dies)
15853 (cutu_reader::cutu_reader): Update.
15854 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15855 Remove has_children.
15856 (build_type_psymtabs_1, process_skeletonless_type_unit)
15857 (load_partial_comp_unit, load_full_comp_unit): Update.
15858 (create_dwo_cu_reader): Remove has_children.
15859 (create_cus_hash_table, read_die_and_children): Update.
15860 (read_full_die_1,read_full_die): Remove has_children.
15861 (read_signatured_type): Update.
15862 (class cutu_reader) <has_children>: Remove.
15864 2020-02-08 Tom Tromey <tom@tromey.com>
15866 * dwarf2/expr.c: Rename from dwarf2expr.c.
15867 * dwarf2/expr.h: Rename from dwarf2expr.h.
15868 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15869 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15870 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15871 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15872 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15873 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15874 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15875 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15876 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15877 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15878 * dwarf2/loc.c: Rename from dwarf2loc.c.
15879 * dwarf2/loc.h: Rename from dwarf2loc.h.
15880 * dwarf2/read.c: Rename from dwarf2read.c.
15881 * dwarf2/read.h: Rename from dwarf2read.h.
15882 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15883 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15884 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15885 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15886 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15887 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15888 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15889 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15890 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15891 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15892 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15893 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15894 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15896 * Makefile.in (COMMON_SFILES): Update.
15897 (HFILES_NO_SRCDIR): Update.
15899 2020-02-08 Tom Tromey <tom@tromey.com>
15901 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15902 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15904 2020-02-08 Tom Tromey <tom@tromey.com>
15906 * dwarf2read.h (struct die_info): Don't declare.
15908 2020-02-08 Tom Tromey <tom@tromey.com>
15910 * dwarf2read.h (die_info_ptr): Remove typedef.
15912 2020-02-08 Tom Tromey <tom@tromey.com>
15914 * dwarf2read.c (read_call_site_scope)
15915 (handle_data_member_location, dwarf2_add_member_fn)
15916 (mark_common_block_symbol_computed, read_common_block)
15917 (attr_to_dynamic_prop, partial_die_info::read)
15918 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15919 (dwarf2_symbol_mark_computed, set_die_type): Update.
15920 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15922 (attr_form_is_block): Don't declare.
15923 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15925 2020-02-08 Tom Tromey <tom@tromey.com>
15927 * dwarf2read.c (dwarf2_find_base_address, )
15928 (read_call_site_scope, rust_containing_type)
15929 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15930 (handle_data_member_location, dwarf2_add_member_fn)
15931 (get_alignment, read_structure_type, process_structure_scope)
15932 (mark_common_block_symbol_computed, read_common_block)
15933 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15934 (partial_die_info::read, read_attribute_value, new_symbol)
15935 (lookup_die_type, dwarf2_get_ref_die_offset)
15936 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15937 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15938 (dwarf2_symbol_mark_computed): Update.
15939 * dwarf2/attribute.h (struct attribute) <value_as_address,
15940 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15942 (value_as_address, attr_form_is_section_offset)
15943 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15944 * dwarf2/attribute.c (attribute::value_as_address)
15945 (attribute::form_is_section_offset, attribute::form_is_constant)
15946 (attribute::form_is_ref): Now methods.
15948 2020-02-08 Tom Tromey <tom@tromey.com>
15950 * dwarf2read.c (struct attribute, DW_STRING)
15951 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15952 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15953 (attr_form_is_block, attr_form_is_section_offset)
15954 (attr_form_is_constant, attr_form_is_ref): Move.
15955 * dwarf2/attribute.h: New file.
15956 * dwarf2/attribute.c: New file, from dwarf2read.c.
15957 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15959 2020-02-08 Tom Tromey <tom@tromey.com>
15961 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15962 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15964 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15965 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15966 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15968 * dwarf2/abbrev.h: New file.
15969 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15970 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15972 2020-02-08 Tom Tromey <tom@tromey.com>
15974 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15975 (dwarf2_section_size, dwarf2_get_section_info)
15976 (create_signatured_type_table_from_debug_names)
15977 (create_addrmap_from_aranges, read_debug_names_from_section)
15978 (get_gdb_index_contents_from_section, read_comp_unit_head)
15979 (error_check_comp_unit_head, read_abbrev_offset)
15980 (create_debug_type_hash_table, init_cu_die_reader)
15981 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15982 (read_comp_units_from_section, create_cus_hash_table)
15983 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15984 (create_dwp_v2_section, dwarf2_rnglists_process)
15985 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15986 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15987 (read_indirect_string_from_dwz, read_addr_index_1)
15988 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15989 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15990 (fill_in_loclist_baton): Update.
15991 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15992 get_containing_section, get_bfd_owner, get_bfd_section,
15993 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15994 (dwarf2_read_section, get_section_name, get_section_file_name)
15995 (get_containing_section, get_section_bfd_owner)
15996 (get_section_bfd_section, get_section_name, get_section_file_name)
15997 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15999 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
16000 (dwarf2_section_info::get_bfd_owner)
16001 (dwarf2_section_info::get_bfd_section)
16002 (dwarf2_section_info::get_name)
16003 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
16004 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
16005 (dwarf2_section_info::read): Now methods.
16006 * dwarf-index-write.c (class debug_names): Update.
16008 2020-02-08 Tom Tromey <tom@tromey.com>
16010 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
16011 Move to dwarf2/section.h.
16012 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
16013 (get_section_bfd_section, get_section_name)
16014 (get_section_file_name, get_section_id, get_section_flags)
16015 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
16017 * dwarf2/section.h: New file.
16018 * dwarf2/section.c: New file, from dwarf2read.c.
16019 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
16021 2020-02-08 Tom Tromey <tom@tromey.com>
16023 * dwarf2read.h (read_unsigned_leb128): Don't declare.
16024 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
16025 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
16026 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
16027 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
16028 * dwarf2/leb.h: New file, from dwarf2read.c.
16029 * dwarf2/leb.c: New file, from dwarf2read.c.
16030 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
16032 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
16033 (COMMON_SFILES): Add dwarf2/leb.c.
16035 2020-02-08 Joel Brobecker <brobecker@adacore.com>
16039 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16042 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
16043 * gdb/remote.c (remote_console_output): Update.
16044 * gdb/ui-file.c (fputs_unfiltered): Rename to...
16045 (ui_file_puts): ...this.
16046 * gdb/ui-file.h (ui_file_puts): Add declaration.
16047 * gdb/utils.c (emit_style_escape): Update.
16048 (flush_wrap_buffer): Update.
16049 (fputs_maybe_filtered): Update.
16050 (fputs_unfiltered): Add function.
16052 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16054 * gdb/event-loop.c (gdb_wait_for_event): Update.
16055 * gdb/printcmd.c (printf_command): Update.
16056 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
16057 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
16058 (gdb_os_flush_stderr): Update.
16059 * gdb/remote.c (remote_console_output): Update.
16060 * gdb/ui-file.c (gdb_flush): Rename to...
16061 (ui_file_flush): ...this.
16062 (stderr_file::write): Update.
16063 (stderr_file::puts): Update.
16064 * gdb/ui-file.h (gdb_flush): Rename to...
16065 (ui_file_flush): ...this.
16066 * gdb/utils.c (gdb_flush): Add function.
16067 * gdb/utils.h (gdb_flush): Add declaration.
16069 2020-02-07 Tom Tromey <tromey@adacore.com>
16071 PR breakpoints/24915:
16072 * source.c (find_and_open_source): Do not check basenames_may_differ.
16074 2020-02-07 Tom Tromey <tom@tromey.com>
16076 * README: Update gdbserver documentation.
16077 * gdbserver: Move to top level.
16078 * configure.tgt (build_gdbserver): Remove.
16079 * configure.ac: Remove --enable-gdbserver.
16080 * configure: Rebuild.
16081 * Makefile.in (distclean): Don't mention gdbserver.
16083 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16085 * source-cache.c (source_cache::ensure): Surround
16086 get_plain_source_lines with a try/catch.
16087 (source_cache::get_line_charpos): Get rid of try/catch
16088 and only check for the return value of "ensure".
16089 * tui/tui-source.c (tui_source_window::set_contents):
16090 Simplify "nlines" calculation.
16092 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16094 * MAINTAINERS (Write After Approval): Add myself.
16096 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16098 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16101 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16103 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16105 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
16107 * nat/riscv-linux-tdesc.h: New file.
16108 * nat/riscv-linux-tdesc.c: New file, taking code from...
16109 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16111 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16114 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16116 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16117 we don't set the fake simulator ptid to the null_ptid.
16119 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
16121 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16122 * gdbthread.h (class thread_info) <resumed>: Likewise.
16123 * infrun.c (resume_1): Likewise.
16124 (proceed): Likewise.
16125 (infrun_thread_stop_requested): Likewise.
16126 (stop_all_threads): Likewise.
16127 (handle_inferior_event): Likewise.
16128 (restart_threads): Likewise.
16129 (finish_step_over): Likewise.
16130 (keep_going_stepped_thread): Likewise.
16131 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16132 (linux_handle_extended_wait): Likewise.
16133 * record-btrace.c (get_thread_current_frame_id): Likewise.
16134 * record-full.c (record_full_wait_1): Likewise.
16135 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16136 * target.c (target_resume): Likewise.
16137 * thread.c (set_running_thread): Likewise.
16139 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16141 * f-valprint.c (f77_print_array_1): Changed datatype of index
16142 variable to LONGEST from int to enable it to contain bound
16145 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
16147 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16148 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16149 offsets according to FLEN determined.
16150 (riscv_linux_nat_target::read_description): Determine FLEN
16152 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16153 according to FLEN determined.
16154 (riscv_linux_nat_target::store_registers): Likewise.
16156 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
16158 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16159 when reg->group is empty and reggroup is not.
16161 2020-01-31 Tom Tromey <tromey@adacore.com>
16163 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16164 Call beneath target's mourn_inferior after unpushing.
16166 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16169 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16170 have enough lines to fill the screen, still return the lowest
16173 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16175 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16176 '-', '<', and '>' commands.
16178 2020-01-29 Pedro Alves <palves@redhat.com>
16179 Sergio Durigan Junior <sergiodj@redhat.com>
16181 * infcmd.c (construct_inferior_arguments): Assert that
16182 'argc' is greater than 0.
16184 2020-01-29 Luis Machado <luis.machado@linaro.org>
16186 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16187 (BRK_INSN_MASK): Define to 0xd4200000.
16188 (aarch64_program_breakpoint_here_p): New function.
16189 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16190 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16192 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16194 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16195 call gdbarch_program_breakpoint_here_p.
16196 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16197 default_program_breakpoint_here_p, changed return type to bool and
16199 * breakpoint.h (program_breakpoint_here): Moved prototype to
16200 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16201 return type to bool.
16202 * gdbarch.c: Regenerate.
16203 * gdbarch.h: Regenerate.
16204 * gdbarch.sh (program_breakpoint_here_p): New method.
16205 * infrun.c (handle_signal_stop): Call
16206 gdbarch_program_breakpoint_here_p.
16208 2020-01-26 Tom Tromey <tom@tromey.com>
16210 * ctfread.c (struct ctf_fp_info): Reindent.
16211 (_initialize_ctfread): Remove.
16213 2020-01-26 Tom Tromey <tom@tromey.com>
16215 * psymtab.c (partial_map_expand_apply)
16216 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16217 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16218 (psym_print_stats, psym_expand_symtabs_for_function)
16219 (psym_map_symbol_filenames, psym_map_matching_symbols)
16220 (psym_expand_symtabs_matching)
16221 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16222 (maintenance_check_psymtabs): Use new methods.
16223 * psympriv.h (struct partial_symtab) <readin_p,
16224 get_compunit_symtab>: New methods.
16225 <readin, compunit_symtab>: Remove members.
16226 (struct standard_psymtab): New.
16227 (struct legacy_psymtab): Derive from standard_psymtab.
16228 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16230 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16232 2020-01-26 Tom Tromey <tom@tromey.com>
16234 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16235 read_dependencies. Add assert.
16236 * psymtab.c (partial_symtab::read_dependencies): New method.
16237 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16239 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16240 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16242 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16245 2020-01-26 Tom Tromey <tom@tromey.com>
16247 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16248 Call expand_psymtab.
16249 (xcoff_read_symtab): Call expand_psymtab.
16250 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16251 legacy_expand_psymtab.
16252 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16254 (struct legacy_psymtab) <expand_psymtab>: Implement.
16255 <legacy_expand_psymtab>: New member.
16256 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16257 (parse_partial_symbols): Set legacy_expand_psymtab.
16258 (psymtab_to_symtab_1): Change argument order. Call
16260 (new_psymtab): Set legacy_expand_psymtab.
16261 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16262 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16264 (dwarf2_psymtab::expand_psymtab): Rename from
16265 psymtab_to_symtab_1. Call expand_psymtab.
16266 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16267 (dbx_end_psymtab): Likewise.
16268 (dbx_psymtab_to_symtab_1): Change argument order. Call
16270 (dbx_read_symtab): Call expand_psymtab.
16271 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16272 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16273 (ctf_psymtab::read_symtab): Call expand_psymtab.
16275 2020-01-26 Tom Tromey <tom@tromey.com>
16277 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16278 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16280 * mdebugread.c (mdebug_read_symtab): Remove prints.
16281 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16283 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16285 2020-01-26 Tom Tromey <tom@tromey.com>
16287 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16288 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16289 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16291 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16292 * psymtab.c (psymtab_to_symtab): Call method.
16293 (dump_psymtab): Update.
16294 * psympriv.h (struct partial_symtab): Add virtual destructor.
16295 <read_symtab>: New method.
16296 (struct legacy_symtab): New.
16297 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16298 (struct pst_map) <pst>: Now a legacy_psymtab.
16299 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16300 (new_psymtab): Use legacy_psymtab.
16301 * dwarf2read.h (struct dwarf2_psymtab): New.
16302 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16303 * dwarf2read.c (dwarf2_create_include_psymtab)
16304 (dwarf2_build_include_psymtabs, create_type_unit_group)
16305 (create_partial_symtab, process_psymtab_comp_unit_reader)
16306 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16307 (set_partial_user): Use dwarf2_psymtab.
16308 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16309 (psymtab_to_symtab_1, process_full_comp_unit)
16310 (process_full_type_unit, dwarf2_ranges_read)
16311 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16312 (dwarf_decode_lines): Use dwarf2_psymtab.
16313 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16314 (add_address_entry_worker, write_one_signatured_type)
16315 (recursively_count_psymbols, recursively_write_psymbols)
16316 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16317 (write_debug_names): Likewise.
16318 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16319 <pst>: Now a legacy_psymtab.
16320 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16321 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16322 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16323 * ctfread.c (struct ctf_psymtab): New.
16324 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16326 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16327 (create_partial_symtab): Return a ctf_psymtab.
16328 (scan_partial_symbols): Update.
16330 2020-01-26 Tom Tromey <tom@tromey.com>
16332 * xcoffread.c (xcoff_start_psymtab): Use new.
16333 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16334 renamed from start_psymtab_common.
16335 * psympriv.h (struct partial_symtab): Add new constructor.
16336 (start_psymtab_common): Don't declare.
16337 * mdebugread.c (parse_partial_symbols): Use new.
16338 * dwarf2read.c (create_partial_symtab): Use new.
16339 * dbxread.c (start_psymtab): Use new.
16340 * ctfread.c (create_partial_symtab): Use new.
16342 2020-01-26 Tom Tromey <tom@tromey.com>
16344 * xcoffread.c (xcoff_end_psymtab): Use new.
16345 * psymtab.c (start_psymtab_common): Use new.
16346 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16348 * psympriv.h (struct partial_symtab): Add parameters to
16349 constructor. Don't inline.
16350 (allocate_psymtab): Don't declare.
16351 * mdebugread.c (new_psymtab): Use new.
16352 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16353 * dbxread.c (dbx_end_psymtab): Use new.
16355 2020-01-26 Tom Tromey <tom@tromey.com>
16357 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16358 allocate_psymtab. Update documentation.
16359 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16360 allocate_psymtab. Do not use new.
16361 (allocate_psymtab): Use new. Update.
16363 2020-01-26 Tom Tromey <tom@tromey.com>
16365 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16366 * psymtab.c (psym_print_stats): Update.
16367 * psympriv.h (struct partial_symtab) <readin,
16368 psymtabs_addrmap_supported, anonymous>: Now bool.
16369 * mdebugread.c (psymtab_to_symtab_1): Update.
16370 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16371 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16372 (process_full_comp_unit, process_full_type_unit): Update.
16373 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16374 * ctfread.c (psymtab_to_symtab): Update.
16376 2020-01-26 Tom Tromey <tom@tromey.com>
16378 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16379 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16380 * psymtab.c (psymtab_storage): Delete psymtabs.
16381 (psymtab_storage::allocate_psymtab): Use new.
16382 (psymtab_storage::discard_psymtab): Use delete.
16383 * psympriv.h (struct partial_symtab): Add constructor and
16386 2020-01-26 Tom Tromey <tom@tromey.com>
16388 * machoread.c: Do not include psympriv.h.
16390 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16392 * NEWS: Mention the new option and the set/show commands.
16394 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16396 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16397 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16398 (validate_exec_file): New variables, enums, functions.
16399 (exec_file_locate_attach, print_section_info): Style the filenames.
16400 (_initialize_exec): Install show_exec_file_mismatch_command and
16401 set_exec_file_mismatch_command.
16402 * gdbcore.h (validate_exec_file): Declare.
16403 * infcmd.c (attach_command): Call validate_exec_file.
16404 * remote.c ( remote_target::remote_add_inferior): Likewise.
16406 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16408 * frame.c (find_frame_sal): Move call to get_next_frame into more
16410 * inline-frame.c (inilne_state) <inline_state>: Update argument
16412 (inilne_state) <skipped_symbol>: Rename to...
16413 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16414 (skip_inline_frames): Build vector of skipped symbols and use this
16415 to reate the inline_state.
16416 (inline_skipped_symbol): Add a comment and some assertions, fetch
16417 skipped symbol from the list.
16419 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16421 * buildsym.c (lte_is_less_than): Delete.
16422 (buildsym_compunit::end_symtab_with_blockvector): Create local
16423 lambda function to sort line table entries, and use
16424 std::stable_sort instead of std::sort.
16425 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16426 markers when looking for a previous line.
16428 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16430 * dwarf2read.c (lnp_state_machine::record_line): Include
16431 end_sequence parameter in debug print out. Record the line if we
16432 are at an end_sequence marker even if it's not the start of a
16434 * symmisc.c (maintenance_print_one_line_table): Print end of
16435 sequence markers with 'END' not '0'.
16437 2020-01-24 Pedro Alves <palves@redhat.com>
16440 * thread.c (scoped_restore_current_thread::restore): Use
16441 switch_to_inferior_no_thread.
16442 * exec.c: Include "progspace-and-thread.h".
16443 (add_target_sections, remove_target_sections):
16444 scoped_restore_current_pspace_and_thread instead of
16445 scoped_restore_current_thread.
16446 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16447 and aspace to the inferior before calling clone_program_space.
16448 Remove stale comment.
16450 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16452 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16453 (arm_netbsd_nat_target::fetch_registers): ...this.
16454 (arm_nbsd_nat_target::store_registers): Rename to...
16455 (arm_netbsd_nat_target::store_registers): ...this.
16457 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16459 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16462 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16464 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16466 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16468 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16469 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16470 the correct replacement (iterate_over_regset_sections).
16471 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16474 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16477 * gdb/python/python.c (execute_gdb_command): Call
16478 async_enable_stdin in catch block.
16480 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16482 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16483 SWITCH_THRU_ALL_UIS.
16485 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16488 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16489 comment, add extra parameter, and update to store previous symbol
16491 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16492 add extra parameter.
16493 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16494 remove unneeded parameter, add try/catch around gdb_print_insn,
16495 rewrite to add items to asm_lines vector.
16496 (tui_find_backward_disassembly_start_address): New function.
16497 (tui_find_disassembly_address): Updated throughout.
16498 (tui_disasm_window::set_contents): Update for changes to
16500 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16501 number of lines to scroll.
16503 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16505 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16506 (SECT_OFF_DATA): Likewise.
16507 (SECT_OFF_RODATA): Likewise.
16508 (SECT_OFF_TEXT): Likewise.
16509 (SECT_OFF_BSS): Likewise.
16510 (struct objfile) <text_section_offset, data_section_offset>: New
16512 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16513 objfile::text_section_offset.
16514 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16515 * coffread.c (coff_symtab_read): Likewise.
16516 (enter_linenos): Likewise.
16517 (process_coff_symbol): Likewise.
16518 * ctfread.c (get_objfile_text_range): Likewise.
16519 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16520 Use objfile::data_section_offset.
16521 * dwarf2-frame.c (execute_cfa_program): Use
16522 objfile::text_section_offset.
16523 (dwarf2_frame_find_fde): Likewise.
16524 * dwarf2read.c (create_addrmap_from_index): Likewise.
16525 (create_addrmap_from_aranges): Likewise.
16526 (dw2_find_pc_sect_compunit_symtab): Likewise.
16527 (process_psymtab_comp_unit_reader): Likewise.
16528 (add_partial_symbol): Likewise.
16529 (add_partial_subprogram): Likewise.
16530 (process_full_comp_unit): Likewise.
16531 (read_file_scope): Likewise.
16532 (read_func_scope): Likewise.
16533 (read_lexical_block_scope): Likewise.
16534 (read_call_site_scope): Likewise.
16535 (dwarf2_rnglists_process): Likewise.
16536 (dwarf2_ranges_process): Likewise.
16537 (dwarf2_ranges_read): Likewise.
16538 (dwarf_decode_lines_1): Likewise.
16539 (new_symbol): Likewise.
16540 (dwarf2_fetch_die_loc_sect_off): Likewise.
16541 (dwarf2_per_cu_text_offset): Likewise.
16542 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16543 * hppa-tdep.c (read_unwind_info): Likewise.
16544 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16545 * psympriv.h (struct partial_symtab): Likewise.
16546 * psymtab.c (find_pc_sect_psymtab): Likewise.
16547 * solib-svr4.c (enable_break): Likewise.
16548 * stap-probe.c (relocate_address): Use
16549 objfile::data_section_offset.
16550 * xcoffread.c (enter_line_range): Use
16551 objfile::text_section_offset.
16552 (read_xcoff_symtab): Likewise.
16554 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16556 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16557 declaration to narrower scopes.
16559 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16561 * darwin-nat.h (struct darwin_exception_msg, enum
16562 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16564 (class darwin_nat_target) <wait_1, check_new_threads,
16565 decode_exception_message, decode_message, stop_inferior,
16566 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16567 * darwin-nat.c (darwin_check_new_threads): Rename to...
16568 (darwin_nat_target::check_new_threads): ... this.
16569 (darwin_suspend_inferior_it): Remove.
16570 (darwin_decode_exception_message): Rename to...
16571 (darwin_nat_target::decode_exception_message): ... this.
16572 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16573 (darwin_decode_message): Rename to...
16574 (darwin_nat_target::decode_message): ... this.
16575 (cancel_breakpoint): Rename to...
16576 (darwin_nat_target::cancel_breakpoint): ... this.
16577 (darwin_wait): Rename to...
16578 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16579 instead of iterate_over_inferiors.
16580 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16581 (darwin_stop_inferior): Rename to...
16582 (darwin_nat_target::stop_inferior): ... this.
16583 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16584 (darwin_init_thread_list): Rename to...
16585 (darwin_nat_target::init_thread_list): ... this.
16586 (darwin_ptrace_him): Rename to...
16587 (darwin_nat_target::ptrace_him): ... this.
16588 (darwin_nat_target::create_inferior): Pass lambda function to
16590 (darwin_nat_target::detach): Call stop_inferior instead of
16591 darwin_stop_inferior.
16592 * fork-inferior.h (fork_inferior): Change init_trace_fun
16593 parameter to gdb::function_view.
16594 * fork-inferior.c (fork_inferior): Likewise.
16596 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16598 * i386-cygwin-tdep.c (core_process_module_section): Update.
16599 * windows-nat.c (struct lm_info_windows): Add text_offset.
16600 (windows_xfer_shared_libraries): Update.
16601 * windows-tdep.c (windows_xfer_shared_library):
16602 Add text_offset_cached argument.
16603 * windows-tdep.h (windows_xfer_shared_library): Update.
16605 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16607 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16609 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16611 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16612 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16613 replace with range-based for.
16614 (gdbsim_interrupt_inferior): Remove.
16615 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16616 with a range-based for. Inline code from
16617 gdbsim_interrupt_inferior.
16619 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16621 * infrun.c (proceed): Fix indentation.
16623 2020-01-21 Tom Tromey <tromey@adacore.com>
16625 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16626 * python/python.c (python_extension_ops): Update.
16627 (gdbpy_colorize): New function.
16628 * python/lib/gdb/__init__.py (colorize): New function.
16629 * extension.h (ext_lang_colorize): Declare.
16630 * extension.c (ext_lang_colorize): New function.
16631 * extension-priv.h (struct extension_language_ops) <colorize>: New
16633 * cli/cli-style.c (_initialize_cli_style): Update help text.
16635 2020-01-21 Luis Machado <luis.machado@linaro.org>
16637 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16638 <cond>: Change type to bool.
16639 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16640 (aarch64_displaced_step_cb): Likewise.
16641 (aarch64_displaced_step_tb): Likewise.
16643 2020-01-21 Luis Machado <luis.machado@linaro.org>
16645 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16648 2020-01-21 Luis Machado <luis.machado@linaro.org>
16650 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16651 <pc_adjust>: Adjust the documentation.
16652 (aarch64_displaced_step_fixup): Check if PC really moved before
16655 2020-01-19 Tom Tromey <tom@tromey.com>
16657 * disasm.c (~gdb_disassembler): New destructor.
16658 (gdb_buffered_insn_length): Call disassemble_free_target.
16659 * disasm.h (class gdb_disassembler): Declare destructor. Use
16660 DISABLE_COPY_AND_ASSIGN.
16662 2020-01-19 Tom Tromey <tom@tromey.com>
16664 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16665 (die_reader_func_ftype): Remove.
16666 (cutu_reader): New class.
16667 (dw2_get_file_names_reader): Remove "data" parameter.
16668 (dw2_get_file_names): Use cutu_reader.
16669 (create_debug_type_hash_table): Update.
16670 (read_cutu_die_from_dwo): Update comment.
16671 (lookup_dwo_unit): Add dwo_name parameter.
16672 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16673 die_reader_func_ftype and data parameters.
16674 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16675 Remove die_reader_func_ftype and data parameters.
16676 (~cutu_reader): New; from init_cutu_and_read_dies.
16677 (cutu_reader::cutu_reader): Rename from
16678 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16679 and data parameters.
16680 (init_cutu_and_read_dies_simple): Remove.
16681 (struct process_psymtab_comp_unit_data): Remove.
16682 (process_psymtab_comp_unit_reader): Remove data parameter; add
16683 want_partial_unit and pretend_language parameters.
16684 (process_psymtab_comp_unit): Use cutu_reader.
16685 (build_type_psymtabs_reader): Remove data parameter.
16686 (build_type_psymtabs_1): Use cutu_reader.
16687 (process_skeletonless_type_unit): Likewise.
16688 (load_partial_comp_unit_reader): Remove.
16689 (load_partial_comp_unit): Use cutu_reader.
16690 (load_full_comp_unit_reader): Remove.
16691 (load_full_comp_unit): Use cutu_reader.
16692 (struct create_dwo_cu_data): Remove.
16693 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16694 dwo_unit parameters.
16695 (create_cus_hash_table): Use cutu_reader.
16696 (struct dwarf2_read_addr_index_data): Remove.
16697 (dwarf2_read_addr_index_reader): Remove.
16698 (dwarf2_read_addr_index): Use cutu_reader.
16699 (read_signatured_type_reader): Remove.
16700 (read_signatured_type): Use cutu_reader.
16702 2020-01-19 Tom Tromey <tom@tromey.com>
16704 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16705 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16706 (tui_wrefresh): Declare.
16707 * tui/tui-wingeneral.c (suppress_output): New global.
16708 (tui_suppress_output, ~tui_suppress_output): New constructor and
16710 (tui_wrefresh): New function.
16711 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16712 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16713 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16715 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16717 (tui_data_window::no_refresh): New method.
16718 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16719 (tui_reg_command): Use tui_suppress_output
16720 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16721 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16723 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16725 2020-01-19 Tom Tromey <tom@tromey.com>
16727 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16728 Handle case where symtab is null.
16730 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16732 * linux-fork.c (one_fork_p): Simplify.
16734 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16736 * top.c (struct qt_args): Remove.
16737 (kill_or_detach): Change return type to void, replace `void *`
16738 parameter with a proper one.
16739 (print_inferior_quit_action): Likewise.
16740 (quit_confirm): Use range-based for loop to iterate over inferiors.
16741 (quit_force): Likewise.
16743 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16745 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16746 `void *` parameter with proper parameters.
16747 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16748 (print_one_inferior): Change return type to void, replace `void *`
16749 parameter with proper parameters.
16750 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16752 (get_other_inferior): Remove.
16753 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16756 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16758 * mi/mi-interp.c (report_initial_inferior): Remove.
16759 (mi_interp::init): Use range-based for to iterate over inferiors.
16761 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16763 * python/py-inferior.c (build_inferior_list): Remove.
16764 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16766 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16768 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16769 (btrace_stitch_trace): Likewise.
16770 * charset.c (intermediate_encoding): Likewise (vaild).
16771 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16772 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16773 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16775 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16777 * windows-tdep.c (windows_get_tlb_type):
16778 Add rtl_user_process_parameters type.
16780 2020-01-16 Pedro Alves <palves@redhat.com>
16781 Norbert Lange <nolange79@gmail.com>
16784 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16785 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16786 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16787 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16788 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16789 (ps_plog): Redeclare exported functions with default visibility.
16791 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16793 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16794 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16796 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16798 * infcmd.c (post_create_inferior): Use get_thread_regcache
16799 instead of get_current_regcache.
16801 2020-01-14 Tom Tromey <tom@tromey.com>
16804 * python/python.c (gdbpy_decode_line): Treat empty string the same
16807 2020-01-14 Tom Tromey <tom@tromey.com>
16809 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16811 2020-01-14 Tom Tromey <tom@tromey.com>
16813 * nat/linux-btrace.c: Don't include <config.h>.
16814 * nat/linux-ptrace.c: Don't include <config.h>.
16815 * nat/x86-linux-dregs.c: Don't include <config.h>.
16817 2020-01-14 Tom Tromey <tom@tromey.com>
16819 * configure: Rebuild.
16820 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16822 2020-01-14 Tom Tromey <tom@tromey.com>
16824 * nat/x86-linux-dregs.c: Include configh.h.
16825 * nat/linux-ptrace.c: Include configh.h.
16826 * nat/linux-btrace.c: Include configh.h.
16827 * defs.h: Include config.h, bfd.h.
16828 * configure.ac: Don't source common.host.
16829 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16830 * configure: Rebuild.
16831 * acinclude.m4: Update path.
16832 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16833 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16834 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16835 (CLIBS): Add LIBSUPPORT.
16837 (COMMON_SFILES): Remove gdbsupport files.
16838 (HFILES_NO_SRCDIR): Likewise.
16839 (stamp-version): Update path to create-version.sh.
16840 (ALLDEPFILES): Remove gdbsupport files.
16842 2020-01-14 Tom Tromey <tom@tromey.com>
16844 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16845 USE_WIN32API when needed.
16846 * configure.ac (USE_WIN32API): Don't define.
16847 (WIN32LIBS): Use WIN32APILIBS.
16848 * configure: Rebuild.
16850 2020-01-14 Tom Tromey <tom@tromey.com>
16852 * configure: Rebuild.
16853 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16855 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16857 * skip.c (skip_function_command): Make skip w/o arguments use the
16858 name of the inlined function if pc is inside any inlined function.
16860 2020-01-14 Luis Machado <luis.machado@linaro.org>
16862 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16863 * infrun.c (resume_1): Likewise.
16864 (handle_inferior_event): Remove stale comment.
16865 * linux-nat.c (linux_nat_target::resume): Update comments.
16866 (save_stop_reason): Likewise.
16867 (linux_nat_filter_event): Likewise.
16868 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16870 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16872 * elfread.c (record_minimal_symbol): Set section index to 0 for
16873 non-allocatable sections.
16876 2020-01-13 Ali Tamur <tamur@google.com>
16878 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16879 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16880 to gdb::optional. Update comments.
16881 (dwo_file): Update comments.
16882 (read_attribute): Update API to take an additional out parameter,
16883 need_reprocess. This is used to mark attributes that need other
16884 attributes (e.g. str_offsets_base) for correct computation which may not
16885 have been read yet.
16886 (read_attribute_reprocess): New function declaration.
16887 (read_addr_index): Likewise.
16888 (read_dwo_str_index): Likewise.
16889 (read_stub_str_index): Likewise.
16890 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16891 (lookup_addr_base): New function definition.
16892 (lookup_ranges_base): Likewise.
16893 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16894 lookup_ranges_base.
16895 (init_cutu_and_read_dies): Update comments.
16896 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16897 unit. This is used to inherit parent's str_offsets_base and addr_base.
16899 (init_cutu_and_read_dies_simple): Reflect API changes.
16900 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16901 (create_cus_hash_table): Change API to take parent compile unit.
16902 Reflect API changes.
16903 (open_and_init_dwo_file): Reflect API changes.
16904 (dwarf2_get_pc_bounds): Update comments.
16905 (dwarf2_record_block_ranges): Likewise.
16906 (read_full_die_1): Change implementation to reprocess attributes that
16907 need str_offsets_base and addr_base.
16908 (partial_die_info::read): Likewise.
16909 (read_attribute_reprocess): New function definition.
16910 (read_attribute_value): Change API to take an additional out parameter,
16911 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16912 when a non-dwo compile unit has index based attributes.
16913 (read_attribute): Reflect API changes.
16914 (read_addr_index_1): Reflect API changes. Update comments.
16915 (dwarf2_read_addr_index_data): Reflect API changes.
16916 (dwarf2_read_addr_index): Likewise.
16917 (read_str_index): Change API and implementation. This becomes a helper
16918 to be used by the new string index related methods. Update error
16919 message and comments.
16920 (read_dwo_str_index): New function definition.
16921 (read_stub_str_index): Likewise.
16922 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16923 * symfile.h (dwarf2_debug_sections): Likewise.
16924 * xcoffread.c (dwarf2_debug_sections): Likewise.
16926 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16928 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16929 core_reg_sect type to gdb_byte *.
16930 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16931 * cris-tdep.c (fetch_core_registers): Likewise.
16932 * corelow.c (core_target::get_core_register_section): Change
16933 type of `contents` to gdb::byte_vector.
16935 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16937 * tui/tui-wingeneral.c (box_win): Position the title in the center
16940 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16942 * corelow.c (core_target::get_core_register_section): Use
16943 std::vector instead of alloca.
16945 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16947 * warning.m4: Add -Wmissing-declarations to build_warnings.
16948 * configure: Re-generate.
16950 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16952 * python/python.c (init__gdb_module): Add declaration.
16954 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16956 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16957 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16958 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16959 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16960 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16961 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16962 * ada-exp.y (_initialize_ada_exp): Add declaration.
16963 * ada-lang.c (_initialize_ada_language): Add declaration.
16964 * ada-tasks.c (_initialize_tasks): Add declaration.
16965 * agent.c (_initialize_agent): Add declaration.
16966 * aix-thread.c (_initialize_aix_thread): Add declaration.
16967 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16968 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16969 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16970 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16971 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16972 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16973 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16974 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16975 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16976 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16977 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16978 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16979 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16980 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16981 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16982 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16983 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16984 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16985 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16986 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16987 * annotate.c (_initialize_annotate): Add declaration.
16988 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16989 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16990 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16991 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16992 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16993 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16994 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16995 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16996 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16997 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16998 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16999 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
17000 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
17001 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
17002 * auto-load.c (_initialize_auto_load): Add declaration.
17003 * auxv.c (_initialize_auxv): Add declaration.
17004 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
17005 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
17006 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
17007 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
17008 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
17009 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
17010 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
17011 * breakpoint.c (_initialize_breakpoint): Add declaration.
17012 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
17013 * btrace.c (_initialize_btrace): Add declaration.
17014 * charset.c (_initialize_charset): Add declaration.
17015 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
17016 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
17017 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
17018 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
17019 * cli/cli-script.c (_initialize_cli_script): Add declaration.
17020 * cli/cli-style.c (_initialize_cli_style): Add declaration.
17021 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
17022 * coffread.c (_initialize_coffread): Add declaration.
17023 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
17024 * compile/compile.c (_initialize_compile): Add declaration.
17025 * complaints.c (_initialize_complaints): Add declaration.
17026 * completer.c (_initialize_completer): Add declaration.
17027 * copying.c (_initialize_copying): Add declaration.
17028 * corefile.c (_initialize_core): Add declaration.
17029 * corelow.c (_initialize_corelow): Add declaration.
17030 * cp-abi.c (_initialize_cp_abi): Add declaration.
17031 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
17032 * cp-support.c (_initialize_cp_support): Add declaration.
17033 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
17034 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
17035 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
17036 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
17037 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
17038 * ctfread.c (_initialize_ctfread): Add declaration.
17039 * d-lang.c (_initialize_d_language): Add declaration.
17040 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
17041 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
17042 * dbxread.c (_initialize_dbxread): Add declaration.
17043 * dcache.c (_initialize_dcache): Add declaration.
17044 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
17045 * disasm.c (_initialize_disasm): Add declaration.
17046 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
17047 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
17048 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
17049 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
17050 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
17051 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
17052 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
17053 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
17054 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
17055 * elfread.c (_initialize_elfread): Add declaration.
17056 * exec.c (_initialize_exec): Add declaration.
17057 * extension.c (_initialize_extension): Add declaration.
17058 * f-lang.c (_initialize_f_language): Add declaration.
17059 * f-valprint.c (_initialize_f_valprint): Add declaration.
17060 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
17061 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
17062 * filesystem.c (_initialize_filesystem): Add declaration.
17063 * findcmd.c (_initialize_mem_search): Add declaration.
17064 * findvar.c (_initialize_findvar): Add declaration.
17065 * fork-child.c (_initialize_fork_child): Add declaration.
17066 * frame-base.c (_initialize_frame_base): Add declaration.
17067 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
17068 * frame.c (_initialize_frame): Add declaration.
17069 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
17070 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
17071 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17072 * gcore.c (_initialize_gcore): Add declaration.
17073 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17074 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17075 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17076 * gdbarch.c (_initialize_gdbarch): Add declaration.
17077 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17078 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17079 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17080 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17081 * go-lang.c (_initialize_go_language): Add declaration.
17082 * go32-nat.c (_initialize_go32_nat): Add declaration.
17083 * guile/guile.c (_initialize_guile): Add declaration.
17084 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17085 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17086 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17087 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17088 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17089 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17090 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17091 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17092 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17093 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17094 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17095 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17096 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17097 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17098 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17099 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17100 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17101 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17102 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17103 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17104 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17105 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17106 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17107 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17108 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17109 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17110 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17111 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17112 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17113 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17114 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17115 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17116 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17117 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17118 * infcall.c (_initialize_infcall): Add declaration.
17119 * infcmd.c (_initialize_infcmd): Add declaration.
17120 * inflow.c (_initialize_inflow): Add declaration.
17121 * infrun.c (_initialize_infrun): Add declaration.
17122 * interps.c (_initialize_interpreter): Add declaration.
17123 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17124 * jit.c (_initialize_jit): Add declaration.
17125 * language.c (_initialize_language): Add declaration.
17126 * linux-fork.c (_initialize_linux_fork): Add declaration.
17127 * linux-nat.c (_initialize_linux_nat): Add declaration.
17128 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17129 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17130 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17131 * m2-lang.c (_initialize_m2_language): Add declaration.
17132 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17133 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17134 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17135 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17136 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17137 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17138 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17139 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17140 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17141 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17142 * machoread.c (_initialize_machoread): Add declaration.
17143 * macrocmd.c (_initialize_macrocmd): Add declaration.
17144 * macroscope.c (_initialize_macroscope): Add declaration.
17145 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17146 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17147 * maint.c (_initialize_maint_cmds): Add declaration.
17148 * mdebugread.c (_initialize_mdebugread): Add declaration.
17149 * memattr.c (_initialize_mem): Add declaration.
17150 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17151 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17152 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17153 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17154 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17155 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17156 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17157 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17158 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17159 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17160 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17161 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17162 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17163 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17164 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17165 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17166 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17167 * mipsread.c (_initialize_mipsread): Add declaration.
17168 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17169 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17170 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17171 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17172 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17173 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17174 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17175 * nto-procfs.c (_initialize_procfs): Add declaration.
17176 * objc-lang.c (_initialize_objc_language): Add declaration.
17177 * observable.c (_initialize_observer): Add declaration.
17178 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17179 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17180 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17181 * osabi.c (_initialize_gdb_osabi): Add declaration.
17182 * osdata.c (_initialize_osdata): Add declaration.
17183 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17184 * parse.c (_initialize_parse): Add declaration.
17185 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17186 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17187 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17188 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17189 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17190 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17191 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17192 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17193 * printcmd.c (_initialize_printcmd): Add declaration.
17194 * probe.c (_initialize_probe): Add declaration.
17195 * proc-api.c (_initialize_proc_api): Add declaration.
17196 * proc-events.c (_initialize_proc_events): Add declaration.
17197 * proc-service.c (_initialize_proc_service): Add declaration.
17198 * procfs.c (_initialize_procfs): Add declaration.
17199 * producer.c (_initialize_producer): Add declaration.
17200 * psymtab.c (_initialize_psymtab): Add declaration.
17201 * python/python.c (_initialize_python): Add declaration.
17202 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17203 * record-btrace.c (_initialize_record_btrace): Add declaration.
17204 * record-full.c (_initialize_record_full): Add declaration.
17205 * record.c (_initialize_record): Add declaration.
17206 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17207 * regcache.c (_initialize_regcache): Add declaration.
17208 * reggroups.c (_initialize_reggroup): Add declaration.
17209 * remote-notif.c (_initialize_notif): Add declaration.
17210 * remote-sim.c (_initialize_remote_sim): Add declaration.
17211 * remote.c (_initialize_remote): Add declaration.
17212 * reverse.c (_initialize_reverse): Add declaration.
17213 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17214 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17215 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17216 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17217 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17218 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17219 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17220 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17222 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17223 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17224 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17225 * rust-exp.y (_initialize_rust_exp): Add declaration.
17226 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17227 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17228 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17229 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17230 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17231 * score-tdep.c (_initialize_score_tdep): Add declaration.
17232 * ser-go32.c (_initialize_ser_dos): Add declaration.
17233 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17234 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17235 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17236 * ser-uds.c (_initialize_ser_socket): Add declaration.
17237 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17238 * serial.c (_initialize_serial): Add declaration.
17239 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17240 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17241 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17242 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17243 * skip.c (_initialize_step_skip): Add declaration.
17244 * sol-thread.c (_initialize_sol_thread): Add declaration.
17245 * solib-aix.c (_initialize_solib_aix): Add declaration.
17246 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17247 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17248 * solib-frv.c (_initialize_frv_solib): Add declaration.
17249 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17250 * solib-target.c (_initialize_solib_target): Add declaration.
17251 * solib.c (_initialize_solib): Add declaration.
17252 * source-cache.c (_initialize_source_cache): Add declaration.
17253 * source.c (_initialize_source): Add declaration.
17254 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17255 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17256 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17257 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17258 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17259 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17260 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17261 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17262 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17263 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17264 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17265 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17266 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17267 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17268 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17269 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17270 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17271 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17272 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17273 * stabsread.c (_initialize_stabsread): Add declaration.
17274 * stack.c (_initialize_stack): Add declaration.
17275 * stap-probe.c (_initialize_stap_probe): Add declaration.
17276 * std-regs.c (_initialize_frame_reg): Add declaration.
17277 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17278 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17279 * symfile.c (_initialize_symfile): Add declaration.
17280 * symmisc.c (_initialize_symmisc): Add declaration.
17281 * symtab.c (_initialize_symtab): Add declaration.
17282 * target.c (_initialize_target): Add declaration.
17283 * target-connection.c (_initialize_target_connection): Add
17285 * target-dcache.c (_initialize_target_dcache): Add declaration.
17286 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17287 * thread.c (_initialize_thread): Add declaration.
17288 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17289 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17290 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17291 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17292 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17293 * tracectf.c (_initialize_ctf): Add declaration.
17294 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17295 * tracefile.c (_initialize_tracefile): Add declaration.
17296 * tracepoint.c (_initialize_tracepoint): Add declaration.
17297 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17298 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17299 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17300 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17301 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17302 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17303 * tui/tui.c (_initialize_tui): Add declaration.
17304 * typeprint.c (_initialize_typeprint): Add declaration.
17305 * ui-style.c (_initialize_ui_style): Add declaration.
17306 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17307 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17308 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17309 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17310 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17311 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17312 * unittests/filtered_iterator-selftests.c
17313 (_initialize_filtered_iterator_selftests): Add declaration.
17314 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17315 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17316 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17317 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17318 * unittests/main-thread-selftests.c
17319 (_initialize_main_thread_selftests): Add declaration.
17320 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17321 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17322 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17323 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17324 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17325 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17326 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17327 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17328 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17329 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17330 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17331 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17332 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17333 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17334 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17336 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17337 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17338 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17339 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17340 * user-regs.c (_initialize_user_regs): Add declaration.
17341 * utils.c (_initialize_utils): Add declaration.
17342 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17343 * valops.c (_initialize_valops): Add declaration.
17344 * valprint.c (_initialize_valprint): Add declaration.
17345 * value.c (_initialize_values): Add declaration.
17346 * varobj.c (_initialize_varobj): Add declaration.
17347 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17348 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17349 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17350 * windows-nat.c (_initialize_windows_nat): Add declaration.
17351 (_initialize_check_for_gdb_ini): Add declaration.
17352 (_initialize_loadable): Add declaration.
17353 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17354 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17355 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17356 * xcoffread.c (_initialize_xcoffread): Add declaration.
17357 * xml-support.c (_initialize_xml_support): Add declaration.
17358 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17359 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17360 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17361 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17363 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17365 * regformats/regdat.sh: Generate declaration for init function.
17367 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17369 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17371 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17372 close_one_inferior>: New methods.
17373 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17374 pass down target to find_inferior_pid.
17375 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17376 Pass down target to find_inferior_ptid.
17377 (gdbsim_target::create_inferior): Pass down target to
17379 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17380 target down to find_inferior_ptid and switch_to_thread.
17381 (gdbsim_target::close): Update to call close_one_inferior.
17382 (struct resume_data): Remove.
17383 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17384 directly, rather than through a void pointer.
17385 (gdbsim_target::resume): Update to call resume_one_inferior.
17387 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17389 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17391 2020-01-12 Pedro Alves <palves@redhat.com>
17393 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17394 directly for the current inferior instead of
17395 discard_all_inferiors.
17396 (discard_all_inferiors): Delete.
17398 2020-01-11 Tom Tromey <tom@tromey.com>
17400 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17401 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17402 deprecated_safe_get_selected_frame.
17404 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17406 * inferior.c (print_inferior): Switch inferior before printing it.
17408 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17409 Pedro Alves <palves@redhat.com>
17411 * progspace-and-thread.c (switch_to_program_space_and_thread):
17412 Assert there's an inferior for PSPACE. Use
17413 switch_to_inferior_no_thread to switch the inferior too.
17414 * progspace.c (program_space::~program_space): Call
17415 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17416 (program_space::free_all_objfiles): Don't call clear_symtab_users
17418 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17420 2020-01-10 Pedro Alves <palves@redhat.com>
17422 * NEWS: Mention multi-target debugging, "info connections", and
17423 "add-inferior -no-connection".
17425 2020-01-10 Pedro Alves <palves@redhat.com>
17427 * infrun.c: Include "target-connection.h".
17428 (check_multi_target_resumption): New.
17429 (proceed): Call it.
17430 * target-connection.c (make_target_connection_string): Make
17432 * target-connection.h (make_target_connection_string): Declare.
17434 2020-01-10 Pedro Alves <palves@redhat.com>
17436 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17437 * inferior.c (uiout_field_connection): New function.
17438 (print_inferior): Add new "connection-id" column.
17439 (add_inferior_command): Show connection number/string of added
17441 * process-stratum-target.h
17442 (process_stratum_target::connection_string): New virtual method.
17443 (process_stratum_target::connection_number): New field.
17444 * remote.c (remote_target::connection_string): New override.
17445 * target-connection.c: New file.
17446 * target-connection.h: New file.
17447 * target.c (decref_target): Remove process_stratum targets from
17448 the connection list.
17449 (target_stack::push): Add process_stratum targets to the
17452 2020-01-10 Pedro Alves <palves@redhat.com>
17455 2016-04-12 Pedro Alves <palves@redhat.com>
17456 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17457 Remove references to name.
17458 * serial.h (struct serial) <name>: Delete.
17460 2020-01-10 Pedro Alves <palves@redhat.com>
17462 * gdbarch-selftests.c (register_to_value_test): Remove "target
17463 already pushed" check.
17465 2020-01-10 Pedro Alves <palves@redhat.com>
17466 John Baldwin <jhb@FreeBSD.org>
17468 * aarch64-linux-nat.c
17469 (aarch64_linux_nat_target::thread_architecture): Adjust.
17470 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17471 (task_command_1): Likewise.
17472 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17473 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17474 (aix_thread_target::store_registers)
17475 (aix_thread_target::thread_alive): Adjust.
17476 * amd64-fbsd-tdep.c: Include "inferior.h".
17477 (amd64fbsd_get_thread_local_address): Pass down target.
17478 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17479 thread's gdbarch instead of target_gdbarch.
17480 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17481 get_last_target_status.
17482 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17483 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17485 (update_inserted_breakpoint_locations): Skip if inferiors with no
17487 (update_global_location_list): When handling moribund locations,
17488 find representative inferior for location's pspace, and use thread
17489 count of its process_stratum target.
17490 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17491 * bsd-uthread.c (bsd_uthread_target::wait): Use
17492 as_process_stratum_target and adjust thread_change_ptid and
17494 (bsd_uthread_target::update_thread_list): Use
17495 as_process_stratum_target and adjust find_thread_ptid,
17496 thread_change_ptid and add_thread calls.
17497 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17498 find_thread_ptid call.
17499 * corelow.c (add_to_thread_list): Adjust add_thread call.
17500 (core_target_open): Adjust add_thread_silent and thread_count
17502 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17503 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17504 * event-top.c (async_disconnect): Pop targets from all inferiors.
17505 * exec.c (add_target_sections): Push exec target on all inferiors
17506 sharing the program space.
17507 (remove_target_sections): Remove the exec target from all
17508 inferiors sharing the program space.
17509 (exec_on_vfork): New.
17510 * exec.h (exec_on_vfork): Declare.
17511 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17513 (fbsd_nat_target::update_thread_list): Adjust.
17514 (fbsd_nat_target::resume): Adjust.
17515 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17517 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17518 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17519 get_thread_arch_regcache call.
17520 * fork-child.c (gdb_startup_inferior): Pass target down to
17521 startup_inferior and set_executing.
17522 * gdbthread.h (struct process_stratum_target): Forward declare.
17523 (add_thread, add_thread_silent, add_thread_with_info)
17524 (in_thread_list): Add process_stratum_target parameter.
17525 (find_thread_ptid(inferior*, ptid_t)): New overload.
17526 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17528 (all_threads()): Delete overload.
17529 (all_threads, all_non_exited_threads): Add process_stratum_target
17531 (all_threads_safe): Use brace initialization.
17532 (thread_count): Add process_stratum_target parameter.
17533 (set_resumed, set_running, set_stop_requested, set_executing)
17534 (threads_are_executing, finish_thread_state): Add
17535 process_stratum_target parameter.
17536 (switch_to_thread): Use is_current_thread.
17537 * i386-fbsd-tdep.c: Include "inferior.h".
17538 (i386fbsd_get_thread_local_address): Pass down target.
17539 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17540 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17541 have_inferiors check.
17542 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17543 (inf_ptrace_target::attach): Adjust.
17544 * infcall.c (run_inferior_call): Adjust.
17545 * infcmd.c (run_command_1): Pass target to
17546 scoped_finish_thread_state.
17547 (proceed_thread_callback): Skip inferiors with no execution.
17548 (continue_command): Rename 'all_threads' local to avoid hiding
17549 'all_threads' function. Adjust get_last_target_status call.
17550 (prepare_one_step): Adjust set_running call.
17551 (signal_command): Use user_visible_resume_target. Compare thread
17552 pointers instead of inferior_ptid.
17553 (info_program_command): Adjust to pass down target.
17554 (attach_command): Mark target's 'thread_executing' flag.
17555 (stop_current_target_threads_ns): New, factored out from ...
17556 (interrupt_target_1): ... this. Switch inferior before making
17559 (struct all_inferiors_iterator, struct all_inferiors_range)
17560 (struct all_inferiors_safe_range)
17561 (struct all_non_exited_inferiors_range): Filter on
17562 process_stratum_target too. Remove explicit.
17563 * inferior.c (inferior::inferior): Push dummy target on target
17565 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17566 Add process_stratum_target parameter, and pass it down.
17567 (have_live_inferiors): Adjust.
17568 (switch_to_inferior_and_push_target): New.
17569 (add_inferior_command, clone_inferior_command): Handle
17570 "-no-connection" parameter. Use
17571 switch_to_inferior_and_push_target.
17572 (_initialize_inferior): Mention "-no-connection" option in
17573 the help of "add-inferior" and "clone-inferior" commands.
17574 * inferior.h: Include "process-stratum-target.h".
17575 (interrupt_target_1): Use bool.
17576 (struct inferior) <push_target, unpush_target, target_is_pushed,
17577 find_target_beneath, top_target, process_target, target_at,
17579 (discard_all_inferiors): Delete.
17580 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17581 (all_inferiors, all_non_exited_inferiors): Add
17582 process_stratum_target parameter.
17583 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17584 (target_last_proc_target): New global.
17585 (follow_fork_inferior): Push target on new inferior. Pass target
17586 to add_thread_silent. Call exec_on_vfork. Handle target's
17588 (follow_fork): Adjust get_last_target_status call. Also consider
17590 (follow_exec): Push target on new inferior.
17591 (struct execution_control_state) <target>: New field.
17592 (user_visible_resume_target): New.
17593 (do_target_resume): Call target_async.
17594 (resume_1): Set target's threads_executing flag. Consider resume
17596 (commit_resume_all_targets): New.
17597 (proceed): Also consider resume target. Skip threads of inferiors
17598 with no execution. Commit resumtion in all targets.
17599 (start_remote): Pass current inferior to wait_for_inferior.
17600 (infrun_thread_stop_requested): Consider target as well. Pass
17601 thread_info pointer to clear_inline_frame_state instead of ptid.
17602 (infrun_thread_thread_exit): Consider target as well.
17603 (random_pending_event_thread): New inferior parameter. Use it.
17604 (do_target_wait): Rename to ...
17605 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17607 (threads_are_resumed_pending_p, do_target_wait): New.
17608 (prepare_for_detach): Adjust calls.
17609 (wait_for_inferior): New inferior parameter. Handle it. Use
17610 do_target_wait_1 instead of do_target_wait.
17611 (fetch_inferior_event): Adjust. Switch to representative
17612 inferior. Pass target down.
17613 (set_last_target_status): Add process_stratum_target parameter.
17614 Save target in global.
17615 (get_last_target_status): Add process_stratum_target parameter and
17617 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17618 (context_switch): Check inferior_ptid == null_ptid before calling
17620 (get_inferior_stop_soon): Pass down target.
17621 (wait_one): Rename to ...
17622 (poll_one_curr_target): ... this.
17623 (struct wait_one_event): New.
17625 (stop_all_threads): Adjust.
17626 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17628 (switch_back_to_stepped_thread): Also consider target.
17629 (print_stop_event): Update.
17630 (normal_stop): Update. Also consider the resume target.
17631 * infrun.h (wait_for_inferior): Remove declaration.
17632 (user_visible_resume_target): New declaration.
17633 (get_last_target_status, set_last_target_status): New
17634 process_stratum_target parameter.
17635 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17636 process_stratum_target parameter, and use it.
17637 (clear_inline_frame_state (thread_info*)): New.
17638 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17639 process_stratum_target parameter.
17640 (clear_inline_frame_state (thread_info*)): Declare.
17641 * linux-fork.c (delete_checkpoint_command): Pass target down to
17643 (checkpoint_command): Adjust.
17644 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17645 instead of just tweaking inferior_ptid.
17646 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17647 (exit_lwp): Pass target down to find_thread_ptid.
17648 (attach_proc_task_lwp_callback): Pass target down to
17649 add_thread/set_running/set_executing.
17650 (linux_nat_target::attach): Pass target down to
17651 thread_change_ptid.
17652 (get_detach_signal): Pass target down to find_thread_ptid.
17653 Consider last target status's target.
17654 (linux_resume_one_lwp_throw, resume_lwp)
17655 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17656 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17657 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17658 (linux_nat_target::async_wait_fd): New.
17659 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17661 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17662 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17663 * linux-thread-db.c (struct thread_db_info::process_target): New
17665 (add_thread_db_info): Save target.
17666 (get_thread_db_info): New process_stratum_target parameter. Also
17668 (delete_thread_db_info): New process_stratum_target parameter.
17670 (thread_from_lwp): Adjust to pass down target.
17671 (thread_db_notice_clone): Pass down target.
17672 (check_thread_db_callback): Pass down target.
17673 (try_thread_db_load_1): Always push the thread_db target.
17674 (try_thread_db_load, record_thread): Pass target down.
17675 (thread_db_target::detach): Pass target down. Always unpush the
17677 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17678 target down. Always unpush the thread_db target.
17679 (find_new_threads_callback, thread_db_find_new_threads_2)
17680 (thread_db_target::update_thread_list): Pass target down.
17681 (thread_db_target::pid_to_str): Pass current inferior down.
17682 (thread_db_target::get_thread_local_address): Pass target down.
17683 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17685 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17686 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17687 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17688 (procfs_init_inferior): Rename to ...
17689 (procfs_target::procfs_init_inferior): ... this and adjust.
17690 (procfs_target::create_inferior, procfs_notice_thread)
17691 (procfs_do_thread_registers): Adjust.
17692 * ppc-fbsd-tdep.c: Include "inferior.h".
17693 (ppcfbsd_get_thread_local_address): Pass down target.
17694 * proc-service.c (ps_xfer_memory): Switch current inferior and
17695 program space as well.
17696 (get_ps_regcache): Pass target down.
17697 * process-stratum-target.c
17698 (process_stratum_target::thread_address_space)
17699 (process_stratum_target::thread_architecture): Pass target down.
17700 * process-stratum-target.h
17701 (process_stratum_target::threads_executing): New field.
17702 (as_process_stratum_target): New.
17703 * ravenscar-thread.c
17704 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17705 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17707 * record-btrace.c (record_btrace_target::info_record): Adjust.
17708 (record_btrace_target::record_method)
17709 (record_btrace_target::record_is_replaying)
17710 (record_btrace_target::fetch_registers)
17711 (get_thread_current_frame_id, record_btrace_target::resume)
17712 (record_btrace_target::wait, record_btrace_target::stop): Pass
17714 * record-full.c (record_full_wait_1): Switch to event thread.
17716 * regcache.c (regcache::regcache)
17717 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17718 process_stratum_target parameter and handle it.
17719 (current_thread_target): New global.
17720 (get_thread_regcache): Add process_stratum_target parameter and
17721 handle it. Switch inferior before calling target method.
17722 (get_thread_regcache): Pass target down.
17723 (get_thread_regcache_for_ptid): Pass target down.
17724 (registers_changed_ptid): Add process_stratum_target parameter and
17726 (registers_changed_thread, registers_changed): Pass target down.
17727 (test_get_thread_arch_aspace_regcache): New.
17728 (current_regcache_test): Define a couple local test_target_ops
17729 instances and use them for testing.
17730 (readwrite_regcache): Pass process_stratum_target parameter.
17731 (cooked_read_test, cooked_write_test): Pass mock_target down.
17732 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17733 (get_thread_arch_aspace_regcache): Add process_stratum_target
17735 (regcache::target): New method.
17736 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17737 (regcache::registers_changed_ptid): Add process_stratum_target
17739 (regcache::m_target): New field.
17740 (registers_changed_ptid): Add process_stratum_target parameter.
17741 * remote.c (remote_state::supports_vCont_probed): New field.
17742 (remote_target::async_wait_fd): New method.
17743 (remote_unpush_and_throw): Add remote_target parameter.
17744 (get_current_remote_target): Adjust.
17745 (remote_target::remote_add_inferior): Push target.
17746 (remote_target::remote_add_thread)
17747 (remote_target::remote_notice_new_inferior)
17748 (get_remote_thread_info): Pass target down.
17749 (remote_target::update_thread_list): Skip threads of inferiors
17750 bound to other targets. (remote_target::close): Don't discard
17751 inferiors. (remote_target::add_current_inferior_and_thread)
17752 (remote_target::process_initial_stop_replies)
17753 (remote_target::start_remote)
17754 (remote_target::remote_serial_quit_handler): Pass down target.
17755 (remote_target::remote_unpush_target): New remote_target
17756 parameter. Unpush the target from all inferiors.
17757 (remote_target::remote_unpush_and_throw): New remote_target
17758 parameter. Pass it down.
17759 (remote_target::open_1): Check whether the current inferior has
17760 execution instead of checking whether any inferior is live. Pass
17762 (remote_target::remote_detach_1): Pass down target. Use
17763 remote_unpush_target.
17764 (extended_remote_target::attach): Pass down target.
17765 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17766 (remote_target::append_resumption): Pass down target.
17767 (remote_target::append_pending_thread_resumptions)
17768 (remote_target::remote_resume_with_hc, remote_target::resume)
17769 (remote_target::commit_resume): Pass down target.
17770 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17771 (remote_target::interrupt_query)
17772 (remote_target::remove_new_fork_children)
17773 (remote_target::check_pending_events_prevent_wildcard_vcont)
17774 (remote_target::remote_parse_stop_reply)
17775 (remote_target::process_stop_reply): Pass down target.
17776 (first_remote_resumed_thread): New remote_target parameter. Pass
17778 (remote_target::wait_as): Pass down target.
17779 (unpush_and_perror): New remote_target parameter. Pass it down.
17780 (remote_target::readchar, remote_target::remote_serial_write)
17781 (remote_target::getpkt_or_notif_sane_1)
17782 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17784 (remote_target::mourn_inferior): Pass down target. Use
17785 remote_unpush_target.
17786 (remote_target::core_of_thread)
17787 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17788 (remote_target::pid_to_exec_file)
17789 (remote_target::thread_handle_to_thread_info): Pass down target.
17790 (remote_target::async_wait_fd): New.
17791 * riscv-fbsd-tdep.c: Include "inferior.h".
17792 (riscv_fbsd_get_thread_local_address): Pass down target.
17793 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17794 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17795 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17797 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17798 * solib-svr4.c (enable_break): Pass down target.
17799 * spu-multiarch.c (parse_spufs_run): Pass down target.
17800 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17801 * target-delegates.c: Regenerate.
17802 * target.c (g_target_stack): Delete.
17803 (current_top_target): Return the current inferior's top target.
17804 (target_has_execution_1): Refer to the passed-in inferior's top
17806 (target_supports_terminal_ours): Check whether the initial
17807 inferior was already created.
17808 (decref_target): New.
17809 (target_stack::push): Incref/decref the target.
17810 (push_target, push_target, unpush_target): Adjust.
17811 (target_stack::unpush): Defref target.
17812 (target_is_pushed): Return bool. Adjust to refer to the current
17813 inferior's target stack.
17814 (dispose_inferior): Delete, and inline parts ...
17815 (target_preopen): ... here. Only dispose of the current inferior.
17816 (target_detach): Hold strong target reference while detaching.
17818 (target_thread_name): Add assertion.
17819 (target_resume): Pass down target.
17820 (target_ops::beneath, find_target_at): Adjust to refer to the
17821 current inferior's target stack.
17822 (get_dummy_target): New.
17823 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17824 has a thread running.
17825 (initialize_targets): Rename to ...
17826 (_initialize_target): ... this.
17827 * target.h: Include "gdbsupport/refcounted-object.h".
17828 (struct target_ops): Inherit refcounted_object.
17829 (target_ops::shortname, target_ops::longname): Make const.
17830 (target_ops::async_wait_fd): New method.
17831 (decref_target): Declare.
17832 (struct target_ops_ref_policy): New.
17833 (target_ops_ref): New typedef.
17834 (get_dummy_target): Declare function.
17835 (target_is_pushed): Return bool.
17836 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17837 (all_matching_threads_iterator::all_matching_threads_iterator):
17838 Handle filter target.
17839 * thread-iter.h (struct all_matching_threads_iterator, struct
17840 all_matching_threads_range, class all_non_exited_threads_range):
17841 Filter by target too. Remove explicit.
17842 * thread.c (threads_executing): Delete.
17843 (inferior_thread): Pass down current inferior.
17844 (clear_thread_inferior_resources): Pass down thread pointer
17846 (add_thread_silent, add_thread_with_info, add_thread): Add
17847 process_stratum_target parameter. Use it for thread and inferior
17849 (is_current_thread): New.
17850 (thread_info::deletable): Use it.
17851 (find_thread_ptid, thread_count, in_thread_list)
17852 (thread_change_ptid, set_resumed, set_running): New
17853 process_stratum_target parameter. Pass it down.
17854 (set_executing): New process_stratum_target parameter. Pass it
17855 down. Adjust reference to 'threads_executing'.
17856 (threads_are_executing): New process_stratum_target parameter.
17857 Adjust reference to 'threads_executing'.
17858 (set_stop_requested, finish_thread_state): New
17859 process_stratum_target parameter. Pass it down.
17860 (switch_to_thread): Also match inferior.
17861 (switch_to_thread): New process_stratum_target parameter. Pass it
17863 (update_threads_executing): Reimplement.
17864 * top.c (quit_force): Pop targets from all inferior.
17865 (gdb_init): Don't call initialize_targets.
17866 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17868 (windows_add_thread, windows_delete_thread): Adjust.
17869 (get_windows_debug_event): Rename to ...
17870 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17871 * tracefile-tfile.c (tfile_target_open): Pass down target.
17872 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17874 (switch_to_thread): Add process_stratum_target parameter.
17875 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17877 (mi_on_resume): Pass target down.
17878 * nat/fork-inferior.c (startup_inferior): Add
17879 process_stratum_target parameter. Pass it down.
17880 * nat/fork-inferior.h (startup_inferior): Add
17881 process_stratum_target parameter.
17882 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17884 2020-01-10 Pedro Alves <palves@redhat.com>
17886 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17887 directly. Instead find the first thread in the thread list and
17888 use switch_to_thread.
17890 2020-01-10 Pedro Alves <palves@redhat.com>
17892 * remote.c (remote_target::remote_add_inferior): Don't bind a
17893 process to the current inferior if the current inferior is already
17894 bound to a process.
17896 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17897 Pedro Alves <palves@redhat.com>
17899 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17900 If no process is specified, return null_ptid instead of
17902 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17903 TARGET_WAITKIND_SIGNALLED with no pid.
17905 2020-01-10 Pedro Alves <palves@redhat.com>
17907 * remote.c (first_remote_resumed_thread): New.
17908 (remote_target::wait_as): Use it as default event_ptid instead of
17911 2020-01-10 Pedro Alves <palves@redhat.com>
17913 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17915 2020-01-10 Pedro Alves <palves@redhat.com>
17917 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17920 2020-01-10 Pedro Alves <palves@redhat.com>
17922 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17923 ptid to get_last_target_status.
17924 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17925 ptid to get_last_target_status.
17926 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17927 get_last_target_status.
17928 (info_program_command): Don't pass a target_waitstatus to
17929 get_last_target_status.
17930 * infrun.c (init_wait_for_inferior): Use
17931 nullify_last_target_wait_ptid.
17932 (get_last_target_status): Handle nullptr arguments.
17933 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17934 (print_stop_event): Don't pass a ptid to get_last_target_status.
17935 (normal_stop): Don't pass a ptid to get_last_target_status.
17936 * infrun.h (get_last_target_status, set_last_target_status): Move
17937 comments here and update.
17938 (nullify_last_target_wait_ptid): Declare.
17939 * linux-fork.c (fork_load_infrun_state): Remove local extern
17940 declaration of nullify_last_target_wait_ptid.
17941 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17942 to get_last_target_status.
17944 2020-01-10 Pedro Alves <palves@redhat.com>
17946 * gdbthread.h (scoped_restore_current_thread)
17947 <dont_restore, restore, m_dont_restore>: Declare.
17948 * thread.c (thread_alive): Add assertion. Return bool.
17949 (switch_to_thread_if_alive): New.
17950 (prune_threads): Switch inferior/thread.
17951 (print_thread_info_1): Switch thread before calling target methods.
17952 (scoped_restore_current_thread::restore): New, factored out from
17954 (scoped_restore_current_thread::~scoped_restore_current_thread):
17956 (scoped_restore_current_thread::scoped_restore_current_thread):
17958 (thread_apply_all_command, thread_select): Use
17959 switch_to_thread_if_alive.
17960 * infrun.c (proceed, restart_threads, handle_signal_stop)
17961 (switch_back_to_stepped_thread): Switch current thread before
17962 calling target methods.
17964 2020-01-10 Pedro Alves <palves@redhat.com>
17966 * inferior.c (switch_to_inferior_no_thread): New function,
17967 factored out from ...
17968 (inferior_command): ... here.
17969 * inferior.h (switch_to_inferior_no_thread): Declare.
17970 * mi/mi-main.c (run_one_inferior): Use
17971 switch_to_inferior_no_thread.
17973 2020-01-10 Pedro Alves <palves@redhat.com>
17975 * infcmd.c (kill_command): Remove dead code.
17977 2020-01-10 Pedro Alves <palves@redhat.com>
17979 * remote.c (remote_target::mourn_inferior): No longer check
17980 whether the target is running.
17982 2020-01-10 Pedro Alves <palves@redhat.com>
17984 * corelow.c (core_target::has_execution): Change parameter type to
17986 * inferior.c (number_of_live_inferiors): Use
17987 inferior::has_execution instead of target_has_execution_1.
17988 * inferior.h (inferior::has_execution): New.
17989 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17990 inferior::has_execution instead of target_has_execution_1.
17991 * process-stratum-target.c
17992 (process_stratum_target::has_execution): Change parameter type to
17993 inferior pointer. Check the inferior's PID instead of
17995 * process-stratum-target.h
17996 (process_stratum_target::has_execution): Change parameter type to
17998 * record-full.c (record_full_core_target::has_execution): Change
17999 parameter type to inferior pointer.
18000 * target.c (target_has_execution_1): Change parameter type to
18002 (target_has_execution_current): Adjust.
18003 * target.h (target_ops::has_execution): Change parameter type to
18005 (target_has_execution_1): Change parameter type to inferior
18006 pointer. Change return type to bool.
18007 * tracefile.h (tracefile_target::has_execution): Change parameter
18008 type to inferior pointer.
18010 2020-01-10 Pedro Alves <palves@redhat.com>
18012 * exceptions.c (print_flush): Remove current_top_target() check.
18014 2020-01-10 Pedro Alves <palves@redhat.com>
18016 * remote.c (show_remote_exec_file): Show the current inferior's
18017 exec-file instead of the command variable's value.
18019 2020-01-10 Pedro Alves <palves@redhat.com>
18021 * record-full.c (record_full_resume_ptid): New global.
18022 (record_full_target::resume): Set it.
18023 (record_full_wait_1): Use record_full_resume_ptid instead of
18026 2020-01-10 Pedro Alves <palves@redhat.com>
18028 * gdbthread.h (scoped_restore_current_thread)
18029 <dont_restore, restore, m_dont_restore>: Declare.
18030 * thread.c (thread_alive): Add assertion. Return bool.
18031 (switch_to_thread_if_alive): New.
18032 (prune_threads): Switch inferior/thread.
18033 (print_thread_info_1): Switch thread before calling target methods.
18034 (scoped_restore_current_thread::restore): New, factored out from
18036 (scoped_restore_current_thread::~scoped_restore_current_thread):
18038 (scoped_restore_current_thread::scoped_restore_current_thread):
18040 (thread_apply_all_command, thread_select): Use
18041 switch_to_thread_if_alive.
18043 2020-01-10 George Barrett <bob@bob131.so>
18045 * stap-probe.c (stap_modify_semaphore): Don't check for null
18047 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
18048 for null semaphores.
18050 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18052 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
18053 all source windows, and maintain horizontal scroll status while
18056 2020-01-09 Tom Tromey <tom@tromey.com>
18059 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
18060 update_source_window, not print_source_lines.
18062 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18064 * tui/tui.c (tui_enable): Register tui hooks after calling
18067 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18069 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
18071 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
18073 * thread.c (print_thread_info_1): Fix indentation.
18075 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18077 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18078 unique_xmalloc_ptr outside the if to always free the demangled name.
18080 2020-01-08 Tom Tromey <tromey@adacore.com>
18082 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18083 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18084 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18085 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18087 (section_offsets): New typedef.
18088 * symtab.c (fixup_section, get_msymbol_address): Update.
18089 * symmisc.c (dump_msymbols): Update.
18090 * symfile.h (relative_addr_info_to_section_offsets)
18091 (symfile_map_offsets_to_segments): Update.
18092 * symfile.c (build_section_addr_info_from_objfile)
18093 (init_objfile_sect_indices): Update.
18094 (struct place_section_arg): Change type of "offsets".
18095 (place_section): Update.
18096 (relative_addr_info_to_section_offsets): Change type of
18097 "section_offsets". Remove "num_sections" parameter.
18098 (default_symfile_offsets, syms_from_objfile_1)
18099 (set_objfile_default_section_offset): Update.
18100 (reread_symbols): No need to preserve section offsets by hand.
18101 (symfile_map_offsets_to_segments): Change type of "offsets".
18102 * stap-probe.c (relocate_address): Update.
18103 * stabsread.h (process_one_symbol): Update.
18104 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18105 (solib_target_relocate_section_addresses): Update.
18106 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18108 * solib-frv.c (frv_relocate_main_executable): Update.
18109 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18110 * solib-aix.c (solib_aix_get_section_offsets): Change return
18112 (solib_aix_solib_create_inferior_hook): Update.
18113 * remote.c (remote_target::get_offsets): Update.
18114 * psymtab.c (find_pc_sect_psymtab): Update.
18115 * psympriv.h (struct partial_symbol) <address, text_low,
18116 text_high>: Update.
18117 * objfiles.h (obj_section_offset): Update.
18118 (struct objfile) <section_offsets>: Change type.
18119 <num_sections>: Remove.
18120 (objfile_relocate): Update.
18121 * objfiles.c (entry_point_address_query): Update
18122 (relocate_one_symbol): Change type of "section_offsets".
18123 (objfile_relocate1, objfile_relocate1): Change type of
18125 (objfile_rebase1): Update.
18126 * mipsread.c (mipscoff_symfile_read): Update.
18127 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18129 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18130 (parse_external, psymtab_to_symtab_1): Update.
18131 * machoread.c (macho_symfile_offsets): Update.
18132 * ia64-tdep.c (ia64_find_unwind_table): Update.
18133 * hppa-tdep.c (read_unwind_info): Update.
18134 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18135 * dwarf2read.c (create_addrmap_from_index)
18136 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18137 (process_psymtab_comp_unit_reader, add_partial_symbol)
18138 (add_partial_subprogram, process_full_comp_unit)
18139 (read_file_scope, read_func_scope, read_lexical_block_scope)
18140 (read_call_site_scope, dwarf2_rnglists_process)
18141 (dwarf2_ranges_process, dwarf2_ranges_read)
18142 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18143 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18145 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18147 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18148 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18149 (process_one_symbol): Change type of "section_offsets".
18150 * ctfread.c (get_objfile_text_range): Update.
18151 * coffread.c (coff_symtab_read, enter_linenos)
18152 (process_coff_symbol): Update.
18153 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18154 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18156 2020-01-08 Tom Tromey <tromey@adacore.com>
18158 * dwarf2read.c (parse_macro_definition): Use std::string.
18159 (parse_macro_definition): Likewise.
18161 2020-01-08 Tom Tromey <tromey@adacore.com>
18163 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18164 (ATTR_ALLOC_CHUNK): Remove.
18166 2020-01-08 Tom Tromey <tromey@adacore.com>
18168 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18170 2020-01-08 Tom Tromey <tromey@adacore.com>
18172 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18173 (dwarf2_compute_name, open_dwo_file): Likewise.
18174 (process_enumeration_scope): Use std::vector.
18175 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18176 (partial_die_info::fixup, dwarf2_start_subfile)
18177 (guess_full_die_structure_name, dwarf2_name): Likewise.
18178 (determine_prefix): Update.
18179 (guess_full_die_structure_name): Make return type const.
18180 (partial_die_full_name): Return unique_xmalloc_ptr.
18181 (DW_FIELD_ALLOC_CHUNK): Remove.
18183 2020-01-07 Tom Tromey <tromey@adacore.com>
18186 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18188 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18190 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18192 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18194 * stack.c (print_frame_info): Move disassemble_next_line code
18195 inside source_print block.
18197 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18199 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18200 gdb/signals.h, as we are now using native signal symbols.
18202 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18204 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18205 overflow by an early check of content vs threshold.
18206 * tui/tui-source.c (tui_source_window::line_is_displayed):
18209 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18211 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18213 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18215 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18216 export table if no section contains it's RVA.
18218 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18220 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18222 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
18224 * source.c (print_source_lines_base): Set last_line_listed.
18226 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18228 * tui/tui-disasm.c: Remove trailing spaces.
18230 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18231 Pedro Alves <palves@redhat.com>
18233 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18234 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18235 (windows_gdb_signal_to_target): New function, uses the above
18236 enumeration to convert GDB internal signal codes to equivalent
18238 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18239 * windows-nat.c: Include "gdb_wait.h".
18240 (get_windows_debug_event): Extract the fatal exception from the
18241 exit status and convert to the equivalent Posix signal number.
18242 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18243 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18244 * gdbsupport/gdb_wait.c: New file, implements
18245 windows_status_to_termsig.
18246 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18247 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18249 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18251 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18254 2020-01-05 Luis Machado <luis.machado@linaro.org>
18256 * aarch64-linux-nat.c
18257 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18258 and bfd_mach_aarch64.
18260 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18262 * ui-file.c (stdio_file::can_emit_style_escape)
18263 (tee_file::can_emit_style_escape): Ensure style is used also on
18264 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18266 * main.c (set_gdb_data_directory): Use file style to output the
18267 warning that the given pathname is not a directory.
18268 * top.c (show_history_filename, gdb_safe_append_history)
18269 (show_gdb_datadir): Use file style.
18271 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18273 * solib-target.c (struct lm_info_target):
18274 Change offsets to be a unique_xmalloc_ptr.
18275 (solib_target_relocate_section_addresses): Update.
18277 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18279 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18281 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18283 * MAINTAINERS (Write After Approval): Add myself.
18285 2020-01-02 Luis Machado <luis.machado@linaro.org>
18287 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18288 Cell BE architecture.
18289 * target.h (struct target_ops) <thread_architecture>: Likewise.
18291 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18293 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18295 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18297 * MAINTAINERS (Write After Approval): Add myself.
18299 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18301 * gdbarch.sh: Update copyright year range of generated files.
18303 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18305 Update copyright year range in all GDB files.
18307 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18309 * copyright.py: Convert to Python 3.
18311 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18313 * copyright.py: Adapt after move of gnulib directory from gdb
18314 directory to toplevel directory.
18316 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18318 * copyright.py (main): Exit if run from the wrong directory.
18320 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18322 * top.c (print_gdb_version): Change copyright year to 2020.
18324 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18326 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18328 For older changes see ChangeLog-2019.
18334 version-control: never