1 2020-12-15 Tom Tromey <tom@tromey.com>
3 * varobj.c (varobj_create): Use first_opcode.
4 * value.c (init_if_undefined_command): Use first_opcode.
5 * typeprint.c (whatis_exp): Use first_opcode.
6 * tracepoint.c (validate_actionline): Use first_opcode.
7 (encode_actions_1): Use first_opcode.
8 * stack.c (return_command): Use first_opcode.
9 * expression.h (struct expression) <first_opcode>: New method.
10 * eval.c (parse_and_eval_type): Use first_opcode.
11 * dtrace-probe.c (dtrace_process_dof_probe): Use first_opcode.
13 2020-12-15 Tom Tromey <tom@tromey.com>
15 * f-lang.c (evaluate_subexp_f): Update.
16 * expression.h (evaluate_subexp_do_call): Update.
17 * eval.c (evaluate_subexp_do_call): Add callee parameter. Replace
18 nargs, argvec with array_view.
19 (evaluate_funcall): Update.
21 2020-12-15 Tom Tromey <tom@tromey.com>
23 * ada-lang.c (num_component_specs): Remove.
24 (assign_aggregate): Update.
25 (aggregate_assign_positional, aggregate_assign_from_choices)
26 (aggregate_assign_others, add_component_interval): Change
29 2020-12-15 Tom Tromey <tromey@adacore.com>
31 * cli/cli-decode.c (deprecated_cmd_warning): Use title style for
34 2020-12-14 Tom Tromey <tom@tromey.com>
36 * dtrace-probe.c (dtrace_process_dof_probe): Use value_type.
37 * typeprint.c (whatis_exp): Always use evaluate_type.
38 (maintenance_print_type): Likewise. Simplify.
40 2020-12-14 Tom Tromey <tromey@adacore.com>
42 * dictionary.c (language_defn::search_name_hash): Ignore "B".
43 * ada-lang.c (advance_wild_match): Ignore "B".
45 (do_full_match): Rewrite.
47 2020-12-14 Tom Tromey <tromey@adacore.com>
49 * ada-lang.c (get_var_value): Only consider exact matches.
51 2020-12-14 Tom Tromey <tromey@adacore.com>
53 * dwarf2/read.c (rewrite_array_type): New function.
54 (quirk_ada_thick_pointer_struct): Use rewrite_array_type.
56 2020-12-14 Tom Tromey <tromey@adacore.com>
58 * valarith.c (fixed_point_binop): Call error on division by zero.
60 2020-12-13 Tom Tromey <tom@tromey.com>
62 * gdbtypes.c (safe_parse_type): Make argument const.
63 * value.h (parse_and_eval_type): Make argument const.
64 * eval.c (parse_and_eval_type): Make argument const.
66 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
68 * NEWS: Mention new commands.
69 * target-dcache.c: Add 'cli/cli-cmds.h' include.
70 (maint_flush_dcache_command): New function.
71 (_initialize_target_dcache): Create new 'maint flush dcache'
74 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
76 * NEWS: Mention new commands, and that the old commands are now
78 * cli/cli-cmds.c (maintenanceflushlist): Define.
79 * cli/cli-cmds.h (maintenanceflushlist): Declare.
80 * maint.c (_initialize_maint_cmds): Initialise
82 * regcache.c: Add 'cli/cli-cmds.h' include.
83 (reg_flush_command): Add header comment.
84 (_initialize_regcache): Create new 'maint flush register-cache'
85 command, make 'flushregs' an alias.
86 * symtab.c: Add 'cli/cli-cmds.h' include.
87 (_initialize_symtab): Create new 'maint flush symbol-cache'
88 command, make old command an alias.
90 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
92 * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix
93 result from lookup_cmd_composition_1, use the prefixes from both
94 the command and the alias instead.
95 (lookup_cmd_composition_1): Initial prefix command is the based on
96 the search list being passed in. Simplify the logic for tracking
97 the prefix command. Replace a use of alloca with a local
100 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
102 * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
103 of NULL. Don't print message piece by piece, but sentence at a
104 time to allow internationalisation. Some whitespace cleanup.
106 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
109 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
110 deprecated_cmd_warning.
111 (deprecated_cmd_warning): Take extra parameter, call
112 lookup_cmd_composition_1 and pass new parameter through.
113 (lookup_cmd_composition_1): New function, takes implementation of
114 lookup_cmd_composition but with extra parameter.
115 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
117 * command.h (deprecated_cmd_warning): Add extra parameter to
119 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
121 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
123 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
124 command.h, add extra parameter, and use this to guard giving a
126 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
127 include argument names in declaration, add new argument.
128 * completer.c (complete_line_internal_1): Remove unneeded
129 brackets, pass extra argument to lookup_cmd_1.
131 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
133 * infrun.h (debug_infrun): Make a bool.
134 * infrun.c (debug_infrun): Make a bool.
135 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
138 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
140 * displaced-stepping.h (displaced_debug_printf): Use
141 debug_prefixed_printf_cond.
142 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
143 (dwarf_read_debug_printf_v): Likewise.
144 * infrun.h (infrun_debug_printf): Likewise.
145 * linux-nat.c (linux_nat_debug_printf): Likewise.
147 2020-12-11 Tom Tromey <tom@tromey.com>
149 * p-exp.y (intvar): Remove global.
150 (DOLLAR_VARIABLE): Change type.
152 (exp): Call write_dollar_variable here...
153 (yylex): ... not here.
154 * m2-exp.y (DOLLAR_VARIABLE): Change type.
155 (variable): Call write_dollar_variable here...
156 (yylex): ... not here.
157 * f-exp.y (DOLLAR_VARIABLE): Change type.
158 (exp): Call write_dollar_variable here...
159 (yylex): ... not here.
161 2020-12-11 Tom Tromey <tom@tromey.com>
163 * varobj.c (varobj_create): Update.
164 (install_variable): Return void.
166 2020-12-11 Tom Tromey <tom@tromey.com>
168 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
170 2020-12-11 Tom Tromey <tom@tromey.com>
172 * varobj.c (varobj_clear_saved_item): Remove.
173 (update_dynamic_varobj_children): Update.
174 (varobj::~varobj): Don't call varobj_clear_saved_item.
176 2020-12-11 Tom Tromey <tom@tromey.com>
178 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
179 (update_dynamic_varobj_children, create_child)
180 (create_child_with_value): Update.
181 * varobj-iter.h (struct varobj_item) <value>: Now a
183 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
185 2020-12-11 Tom Tromey <tom@tromey.com>
187 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
188 (varobj_get_iterator): Return unique_ptr.
189 (update_dynamic_varobj_children, install_visualizer)
190 (varobj::~varobj): Update.
191 * python/python-internal.h (py_varobj_get_iterator): Return
193 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
195 2020-12-11 Tom Tromey <tom@tromey.com>
197 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
198 (varobj_clear_saved_item, update_dynamic_varobj_children):
201 2020-12-11 Tom Tromey <tom@tromey.com>
203 * varobj.c (update_dynamic_varobj_children): Update.
204 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
205 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
207 (py_varobj_iter::next): Likewise.
209 2020-12-11 Tom Tromey <tom@tromey.com>
211 * varobj.c (update_dynamic_varobj_children, install_visualizer)
212 (varobj::~varobj): Update.
213 * varobj-iter.h (struct varobj_iter): Change to interface class.
214 (struct varobj_iter_ops): Remove.
215 (varobj_iter_next, varobj_iter_delete): Remove.
216 * python/py-varobj.c (struct py_varobj_iter): Derive from
217 varobj_iter. Add constructor, destructor. Rename members.
218 (py_varobj_iter::~py_varobj_iter): Rename from
220 (py_varobj_iter::next): Rename from py_varobj_iter_next.
221 (py_varobj_iter_ops): Remove.
222 (py_varobj_iter): Rename from py_varobj_iter_ctor.
223 (py_varobj_iter_new): Remove.
224 (py_varobj_get_iterator): Update.
226 2020-12-11 Tom Tromey <tom@tromey.com>
228 * varobj.h (all_root_varobjs): Take a function_view.
229 * varobj.c (all_root_varobjs): Take a function_view.
230 (varobj_invalidate_iter): Remove unused parameter.
231 (varobj_invalidate): Update.
232 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
233 (mi_cmd_var_update_iter): Change parameters.
235 2020-12-11 Tom Tromey <tom@tromey.com>
237 * varobj.c (struct varobj_root) <next>: Remove.
238 (struct vlist): Remove.
239 (rootlist): Now a std::list.
240 (install_variable, uninstall_variable, all_root_varobjs): Update.
242 2020-12-11 Tom Tromey <tom@tromey.com>
244 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
245 (varobj_table): Now htab_t.
246 (varobj_get_handle, install_variable, uninstall_variable):
248 (hash_varobj, eq_varobj_and_string): New functions.
249 (hash_varobj): Update.
251 2020-12-11 Tom Tromey <tom@tromey.com>
253 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
254 * ada-lang.c (check_status_exception): Update.
255 * breakpoint.c (free_bp_location): Remove.
256 (decref_bp_location): Use bp_location_ref_policy.
257 (bpstats::bpstats): Don't call incref_bp_location.
258 (bpstats::~bpstats): Remove.
259 (bpstats::bpstats): Update.
260 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
261 (bp_location::bp_location): Update.
262 (incref_bp_location): Remove.
263 (bkpt_print_it): Update.
264 * breakpoint.h (class bp_location): Derive from
266 (struct bpstats): Remove destructor.
267 <bp_location_at>: Now a bp_location_ref_ptr.
269 (bp_location_ref_ptr): New typedef.
270 (struct bp_location_ref_policy): New.
272 2020-12-11 Tom Tromey <tom@tromey.com>
274 * thread.c (class scoped_inc_dec_ref): Remove.
275 (tp_array_compar_ascending, tp_array_compar_descending): Change
277 (thread_apply_all_command): Use thread_info_ref.
279 2020-12-11 Tom Tromey <tom@tromey.com>
281 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
282 (stop_context::stop_context): Update.
283 (stop_context::~stop_context): Remove.
285 2020-12-11 Tom Tromey <tom@tromey.com>
287 * inferior.c (current_inferior_): Change type.
288 (current_inferior, set_current_inferior, initialize_inferiors):
291 2020-12-11 Tom Tromey <tom@tromey.com>
293 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
296 2020-12-11 Tom Tromey <tromey@adacore.com>
298 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
300 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
301 (read_atcb): Use cpu_id_offset.
303 2020-12-10 Kevin Buettner <kevinb@redhat.com>
305 * ada-lang.c (ada_fold_name): Fix off-by-one error.
307 2020-12-10 Luis Machado <luis.machado@linaro.org>
309 * breakpoint.c (should_be_inserted): Don't output newline.
311 2020-12-10 Luis Machado <luis.machado@linaro.org>
313 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
314 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
315 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
316 * arch/aarch64.h: ... here.
317 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
318 (aarch64_maybe_swab128): New function.
319 (aarch64_sve_regs_copy_to_reg_buf)
320 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
321 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
323 (TF_REG_VALUE_BYTES): New enum value.
324 (trad_frame_value_bytes_p): New function.
325 (trad_frame_set_value_bytes): New function.
326 (trad_frame_set_reg_value_bytes): New function.
327 (trad_frame_get_prev_register): Handle register values saved as bytes.
328 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
329 (struct trad_frame_saved_reg) <data>: New field.
330 (trad_frame_set_value_bytes): New prototype.
331 (trad_frame_value_bytes_p): New prototype.
333 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
335 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
336 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
337 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
339 2020-12-09 Tom Tromey <tromey@adacore.com>
341 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
343 2020-12-09 Tom Tromey <tromey@adacore.com>
345 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
346 and "denominator" to gdb_mpz. Handle block forms.
347 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
348 "denominator" to gdb_mpz.
349 (finish_fixed_point_type): Update.
350 (has_zero_over_zero_small_attribute): Update.
352 2020-12-09 Tom Tromey <tromey@adacore.com>
354 * expprint.c (op_name): Update.
355 * expression.h (enum exp_opcode): Update.
356 * std-operator.def: Add more opcodes.
357 * ada-operator.def, fortran-operator.def: Remove, moving contents
358 into std-operator.def.
360 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
362 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
363 Return {} instead of false.
364 (get_discrete_bounds): Compute high bound only if low bound is
367 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
370 * gdbtypes.c (get_discrete_low_bound): Make non-static.
371 (get_discrete_high_bound): Make non-static.
372 * gdbtypes.h (get_discrete_low_bound): New declaration.
373 (get_discrete_high_bound): New declaration.
374 * valarith.c (value_subscript): Only fetch high bound if
377 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
379 * gdbtypes.c (get_discrete_bounds): Implement with
380 get_discrete_low_bound and get_discrete_high_bound.
381 (get_discrete_low_bound): New.
382 (get_discrete_high_bound): New.
384 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
386 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
388 * gdbtypes.c (get_discrete_bounds): Return bool.
390 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
392 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
393 (ada_value_slice): Adjust.
395 * gdbtypes.c (get_discrete_bounds): Adjust.
396 (discrete_position): Return optional.
397 * gdbtypes.h (discrete_position): Return optional.
399 2020-12-07 Tom Tromey <tromey@adacore.com>
401 * maint.c (_initialize_maint_cmds): Use expression command
402 completer for "maint print type".
404 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
406 * completer.c (complete_explicit_location): Also add keywords
407 that start with '-' to the completion list.
409 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
411 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
412 keyword may be followed by any keyword.
413 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
414 'toklen' in the case for "-force-condition".
416 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
418 * main.c (catch_command_errors): Add a flag parameter; invoke
419 `bpstat_do_actions` if the flag is set.
420 (execute_cmdargs): Update a call to `catch_command_errors`.
422 2020-12-07 Tom de Vries <tdevries@suse.de>
424 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
426 2020-12-06 Tom Tromey <tom@tromey.com>
429 * ada-lang.c (replace_operator_with_call): Rewrite.
431 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
434 * s390-tdep.h (op_bc): Correct BC opcode value.
436 2020-12-06 Joel Brobecker <brobecker@adacore.com>
438 * gmp-utils.h (gdb_mpz::safe_export): New private method.
439 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
440 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
441 (gdb_mpz::safe_export): New method.
442 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
443 Update function description.
444 (check_as_integer_raises_out_of_range_error): New function.
445 (gdb_mpz_as_integer_out_of_range): New function.
446 (_initialize_gmp_utils_selftests): Register
447 gdb_mpz_as_integer_out_of_range as a selftest.
449 2020-12-05 Joel Brobecker <brobecker@adacore.com>
451 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
453 (gdb_mpz::write): Likewise.
455 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
457 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
458 number of displaced step buffers.
460 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
462 * displaced-stepping.h (struct displaced_step_buffer): Rename
464 (struct displaced_step_buffers): ... this.
465 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
466 <struct displaced_step_buffer>: New inner class.
468 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
470 (displaced_step_buffers::prepare): ... this, adjust for multiple
472 (displaced_step_buffer::finish): Rename to...
473 (displaced_step_buffers::finish): ... this, adjust for multiple
475 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
476 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
477 adjust for multiple buffers.
478 (displaced_step_buffer::restore_in_ptid): Rename to...
479 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
481 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
482 for num_disp_step_buffers.
483 * linux-tdep.c (struct linux_gdbarch_data)
484 <num_disp_step_buffers>: New field.
485 (struct linux_info) <disp_step_buf>: Rename to...
486 <disp_step_bufs>: ... this, change type to
487 displaced_step_buffers.
488 (linux_displaced_step_prepare): Use
489 linux_gdbarch_data::num_disp_step_buffers to create that number
491 (linux_displaced_step_finish): Adjust.
492 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
493 (linux_displaced_step_restore_all_in_ptid): Adjust.
494 (linux_init_abi): Change supports_displaced_step parameter for
495 num_disp_step_buffers, save it in linux_gdbarch_data.
496 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
497 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
498 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
499 supports_displaced_step parameter for num_disp_step_buffers.
500 (amd64_linux_init_abi): Adjust.
501 (amd64_x32_linux_init_abi): Adjust.
502 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
503 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
504 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
505 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
506 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
507 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
508 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
509 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
510 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
511 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
512 * m68k-linux-tdep.c (m68k_linux_init_abi):
513 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
514 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
515 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
516 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
517 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
518 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
519 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
520 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
521 Change type to displaced_step_buffers.
522 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
523 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
524 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
525 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
526 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
527 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
528 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
530 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
532 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
534 (_initialize_linux_tdep): Register pre-init gdb data instead of
537 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
539 * displaced-stepping.h (struct
540 displaced_step_copy_insn_closure): Adjust comments.
541 (struct displaced_step_inferior_state) <step_thread,
542 step_gdbarch, step_closure, step_original, step_copy,
543 step_saved_copy>: Remove fields.
544 (struct displaced_step_thread_state): New.
545 (struct displaced_step_buffer): New.
546 * displaced-stepping.c (displaced_step_buffer::prepare): New.
547 (write_memory_ptid): Move from infrun.c.
548 (displaced_step_instruction_executed_successfully): New,
549 factored out of displaced_step_finish.
550 (displaced_step_buffer::finish): New.
551 (displaced_step_buffer::copy_insn_closure_by_addr): New.
552 (displaced_step_buffer::restore_in_ptid): New.
553 * gdbarch.sh (displaced_step_location): Remove.
554 (displaced_step_prepare, displaced_step_finish,
555 displaced_step_copy_insn_closure_by_addr,
556 displaced_step_restore_all_in_ptid): New.
557 * gdbarch.c: Re-generate.
558 * gdbarch.h: Re-generate.
559 * gdbthread.h (class thread_info) <displaced_step_state>: New
561 (thread_step_over_chain_remove): New declaration.
562 (thread_step_over_chain_next): New declaration.
563 (thread_step_over_chain_length): New declaration.
564 * thread.c (thread_step_over_chain_remove): Make non-static.
565 (thread_step_over_chain_next): New.
566 (global_thread_step_over_chain_next): Use
567 thread_step_over_chain_next.
568 (thread_step_over_chain_length): New.
569 (global_thread_step_over_chain_enqueue): Add debug print.
570 (global_thread_step_over_chain_remove): Add debug print.
571 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
573 * infrun.c (get_displaced_stepping_state): New.
574 (displaced_step_in_progress_any_inferior): Remove.
575 (displaced_step_in_progress_thread): Adjust.
576 (displaced_step_in_progress): Adjust.
577 (displaced_step_in_progress_any_thread): New.
578 (get_displaced_step_copy_insn_closure_by_addr): Remove.
579 (gdbarch_supports_displaced_stepping): Use
580 gdbarch_displaced_step_prepare_p.
581 (displaced_step_reset): Change parameter from inferior to
583 (displaced_step_prepare_throw): Implement using
584 gdbarch_displaced_step_prepare.
585 (write_memory_ptid): Move to displaced-step.c.
586 (displaced_step_restore): Remove.
587 (displaced_step_finish): Implement using
588 gdbarch_displaced_step_finish.
589 (start_step_over): Allow starting more than one displaced step.
590 (prepare_for_detach): Handle possibly multiple threads doing
592 (handle_inferior_event): Handle possibility that fork event
593 happens while another thread displaced steps.
594 * linux-tdep.h (linux_displaced_step_prepare): New.
595 (linux_displaced_step_finish): New.
596 (linux_displaced_step_copy_insn_closure_by_addr): New.
597 (linux_displaced_step_restore_all_in_ptid): New.
598 (linux_init_abi): Add supports_displaced_step parameter.
599 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
600 (linux_displaced_step_prepare): New.
601 (linux_displaced_step_finish): New.
602 (linux_displaced_step_copy_insn_closure_by_addr): New.
603 (linux_displaced_step_restore_all_in_ptid): New.
604 (linux_init_abi): Add supports_displaced_step parameter,
605 register displaced step methods if true.
606 (_initialize_linux_tdep): Register inferior_execd observer.
607 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
608 supports_displaced_step parameter, adjust call to
609 linux_init_abi. Remove call to
610 set_gdbarch_displaced_step_location.
611 (amd64_linux_init_abi): Adjust call to
612 amd64_linux_init_abi_common.
613 (amd64_x32_linux_init_abi): Likewise.
614 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
615 linux_init_abi. Remove call to
616 set_gdbarch_displaced_step_location.
617 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
618 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
619 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
621 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
622 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
623 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
624 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
625 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
626 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
627 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
628 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
629 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
630 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
631 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
632 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
633 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
634 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
635 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
636 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
637 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
638 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
639 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
640 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
641 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
642 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
643 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
644 linux_init_abi. Remove call to
645 set_gdbarch_displaced_step_location.
646 * arm-tdep.c (arm_pc_is_thumb): Call
647 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
648 get_displaced_step_copy_insn_closure_by_addr.
649 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
650 clear gdbarch methods.
651 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
652 (get_ppc_per_inferior): New function.
653 (ppc_displaced_step_prepare): New function.
654 (ppc_displaced_step_finish): New function.
655 (ppc_displaced_step_restore_all_in_ptid): New function.
656 (rs6000_gdbarch_init): Register new gdbarch methods.
657 * s390-tdep.c (s390_gdbarch_init): Don't call
658 set_gdbarch_displaced_step_location, set new gdbarch methods.
660 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
662 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
663 * aarch64-tdep.h: Include displaced-stepping.h.
664 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
666 (displaced_step_copy_insn_closure_up): Move here.
667 (struct buf_displaced_step_copy_insn_closure): Move here.
668 (struct displaced_step_inferior_state): Move here.
669 (debug_displaced): Move here.
670 (displaced_debug_printf_1): Move here.
671 (displaced_debug_printf): Move here.
672 * displaced-stepping.c: New file.
673 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
674 * gdbarch.h: Re-generate.
675 * inferior.h: Include displaced-stepping.h.
676 * infrun.h (debug_displaced): Move to displaced-stepping.h.
677 (displaced_debug_printf_1): Likewise.
678 (displaced_debug_printf): Likewise.
679 (struct displaced_step_copy_insn_closure): Likewise.
680 (displaced_step_copy_insn_closure_up): Likewise.
681 (struct buf_displaced_step_copy_insn_closure): Likewise.
682 (struct displaced_step_inferior_state): Likewise.
683 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
684 (displaced_debug_printf_1): Likewise.
685 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
687 (_initialize_infrun): Don't register "set/show debug displaced".
689 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
691 * linux-tdep.c (get_linux_inferior_data): Add inferior
693 (linux_vsyscall_range): Pass current inferior.
695 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
697 * infrun.c (displaced_step_prepare_throw): Change return type to
698 displaced_step_prepare_status.
699 (displaced_step_prepare): Likewise.
700 (displaced_step_finish): Change return type to
701 displaced_step_finish_status.
703 (stop_all_threads): Adjust.
704 * displaced-stepping.h: New file.
706 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
708 * infrun.c (displaced_step_fixup): Rename to...
709 (displaced_step_finish): ... this, update all callers.
711 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
713 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
714 (get_displaced_step_copy_insn_closure_by_addr): ... this.
716 (displaced_step_closure): Rename to...
717 (displaced_step_copy_insn_closure): ... this. Update all users.
718 (displaced_step_closure_up): Rename to...
719 (displaced_step_copy_insn_closure_up). ... this. Update all
721 (buf_displaced_step_closure): Rename to...
722 (buf_displaced_step_copy_insn_closure): ... this. Update all
724 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
725 (get_displaced_step_copy_insn_closure_by_addr): ... this.
727 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
728 (aarch64_displaced_step_copy_insn_closure): ... this. Update
730 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
731 (amd64_displaced_step_copy_insn_closure): ... this. Update all
733 * arm-tdep.h (arm_displaced_step_closure): Rename to...
734 (arm_displaced_step_copy_insn_closure): ... this. Update all
736 * i386-tdep.h (i386_displaced_step_closure): Rename to...
737 (i386_displaced_step_copy_insn_closure): ... this. Update all
739 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
740 (ppc_displaced_step_copy_insn_closure): ... this. Update all
742 * s390-tdep.c (s390_displaced_step_closure): Rename to...
743 (s390_displaced_step_copy_insn_closure): ... this. Update all
745 * gdbarch.h: Re-generate.
746 * gdbarch.c: Re-generate.
748 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
750 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
751 (global_thread_step_over_chain_enqueue): ... this. Update all
753 (thread_step_over_chain_remove): Rename to...
754 (global_thread_step_over_chain_remove): ... this. Update all
756 (thread_step_over_chain_next): Rename to...
757 (global_thread_step_over_chain_next): ... this. Update all
759 * infrun.h (step_over_queue_head): Rename to...
760 (global_thread_step_over_chain_head): ... this. Update all
762 * infrun.c (step_over_queue_head): Rename to...
763 (global_thread_step_over_chain_head): ... this. Update all
765 * thread.c (step_over_chain_remove): Rename to...
766 (thread_step_over_chain_remove): ... this. Update all users.
767 (thread_step_over_chain_next): Rename to...
768 (global_thread_step_over_chain_next): ... this. Update all
770 (thread_step_over_chain_enqueue): Rename to...
771 (global_thread_step_over_chain_enqueue): ... this. Update all
773 (thread_step_over_chain_remove): Rename to...
774 (global_thread_step_over_chain_remove): ... this. Update all
777 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
779 * infrun.c (get_displaced_stepping_state): Remove, change
780 callers to access the field directly.
782 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
784 * infrun.c (handle_inferior_event): Restore displaced step
785 buffer bytes in child process when handling fork, even if fork
786 happened in another thread than the displaced-stepping one.
788 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
790 * infrun.c (infrun_inferior_execd): New function.
791 (_initialize_infrun): Attach inferior_execd observer.
793 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
795 * observable.h (inferior_execd): Declare new observable.
796 * observable.c (inferior_execd): Declare new observable.
797 * infrun.c (follow_exec): Notify inferior_execd observer.
798 * jit.c (jit_inferior_created_hook): Make static.
799 (_initialize_jit): Register inferior_execd observer.
800 * jit.h (jit_inferior_created_hook): Remove declaration.
801 * solib.c (_initialize_solib): Register inferior_execd observer.
803 2020-12-04 Tom de Vries <tdevries@suse.de>
806 * completer.c (completion_tracker::build_completion_result): Don't
807 access match_list[0][-1].
809 2020-12-04 Tom Tromey <tromey@adacore.com>
811 * linespec.c (struct linespec_token): Rename; remove typedef.
812 * guile/scm-block.c (struct block_smob): Remove typedef.
813 (struct block_syms_progress_smob): Likewise.
814 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
815 * guile/scm-symtab.c (symtab_smob): Remove typedef.
816 (struct sal_smob): Remove typedef.
817 * guile/scm-param.c (struct param_smob): Remove typedef.
818 * guile/scm-progspace.c (struct pspace_smob): Rename.
819 * guile/scm-objfile.c (struct objfile_smob): Rename.
820 * guile/scm-iterator.c (struct iterator_smob): Rename.
821 * guile/scm-frame.c (struct frame_smob): Rename.
822 * guile/scm-arch.c (struct arch_smob): Rename.
823 * guile/scm-type.c (struct field_smob): Remove typedef.
824 (struct type_smob): Rename.
825 * guile/scm-cmd.c (struct command_smob): Remove typedef.
826 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
827 * guile/scm-value.c (struct value_smob): Remove typedef.
828 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
829 * guile/guile-internal.h (struct scheme_variable)
830 (struct scheme_function, struct scheme_integer_constant)
831 (struct gdb_smob, struct chained_gdb_smob)
832 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
833 (objfile_smob, pspace_smob, type_smob): Remove typedef.
834 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
835 (struct pretty_printer_worker_smob): Remove typedef.
836 * guile/scm-exception.c (struct exception_smob): Remove typedef.
837 * python/py-block.c (struct block_object): Remove typedef.
838 (block_syms_iterator_object): Update.
840 (block_syms_iterator_object): Remove typedef.
841 * python/py-inferior.c (struct membuf_object): Remove typedef.
842 * python/py-symtab.c (struct symtab_object): Remove typedef.
843 (set_symtab): Update.
844 (sal_object): Remove typedef.
846 * python/py-frame.c (frame_object): Remove typedef.
847 * python/py-record-btrace.c (struct btpy_list_object): Remove
849 * python/py-arch.c (struct arch_object): Remove typedef.
850 * python/py-linetable.c (struct linetable_entry_object)
851 (linetable_object, struct ltpy_iterator_object): Remove typedef.
852 * python/py-events.h (eventregistry_object): Remove typedef.
853 (struct events_object): Remove typedef.
854 * python/python-internal.h (gdbpy_breakpoint_object): Remove
856 (thread_object): Remove typedef.
857 * python/py-progspace.c (pspace_object): Remove typedef.
858 * python/py-value.c (struct value_object): Remove typedef.
859 * python/py-record.h (recpy_record_object): Remove typedef.
860 (struct recpy_element_object): Remove typedef.
861 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
862 * python/py-objfile.c (objfile_object): Remove typedef.
863 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
864 * python/py-type.c (type_object): Remove typedef.
865 (typy_iterator_object): Update.
867 (field_object): Remove typedef.
868 (typy_iterator_object): Remove typedef.
869 * python/py-registers.c (register_descriptor_iterator_object):
871 (struct register_descriptor_object)
872 (struct reggroup_iterator_object, struct reggroup_object): Remove
874 * python/py-record.c (recpy_gap_object): Remove typedef.
875 * python/py-symbol.c (symbol_object): Remove typedef.
876 (set_symbol): Update.
877 * python/py-event.h (event_object): Remove typedef.
878 * python/py-param.c (parmpy_object): Remove typedef.
879 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
880 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
881 (unwind_info_object, struct cached_frame_info): Likewise.
883 2020-12-04 Tom Tromey <tromey@adacore.com>
885 * value.c (value_internal_function_name): Make return type const.
886 * value.h (value_internal_function_name): Make return type const.
888 2020-12-04 Luis Machado <luis.machado@linaro.org>
890 * aarch64-tdep.c (submask, bit, bits): Remove.
891 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
892 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
893 (aarch64_decode_cb, aarch64_decode_tb)
894 (aarch64_decode_ldr_literal): Use sbits to extract a signed
896 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
898 2020-12-04 Tom de Vries <tdevries@suse.de>
901 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
903 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
906 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
907 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
909 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
911 * arch/riscv.c: Include 'rv32e-xregs.c'.
912 (riscv_create_target_description): Update to handle rv32e.
913 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
915 <operator==>: Update to account for new field.
917 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
918 * features/riscv/rv32e-xregs.c: Generated.
919 * features/riscv/rv32e-xregs.xml: New file.
920 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
922 (riscv_debug_infcall): Likewise.
923 (riscv_debug_unwinder): Likewise.
924 (riscv_debug_gdbarch): Likewise.
925 (enum riscv_register_required_status): Delete.
926 (struct riscv_register_feature): Add constructor, delete default
927 constructor, copy, and assign constructors.
928 (struct riscv_register_feature::register_info) <required>: Delete.
929 <check>: Update comment and arguments.
930 (struct riscv_register_feature) <name>: Change to member function.
931 <prefer_first_name>: Delete.
932 <tdesc_feature>: New member function.
933 <registers>: Rename to...
934 <m_registers>: ...this.
935 <m_feature_name>: New member variable.
936 (riscv_register_feature::register_info::check): Update arguments.
937 (riscv_xreg_feature): Rewrite as class, create a single static
938 instance of the class.
939 (riscv_freg_feature): Likewise.
940 (riscv_virtual_feature): Likewise.
941 (riscv_csr_feature): Likewise.
942 (riscv_create_csr_aliases): Has become a member function inside
943 riscv_csr_feature class.
944 (riscv_abi_embedded): New function definition.
945 (riscv_register_name): Adjust to use new feature objects.
946 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
947 and adjust available argument registers.
948 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
949 (riscv_check_tdesc_feature): Delete.
950 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
951 (riscv_gdbarch_init): Delete target description checking code, and
952 instead call to the new feature objects to perform the checks.
953 Reorder handling of no abi information case, allows small code
955 (_initialize_riscv_tdep): Remove call, this is now done in the
956 riscv_csr_feature constructor.
957 * riscv-tdep.h (riscv_abi_embedded): Declare.
959 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
961 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
964 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
966 * riscv-tdep.c (riscv_is_unknown_csr): New function,
967 implementation moved from riscv_register_reggroup_p.
968 (riscv_register_reggroup_p): Update group handling for unknown
971 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
973 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
974 (dwarf2_get_dwz_file): Convert 'filename' to a
975 std::string. Use dwz_search_other_debugdirs to search for DWZ
976 files in the debug-file-directories provided by the user as well.
978 2020-12-01 Tom Tromey <tom@tromey.com>
980 * parse.c (expr_builder::expr_builder): Initialize expout.
981 (expr_builder::release): Use expression::resize.
982 (expression::expression, expression::~expression)
983 (expression::resize): New methods.
984 (write_exp_elt): Use expression::resize.
985 (prefixify_expression): Update.
986 (increase_expout_size): Use expression::resize.
987 * expression.h (struct expression): Add constructor, destructor.
988 <resize>: New method.
989 (expression_up): Change type.
991 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
992 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
993 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
996 2020-11-30 Tom de Vries <tdevries@suse.de>
999 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
1000 is_reference parameter.
1001 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
1003 2020-11-30 Tom Tromey <tom@tromey.com>
1005 * rust-lang.c (rust_op_name): Remove.
1006 (exp_descriptor_rust): Update.
1007 * parser-defs.h (op_name_standard): Don't declare.
1008 (struct exp_descriptor) <op_name>: Remove.
1009 * parse.c (exp_descriptor_standard): Update.
1010 * opencl-lang.c (exp_descriptor_opencl): Update.
1011 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
1012 * f-lang.c (op_name_f): Remove.
1013 (f_language::exp_descriptor_tab): Update.
1014 * expression.h (op_name): Update.
1015 * expprint.c (op_name): Rewrite.
1016 (op_name_standard): Remove.
1017 (dump_raw_expression, dump_subexp): Update.
1018 * c-lang.c (exp_descriptor_c): Update.
1019 * ax-gdb.c (gen_expr): Update.
1020 * ada-lang.c (ada_op_name): Remove.
1021 (ada_exp_descriptor): Update.
1023 2020-11-30 Tom Tromey <tom@tromey.com>
1025 * eval.c (init_array_element): Remove.
1026 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
1028 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
1031 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
1032 static locator win info.
1034 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
1036 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
1039 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1041 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
1042 is always initialized.
1044 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
1045 * MAINTAINERS (Write After Approval): Add myself.
1047 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1049 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1050 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
1052 2020-11-25 Tom Tromey <tom@tromey.com>
1054 * eval.c (evaluate_subexp_standard): Remove unnecessary
1057 2020-11-25 Tom Tromey <tom@tromey.com>
1059 * d-lang.c: Include parser-defs.h.
1060 * rust-lang.c: Include parser-defs.h.
1061 * c-lang.h: Do not include parser-defs.h.
1063 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1065 * regcache.h (struct cached_reg): Remove typedef.
1067 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1069 * README: Fix the URL of the MPFR library.
1071 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1073 * README: Document the --with-libgmp-prefix configure option.
1075 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1077 * NEWS: Add entry documenting support for DWARF-based fixed
1080 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1082 * NEWS: Document that building GDB now requires GMP.
1084 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1086 * typeprint.c (print_type_scalar): Add handling of
1087 TYPE_CODE_FIXED_POINT.
1089 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1091 * valarith.c (fixed_point_binop): Replace the
1092 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
1095 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1097 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
1098 replacing fixed_point_scaling_factor. All callers updated
1099 throughout this project.
1100 (fixed_point_scaling_factor): Delete declaration.
1101 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
1102 fixed_point_scaling_factor. Adjust implementation accordingly.
1104 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1106 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1107 replacing the fixed_point_type_base_type function. All callers
1108 updated throughout this project.
1109 (fixed_point_type_base_type): Remove declaration.
1110 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1111 fixed_point_type_base_type. Adjust implementation accordingly.
1113 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1115 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1117 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1118 (TYPE_FIXED_POINT_INFO): Delete macro.
1119 (allocate_fixed_point_type_info): Change return type to void.
1120 * gdbtypes.c (copy_type_recursive): Replace the use of
1121 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1122 (fixed_point_scaling_factor): Likewise.
1123 (allocate_fixed_point_type_info): Change return type to void.
1124 Adjust implementation accordingly.
1125 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1126 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1128 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1130 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1131 into one single gdb::array_view parameter.
1132 (gdb_mpz::write): Likewise.
1133 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1134 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1135 into one single gdb::array_view parameter.
1136 Adjust implementation accordingly.
1137 (gdb_mpz::write): Likewise.
1138 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1139 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1140 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1142 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1144 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1145 Change return type to std::string. Update all callers.
1146 * gmp-utils.c (gmp_string_printf): Likewise.
1148 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1150 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1151 instead of mpq_set_ui to initialize our GMP rational.
1153 2020-11-23 Tom de Vries <tdevries@suse.de>
1155 * debuginfod-support.c (debuginfod_source_query)
1156 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1158 2020-11-21 Tom Tromey <tom@tromey.com>
1160 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1162 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1164 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1166 (gdb_mpz_write_all_from_small): Likewise.
1168 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1170 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1173 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1175 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1176 ctf_arc_open_by_name.
1178 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1180 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1181 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1183 2020-11-20 Pedro Alves <pedro@palves.net>
1185 * language.c (language_arch_info::lookup_primitive_type): Use
1186 gdb::function_view instead of gdb::function.
1187 (template language_lookup_primitive_type): Rename to ...
1188 (language_lookup_primitive_type_1): ... this, and make static.
1189 (language_lookup_primitive_type(const struct language_defn *,
1190 struct gdbarch *, const char *): Make non-template.
1191 (language_lookup_primitive_type(const struct language_defn *,
1192 struct gdbarch *, std::function<bool (struct type *)>): Make
1193 non-template and use gdb::function_view.
1194 * language.h (language_arch_info::lookup_primitive_type): Use
1195 gdb::function_view instead of std::function.
1196 (language_lookup_primitive_type): No longer template.
1197 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1198 lambda instead of a std::function.
1200 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1203 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1206 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1208 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1210 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1212 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1213 in `loop_cb` parameter.
1214 * gdbarch.c: Re-generate.
1215 * gdbarch.h: Re-generate.
1216 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1218 * arch-utils.h (default_read_core_file_mappings): Likewise.
1219 * corelow.c (core_target::build_file_mappings): Likewise.
1220 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1221 (linux_core_info_proc_mappings): Likewise.
1223 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1225 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1226 * NEWS: Mention new options.
1227 * f-array-walker.h: New file.
1228 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1229 (repack_array_slices): New static global.
1230 (show_repack_array_slices): New function.
1231 (fortran_array_slicing_debug): New static global.
1232 (show_fortran_array_slicing_debug): New function.
1233 (value_f90_subarray): Delete.
1234 (skip_undetermined_arglist): Delete.
1235 (class fortran_array_repacker_base_impl): New class.
1236 (class fortran_lazy_array_repacker_impl): New class.
1237 (class fortran_array_repacker_impl): New class.
1238 (fortran_value_subarray): Complete rewrite.
1239 (set_fortran_list): New static global.
1240 (show_fortran_list): Likewise.
1241 (_initialize_f_language): Register new commands.
1242 (fortran_adjust_dynamic_array_base_address_hack): New function.
1243 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1245 * f-valprint.c: Include 'f-array-walker.h'.
1246 (class fortran_array_printer_impl): New class.
1247 (f77_print_array_1): Delete.
1248 (f77_print_array): Delete.
1249 (fortran_print_array): New.
1250 (f_value_print_inner): Update to call fortran_print_array.
1251 * gdbtypes.c: Include 'f-lang.h'.
1252 (resolve_dynamic_type_internal): Call
1253 fortran_adjust_dynamic_array_base_address_hack.
1255 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1257 * breakpoint.c (struct watch_options): New struct.
1258 (watch_option_defs): New static global.
1259 (make_watch_options_def_group): New function.
1260 (watch_maybe_just_location): Convert option parsing.
1261 (watch_command_completer): New function.
1262 (_initialize_breakpoint): Build help text using options mechanism.
1264 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1266 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1267 (watch_command_1): Update parameter types. Convert locals to
1269 (watch_command_wrapper): Change parameter type.
1270 (watch_maybe_just_location): Change locals to bool.
1271 (rwatch_command_wrapper): Update parameter type.
1272 (awatch_command_wrapper): Update parameter type.
1273 * breakpoint.h (watch_command_wrapper): Change parameter type.
1274 (rwatch_command_wrapper): Update parameter type.
1275 (awatch_command_wrapper): Update parameter type.
1276 * eval.c (fetch_subexp_value): Change parameter type.
1277 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1279 * value.h (fetch_subexp_value): Change parameter type in
1282 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1284 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1287 2020-11-18 Keith Seitz <keiths@redhat.com>
1289 * linux-tdep.c (dump_note_entry_p): Return true instead of
1290 checking `filename'.
1292 2020-11-18 Tom de Vries <tdevries@suse.de>
1294 * debuginfod-support.c (debuginfod_source_query)
1295 (debuginfod_debuginfo_query): Also do early exit if
1296 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1298 2020-11-18 Tom de Vries <tdevries@suse.de>
1300 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1303 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1305 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1306 callers. Move doc here.
1307 * gdbtypes.c (get_array_bounds): Return bool
1309 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1311 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1313 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1314 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1315 case to the default.
1317 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1319 * printcmd.c: Include 'safe-ctype.c'.
1320 (skip_over_slash_fmt): New function.
1321 (print_command_completer): Call skip_over_slash_fmt.
1322 (display_and_x_command_completer): New function.
1323 (_initialize_printcmd): Add command completion for 'x' and
1326 2020-11-16 Pedro Alves <pedro@palves.net>
1328 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1329 (get_prev_frame_always_1): ... to here.
1330 * inline-frame.c (inline_frame_this_id): Mention
1331 get_prev_frame_always_1 in comment.
1333 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1335 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1337 (value_less): Add fixed-point handling.
1339 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1341 * eval.c (binop_promote): Add fixed-point type handling.
1342 * valarith.c (fixed_point_binop): New function.
1343 (scalar_binop): Add fixed-point type handling.
1344 (value_neg): Add fixed-point type handling.
1345 * valops.c (value_cast_to_fixed_point): New function.
1346 (value_cast): Add fixed-point type handling.
1348 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1350 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1352 * c-typeprint.c (c_type_print_varspec_prefix)
1353 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1354 TYPE_CODE_FIXED_POINT handling.
1355 * p-typeprint.c (pascal_type_print_varspec_prefix)
1356 (pascal_type_print_varspec_suffix): Likewise.
1357 * typeprint.c (print_type_fixed_point): New function.
1358 * typeprint.h (print_type_fixed_point): Add declaration.
1360 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1362 * printcmd.c (print_scalar_formatted): Add fixed-point type
1363 handling when options->format is set.
1365 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1367 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1368 * dwarf2/read.c (get_dwarf2_rational_constant)
1369 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1370 (has_zero_over_zero_small_attribute): New functions.
1371 read_base_type, set_die_type): Add fixed-point type handling.
1372 * gdb-gdb.py.in: Add fixed-point type handling.
1373 * gdbtypes.c: #include "gmp-utils.h".
1374 (create_range_type, set_type_code): Add fixed-point type handling.
1375 (init_fixed_point_type): New function.
1376 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1377 (print_fixed_point_type_info): New function.
1378 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1380 (fixed_point_type_storage): New typedef.
1381 (fixed_point_objfile_key): New static global.
1382 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1383 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1385 * gdbtypes.h: #include "gmp-utils.h".
1386 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1387 (union type_specific) <fixed_point_info>: New field.
1388 (struct fixed_point_type_info): New struct.
1389 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1390 (init_fixed_point_type, is_fixed_point_type)
1391 (fixed_point_type_base_type, fixed_point_scaling_factor)
1392 (allocate_fixed_point_type_info): Add declarations.
1393 * valprint.c (generic_val_print_fixed_point): New function.
1394 (generic_value_print): Add fixed-point type handling.
1395 * value.c (value_as_address, unpack_long): Add fixed-point type
1398 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1400 * utils.h (uinteger_pow): Add declaration.
1401 * utils.c (uinteger_pow): Moved here (without changes)...
1402 * valarith.c (uinteger_pow): ... from here.
1404 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1406 * gmp-utils.h, gmp-utils.c: New file.
1407 * unittests/gmp-utils-selftests.c: New file.
1408 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1409 unittests/gmp-utils-selftests.c.
1410 (COMMON_SFILES) Add gmp-utils.c.
1411 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1413 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1415 * configure.ac: Generate an error if a usable GMP library
1417 * configure: Regenerate.
1419 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1421 * configure.ac: Add support for --with-libgmp-prefix.
1422 * Makefile.in (LIBGMP): New variable.
1423 (CLIBS): Include $(LIBGMP).
1424 * configure, config.in: Regenerate
1426 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1429 * f-exp.y (COMPLETE): New token.
1430 (exp): Two new rules for tab-completion.
1431 (saw_name_at_eof): New static global.
1432 (last_was_structop): Likewise.
1433 (yylex): Set new variables, and return COMPLETE token at the end
1434 of the input stream in some cases.
1436 2020-11-14 Tom Tromey <tom@tromey.com>
1438 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1440 2020-11-14 Tom Tromey <tom@tromey.com>
1442 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1444 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1446 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1448 2020-11-13 Tom Tromey <tom@tromey.com>
1450 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1451 (convert_escape, parse_one_string): Constify.
1453 2020-11-13 Keith Seitz <keiths@redhat.com>
1455 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1456 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1457 outside of ELF segments" warning for debugin
1459 2020-11-13 Keith Seitz <keiths@redhat.com>
1462 * elfread.c (elf_symfile_segments): Output a BFD file name
1463 for the "Loadable section ... outside of ELF segments" warning.
1465 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1468 * arm-tdep.c (class arm_instruction_reader): New.
1469 (target_arm_instruction_reader): New.
1470 (arm_analyze_prologue): Add instruction reader parameter and use
1471 it. Use arm_expand_immediate.
1472 (class target_arm_instruction_reader): Adjust.
1473 (arm_skip_prologue): Adjust.
1474 (arm_expand_immediate): New.
1475 (arm_scan_prologue): Adjust.
1476 (arm_analyze_prologue_test): New.
1477 (class test_arm_instruction_reader): New.
1479 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1481 * f-lang.c (fortran_argument_convert): Add declaration. Add
1482 header comment, taken from f-lang.h. Make static.
1483 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1484 (fortran_argument_convert): Delete declaration.
1486 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1488 * ada-exp.y (find_primitive_type): Make parameter const.
1489 * ada-lang.c (enum ada_primitive_types): Delete.
1490 (ada_language::language_arch_info): Update.
1491 * c-lang.c (enum c_primitive_types): Delete.
1492 (c_language_arch_info): Update.
1493 (enum cplus_primitive_types): Delete.
1494 (cplus_language::language_arch_info): Update.
1495 * d-lang.c (enum d_primitive_types): Delete.
1496 (d_language::language_arch_info): Update.
1497 * f-lang.c (enum f_primitive_types): Delete.
1498 (f_language::language_arch_info): Update.
1499 * go-lang.c (enum go_primitive_types): Delete.
1500 (go_language::language_arch_info): Update.
1501 * language.c (auto_or_unknown_language::language_arch_info):
1503 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1504 (language_string_char_type): Add header comment, call function in
1506 (language_bool_type): Likewise
1507 (language_arch_info::bool_type): Define.
1508 (language_lookup_primitive_type_1): Delete.
1509 (language_lookup_primitive_type): Rewrite as a templated function
1510 to call function in language_arch_info, then instantiate twice.
1511 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1512 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1513 (language_arch_info::lookup_primitive_type): Define twice with
1514 different signatures.
1515 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1516 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1517 member function in language_arch_info.
1518 * language.h (language_arch_info): Complete rewrite.
1519 (language_lookup_primitive_type): Make templated.
1520 * m2-lang.c (enum m2_primitive_types): Delete.
1521 (m2_language::language_arch_info): Update.
1522 * opencl-lang.c (OCL_P_TYPE): Delete.
1523 (enum opencl_primitive_types): Delete.
1524 (opencl_type_data): Delete.
1525 (builtin_opencl_type): Delete.
1526 (lookup_opencl_vector_type): Update.
1527 (opencl_language::language_arch_info): Update, lots of content
1529 (build_opencl_types): ...here. This function is now deleted.
1530 (_initialize_opencl_language): Delete.
1531 * p-lang.c (enum pascal_primitive_types): Delete.
1532 (pascal_language::language_arch_info): Update.
1533 * rust-lang.c (enum rust_primitive_types): Delete.
1534 (rust_language::language_arch_info): Update.
1536 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1538 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1541 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1543 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1546 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1548 * dwarf2/read.c (dwarf_read_debug_printf,
1549 dwarf_read_debug_printf_v): New macros, use throughout the file.
1551 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1554 * arc-linux-tdep.c (collect_register): Populate "eret" by
1555 "pc" value from the regcache when asked for "pc" value.
1557 2020-11-12 Tom Tromey <tom@tromey.com>
1560 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1563 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1565 * features/Makefile (XMLTOC): Add rx.xml.
1566 (FEATURE_XMLFILES): Remove rx.xml.
1567 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1568 * features/rx.c: Regenerate.
1569 * features/rx.xml: Wrap in `target` tags, and reindent.
1570 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1572 (maint_print_c_tdesc_opt_def): New typedef.
1573 (maint_print_c_tdesc_opt_defs): New static global.
1574 (make_maint_print_c_tdesc_options_def_group): New function.
1575 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1576 print single feature C file for target descriptions containing a
1578 (maint_print_c_tdesc_cmd_completer): New function.
1579 (_initialize_target_descriptions): Update call to register command
1580 completer, and include command line flag in help text.
1582 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1584 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1586 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1589 2020-11-10 Tom Tromey <tom@tromey.com>
1591 * value.h (internalvar_name): Update.
1592 * value.c (internalvar_name): Make return type const.
1594 2020-11-10 Tom Tromey <tom@tromey.com>
1596 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1597 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1600 2020-11-10 Tom Tromey <tom@tromey.com>
1602 * objc-lang.h (value_nsstring): Update.
1603 * objc-lang.c (value_nsstring): Make "ptr" const.
1605 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1607 * expprint.c (print_subexp_funcall): Increment expression position
1608 after reading argument count.
1609 * f-lang.c (print_subexp_f): Skip over opcode before calling
1611 (dump_subexp_body_f): Likewise.
1613 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1616 * configure: Regenerate.
1617 * configure.ac: Check for python modules ctypes instead of
1620 2020-11-06 Pedro Alves <pedro@palves.net>
1622 * macroexp.c (struct macro_buffer): Split in two classes. Add
1624 (struct shared_macro_buffer): New, factored out from struct
1626 (struct growable_macro_buffer): New, factored out from struct
1628 (set_token, get_comment, get_identifier, get_pp_number)
1629 (get_character_constant, get_string_literal, get_punctuator)
1630 (get_next_token_for_substitution): Constify parameters.
1631 (substitute_args): Constify locals.
1633 2020-11-05 Tom Tromey <tom@tromey.com>
1635 * dwarf2/read.c (read_cutu_die_from_dwo)
1636 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1637 (build_type_psymtabs_1): Update.
1638 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1640 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1641 Don't read section. Add assert.
1643 2020-11-04 Tom Tromey <tromey@adacore.com>
1645 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1647 2020-11-04 Tom Tromey <tromey@adacore.com>
1649 * ada-typeprint.c (ada_print_type): Handle __T types.
1651 2020-11-04 Tom Tromey <tromey@adacore.com>
1653 * dwarf2/read.c (add_partial_symbol, process_die):
1654 Handle DW_TAG_array_type.
1655 (is_type_tag_for_partial): Add "lang" parameter.
1656 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1658 2020-11-04 Tom Tromey <tromey@adacore.com>
1660 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1662 2020-11-04 Tom Tromey <tromey@adacore.com>
1664 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1667 2020-11-04 Tom Tromey <tromey@adacore.com>
1669 * gdbtypes.c (update_static_array_size): Handle bit stride.
1671 2020-11-04 Tom Tromey <tromey@adacore.com>
1673 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1675 2020-11-04 Tom Tromey <tromey@adacore.com>
1677 * ada-lang.c (ada_is_any_packed_array_type): New function.
1678 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1680 2020-11-04 Tom Tromey <tromey@adacore.com>
1682 * dwarf2/read.c (recognize_bound_expression)
1683 (quirk_ada_thick_pointer): New functions.
1684 (read_array_type): Call quirk_ada_thick_pointer.
1685 (set_die_type): Add "skip_data_location" parameter.
1686 (quirk_ada_thick_pointer): New function.
1687 (process_structure_scope): Call quirk_ada_thick_pointer.
1688 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1689 (decode_packed_array_bitsize): Handle thick pointers without
1691 (ada_is_gnat_encoded_packed_array_type): Rename from
1692 ada_is_packed_array_type.
1693 (ada_is_constrained_packed_array_type): Update.
1694 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1695 (ada_value_print_1): Use ada_get_decoded_value.
1697 2020-11-04 Tom Tromey <tromey@adacore.com>
1699 * ada-lang.c (recursively_update_array_bitsize): New function.
1700 (decode_constrained_packed_array_type): Call it.
1702 2020-11-04 Tom Tromey <tromey@adacore.com>
1704 * ada-lang.c (to_fixed_array_type): Error if
1705 decode_constrained_packed_array_type returns NULL.
1707 2020-11-04 Tom Tromey <tromey@adacore.com>
1709 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1711 2020-11-02 Tom Tromey <tromey@adacore.com>
1713 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1714 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1715 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1716 * amd64-ravenscar-thread.c: New file.
1717 * amd64-ravenscar-thread.h: New file.
1718 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1719 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1721 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1723 * main.c (execute_cmdargs): New function.
1724 (captured_main_1): Make use of execute_cmdargs.
1726 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1728 * NEWS: Mention changes to config file search path.
1731 2020-11-02 Tom Tromey <tromey@adacore.com>
1733 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1734 (python_GdbModuleDef): Move earlier. Now static.
1735 (do_start_initialization): Consolidate some IS_PY3K blocks.
1737 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1739 * aarch64-linux-tdep.c: Fix indentation.
1740 * aarch64-ravenscar-thread.c: Fix indentation.
1741 * aarch64-tdep.c: Fix indentation.
1742 * aarch64-tdep.h: Fix indentation.
1743 * ada-lang.c: Fix indentation.
1744 * ada-lang.h: Fix indentation.
1745 * ada-tasks.c: Fix indentation.
1746 * ada-typeprint.c: Fix indentation.
1747 * ada-valprint.c: Fix indentation.
1748 * ada-varobj.c: Fix indentation.
1749 * addrmap.c: Fix indentation.
1750 * addrmap.h: Fix indentation.
1751 * agent.c: Fix indentation.
1752 * aix-thread.c: Fix indentation.
1753 * alpha-bsd-nat.c: Fix indentation.
1754 * alpha-linux-tdep.c: Fix indentation.
1755 * alpha-mdebug-tdep.c: Fix indentation.
1756 * alpha-nbsd-tdep.c: Fix indentation.
1757 * alpha-obsd-tdep.c: Fix indentation.
1758 * alpha-tdep.c: Fix indentation.
1759 * amd64-bsd-nat.c: Fix indentation.
1760 * amd64-darwin-tdep.c: Fix indentation.
1761 * amd64-linux-nat.c: Fix indentation.
1762 * amd64-linux-tdep.c: Fix indentation.
1763 * amd64-nat.c: Fix indentation.
1764 * amd64-obsd-tdep.c: Fix indentation.
1765 * amd64-tdep.c: Fix indentation.
1766 * amd64-windows-tdep.c: Fix indentation.
1767 * annotate.c: Fix indentation.
1768 * arc-tdep.c: Fix indentation.
1769 * arch-utils.c: Fix indentation.
1770 * arch/arm-get-next-pcs.c: Fix indentation.
1771 * arch/arm.c: Fix indentation.
1772 * arm-linux-nat.c: Fix indentation.
1773 * arm-linux-tdep.c: Fix indentation.
1774 * arm-nbsd-tdep.c: Fix indentation.
1775 * arm-pikeos-tdep.c: Fix indentation.
1776 * arm-tdep.c: Fix indentation.
1777 * arm-tdep.h: Fix indentation.
1778 * arm-wince-tdep.c: Fix indentation.
1779 * auto-load.c: Fix indentation.
1780 * auxv.c: Fix indentation.
1781 * avr-tdep.c: Fix indentation.
1782 * ax-gdb.c: Fix indentation.
1783 * ax-general.c: Fix indentation.
1784 * bfin-linux-tdep.c: Fix indentation.
1785 * block.c: Fix indentation.
1786 * block.h: Fix indentation.
1787 * blockframe.c: Fix indentation.
1788 * bpf-tdep.c: Fix indentation.
1789 * break-catch-sig.c: Fix indentation.
1790 * break-catch-syscall.c: Fix indentation.
1791 * break-catch-throw.c: Fix indentation.
1792 * breakpoint.c: Fix indentation.
1793 * breakpoint.h: Fix indentation.
1794 * bsd-uthread.c: Fix indentation.
1795 * btrace.c: Fix indentation.
1796 * build-id.c: Fix indentation.
1797 * buildsym-legacy.h: Fix indentation.
1798 * buildsym.c: Fix indentation.
1799 * c-typeprint.c: Fix indentation.
1800 * c-valprint.c: Fix indentation.
1801 * c-varobj.c: Fix indentation.
1802 * charset.c: Fix indentation.
1803 * cli/cli-cmds.c: Fix indentation.
1804 * cli/cli-decode.c: Fix indentation.
1805 * cli/cli-decode.h: Fix indentation.
1806 * cli/cli-script.c: Fix indentation.
1807 * cli/cli-setshow.c: Fix indentation.
1808 * coff-pe-read.c: Fix indentation.
1809 * coffread.c: Fix indentation.
1810 * compile/compile-cplus-types.c: Fix indentation.
1811 * compile/compile-object-load.c: Fix indentation.
1812 * compile/compile-object-run.c: Fix indentation.
1813 * completer.c: Fix indentation.
1814 * corefile.c: Fix indentation.
1815 * corelow.c: Fix indentation.
1816 * cp-abi.h: Fix indentation.
1817 * cp-namespace.c: Fix indentation.
1818 * cp-support.c: Fix indentation.
1819 * cp-valprint.c: Fix indentation.
1820 * cris-linux-tdep.c: Fix indentation.
1821 * cris-tdep.c: Fix indentation.
1822 * darwin-nat-info.c: Fix indentation.
1823 * darwin-nat.c: Fix indentation.
1824 * darwin-nat.h: Fix indentation.
1825 * dbxread.c: Fix indentation.
1826 * dcache.c: Fix indentation.
1827 * disasm.c: Fix indentation.
1828 * dtrace-probe.c: Fix indentation.
1829 * dwarf2/abbrev.c: Fix indentation.
1830 * dwarf2/attribute.c: Fix indentation.
1831 * dwarf2/expr.c: Fix indentation.
1832 * dwarf2/frame.c: Fix indentation.
1833 * dwarf2/index-cache.c: Fix indentation.
1834 * dwarf2/index-write.c: Fix indentation.
1835 * dwarf2/line-header.c: Fix indentation.
1836 * dwarf2/loc.c: Fix indentation.
1837 * dwarf2/macro.c: Fix indentation.
1838 * dwarf2/read.c: Fix indentation.
1839 * dwarf2/read.h: Fix indentation.
1840 * elfread.c: Fix indentation.
1841 * eval.c: Fix indentation.
1842 * event-top.c: Fix indentation.
1843 * exec.c: Fix indentation.
1844 * exec.h: Fix indentation.
1845 * expprint.c: Fix indentation.
1846 * f-lang.c: Fix indentation.
1847 * f-typeprint.c: Fix indentation.
1848 * f-valprint.c: Fix indentation.
1849 * fbsd-nat.c: Fix indentation.
1850 * fbsd-tdep.c: Fix indentation.
1851 * findvar.c: Fix indentation.
1852 * fork-child.c: Fix indentation.
1853 * frame-unwind.c: Fix indentation.
1854 * frame-unwind.h: Fix indentation.
1855 * frame.c: Fix indentation.
1856 * frv-linux-tdep.c: Fix indentation.
1857 * frv-tdep.c: Fix indentation.
1858 * frv-tdep.h: Fix indentation.
1859 * ft32-tdep.c: Fix indentation.
1860 * gcore.c: Fix indentation.
1861 * gdb_bfd.c: Fix indentation.
1862 * gdbarch.sh: Fix indentation.
1863 * gdbarch.c: Re-generate
1864 * gdbarch.h: Re-generate.
1865 * gdbcore.h: Fix indentation.
1866 * gdbthread.h: Fix indentation.
1867 * gdbtypes.c: Fix indentation.
1868 * gdbtypes.h: Fix indentation.
1869 * glibc-tdep.c: Fix indentation.
1870 * gnu-nat.c: Fix indentation.
1871 * gnu-nat.h: Fix indentation.
1872 * gnu-v2-abi.c: Fix indentation.
1873 * gnu-v3-abi.c: Fix indentation.
1874 * go32-nat.c: Fix indentation.
1875 * guile/guile-internal.h: Fix indentation.
1876 * guile/scm-cmd.c: Fix indentation.
1877 * guile/scm-frame.c: Fix indentation.
1878 * guile/scm-iterator.c: Fix indentation.
1879 * guile/scm-math.c: Fix indentation.
1880 * guile/scm-ports.c: Fix indentation.
1881 * guile/scm-pretty-print.c: Fix indentation.
1882 * guile/scm-value.c: Fix indentation.
1883 * h8300-tdep.c: Fix indentation.
1884 * hppa-linux-nat.c: Fix indentation.
1885 * hppa-linux-tdep.c: Fix indentation.
1886 * hppa-nbsd-nat.c: Fix indentation.
1887 * hppa-nbsd-tdep.c: Fix indentation.
1888 * hppa-obsd-nat.c: Fix indentation.
1889 * hppa-tdep.c: Fix indentation.
1890 * hppa-tdep.h: Fix indentation.
1891 * i386-bsd-nat.c: Fix indentation.
1892 * i386-darwin-nat.c: Fix indentation.
1893 * i386-darwin-tdep.c: Fix indentation.
1894 * i386-dicos-tdep.c: Fix indentation.
1895 * i386-gnu-nat.c: Fix indentation.
1896 * i386-linux-nat.c: Fix indentation.
1897 * i386-linux-tdep.c: Fix indentation.
1898 * i386-nto-tdep.c: Fix indentation.
1899 * i386-obsd-tdep.c: Fix indentation.
1900 * i386-sol2-nat.c: Fix indentation.
1901 * i386-tdep.c: Fix indentation.
1902 * i386-tdep.h: Fix indentation.
1903 * i386-windows-tdep.c: Fix indentation.
1904 * i387-tdep.c: Fix indentation.
1905 * i387-tdep.h: Fix indentation.
1906 * ia64-libunwind-tdep.c: Fix indentation.
1907 * ia64-libunwind-tdep.h: Fix indentation.
1908 * ia64-linux-nat.c: Fix indentation.
1909 * ia64-linux-tdep.c: Fix indentation.
1910 * ia64-tdep.c: Fix indentation.
1911 * ia64-tdep.h: Fix indentation.
1912 * ia64-vms-tdep.c: Fix indentation.
1913 * infcall.c: Fix indentation.
1914 * infcmd.c: Fix indentation.
1915 * inferior.c: Fix indentation.
1916 * infrun.c: Fix indentation.
1917 * iq2000-tdep.c: Fix indentation.
1918 * language.c: Fix indentation.
1919 * linespec.c: Fix indentation.
1920 * linux-fork.c: Fix indentation.
1921 * linux-nat.c: Fix indentation.
1922 * linux-tdep.c: Fix indentation.
1923 * linux-thread-db.c: Fix indentation.
1924 * lm32-tdep.c: Fix indentation.
1925 * m2-lang.c: Fix indentation.
1926 * m2-typeprint.c: Fix indentation.
1927 * m2-valprint.c: Fix indentation.
1928 * m32c-tdep.c: Fix indentation.
1929 * m32r-linux-tdep.c: Fix indentation.
1930 * m32r-tdep.c: Fix indentation.
1931 * m68hc11-tdep.c: Fix indentation.
1932 * m68k-bsd-nat.c: Fix indentation.
1933 * m68k-linux-nat.c: Fix indentation.
1934 * m68k-linux-tdep.c: Fix indentation.
1935 * m68k-tdep.c: Fix indentation.
1936 * machoread.c: Fix indentation.
1937 * macrocmd.c: Fix indentation.
1938 * macroexp.c: Fix indentation.
1939 * macroscope.c: Fix indentation.
1940 * macrotab.c: Fix indentation.
1941 * macrotab.h: Fix indentation.
1942 * main.c: Fix indentation.
1943 * mdebugread.c: Fix indentation.
1944 * mep-tdep.c: Fix indentation.
1945 * mi/mi-cmd-catch.c: Fix indentation.
1946 * mi/mi-cmd-disas.c: Fix indentation.
1947 * mi/mi-cmd-env.c: Fix indentation.
1948 * mi/mi-cmd-stack.c: Fix indentation.
1949 * mi/mi-cmd-var.c: Fix indentation.
1950 * mi/mi-cmds.c: Fix indentation.
1951 * mi/mi-main.c: Fix indentation.
1952 * mi/mi-parse.c: Fix indentation.
1953 * microblaze-tdep.c: Fix indentation.
1954 * minidebug.c: Fix indentation.
1955 * minsyms.c: Fix indentation.
1956 * mips-linux-nat.c: Fix indentation.
1957 * mips-linux-tdep.c: Fix indentation.
1958 * mips-nbsd-tdep.c: Fix indentation.
1959 * mips-tdep.c: Fix indentation.
1960 * mn10300-linux-tdep.c: Fix indentation.
1961 * mn10300-tdep.c: Fix indentation.
1962 * moxie-tdep.c: Fix indentation.
1963 * msp430-tdep.c: Fix indentation.
1964 * namespace.h: Fix indentation.
1965 * nat/fork-inferior.c: Fix indentation.
1966 * nat/gdb_ptrace.h: Fix indentation.
1967 * nat/linux-namespaces.c: Fix indentation.
1968 * nat/linux-osdata.c: Fix indentation.
1969 * nat/netbsd-nat.c: Fix indentation.
1970 * nat/x86-dregs.c: Fix indentation.
1971 * nbsd-nat.c: Fix indentation.
1972 * nbsd-tdep.c: Fix indentation.
1973 * nios2-linux-tdep.c: Fix indentation.
1974 * nios2-tdep.c: Fix indentation.
1975 * nto-procfs.c: Fix indentation.
1976 * nto-tdep.c: Fix indentation.
1977 * objfiles.c: Fix indentation.
1978 * objfiles.h: Fix indentation.
1979 * opencl-lang.c: Fix indentation.
1980 * or1k-tdep.c: Fix indentation.
1981 * osabi.c: Fix indentation.
1982 * osabi.h: Fix indentation.
1983 * osdata.c: Fix indentation.
1984 * p-lang.c: Fix indentation.
1985 * p-typeprint.c: Fix indentation.
1986 * p-valprint.c: Fix indentation.
1987 * parse.c: Fix indentation.
1988 * ppc-linux-nat.c: Fix indentation.
1989 * ppc-linux-tdep.c: Fix indentation.
1990 * ppc-nbsd-nat.c: Fix indentation.
1991 * ppc-nbsd-tdep.c: Fix indentation.
1992 * ppc-obsd-nat.c: Fix indentation.
1993 * ppc-ravenscar-thread.c: Fix indentation.
1994 * ppc-sysv-tdep.c: Fix indentation.
1995 * ppc64-tdep.c: Fix indentation.
1996 * printcmd.c: Fix indentation.
1997 * proc-api.c: Fix indentation.
1998 * producer.c: Fix indentation.
1999 * producer.h: Fix indentation.
2000 * prologue-value.c: Fix indentation.
2001 * prologue-value.h: Fix indentation.
2002 * psymtab.c: Fix indentation.
2003 * python/py-arch.c: Fix indentation.
2004 * python/py-bpevent.c: Fix indentation.
2005 * python/py-event.c: Fix indentation.
2006 * python/py-event.h: Fix indentation.
2007 * python/py-finishbreakpoint.c: Fix indentation.
2008 * python/py-frame.c: Fix indentation.
2009 * python/py-framefilter.c: Fix indentation.
2010 * python/py-inferior.c: Fix indentation.
2011 * python/py-infthread.c: Fix indentation.
2012 * python/py-objfile.c: Fix indentation.
2013 * python/py-prettyprint.c: Fix indentation.
2014 * python/py-registers.c: Fix indentation.
2015 * python/py-signalevent.c: Fix indentation.
2016 * python/py-stopevent.c: Fix indentation.
2017 * python/py-stopevent.h: Fix indentation.
2018 * python/py-threadevent.c: Fix indentation.
2019 * python/py-tui.c: Fix indentation.
2020 * python/py-unwind.c: Fix indentation.
2021 * python/py-value.c: Fix indentation.
2022 * python/py-xmethods.c: Fix indentation.
2023 * python/python-internal.h: Fix indentation.
2024 * python/python.c: Fix indentation.
2025 * ravenscar-thread.c: Fix indentation.
2026 * record-btrace.c: Fix indentation.
2027 * record-full.c: Fix indentation.
2028 * record.c: Fix indentation.
2029 * reggroups.c: Fix indentation.
2030 * regset.h: Fix indentation.
2031 * remote-fileio.c: Fix indentation.
2032 * remote.c: Fix indentation.
2033 * reverse.c: Fix indentation.
2034 * riscv-linux-tdep.c: Fix indentation.
2035 * riscv-ravenscar-thread.c: Fix indentation.
2036 * riscv-tdep.c: Fix indentation.
2037 * rl78-tdep.c: Fix indentation.
2038 * rs6000-aix-tdep.c: Fix indentation.
2039 * rs6000-lynx178-tdep.c: Fix indentation.
2040 * rs6000-nat.c: Fix indentation.
2041 * rs6000-tdep.c: Fix indentation.
2042 * rust-lang.c: Fix indentation.
2043 * rx-tdep.c: Fix indentation.
2044 * s12z-tdep.c: Fix indentation.
2045 * s390-linux-tdep.c: Fix indentation.
2046 * score-tdep.c: Fix indentation.
2047 * ser-base.c: Fix indentation.
2048 * ser-mingw.c: Fix indentation.
2049 * ser-uds.c: Fix indentation.
2050 * ser-unix.c: Fix indentation.
2051 * serial.c: Fix indentation.
2052 * sh-linux-tdep.c: Fix indentation.
2053 * sh-nbsd-tdep.c: Fix indentation.
2054 * sh-tdep.c: Fix indentation.
2055 * skip.c: Fix indentation.
2056 * sol-thread.c: Fix indentation.
2057 * solib-aix.c: Fix indentation.
2058 * solib-darwin.c: Fix indentation.
2059 * solib-frv.c: Fix indentation.
2060 * solib-svr4.c: Fix indentation.
2061 * solib.c: Fix indentation.
2062 * source.c: Fix indentation.
2063 * sparc-linux-tdep.c: Fix indentation.
2064 * sparc-nbsd-tdep.c: Fix indentation.
2065 * sparc-obsd-tdep.c: Fix indentation.
2066 * sparc-ravenscar-thread.c: Fix indentation.
2067 * sparc-tdep.c: Fix indentation.
2068 * sparc64-linux-tdep.c: Fix indentation.
2069 * sparc64-nbsd-tdep.c: Fix indentation.
2070 * sparc64-obsd-tdep.c: Fix indentation.
2071 * sparc64-tdep.c: Fix indentation.
2072 * stabsread.c: Fix indentation.
2073 * stack.c: Fix indentation.
2074 * stap-probe.c: Fix indentation.
2075 * stubs/ia64vms-stub.c: Fix indentation.
2076 * stubs/m32r-stub.c: Fix indentation.
2077 * stubs/m68k-stub.c: Fix indentation.
2078 * stubs/sh-stub.c: Fix indentation.
2079 * stubs/sparc-stub.c: Fix indentation.
2080 * symfile-mem.c: Fix indentation.
2081 * symfile.c: Fix indentation.
2082 * symfile.h: Fix indentation.
2083 * symmisc.c: Fix indentation.
2084 * symtab.c: Fix indentation.
2085 * symtab.h: Fix indentation.
2086 * target-float.c: Fix indentation.
2087 * target.c: Fix indentation.
2088 * target.h: Fix indentation.
2089 * tic6x-tdep.c: Fix indentation.
2090 * tilegx-linux-tdep.c: Fix indentation.
2091 * tilegx-tdep.c: Fix indentation.
2092 * top.c: Fix indentation.
2093 * tracefile-tfile.c: Fix indentation.
2094 * tracepoint.c: Fix indentation.
2095 * tui/tui-disasm.c: Fix indentation.
2096 * tui/tui-io.c: Fix indentation.
2097 * tui/tui-regs.c: Fix indentation.
2098 * tui/tui-stack.c: Fix indentation.
2099 * tui/tui-win.c: Fix indentation.
2100 * tui/tui-winsource.c: Fix indentation.
2101 * tui/tui.c: Fix indentation.
2102 * typeprint.c: Fix indentation.
2103 * ui-out.h: Fix indentation.
2104 * unittests/copy_bitwise-selftests.c: Fix indentation.
2105 * unittests/memory-map-selftests.c: Fix indentation.
2106 * utils.c: Fix indentation.
2107 * v850-tdep.c: Fix indentation.
2108 * valarith.c: Fix indentation.
2109 * valops.c: Fix indentation.
2110 * valprint.c: Fix indentation.
2111 * valprint.h: Fix indentation.
2112 * value.c: Fix indentation.
2113 * value.h: Fix indentation.
2114 * varobj.c: Fix indentation.
2115 * vax-tdep.c: Fix indentation.
2116 * windows-nat.c: Fix indentation.
2117 * windows-tdep.c: Fix indentation.
2118 * xcoffread.c: Fix indentation.
2119 * xml-syscall.c: Fix indentation.
2120 * xml-tdesc.c: Fix indentation.
2121 * xstormy16-tdep.c: Fix indentation.
2122 * xtensa-config.c: Fix indentation.
2123 * xtensa-linux-nat.c: Fix indentation.
2124 * xtensa-linux-tdep.c: Fix indentation.
2125 * xtensa-tdep.c: Fix indentation.
2127 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2128 Craig Blackmore <craig.blackmore@embecosm.com>
2130 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2131 as an unsigned value.
2133 2020-11-01 Tom Tromey <tom@tromey.com>
2135 * dbxread.c (dbx_end_psymtab): Update.
2136 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2137 (build_type_psymtabs_reader): Update.
2138 * xcoffread.c (xcoff_end_psymtab): Update.
2139 * ctfread.c (scan_partial_symbols): Update.
2140 * psymtab.c (sort_pst_symbols): Remove.
2141 (partial_symtab::end): Rename from end_psymtab_common. Inline
2143 * psympriv.h (struct partial_symtab) <end>: New method.
2144 (end_psymtab_common): Don't declare.
2146 2020-11-01 Tom Tromey <tom@tromey.com>
2148 * symmisc.c (count_psyms): New function.
2149 (print_objfile_statistics): Use it.
2150 * psymtab.c (append_psymbol_to_list): Remove.
2151 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2152 * objfiles.h (struct objstats) <n_psyms>: Remove.
2154 2020-11-01 Tom Tromey <tom@tromey.com>
2156 * dbxread.c (dbx_end_psymtab): Update.
2157 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2158 (build_type_psymtabs_reader): Update.
2159 * xcoffread.c (xcoff_end_psymtab): Update.
2160 * ctfread.c (scan_partial_symbols): Update.
2161 * psympriv.h (end_psymtab_common): Update.
2162 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2163 (sort_pst_symbols): Likewise.
2165 2020-11-01 Tom Tromey <tom@tromey.com>
2167 * dbxread.c (dbx_symfile_read): Update.
2168 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2169 * xcoffread.c (xcoff_initial_scan): Update.
2170 * psympriv.h (init_psymbol_list): Don't declare.
2171 * psymtab.c (init_psymbol_list): Remove.
2173 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2175 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2176 gnat_encoded_fixed_type_info. Update all callers.
2178 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2180 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2183 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2185 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2186 cast_from_fixed. Update all callers.
2187 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2189 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2191 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2193 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2194 to print_gnat_encoded_fixed_point_type.
2195 * ada-valprint.c: Likewise.
2197 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2199 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2200 (debug_prefixed_printf): Add check of debug_displaced flag.
2201 * linux-nat.c (linux_nat_debug_printf): Add check of
2202 debug_linux_nat flag.
2204 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2206 * infrun.c (infrun_debug_printf_1): Remove.
2207 (displaced_debug_printf_1): Remove.
2208 (stop_all_threads): Use debug_prefixed_printf.
2209 * infrun.h (infrun_debug_printf_1): Remove.
2210 (infrun_debug_printf): Use debug_prefixed_printf.
2211 (displaced_debug_printf_1): Remove.
2212 (displaced_debug_printf): Use debug_prefixed_printf.
2213 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2214 (linux_nat_debug_printf): Use debug_prefixed_printf.
2216 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2218 * configure: Re-generate.
2219 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2222 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2224 * configure: Re-generate.
2226 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2228 * configure: Re-generate.
2230 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2232 * configure: Re-generate.
2234 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2236 * configure: Re-generate.
2238 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2240 * acinclude.m4: Modernize.
2241 * configure: Re-generate.
2243 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2245 * configure.ac: Modernize.
2246 * configure: Re-generate.
2248 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2250 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2251 * configure: Re-generate.
2252 * configure.ac: Remove AM_PROG_CC_STDC.
2254 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2256 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2257 AC_CANONICAL_SYSTEM.
2258 * configure: Re-generate.
2260 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
2262 * infrun.h (displaced_debug_printf): New macro. Replace
2263 displaced debug prints throughout to use it.
2264 (displaced_debug_printf_1): New declaration.
2265 (displaced_step_dump_bytes): Return string, remove ui_file
2266 parameter, update all callers.
2267 * infrun.c (displaced_debug_printf_1): New function.
2268 (displaced_step_dump_bytes): Return string, remove ui_file
2271 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2273 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2275 2020-10-30 Tom Tromey <tromey@adacore.com>
2277 * Makefile.in (stamp-init): Depend on config.status.
2279 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2281 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2283 2020-10-30 Pedro Alves <pedro@palves.net>
2285 * thread.c (lookup_selected_frame): Move ...
2286 * frame.c (lookup_selected_frame): ... here.
2288 2020-10-30 Pedro Alves <pedro@palves.net>
2290 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2292 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2293 Use save_selected_frame. Save language as well.
2294 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2295 Use restore_selected_frame, and restore language as well.
2296 (selected_frame_id, selected_frame_level): New.
2297 (selected_frame): Update comments.
2298 (save_selected_frame, restore_selected_frame): New.
2299 (get_selected_frame): Use lookup_selected_frame.
2300 (get_selected_frame_if_set): Delete.
2301 (select_frame): Record selected_frame_level and selected_frame_id.
2302 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2304 (get_selected_frame): Make 'message' parameter optional.
2305 (get_selected_frame_if_set): Delete declaration.
2306 (select_frame): Update comments.
2307 (save_selected_frame, restore_selected_frame)
2308 (lookup_selected_frame): Declare.
2309 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2310 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2312 (save_infcall_control_state): Use save_selected_frame.
2313 (restore_selected_frame): Delete.
2314 (restore_infcall_control_state): Use restore_selected_frame.
2315 * stack.c (select_frame_command_core, frame_command_core): Use
2317 * thread.c (restore_selected_frame): Rename to ...
2318 (lookup_selected_frame): ... this and make extern. Select the
2319 current frame if the frame level is -1.
2320 (scoped_restore_current_thread::restore): Also restore the
2322 (scoped_restore_current_thread::~scoped_restore_current_thread):
2324 (scoped_restore_current_thread::scoped_restore_current_thread):
2325 Save the language as well. Use save_selected_frame.
2327 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2329 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2331 * gdbarch.h: Re-generate.
2333 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2335 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2337 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2339 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2341 * arch-utils.c (default_displaced_step_hw_singlestep):
2343 * arch-utils.h (default_displaced_step_hw_singlestep):
2345 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2347 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2349 * gdbarch.c: Re-generate.
2350 * gdbarch.h: Re-generate.
2351 * infrun.c (resume_1): Adjust.
2353 2020-10-29 Tom Tromey <tom@tromey.com>
2355 * progspace.c (program_space::~program_space): Don't call
2358 2020-10-29 Tom Tromey <tom@tromey.com>
2360 * exec.c (exec_target::close): Don't change current program
2363 2020-10-29 Tom Tromey <tom@tromey.com>
2365 * symfile.c (add_symbol_file_command): Update.
2366 * exec.c (program_space::add_target_sections): Rename.
2367 * symfile-mem.c (symbol_file_add_from_memory): Update.
2368 * progspace.h (struct program_space) <add_target_sections>:
2369 Declare new overload.
2370 * exec.h (add_target_sections_of_objfile): Don't declare.
2372 2020-10-29 Tom Tromey <tom@tromey.com>
2374 * solib.c (solib_map_sections): Update.
2375 * exec.c (program_space::add_target_sections): Now a method.
2376 (exec_file_attach): Update.
2377 * exec.h (add_target_sections): Don't declare.
2378 * progspace.h (struct program_space) <add_target_sections>:
2381 2020-10-29 Tom Tromey <tom@tromey.com>
2383 * progspace.h (struct program_space) <remove_target_sections>:
2385 * exec.c (program_space::remove_target_sections): Now a method.
2386 * exec.h (remove_target_sections): Don't declare.
2388 2020-10-29 Tom Tromey <tom@tromey.com>
2390 * inferior.c (delete_inferior): Update.
2391 * progspace.c (program_space::empty): Rename from
2392 program_space_empty_p. Return bool.
2393 * progspace.h (struct program_space) <empty>: New method.
2394 (program_space_empty_p): Don't declare.
2396 2020-10-29 Tom Tromey <tom@tromey.com>
2398 * progspace.c (program_space::~program_space): Don't call
2399 clear_program_space_solib_cache.
2400 (program_space::clear_solib_cache): Rename from
2402 * solib.c (handle_solib_event): Update.
2403 * progspace.h (struct program_space) <clear_solib_cache>: New
2405 (clear_program_space_solib_cache): Don't declare.
2407 2020-10-29 Tom Tromey <tom@tromey.com>
2409 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2410 * target.c (info_target_command): Update.
2411 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2412 (symbol_file_clear, reread_symbols): Update.
2413 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2414 * stabsread.c (scan_file_globals): Update.
2415 * solib.c (update_solib_list): Update.
2416 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2417 (svr4_fetch_objfile_link_map, enable_break)
2418 (svr4_relocate_main_executable)
2419 (svr4_iterate_over_objfiles_in_search_order): Update.
2420 * solib-frv.c (lm_base, enable_break)
2421 (frv_relocate_main_executable): Update.
2422 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2423 (frv_fetch_objfile_link_map): Update.
2424 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2425 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2426 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2427 * remote.c (remote_target::get_offsets): Update.
2428 (remote_target::start_remote)
2429 (extended_remote_target::post_attach): Update.
2430 * objfiles.c (entry_point_address_query): Update.
2431 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2432 * minsyms.c (get_symbol_leading_char): Update.
2433 * frame.c (inside_main_func): Update.
2434 * progspace.h (symfile_objfile): Remove macro.
2436 2020-10-29 Tom Tromey <tom@tromey.com>
2438 * exec.c (exec_file_attach): Update.
2439 * progspace.c (program_space::exec_close): Update.
2440 * progspace.h (struct program_space) <ebfd>: Now a
2442 <set_exec_bfd>: Change argument type.
2445 2020-10-29 Tom Tromey <tom@tromey.com>
2447 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2448 * symfile.c (reread_symbols): Update.
2449 * symfile-mem.c (add_symbol_file_from_memory_command)
2450 (add_vsyscall_page): Update.
2451 * source-cache.c (source_cache::get_plain_source_lines): Update.
2452 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2453 (svr4_current_sos_direct, svr4_exec_displacement)
2454 (svr4_relocate_main_executable): Update.
2455 (svr4_iterate_over_objfiles_in_search_order): Update.
2456 * solib-frv.c (enable_break2, enable_break): Update.
2457 * solib-dsbt.c (lm_base, enable_break): Update.
2458 * solib-darwin.c (find_program_interpreter)
2459 (darwin_solib_create_inferior_hook): Update.
2460 * sol-thread.c (rw_common, ps_pdmodel): Update.
2461 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2462 * remote.c (compare_sections_command)
2463 (remote_target::trace_set_readonly_regions): Update.
2464 * remote-sim.c (get_sim_inferior_data)
2465 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2466 (gdbsim_target_open, gdbsim_target::files_info): Update.
2467 * exec.h (exec_bfd): Remove macro.
2468 * progspace.c (initialize_progspace): Update.
2469 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2471 * nto-procfs.c (nto_procfs_target::post_attach)
2472 (nto_procfs_target::create_inferior): Update.
2473 * maint.c (maintenance_info_sections): Update.
2474 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2476 * infcmd.c (post_create_inferior): Update.
2477 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2478 (objfile_find_memory_regions): Update.
2479 * exec.c (validate_exec_file, exec_file_attach)
2480 (exec_read_partial_read_only, print_section_info): Update.
2481 * corelow.c (core_target_open): Update.
2482 * corefile.c (reopen_exec_file, validate_files): Update.
2483 * arm-tdep.c (gdb_print_insn_arm): Update.
2484 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2485 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2488 2020-10-29 Tom Tromey <tom@tromey.com>
2490 * progspace.h (current_target_sections): Remove macro.
2491 * solib-svr4.c (scan_dyntag): Update.
2492 * solib-dsbt.c (scan_dyntag): Update.
2493 * exec.c (exec_target::close): Update.
2494 (add_target_sections, add_target_sections_of_objfile)
2495 (remove_target_sections, exec_target::get_section_table)
2496 (exec_target::files_info, set_section_command)
2497 (exec_set_section_address, exec_target::has_memory)
2498 (exec_target::has_memory): Update.
2500 2020-10-29 Tom Tromey <tom@tromey.com>
2502 * source-cache.c (source_cache::get_plain_source_lines): Use
2503 current_program_space.
2504 * corefile.c (reopen_exec_file): Use current_program_space.
2505 * exec.c (exec_file_attach): Use current_program_space.
2506 * exec.h (exec_bfd_mtime): Remove.
2508 2020-10-29 Tom Tromey <tom@tromey.com>
2510 * gcore.c (default_gcore_mach): Remove.
2511 (create_gcore_bfd): Update.
2513 2020-10-29 Tom Tromey <tom@tromey.com>
2515 * progspace.c (program_space::exec_close): New method, from
2516 exec_close in exec.c.
2517 * exec.c (exec_close): Move to progspace.c.
2518 (exec_target::close, exec_file_attach): Update.
2519 * progspace.h (struct program_space) <exec_close>: Declare
2522 2020-10-29 Tom Tromey <tom@tromey.com>
2524 * progspace.h (struct program_space) <exec_filename>: Rename from
2525 pspace_exec_filename. Now a unique_xmalloc_ptr.
2526 * inferior.c (print_selected_inferior): Update.
2527 (print_inferior): Update.
2528 * mi/mi-main.c (print_one_inferior): Update.
2529 * exec.h (exec_filename): Remove macro.
2530 * corefile.c (get_exec_file): Update.
2531 * exec.c (exec_close): Update.
2532 (exec_file_attach): Update.
2533 * progspace.c (clone_program_space): Update.
2534 (print_program_space): Update.
2536 2020-10-29 Tom Tromey <tom@tromey.com>
2538 * target-section.h (struct target_section): Add constructor.
2539 * exec.c (build_section_table, add_target_sections_of_objfile):
2541 * corelow.c (core_target::build_file_mappings): Update.
2543 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2546 * inferior.c (detach_inferior_command): Restore the current thread.
2547 (kill_inferior_command): Ditto.
2549 2020-10-28 Tom de Vries <tdevries@suse.de>
2552 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2553 map, check it in the "best match" loop.
2555 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2557 * m32c-tdep.c: Remove unused includes.
2559 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2561 * xtensa-tdep.c: Remove includes.
2563 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2565 * breakpoint.c (struct condition_command_opts): New struct.
2566 (condition_command_option_defs): New static global.
2567 (make_condition_command_options_def_group): New function.
2568 (condition_completer): Update to consider the '-force' flag.
2569 (condition_command): Use gdb::option for the '-force' flag.
2571 2020-10-27 Tom de Vries <tdevries@suse.de>
2573 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2574 symbols in section check.
2576 2020-10-27 Tom de Vries <tdevries@suse.de>
2578 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2580 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2582 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2583 * breakpoint.c: Update the help text of the 'condition' and 'break'
2585 (set_breakpoint_condition): Take a new bool parameter
2586 to control whether condition definition should be forced even when
2587 the condition expression is invalid in all of the current locations.
2588 (condition_command): Update the call to 'set_breakpoint_condition'.
2589 (find_condition_and_thread): Take the "-force-condition" flag into
2591 * linespec.c (linespec_keywords): Add "-force-condition" as an
2593 (FORCE_KEYWORD_INDEX): New #define.
2594 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2596 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2597 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2598 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2599 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2601 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2603 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2604 * breakpoint.c (set_breakpoint_location_condition): New function.
2605 (set_breakpoint_condition): Disable a breakpoint location if parsing
2606 the condition string gives an error.
2607 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2608 (build_target_condition_list): Ditto.
2609 (build_target_command_list): Ditto.
2610 (build_bpstat_chain): Ditto.
2611 (print_one_breakpoint_location): Ditto.
2612 (print_one_breakpoint): Ditto.
2613 (breakpoint_1): Ditto.
2614 (bp_location::bp_location): Ditto.
2615 (locations_are_equal): Ditto.
2616 (update_breakpoint_locations): Ditto.
2617 (enable_disable_bp_num_loc): Ditto.
2618 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2619 (find_condition_and_thread_for_sals): New static function.
2620 (create_breakpoint): Call find_condition_and_thread_for_sals.
2621 (location_to_sals): Call find_condition_and_thread_for_sals instead
2622 of find_condition_and_thread.
2624 2020-10-26 Tom de Vries <tdevries@suse.de>
2626 * dwarf2/read.c (process_full_comp_unit): Call
2627 dwarf2_find_base_address.
2629 2020-10-26 Tom Tromey <tromey@adacore.com>
2631 * gdbtypes.c (create_range_type): Revert previous patch. Add
2634 2020-10-26 Pedro Alves <pedro@palves.net>
2636 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2637 (my_waitpid): Use gdb::handle_eintr.
2639 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2641 * acinclude.m4: Update ptrace.m4 path.
2642 * ptrace.m4: Moved to gdbsupport.
2644 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2646 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2647 instead of target_gdbarch.
2649 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2651 * jit.c (jit_reader_load_command): Pass current inferior.
2652 (jit_inferior_init): Change parameter type to inferior, use it.
2653 (jit_inferior_created): Remove.
2654 (jit_inferior_created_hook): Pass inferior parameter down.
2655 (_initialize_jit): Use jit_inferior_created_hook instead of
2656 jit_inferior_created.
2657 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2658 * infrun.c (follow_exec): Pass inferior to
2659 jit_inferior_created_hook.
2661 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2663 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2664 parameter and use it.
2665 (thread_db_inferior_created): Pass inferior argument.
2667 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2669 * aix-thread.c (aix_thread_inferior_created): Add inferior
2671 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2672 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2673 * jit.c (jit_inferior_created): Likewise.
2674 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2675 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2676 * observable.h (inferior_created): Likewise.
2677 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2678 * symfile-mem.c (add_vsyscall_page): Likewise.
2679 * infcmd.c (post_create_inferior): Pass inferior argument.
2681 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2685 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2687 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2688 to ada_check_typedef.
2690 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2692 * f-exp.y (f_parse): Rename to...
2693 (f_language::parser): ...this.
2694 * f-lang.c (f_get_encoding): Rename to...
2695 (f_language::get_encoding): ...this.
2696 (f_op_print_tab): Rename to...
2697 (f_language::op_print_tab): ...this.
2698 (exp_descriptor_f): Rename to...
2699 (f_language::exp_descriptor_tab): ...this.
2700 (class f_language): Moved to f-lang.h.
2701 (f_language::language_arch_info): New function, moved out of class
2703 (f_language::search_name_hash): Likewise.
2704 (f_language::lookup_symbol_nonlocal): Likewise.
2705 (f_language::get_symbol_name_matcher_inner): Likewise.
2706 * f-lang.h: Add 'valprint.h' include.
2707 (class f_language): Moved here from f-lang.c.
2708 * f-typeprint.c (f_type_print_args): Delete commented out
2710 (f_print_typedef): Rename to...
2711 (f_language::print_typedef): ...this.
2712 (f_print_type): Rename to...
2713 (f_language::print_type): ...this.
2714 (f_type_print_varspec_prefix): Delete declaration and rename to...
2715 (f_language::f_type_print_varspec_prefix): ...this.
2716 (f_type_print_varspec_suffix): Delete declaration and rename to...
2717 (f_language::f_type_print_varspec_suffix): ...this.
2718 (f_type_print_base): Delete declaration and rename to...
2719 (f_language::f_type_print_base): ...this.
2720 * f-valprint.c (f_value_print_inner): Rename to...
2721 (f_language::value_print_inner): ...this.
2722 * parse.c: Delete 'f-lang.h' include.
2724 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2726 * language.h (language_defn::print_type): Add variable names in
2727 declaration, and update header comment.
2729 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2731 * ada-lang.c (ada_language::demangle): Rename to...
2732 (ada_language::demangle_symbol): ...this.
2733 * c-lang.c (cplus_language::demangle): Rename to...
2734 (cplus_language::demangle_symbol): ...this.
2735 * d-lang.c (d_language::demangle): Rename to...
2736 (d_language::demangle_symbol): ...this.
2737 * f-lang.c (f_language::demangle): Rename to...
2738 (f_language::demangle_symbol): ...this.
2739 * go-lang.c (go_language::demangle): Rename to...
2740 (go_language::demangle_symbol): ...this.
2741 * language.c (language_demangle): Update call to demangle_symbol.
2742 (auto_or_unknown_language::demangle): Rename to...
2743 (auto_or_unknown_language::demangle_symbol): ...this.
2744 * language.h (language_defn::demangle): Rename to...
2745 (language_defn::demangle_symbol): ...this.
2746 * objc-lang.c (objc_language::demangle): Rename to...
2747 (objc_language::demangle_symbol): ...this.
2748 * rust-lang.c (rust_language::demangle): Rename to...
2749 (rust_language::demangle_symbol): ...this.
2751 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2753 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2754 (iterate_over_file_blocks): Replace use of macro with the macros
2757 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2759 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2760 * valprint.c (maybe_print_array_index): Replace use of macro with
2761 the macros definition.
2763 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2765 * ada-lang.c (ada_language::print_array_index): Call value_print
2767 * language.c (language_defn::print_array_index): Likewise.
2768 * language.h (LA_VALUE_PRINT): Delete.
2769 * valprint.c (value_print): Call value_print on the
2770 current_language directly.
2772 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2774 * language.h (LA_PRINT_TYPEDEF): Delete.
2775 * typeprint.c (typedef_print): Call print_typedef directly on the
2776 current_language object.
2778 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2780 * m2-exp.y (m2_parse): Rename to...
2781 (m2_language::parser): ...this. Update function signature.
2782 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2783 (m2_op_print): Rename to...
2784 (m2_language::op_print_tab): ...this, and make const.
2785 (exp_descriptor_modula2): Rename to...
2786 (m2_language::exp_descriptor_modula2): ...this.
2787 (class m2_language): Move to m2-lang.h.
2788 (m2_language::language_arch_info): New function, moved out of
2790 (m2_language::printchar): New function, body from m2_printchar.
2791 (m2_language::printstr): New function, moved out of class
2793 (m2_language::emitchar): Likewise.
2794 * m2-lang.h (m2_parse): Delete declaration.
2795 (m2_print_typedef): Delete declaration.
2796 (m2_value_print_inner): Delete declaration.
2797 (class m2_language): Class declaration moved from m2-lang.c,
2798 larger functions are left in m2-lang.c.
2799 * m2-typeprint.c (m2_print_typedef): Rename to...
2800 (m2_language::print_typedef): ...this, and update function
2802 * m2-valprint.c (m2_value_print_inner): Rename to...
2803 (m2_language::value_print_inner): ...this, replace use of
2804 LA_PRINT_STRING with a direct call to printstr member function,
2805 and update recursive call.
2807 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2809 * language.c (default_is_string_type_p): Delete, implementation
2810 moved into auto_or_unknown_language::is_string_type_p.
2811 (unk_op_print_tab): Moved into
2812 auto_or_unknown_language::opcode_print_table.
2813 (unknown_language_arch_info): Delete, implementation moved into
2814 auto_or_unknown_language::language_arch_info.
2815 (class auto_or_unknown_language): New class, member functions
2816 copied from unknown_language class, with some updates.
2817 (class unknown_language): Most member functions moved into
2818 auto_or_unknown_language class. Inherit from
2819 auto_or_unknown_language class.
2820 (class auto_language): Inherit from auto_or_unknown_language.
2821 Delete most member functions.
2823 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2825 * stabsread.c (read_member_functions): Remove gdb_assert.
2827 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2829 * gdbtypes.c (init_complex_type): Check target type name.
2831 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2833 * target-debug.h (target_debug_print_struct_target_ops_p):
2835 (target_debug_print_async_callback_ftype_p): Remove.
2836 (target_debug_print_struct_trace_state_variable_p): Remove.
2837 (target_debug_print_struct_traceframe_info_p): Remove.
2838 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2839 (target_debug_print_enum_btrace_format): Remove.
2840 (target_debug_print_enum_info_proc_what): Remove.
2841 (target_debug_print_thread_info_pp): Remove.
2843 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2845 * target.h (struct target_ops) <make_corefile_notes>:
2846 Change return type to unique pointer.
2847 * target.c (dummy_make_corefile_notes): Likewise.
2848 * exec.c (struct exec_target) <make_corefile_notes>:
2850 (exec_target::make_corefile_notes): Likewise.
2851 * procfs.c (class procfs_target) <make_corefile_notes>:
2853 (procfs_do_thread_registers): Adjust to unique pointer.
2854 (struct procfs_corefile_thread_data): Add constructor.
2855 <note_data>: Change type to unique pointer.
2856 (procfs_corefile_thread_callback): Adjust to unique pointer.
2857 (procfs_target::make_corefile_notes): Change return type to
2859 * target-delegates.c: Re-generate.
2860 * gcore.c (write_gcore_file_1): Adjust.
2861 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2864 2020-10-22 Tom de Vries <tdevries@suse.de>
2866 * block.c (find_block_in_blockvector): Make sure the returned block
2869 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2872 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2874 (load_cu): Pass existing CU.
2875 (process_imported_unit_die): Likewise.
2876 (follow_die_offset): Likewise.
2878 2020-10-22 Luis Machado <luis.machado@linaro.org>
2880 * corelow.c (core_target::xfer_partial): Also check for an empty
2881 m_core_unavailable_mappings vector.
2883 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2885 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2886 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2887 * f-exp.y (arglist): Allow for a series of subranges.
2888 (subrange): Add cases for subranges with strides.
2889 * f-lang.c (value_f90_subarray): Catch use of array strides and
2891 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2893 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2895 * expprint.c (print_subexp_standard): Change enum range_type to
2896 range_flag and rename variables to match.
2897 (dump_subexp_body_standard): Likewise.
2898 * expression.h (enum range_type): Rename to...
2899 (enum range_flag): ...this.
2900 (range_types): Rename to...
2901 (range_flags): ...this.
2902 * f-lang.c (value_f90_subarray): Change enum range_type to
2903 range_flag and rename variables to match.
2904 * parse.c (operator_length_standard): Likewise.
2905 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2906 range_type to range_flag.
2907 * rust-lang.c (rust_evaluate_funcall): Likewise.
2908 (rust_range): Likewise.
2909 (rust_compute_range): Likewise.
2910 (rust_subscript): Likewise.
2912 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2914 * expprint.c (print_subexp_standard): Update to reflect changes to
2916 (dump_subexp_body_standard): Likewise.
2917 * expression.h (enum range_type): Convert to a bit field enum, and
2918 make the enum unsigned.
2919 * f-exp.y (subrange): Update to reflect changes to enum
2921 * f-lang.c (value_f90_subarray): Likewise.
2922 * parse.c (operator_length_standard): Likewise.
2923 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2924 * rust-lang.c (rust_range): Likewise.
2925 (rust_compute_range): Likewise.
2926 (rust_subscript): Likewise.
2928 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2930 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2931 (displaced_step_in_progress): Fix comment.
2933 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2935 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2936 * gdbarch.c: Re-generate.
2937 * gdbarch.h: Re-generate.
2938 * gcore.c (write_gcore_file_1): Adjust.
2939 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2941 <note_data>: Change type to unique pointer.
2942 <abort_iteration>: Change type to bool.
2943 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2944 (fbsd_collect_thread_registers): Return void, adjust.
2945 (struct fbsd_corefile_thread_data): Add construtor.
2946 <note_data>: Change type to unique pointer.
2947 (fbsd_corefile_thread): Adjust.
2948 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2949 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2950 to unique pointer, adjust.
2951 (struct linux_collect_regset_section_cb_data): Add constructor.
2952 <note_data>: Change type to unique pointer.
2953 <abort_iteration>: Change type to bool.
2954 (linux_collect_thread_registers): Return void, adjust.
2955 (struct linux_corefile_thread_data): Add constructor.
2956 <note_data>: Change type to unique pointer.
2957 (linux_corefile_thread): Adjust.
2958 (linux_make_corefile_notes): Return unique pointer, adjust.
2960 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2962 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2963 * gdbarch.c: Re-generate.
2964 * gdbarch.h: Re-generate.
2965 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2967 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2969 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2970 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2971 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2972 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2974 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2976 * gdbarch.sh: Make generated predicates return bool.
2977 * gdbarch.c: Re-generate.
2978 * gdbarch.h: Re-generate.
2980 2020-10-20 Tom Tromey <tom@tromey.com>
2982 * varobj-iter.h (struct varobj_item): Remove typedef.
2984 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2986 * infrun.c (currently_stepping): Change int to bool
2987 (maybe_software_singlestep): Likewise.
2988 (show_stop_on_solib_events): Likewise.
2989 (stepping_past_nonsteppable_watchpoint): Likewise.
2990 (displaced_step_in_progress_any_inferior): Likewise.
2991 (displaced_step_in_progress_thread): Likewise.
2992 (keep_going_stepped_thread): Likewise.
2993 (thread_still_needs_step_over): Likewise.
2994 (start_step_over): Likewise.
2995 (do_target_resume): Likewise.
2996 (resume_1): Likewise.
2997 (clear_proceed_status): Likewise.
2998 (thread_still_needs_step_over_bp): Likewise.
2999 (proceed): Likewise.
3000 (switch_back_to_stepped_thread): Likewise.
3001 (adjust_pc_after_break): Likewise.
3002 (stepped_in_from): Likewise.
3003 (handle_stop_requested): Likewise.
3004 (handle_syscall_event): Likewise.
3005 (handle_no_resumed): Likewise.
3006 (handle_inferior_event): Likewise.
3007 (finish_step_over): Likewise.
3008 (handle_signal_stop): Likewise.
3009 (process_event_stop_test): Likewise.
3011 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3013 * infrun.c (get_displaced_stepping_state): Fix comment.
3015 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
3017 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
3019 2020-10-19 Tom Tromey <tromey@adacore.com>
3022 * tui/tui-winsource.h (struct tui_source_window_base)
3023 <refresh_window>: Rename from refresh_pad.
3024 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3025 Rename from refresh_pad.
3026 (tui_source_window_base::show_source_content)
3027 (tui_source_window_base::do_scroll_horizontal): Update.
3029 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3031 * thread.c (_initialize_thread): Fine-tune the help text of
3034 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3036 * frame.c: Remove the unused 'uinteger_option_def' type alias.
3038 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
3040 * breakpoint.c (handle_jit_event): Add an argument, change how
3041 `jit_event_handler` is called.
3043 2020-10-17 Tom Tromey <tom@tromey.com>
3045 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
3046 (scan_xcoff_symtab): Update.
3047 * psymtab.h (class psymtab_storage) <global_psymbols,
3048 static_psymbols, current_global_psymbols,
3049 current_static_psymbols>: Remove.
3050 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
3051 (match_partial_symbol, lookup_partial_symbol): Update.
3052 (print_partial_symbols): Change parameters.
3053 (dump_psymtab, recursively_search_psymtabs)
3054 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
3055 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
3057 (end_psymtab_common): Simplify.
3058 (append_psymbol_to_list): Change parameters.
3059 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
3060 (init_psymbol_list): Simplify.
3061 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3062 * psympriv.h (struct partial_symtab) <empty>: New method.
3063 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
3065 <global_psymbols, static_psymbols>: New members.
3066 <add_psymbol>: New methods.
3067 (add_psymbol_to_list): Don't declare.
3068 (psymbol_placement): Move earlier.
3069 * mdebugread.c (parse_partial_symbols): Update.
3070 (handle_psymbol_enumerators): Change parameters.
3071 (mdebug_expand_psymtab): Update.
3072 * dwarf2/read.c (process_psymtab_comp_unit_reader)
3073 (add_partial_symbol): Update.
3074 * dwarf2/index-write.c (write_psymbols): Change parameters.
3075 (write_one_signatured_type): Update.
3076 (recursively_count_psymbols): Update.
3077 (recursively_write_psymbols): Update.
3078 (class debug_names) <recursively_write_psymbols>: Update.
3079 <write_psymbols>: Change parameters.
3080 <write_one_signatured_type>: Update.
3081 * dbxread.c (read_dbx_symtab): Update.
3082 (dbx_end_psymtab): Use partial_symtab::empty.
3083 * ctfread.c (struct ctf_context) <pst>: New member.
3084 (create_partial_symtab): Set it.
3085 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
3086 (scan_partial_symbols): Use the psymtab's context. Update.
3088 2020-10-17 Tom Tromey <tom@tromey.com>
3090 * valprint.c (generic_value_print): Remove comment.
3091 * m2-valprint.c (m2_value_print_inner): Remove comment.
3092 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
3095 2020-10-17 Tom de Vries <tdevries@suse.de>
3098 * source.c (select_source_symtab): Handling sal.symtab == NULL for
3101 2020-10-14 Tom de Vries <tdevries@suse.de>
3104 * solib.c (solib_contains_address_p): Handle
3105 'solib->sections == nullptr'.
3107 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3110 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3111 target can't do async.
3112 * target.c (target_wait): Assert that we don't pass
3113 TARGET_WNOHANG to a target that can't async.
3115 2020-10-13 Kamil Rytarowski <n54@gmx.com>
3117 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3118 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3119 * alpha-bsd-nat.c: Adjust include.
3120 * alpha-bsd-tdep.h: Adjust comment.
3121 * alpha-nbsd-tdep.c: Rename to ...
3122 * alpha-netbsd-tdep.c: ... this, adjust include.
3123 * amd64-nbsd-nat.c: Rename to ...
3124 * amd64-netbsd-nat.c: ... this, adjust include.
3125 * amd64-nbsd-tdep.c: Rename to ...
3126 * amd64-netbsd-tdep.c: ... this, adjust include.
3127 * amd64-tdep.h: Adjust include.
3128 * arm-nbsd-nat.c: Rename to ...
3129 * arm-netbsd-nat.c: ... this, adjust include.
3130 * arm-nbsd-tdep.c: Rename to ...
3131 * arm-netbsd-tdep.c: ... this, adjust include.
3132 * arm-nbsd-tdep.h: Rename to ...
3133 * arm-netbsd-tdep.h: ... this, adjust include.
3134 * configure.nat: Adjust file lists.
3135 * configure.tgt: Likewise.
3136 * hppa-nbsd-nat.c: Rename to ...
3137 * hppa-netbsd-nat.c: ... this, adjust include.
3138 * hppa-nbsd-tdep.c: Rename to ...
3139 * hppa-netbsd-tdep.c: ... this, adjust include.
3140 * i386-nbsd-nat.c: Rename to ...
3141 * i386-netbsd-nat.c: ... this, adjust include.
3142 * i386-nbsd-tdep.c: Rename to ...
3143 * i386-netbsd-tdep.c: ... this, adjust include.
3144 * m68k-bsd-nat.c: Adjust include.
3145 * mips-nbsd-nat.c: Rename to ...
3146 * mips-netbsd-nat.c: ... this, adjust include.
3147 * mips-nbsd-tdep.c: Rename to ...
3148 * mips-netbsd-tdep.c: ... this, adjust include.
3149 * mips-nbsd-tdep.h: Rename to ...
3150 * mips-netbsd-tdep.h: ... this.
3151 * nbsd-nat.c: Rename to ...
3152 * netbsd-nat.c: ... this, adjust include.
3153 * nbsd-nat.h: Rename to ...
3154 * netbsd-nat.h: ... this, adjust include.
3155 * nbsd-tdep.c: Rename to ...
3156 * netbsd-tdep.c: ... this, adjust include.
3157 * nbsd-tdep.h: Rename to ...
3158 * netbsd-tdep.h: ... this.
3159 * ppc-nbsd-nat.c: Rename to ...
3160 * ppc-netbsd-nat.c: ... this, adjust include.
3161 * ppc-nbsd-tdep.c: Rename to ...
3162 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3163 * ppc-nbsd-tdep.h: Rename to ...
3164 * ppc-netbsd-tdep.h: ... this.
3165 * sh-nbsd-nat.c: Rename to ...
3166 * sh-netbsd-nat.c: ... this, adjust include.
3167 * sh-nbsd-tdep.c: Rename to ...
3168 * sh-netbsd-tdep.c: ... this, adjust include.
3169 * sparc-nbsd-nat.c: Rename to ...
3170 * sparc-netbsd-nat.c: ... this.
3171 * sparc-nbsd-tdep.c: Rename to ...
3172 * sparc-netbsd-tdep.c: ... this, adjust include.
3173 * sparc64-nbsd-nat.c: Rename to ...
3174 * sparc64-netbsd-nat.c: ... this.
3175 * sparc64-nbsd-tdep.c: Rename to ...
3176 * sparc64-netbsd-tdep.c: ... this, adjust include.
3177 * sparc64-tdep.h: Adjust comment.
3178 * vax-bsd-nat.c: Adjust include.
3179 * vax-nbsd-tdep.c: Rename to ...
3180 * vax-netbsd-tdep.c: ... this, adjust include.
3182 2020-10-12 Tom Tromey <tom@tromey.com>
3184 * target.h (struct target_ops) <get_section_table>: Update.
3185 (target_get_section_table): Update.
3186 * target.c (target_get_section_table, target_section_by_addr)
3187 (memory_xfer_partial_1): Update.
3188 * target-section.h (target_section_table): Now an alias.
3189 * target-delegates.c: Rebuild.
3190 * target-debug.h (target_debug_print_target_section_table_p):
3191 Rename from target_debug_print_struct_target_section_table_p.
3192 * symfile.c (build_section_addr_info_from_section_table): Update.
3193 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3194 * solib-svr4.c (scan_dyntag): Update.
3195 * solib-dsbt.c (scan_dyntag): Update.
3196 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3198 * record-full.c (record_full_core_target::xfer_partial): Update.
3199 * progspace.h (struct program_space) <target_sections>: Update.
3200 * exec.h (print_section_info): Update.
3201 * exec.c (exec_target::close, build_section_table)
3202 (add_target_sections, add_target_sections_of_objfile)
3203 (remove_target_sections, exec_on_vfork)
3204 (section_table_available_memory)
3205 (section_table_xfer_memory_partial)
3206 (exec_target::get_section_table, exec_target::xfer_partial)
3207 (print_section_info, set_section_command)
3208 (exec_set_section_address, exec_target::has_memory): Update.
3209 * corelow.c (core_target::build_file_mappings)
3210 (core_target::xfer_partial, core_target::info_proc_mappings)
3211 (core_target::info_proc_mappings): Update.
3212 * bfd-target.c (class target_bfd): Update
3214 2020-10-12 Tom Tromey <tom@tromey.com>
3216 * progspace.c (program_space::~program_space): Don't call
3217 clear_section_table.
3218 * exec.h (clear_section_table): Don't declare.
3219 * exec.c (exec_target::close): Update.
3220 (clear_section_table): Remove.
3222 2020-10-12 Tom Tromey <tom@tromey.com>
3224 * exec.c (add_target_sections_of_objfile): Simplify.
3226 2020-10-12 Tom Tromey <tom@tromey.com>
3228 * solib.c (solib_map_sections): Update.
3229 * record-full.c (record_full_core_open_1): Update.
3230 * exec.h (build_section_table): Return a target_section_table.
3231 * exec.c (exec_file_attach): Update.
3232 (build_section_table): Return a target_section_table.
3233 * corelow.c (core_target::core_target): Update.
3234 * bfd-target.c (target_bfd::target_bfd): Update.
3236 2020-10-12 Tom Tromey <tom@tromey.com>
3238 * target.c (target_section_by_addr, memory_xfer_partial_1):
3240 * target-section.h (struct target_section_table): Use
3242 * symfile.h (build_section_addr_info_from_section_table): Take a
3243 target_section_table.
3244 * symfile.c (build_section_addr_info_from_section_table): Take a
3245 target_section_table.
3246 * solist.h (struct so_list) <sections>: Change type.
3247 <sections_end>: Remove.
3248 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3249 (solib_contains_address_p): Update.
3250 * solib-svr4.c (scan_dyntag): Update.
3251 * solib-dsbt.c (scan_dyntag): Update.
3252 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3254 * record-full.c (record_full_core_start, record_full_core_end):
3256 (record_full_core_sections): New global.
3257 (record_full_core_open_1, record_full_core_target::xfer_partial):
3259 * exec.h (build_section_table, section_table_xfer_memory_partial)
3260 (add_target_sections): Take a target_section_table.
3261 * exec.c (exec_file_attach, clear_section_table): Update.
3262 (resize_section_table): Remove.
3263 (build_section_table, add_target_sections): Take a
3264 target_section_table.
3265 (add_target_sections_of_objfile, remove_target_sections)
3266 (exec_on_vfork): Update.
3267 (section_table_available_memory): Take a target_section_table.
3268 (section_table_read_available_memory): Update.
3269 (section_table_xfer_memory_partial): Take a target_section_table.
3270 (print_section_info, set_section_command)
3271 (exec_set_section_address, exec_target::has_memory): Update.
3272 * corelow.c (class core_target) <m_core_section_table,
3273 m_core_file_mappings>: Remove braces.
3274 <~core_target>: Remove.
3275 (core_target::core_target): Update.
3276 (core_target::~core_target): Remove.
3277 (core_target::build_file_mappings)
3278 (core_target::xfer_memory_via_mappings)
3279 (core_target::xfer_partial, core_target::info_proc_mappings):
3281 * bfd-target.c (target_bfd::xfer_partial): Update.
3282 (target_bfd::target_bfd): Update.
3283 (target_bfd::~target_bfd): Remove.
3285 2020-10-12 Tom Tromey <tom@tromey.com>
3287 * target.h (struct target_section, struct target_section_table):
3288 Move to target-section.h.
3289 * target-section.h: New file.
3291 2020-10-12 Pedro Alves <pedro@palves.net>
3294 * valops.c (struct struct_field_searcher): New.
3295 (update_search_result): Rename to ...
3296 (struct_field_searcher::update_result): ... this. Simplify
3297 prototype. Record all found fields.
3298 (do_search_struct_field): Rename to ...
3299 (struct_field_searcher::search): ... this. Simplify prototype.
3300 Maintain stack of visited baseclass path. Call update_result for
3301 fields too. Keep searching fields in baseclasses instead of
3302 stopping at the first found field.
3303 (search_struct_field): Use struct_field_searcher. When looking
3304 for fields, report ambiguous access attempts.
3306 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3308 * frame.c (inside_main_func): Check full symbols as well as
3311 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3313 * ada-lang.c (advance_wild_match): Rewrite the function's
3314 description. Change the type of target0, t0 and t1 to char.
3316 2020-10-09 Tom Tromey <tromey@adacore.com>
3318 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3320 2020-10-09 Tom Tromey <tromey@adacore.com>
3322 * ada-lang.h (ada_encode): Return std::string.
3323 * ada-lang.c (ada_encode_1): Return std::string.
3324 (ada_encode): Likewise.
3325 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3327 * ada-exp.y (block_lookup, write_var_or_type): Update.
3329 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3332 * printcmd.c (print_formatted): Handle void results as
3335 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3337 * arch/aarch32.c (aarch32_create_target_description): Release the
3338 target_desc_up as late as possible.
3339 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3340 * arch/amd64.c (amd64_create_target_description): Likewise.
3341 * arch/arc.c (arc_create_target_description): Return a
3342 target_desc_up, don't release it.
3343 * arch/arc.h (arc_create_target_description): Update declaration.
3344 (arc_lookup_target_description): Move target_desc_up into the
3345 cache, and return a borrowed pointer.
3346 * arch/arm.c (arm_create_target_description): Release the
3347 target_desc_up as late as possible.
3348 * arch/i386.c (i386_create_target_description): Likewise.
3349 * arch/riscv.h (riscv_create_target_description): Update
3350 declaration to match definition.
3351 * arch/tic6x.c (tic6x_create_target_description): Release the
3352 target_desc_up as late as possible.
3354 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3356 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3357 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3359 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3361 * source.c (directory_command): Notify observers that "directories"
3362 parameter has changed.
3364 2020-10-08 Tom Tromey <tom@tromey.com>
3366 * cli/cli-cmds.c (print_disassembly): Style function name and
3367 addresses. Add _() wrappers.
3369 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3371 * NEWS: Mention ARC support in GDBserver.
3373 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3375 * arch/aarch32.c (aarch32_create_target_description): Release
3376 unique_ptr returned from allocate_target_description.
3377 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3378 * arch/amd64.c (amd64_create_target_description): Likewise.
3379 * arch/arc.c (arc_create_target_description): Likewise.
3380 * arch/arm.c (arm_create_target_description): Likewise.
3381 * arch/i386.c (i386_create_target_description): Likewise.
3382 * arch/riscv.c (riscv_create_target_description): Update return
3383 type. Handle allocate_target_description returning a unique_ptr.
3384 (riscv_lookup_target_description): Update to handle unique_ptr.
3385 * arch/tic6x.c (tic6x_create_target_description): Release
3386 unique_ptr returned from allocate_target_description.
3387 * features/microblaze-with-stack-protect.c: Regenerate.
3388 * features/microblaze.c: Regenerate.
3389 * features/mips-dsp-linux.c: Regenerate.
3390 * features/mips-linux.c: Regenerate.
3391 * features/mips64-dsp-linux.c: Regenerate.
3392 * features/mips64-linux.c: Regenerate.
3393 * features/nds32.c: Regenerate.
3394 * features/nios2.c: Regenerate.
3395 * features/or1k.c: Regenerate.
3396 * features/rs6000/powerpc-32.c: Regenerate.
3397 * features/rs6000/powerpc-32l.c: Regenerate.
3398 * features/rs6000/powerpc-403.c: Regenerate.
3399 * features/rs6000/powerpc-403gc.c: Regenerate.
3400 * features/rs6000/powerpc-405.c: Regenerate.
3401 * features/rs6000/powerpc-505.c: Regenerate.
3402 * features/rs6000/powerpc-601.c: Regenerate.
3403 * features/rs6000/powerpc-602.c: Regenerate.
3404 * features/rs6000/powerpc-603.c: Regenerate.
3405 * features/rs6000/powerpc-604.c: Regenerate.
3406 * features/rs6000/powerpc-64.c: Regenerate.
3407 * features/rs6000/powerpc-64l.c: Regenerate.
3408 * features/rs6000/powerpc-7400.c: Regenerate.
3409 * features/rs6000/powerpc-750.c: Regenerate.
3410 * features/rs6000/powerpc-860.c: Regenerate.
3411 * features/rs6000/powerpc-altivec32.c: Regenerate.
3412 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3413 * features/rs6000/powerpc-altivec64.c: Regenerate.
3414 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3415 * features/rs6000/powerpc-e500.c: Regenerate.
3416 * features/rs6000/powerpc-e500l.c: Regenerate.
3417 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3418 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3419 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3420 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3421 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3422 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3423 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3424 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3425 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3426 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3427 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3428 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3429 * features/rs6000/powerpc-vsx32.c: Regenerate.
3430 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3431 * features/rs6000/powerpc-vsx64.c: Regenerate.
3432 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3433 * features/rs6000/rs6000.c: Regenerate.
3434 * features/rx.c: Regenerate.
3435 * features/s390-gs-linux64.c: Regenerate.
3436 * features/s390-linux32.c: Regenerate.
3437 * features/s390-linux32v1.c: Regenerate.
3438 * features/s390-linux32v2.c: Regenerate.
3439 * features/s390-linux64.c: Regenerate.
3440 * features/s390-linux64v1.c: Regenerate.
3441 * features/s390-linux64v2.c: Regenerate.
3442 * features/s390-te-linux64.c: Regenerate.
3443 * features/s390-tevx-linux64.c: Regenerate.
3444 * features/s390-vx-linux64.c: Regenerate.
3445 * features/s390x-gs-linux64.c: Regenerate.
3446 * features/s390x-linux64.c: Regenerate.
3447 * features/s390x-linux64v1.c: Regenerate.
3448 * features/s390x-linux64v2.c: Regenerate.
3449 * features/s390x-te-linux64.c: Regenerate.
3450 * features/s390x-tevx-linux64.c: Regenerate.
3451 * features/s390x-vx-linux64.c: Regenerate.
3452 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3453 from allocate_target_description.
3454 * target-descriptions.c (allocate_target_description): Update
3456 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3457 allocate_target_description.
3459 2020-10-07 Tom Tromey <tromey@adacore.com>
3461 * unittests/search-memory-selftests.c: New file.
3462 * Makefile.in (SELFTESTS_SRCS): Add
3463 unittests/search-memory-selftests.c.
3465 2020-10-07 Tom Tromey <tromey@adacore.com>
3468 * findcmd.c (_initialize_mem_search): Mention that the range is
3471 2020-10-07 Tom Tromey <tromey@adacore.com>
3473 * target.h (simple_search_memory): Don't declare.
3474 * target.c (simple_search_memory): Move to gdbsupport.
3475 (default_search_memory): Update.
3476 * remote.c (remote_target::search_memory): Update.
3478 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3480 * Makefile.in (COMPILE): Add CXXFLAGS.
3481 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3482 (check-headers): Add CXXFLAGS.
3484 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3486 * arc-linux-tdep.h: New file.
3487 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3488 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3489 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3490 arc_linux_gregset, arc_linux_v2_regset,
3491 arc_linux_iterate_over_regset_sections,
3492 arc_linux_core_read_description): Implement.
3493 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3494 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3495 (arc_gdbarch_features_create): Add.
3496 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3498 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3500 * arch/arc.h: Rename "arc_gdbarch_features" to
3501 "arc_arch_features".
3502 * arc-tdep.h: Likewise.
3503 * arc-tdep.c: Likewise.
3505 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3507 * infcmd.c (attach_command): Remove the redundant call to
3508 `clear_proceed_status`.
3510 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3512 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3514 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3516 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3517 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3518 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3520 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3522 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3523 (_initialize_break_catch_sig): Don't allocate array.
3525 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3527 * symtab.c (find_pc_line): Return unmapped addresses when the
3528 requested address is also unmapped.
3530 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3532 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3535 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3537 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3538 type::is_vector instead of TYPE_VECTOR.
3540 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3542 * auto-load.c (auto_load_objfile_script_1): Don't use
3543 debugfile_holder as temporary variable when stripping drive
3546 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3548 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3549 Add TYPE_CODE_COMPLEX.
3550 (amd64_windows_return_value): Fix types returned via XMM0.
3552 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3554 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3555 AArch64/ARM maintainers.
3557 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3559 * NEWS: Mention set/show debug event-loop.
3561 2020-10-02 Tom Tromey <tromey@adacore.com>
3563 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3566 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3568 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3569 * procfs.c (procfs_inferior_created): Remove.
3570 (_initialize_procfs): Don't register procfs_inferior_created.
3572 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3574 * async-event.c (invoke_async_signal_handlers): Add debug
3576 (check_async_event_handlers): Likewise.
3577 * event-top.c (show_debug_event_loop): New function.
3578 (_initialize_event_top): Register "set debug event-loop"
3581 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3583 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3585 * infrun.c: Include gdbsupport/common-debug.h.
3586 * linux-nat.c: Likewise.
3588 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3590 * async-event.h (create_async_signal_handler): Add name
3592 (create_async_event_handler): Likewise.
3593 * async-event.c (struct async_signal_handler) <name>: New field.
3594 (struct async_event_handler) <name>: New field.
3595 (create_async_signal_handler): Assign name.
3596 (create_async_event_handler): Assign name.
3597 * event-top.c (async_init_signals): Pass name when creating
3599 * infrun.c (_initialize_infrun): Likewise.
3600 * record-btrace.c (record_btrace_push_target): Likewise.
3601 * record-full.c (record_full_open): Likewise.
3602 * remote-notif.c (remote_notif_state_allocate): Likewise.
3603 * remote.c (remote_target::open_1): Likewise.
3604 * tui/tui-win.c (tui_initialize_win): Likewise.
3606 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3608 * async-event.c (initialize_async_signal_handlers): Pass name to
3610 * event-top.c (ui_register_input_event_handler): Likewise.
3611 * linux-nat.c (linux_nat_target::async): Likewise.
3612 * run-on-main-thread.c (_initialize_run_on_main_thread):
3614 * ser-base.c (reschedule): Likewise.
3615 (ser_base_async): Likewise.
3616 * tui/tui-io.c: Likewise.
3617 * top.h (struct ui) <num>: New field.
3618 * top.c (highest_ui_num): New variable.
3619 (ui::ui): Initialize num.
3621 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3623 * observable.h <inferior_created>: Remove parameters. Update all
3625 * inferior.h (post_create_inferior): Remove target parameter.
3628 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3630 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3631 and DW_MACRO_undef_strx.
3632 (dwarf_decode_macros): Likewise
3633 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3634 which is the value of DW_AT_str_offsets_base.
3635 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3638 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3640 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3642 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3644 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3645 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3647 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3649 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3651 2020-09-30 Tom de Vries <tdevries@suse.de>
3654 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3656 2020-09-30 Tom Tromey <tromey@adacore.com>
3658 * dwarf2/read.c (handle_variant): Use constant_value.
3660 2020-09-29 Tom Tromey <tom@tromey.com>
3662 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3663 (read_file_scope, dwarf2_get_pc_bounds)
3664 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3665 (read_structure_type, handle_struct_member_die)
3666 (read_enumeration_type, read_array_type, read_set_type)
3667 (read_tag_pointer_type, read_tag_reference_type)
3668 (read_subroutine_type, read_base_type, read_subrange_type)
3669 (read_full_die_1, partial_die_info::read)
3670 (partial_die_info::read, by, new_symbol)
3671 (dwarf2_const_value_data, dwarf2_const_value_attr)
3672 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3673 (prepare_one_comp_unit): Update.
3674 * dwarf2/attribute.h (DW_UNSND): Remove.
3676 2020-09-29 Tom Tromey <tom@tromey.com>
3678 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3679 (read_subroutine_type, partial_die_info::read)
3680 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3681 (dwarf2_add_member_fn): Update.
3682 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3683 * dwarf2/attribute.c (attribute::as_boolean): New method.
3685 2020-09-29 Tom Tromey <tom@tromey.com>
3687 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3688 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3690 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3692 2020-09-29 Tom Tromey <tom@tromey.com>
3694 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3695 the attribute's form.
3697 2020-09-29 Tom Tromey <tom@tromey.com>
3699 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3700 (dwarf2_add_member_fn): Update.
3701 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3702 * dwarf2/attribute.c (attribute::defaulted): New method, from
3703 is_valid_DW_AT_defaulted.
3705 2020-09-29 Tom Tromey <tom@tromey.com>
3707 * dwarf2/read.c (dw2_get_file_names_reader)
3708 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3709 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3710 (dwarf2_symbol_mark_computed): Use as_unsigned.
3711 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3713 <form_is_section_offset>: Update comment.
3715 2020-09-29 Tom Tromey <tom@tromey.com>
3717 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3718 dwarf2_default_access_attribute. Look up attribute.
3719 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3722 2020-09-29 Tom Tromey <tom@tromey.com>
3724 * dwarf2/read.c (skip_one_die): Update.
3725 (read_full_die_1): Change how reprocessing is done.
3726 (partial_die_info::read): Update.
3727 (read_attribute_value): Remove need_reprocess parameter.
3728 (read_attribute): Likewise.
3729 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3732 2020-09-29 Tom Tromey <tom@tromey.com>
3734 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3735 (dwarf2_const_value_attr, dump_die_shallow)
3736 (dwarf2_fetch_constant_bytes): Update.
3737 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3739 <set_address>: New method.
3741 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3742 (attribute::as_string, attribute::as_address): Add assert.
3744 2020-09-29 Tom Tromey <tom@tromey.com>
3746 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3747 (read_attribute_reprocess, read_attribute_value): Update.
3748 (read_attribute): Clear requires_reprocessing.
3749 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3750 form_requires_reprocessing>: New methods.
3751 <string_init>: Clear requires_reprocessing.
3752 <set_unsigned_reprocess>: New method.
3753 <name>: Shrink by one bit.
3754 <requires_reprocessing>: New member.
3755 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3758 2020-09-29 Tom Tromey <tom@tromey.com>
3760 * dwarf2/read.c (read_attribute_value): Update.
3761 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3762 set_unsigned>: New methods.
3763 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3765 2020-09-29 Tom Tromey <tom@tromey.com>
3767 * dwarf2/read.c (get_alignment, read_array_order)
3768 (read_attribute_value, dwarf2_const_value_attr)
3769 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3770 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3774 2020-09-29 Tom Tromey <tom@tromey.com>
3776 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3777 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3779 * dwarf2/attribute.h (struct attribute) <as_signature,
3780 set_signature>: New methods.
3781 (DW_SIGNATURE): Remove.
3783 2020-09-29 Tom Tromey <tom@tromey.com>
3785 * dwarf2/read.c (read_call_site_scope)
3786 (handle_data_member_location, dwarf2_add_member_fn)
3787 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3788 (partial_die_info::read, read_attribute_value)
3789 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3790 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3791 (dwarf2_symbol_mark_computed): Update.
3792 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3795 * dwarf2/attribute.c (attribute::form_is_block): Add
3798 2020-09-29 Tom Tromey <tom@tromey.com>
3800 * dwarf2/read.c (read_cutu_die_from_dwo)
3801 (read_attribute_reprocess, read_attribute_value, read_attribute)
3802 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3803 (dwarf2_fetch_constant_bytes): Update.
3804 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3805 <set_string_noncanonical, set_string_canonical>: New methods.
3806 <string_is_canonical>: Update comment.
3807 <canonical_string_p>: Add assert.
3808 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3809 * dwarf2/attribute.c (attribute::form_is_string): New method.
3810 (attribute::string): Use it.
3812 2020-09-29 Tom Tromey <tom@tromey.com>
3814 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3815 (dump_die_shallow): Use canonical_string_p.
3816 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3819 2020-09-29 Tom Tromey <tom@tromey.com>
3821 * dwarf2/read.c (partial_die_info::read)
3822 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3823 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3824 attribute::as_string.
3826 2020-09-29 Tom Tromey <tom@tromey.com>
3828 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3830 (attribute::string): Don't use DW_STRING.
3831 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3832 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3834 2020-09-29 Tom Tromey <tom@tromey.com>
3836 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3837 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3838 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3839 * dwarf2/attribute.h (struct attribute): Rename methods.
3840 * dwarf2/attribute.c (attribute::as_address): Rename from
3842 (attribute::as_string): Rename from value_as_string.
3844 2020-09-29 Tom Tromey <tom@tromey.com>
3846 * dwarf2/read.c (partial_die_info::read) <case
3847 DW_AT_linkage_name>: Use value_as_string.
3848 (dwarf2_string_attr): Use value_as_string.
3849 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3851 * dwarf2/attribute.c (attribute::value_as_string): New method.
3853 2020-09-29 Pedro Alves <pedro@palves.net>
3855 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3856 defined before using '#pragma GCC diagnostic' instead of checking
3859 2020-09-28 Tom Tromey <tom@tromey.com>
3861 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3862 (handle_signal_stop): Update.
3863 * procfs.c (procfs_target::insert_watchpoint): Update.
3864 * target.h (target_have_steppable_watchpoint): Now a function.
3866 2020-09-28 Tom Tromey <tom@tromey.com>
3868 * infrun.c (set_schedlock_func): Update.
3869 * target.h (target_can_lock_scheduler): Now a function.
3871 2020-09-28 Tom Tromey <tom@tromey.com>
3873 * inferior.h (class inferior) <has_execution>: Update.
3874 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3875 * valops.c (find_function_in_inferior)
3876 (value_allocate_space_in_inferior): Update.
3877 * top.c (kill_or_detach): Update.
3878 * target.c (target_preopen, set_target_permissions): Update.
3879 (target_has_execution_current): Remove.
3880 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3882 * solib.c (update_solib_list, reload_shared_libraries): Update.
3883 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3884 * solib-dsbt.c (enable_break): Update.
3885 * score-tdep.c (score7_fetch_inst): Update.
3886 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3888 * remote.c (remote_target::start_remote)
3889 (remote_target::remote_check_symbols, remote_target::open_1)
3890 (remote_target::remote_detach_1, remote_target::verify_memory)
3891 (remote_target::xfer_partial, remote_target::read_description)
3892 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3893 * record-full.c (record_full_open_1): Update.
3894 * record-btrace.c (record_btrace_target_open): Update.
3895 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3896 (value_nsstring): Update.
3897 * linux-thread-db.c (add_thread_db_info)
3898 (thread_db_find_new_threads_silently, check_thread_db_callback)
3899 (try_thread_db_load_1, record_thread): Update.
3900 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3902 * linux-fork.c (checkpoint_command): Update.
3903 * infrun.c (set_non_stop, set_observer_mode)
3904 (check_multi_target_resumption, for_each_just_stopped_thread)
3905 (maybe_remove_breakpoints, normal_stop)
3906 (class infcall_suspend_state): Update.
3907 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3908 (info_program_command, attach_command): Update.
3909 * infcall.c (call_function_by_hand_dummy): Update.
3910 * inf-loop.c (inferior_event_handler): Update.
3911 * gcore.c (gcore_command, derive_heap_segment): Update.
3912 * exec.c (exec_file_command): Update.
3913 * eval.c (evaluate_subexp): Update.
3914 * compile/compile.c (compile_to_object): Update.
3915 * cli/cli-dump.c (restore_command): Update.
3916 * breakpoint.c (update_watchpoint)
3917 (update_inserted_breakpoint_locations)
3918 (insert_breakpoint_locations, get_bpstat_thread): Update.
3919 * target.h (target_has_execution): Remove macro.
3920 (target_has_execution_current): Don't declare.
3921 (target_has_execution): Rename from target_has_execution_1. Add
3924 2020-09-28 Tom Tromey <tom@tromey.com>
3926 * mi/mi-main.c (exec_reverse_continue)
3927 (mi_cmd_list_target_features): Update.
3928 * infrun.c (set_exec_direction_func): Update.
3929 * target.c (default_execution_direction): Update.
3930 * reverse.c (exec_reverse_once): Update.
3931 * target.h (target_can_execute_reverse): Now a function.
3933 2020-09-28 Tom Tromey <tom@tromey.com>
3935 * tui/tui-regs.c (tui_get_register)
3936 (tui_data_window::show_registers): Update.
3937 * thread.c (scoped_restore_current_thread::restore)
3938 (scoped_restore_current_thread::scoped_restore_current_thread):
3940 * regcache-dump.c (regcache_print): Update.
3941 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3943 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3944 * mep-tdep.c (current_me_module, current_options): Update.
3945 * linux-thread-db.c (thread_db_load): Update.
3946 * infcmd.c (registers_info, info_vector_command)
3947 (info_float_command): Update.
3948 * ia64-tdep.c (ia64_frame_prev_register)
3949 (ia64_sigtramp_frame_prev_register): Update.
3950 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3951 * gcore.c (derive_stack_segment): Update.
3952 * frame.c (get_current_frame, has_stack_frames): Update.
3953 * findvar.c (language_defn::read_var_value): Update.
3954 * arm-tdep.c (arm_pc_is_thumb): Update.
3955 * target.c (target_has_registers): Rename from
3956 target_has_registers_1.
3957 * target.h (target_has_registers): Remove macro.
3958 (target_has_registers): Rename from target_has_registers_1.
3960 2020-09-28 Tom Tromey <tom@tromey.com>
3962 * windows-tdep.c (tlb_make_value): Update.
3963 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3964 * thread.c (scoped_restore_current_thread::restore)
3965 (scoped_restore_current_thread::scoped_restore_current_thread)
3966 (thread_command): Update.
3967 * stack.c (backtrace_command_1, frame_apply_level_command)
3968 (frame_apply_all_command, frame_apply_command): Update.
3969 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3971 * gcore.c (derive_stack_segment): Update.
3972 * frame.c (get_current_frame, has_stack_frames): Update.
3973 * auxv.c (info_auxv_command): Update.
3974 * ada-tasks.c (ada_build_task_list): Update.
3975 * target.c (target_has_stack): Rename from target_has_stack_1.
3976 * target.h (target_has_stack): Remove macro.
3977 (target_has_stack): Rename from target_has_stack_1.
3979 2020-09-28 Tom Tromey <tom@tromey.com>
3981 * target.c (target_has_memory): Rename from target_has_memory_1.
3982 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3983 * thread.c (scoped_restore_current_thread::restore)
3984 (scoped_restore_current_thread::scoped_restore_current_thread):
3986 * frame.c (get_current_frame, has_stack_frames): Update.
3987 * target.h (target_has_memory): Remove macro.
3988 (target_has_memory): Rename from target_has_memory_1.
3990 2020-09-28 Tom Tromey <tom@tromey.com>
3992 * target.c (target_has_all_memory_1): Remove.
3993 * target.h (target_has_all_memory): Remove define.
3994 (target_has_all_memory_1): Don't declare.
3996 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3998 * ser-base.c: Adjust comments formatting.
4000 2020-09-27 Tom Tromey <tom@tromey.com>
4003 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
4005 2020-09-27 Tom Tromey <tom@tromey.com>
4008 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
4010 2020-09-27 Tom Tromey <tom@tromey.com>
4012 * unittests/tui-selftests.c: Update.
4013 * tui/tui-winsource.h (struct tui_source_window_base)
4014 <extra_margin, show_line_number, refresh_pad>: New methods.
4015 <m_max_length, m_pad>: New members.
4016 (tui_copy_source_line): Update.
4017 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
4018 first_col, line_width, ndigits parameters. Add length.
4019 (tui_source_window_base::show_source_line): Write to pad. Line
4021 (tui_source_window_base::refresh_pad): New method.
4022 (tui_source_window_base::show_source_content): Write to pad. Call
4024 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
4026 (tui_source_window_base::update_exec_info): Call
4028 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
4030 <m_digits>: New member.
4031 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
4033 (tui_source_window::show_line_number): New method.
4034 * tui/tui-io.h (tui_puts): Fix comment.
4035 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
4038 2020-09-27 Tom Tromey <tom@tromey.com>
4040 * tui/tui-winsource.c
4041 (tui_source_window_base::set_is_exec_point_at): Don't call
4044 2020-09-27 Tom Tromey <tom@tromey.com>
4046 * python/py-tui.c (class tui_py_window) <refresh_window>: New
4049 <cursor_x, cursor_y>: Remove.
4050 <m_inner_window>: New member.
4051 (tui_py_window::rerender): Create inner window.
4052 (tui_py_window::output): Write to inner window.
4054 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
4057 * cli/cli-script.c (execute_control_commands): don't set
4058 instream to nullptr here as this breaks the from_tty argument
4059 to gdb.execute in Python.
4060 (execute_user_command): set instream to nullptr here instead.
4062 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
4064 * infrun.h (infrun_debug_printf): Fix formatting.
4065 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
4067 2020-09-25 Saagar Jha <saagar@saagarjha.com>
4069 * compile/compile-object-load.h (struct munmap_list): Add
4070 explicitly-defined move constructor.
4072 2020-09-24 Tom Tromey <tromey@adacore.com>
4075 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
4077 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
4078 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
4079 (tui_prev_win): Rewrite.
4081 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
4083 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
4084 in WOW64 processes as SIGINT.
4085 * nat/windows-nat.h: Make wow64_process a shared variable.
4086 * windows-nat.c: Remove static wow64_process variable.
4088 2020-09-23 Tom Tromey <tom@tromey.com>
4091 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
4092 offset and bit size.
4093 * printcmd.c (print_scalar_formatted): Handle zero-length
4095 (print_scalar_formatted): Use bit_size_differs_p.
4096 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
4098 (union type_specific): <int_stuff>: New member.
4099 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
4101 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
4102 TYPE_SPECIFIC_FIELD.
4103 (recursive_dump_type, copy_type_recursive): Update.
4104 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4105 DW_AT_data_bit_offset.
4107 2020-09-23 Tom Tromey <tom@tromey.com>
4109 * utils.h (class gdb_argv): Add move operators.
4110 <append>: New methods.
4111 * compile/compile.c (build_argc_argv): Remove.
4112 (compile_args_argc): Remove.
4113 (compile_args_argv): Change type.
4114 (set_compile_args): Simplify.
4115 (append_args): Remove.
4116 (filter_args): Remove argcp parameter.
4117 (get_args): Return gdb_argv. Simplify.
4118 (compile_to_object): Update.
4120 2020-09-23 Tom Tromey <tom@tromey.com>
4122 * compile/compile-object-run.c (do_module_cleanup)
4123 <~do_module_cleanup> :Remove.
4124 (do_module_cleanup): Update.
4125 * compile/compile-object-load.h (struct munmap_list): Add move
4126 assignment operator.
4127 <source_file>: Now a std::string.
4128 <munmap_list>: Rename. No longer a pointer.
4129 * compile/compile-object-load.c (struct setup_sections_data): Add
4131 <setup_one_section>: Declare.
4132 <munmap_list>: Move earlier.
4133 <m_bfd>: New member.
4134 <m_last_size, m_last_section_first, m_last_prot,
4135 m_last_max_alignment>: Rename, add initializers where needed.
4136 (setup_sections_data::setup_one_section): Rename from
4137 setup_sections. Update.
4138 (compile_object_load): Update. Don't use bfd_map_over_sections.
4140 2020-09-23 Tom Tromey <tom@tromey.com>
4142 * compile/compile-object-run.c (struct do_module_cleanup): Add
4143 parameters to constructor. Update destructor.
4144 <source_file, scope, scope_data, out_value_type, out_value_addr,
4145 munmap_list_head, objfile_name_string>: Remove.
4146 <module>: New member.
4147 (do_module_cleanup): Update.
4148 (compile_object_run): Update.
4150 2020-09-23 Tom Tromey <tom@tromey.com>
4152 * compile/compile.c (eval_compile_command): Update.
4153 * compile/compile-object-run.h (compile_object_run): Take a
4155 * compile/compile-object-run.c (compile_object_run): Take a
4157 * compile/compile-object-load.h (struct compile_module): Add
4158 constructor, destructor.
4159 (compile_module_up): New typedef.
4160 (compile_object_load): Return compile_object_up.
4161 * compile/compile-object-load.c (compile_object_load): Return
4164 2020-09-23 Tom Tromey <tom@tromey.com>
4166 * compile/compile-object-run.c (struct do_module_cleanup): Add
4167 constructor, destructor.
4168 <objfile_name_string>: Don't use struct hack.
4169 (do_module_cleanup): Use delete.
4170 (compile_object_run): Use new.
4172 2020-09-23 Tom Tromey <tom@tromey.com>
4174 * compile/compile-cplus-types.c
4175 (compile_cplus_convert_struct_or_union): Use std::vector.
4176 (compile_cplus_convert_func): Likewise.
4177 * compile/compile-c-types.c (convert_func): Use std::vector.
4179 2020-09-21 Tom Tromey <tromey@adacore.com>
4181 * sparc-tdep.c (sparc32_skip_prologue): Use
4182 skip_prologue_using_sal.
4184 2020-09-19 Tom Tromey <tom@tromey.com>
4186 * symfile.c (add_section_size_callback): Remove.
4187 (load_one_section): Rename from load_section_callback. Change
4189 (generic_load): Use foreach.
4191 2020-09-19 Tom Tromey <tom@tromey.com>
4193 * exec.c (add_to_section_table): Remove.
4194 (build_section_table): Use foreach.
4196 2020-09-19 Tom Tromey <tom@tromey.com>
4198 * elfread.c (elf_locate_sections): Change parameters.
4199 (elf_symfile_read): Use foreach.
4201 2020-09-19 Tom Tromey <tom@tromey.com>
4203 * cli/cli-dump.c (struct callback_data): Remove.
4204 (restore_one_section): Rename from restore_section_callback.
4206 (restore_binary_file): Change parameters.
4207 (restore_command): Use foreach.
4209 2020-09-19 Tom Tromey <tom@tromey.com>
4211 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4212 (gcore_copy_callback): Likewise.
4213 (gcore_memory_sections): Use foreach.
4215 2020-09-19 Tom Tromey <tom@tromey.com>
4217 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4218 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4220 (generic_elf_osabi_sniffer): Use foreach.
4221 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4222 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4224 2020-09-19 Tom Tromey <tom@tromey.com>
4226 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4227 (dwarf2_get_dwz_file): Use foreach.
4228 (dwarf2_locate_dwo_sections): Change parameters.
4229 (open_and_init_dwo_file): Use foreach.
4230 (dwarf2_locate_common_dwp_sections): Change parameters.
4231 (open_and_init_dwp_file): Use foreach.
4233 2020-09-19 Tom Tromey <tom@tromey.com>
4235 * symfile.h: (find_lowest_section): Don't declare.
4236 * symfile.c (find_lowest_section): Now static. Change
4238 (struct place_section_arg): Remove.
4239 (place_section): Change parameters.
4240 (addr_info_make_relative): Use foreach.
4241 (symfile_dummy_outputs): Remove.
4242 (default_symfile_relocate): Use foreach.
4244 2020-09-19 Tom Tromey <tom@tromey.com>
4246 * objfiles.c (add_to_objfile_sections): Rename from
4247 add_to_objfile_sections_full.
4248 (add_to_objfile_sections): Remove.
4249 (build_objfile_section_table): Use foreach.
4251 2020-09-19 Tom Tromey <tom@tromey.com>
4253 * stap-probe.c (get_stap_base_address_1): Remove.
4254 (get_stap_base_address): Use foreach.
4256 2020-09-19 Tom Tromey <tom@tromey.com>
4258 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4260 (gdb_bfd_close_or_warn): Use foreach.
4262 2020-09-19 Tom Tromey <tom@tromey.com>
4264 * corelow.c (add_to_thread_list): Change parameters.
4265 (core_target_open): Use foreach.
4267 2020-09-19 Tom Tromey <tom@tromey.com>
4269 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4272 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4274 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4277 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4279 * eval.c: Remove 'f-lang.h' include.
4280 (value_f90_subarray): Moved to f-lang.c.
4281 (eval_call): Renamed to...
4282 (evaluate_subexp_do_call): ...this, is no longer static, header
4283 comment moved into header file.
4284 (evaluate_funcall): Update call to eval_call.
4285 (skip_undetermined_arglist): Moved to f-lang.c.
4286 (fortran_value_subarray): Likewise.
4287 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4288 moved to evaluate_subexp_f.
4289 (calc_f77_array_dims): Moved to f-lang.c
4290 * expprint.c (print_subexp_funcall): New function.
4291 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4292 moved to print_subexp_f, OP_FUNCALL uses new function.
4293 (dump_subexp_body_funcall): New function.
4294 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4295 moved to dump_subexp_f, OP_FUNCALL uses new function.
4296 * expression.h (evaluate_subexp_do_call): Declare.
4297 * f-lang.c (value_f90_subarray): Moved from eval.c.
4298 (skip_undetermined_arglist): Likewise.
4299 (calc_f77_array_dims): Likewise.
4300 (fortran_value_subarray): Likewise.
4301 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4302 (operator_length_f): Likewise.
4303 (print_subexp_f): Likewise.
4304 (dump_subexp_body_f): Likewise.
4305 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4306 declaration of this operation to here.
4307 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4308 support moved to operator_length_f.
4309 * parser-defs.h (dump_subexp_body_funcall): Declare.
4310 (print_subexp_funcall): Declare.
4311 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4312 fortran-operator.def.
4314 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4316 * eval.c (fortran_value_subarray): New function, content is taken
4318 (evaluate_subexp_standard): ...here, in two places. Now arrays
4319 and strings both call the new function.
4320 (calc_f77_array_dims): Add header comment, handle strings.
4322 2020-09-18 Victor Collod <vcollod@nvidia.com>
4325 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4326 (i386_analyze_prologue): Call i386_skip_endbr.
4328 2020-09-18 Tom Tromey <tromey@adacore.com>
4330 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4331 (windows_nat_target::wait): Update.
4332 * target/wait.h (enum target_wait_flag): New. Use
4333 DEF_ENUM_FLAGS_TYPE.
4334 * target/target.h (target_wait): Change type of options.
4335 * target.h (target_options_to_string, default_target_wait):
4337 (struct target_ops) <wait>: Change type of options.
4338 * target.c (target_wait, default_target_wait, do_option): Change
4340 (target_options_to_string): Likewise.
4341 * target-delegates.c: Rebuild.
4342 * target-debug.h (target_debug_print_target_wait_flags): Rename
4343 from target_debug_print_options.
4344 * sol-thread.c (class sol_thread_target) <wait>: Update.
4345 (sol_thread_target::wait): Update.
4346 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4347 (rs6000_nat_target::wait): Update.
4348 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4350 (remote_target::wait_ns, remote_target::wait_as): Change type of
4352 (remote_target::wait): Update.
4353 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4354 (gdbsim_target::wait): Update.
4355 * record-full.c (class record_full_base_target) <wait>: Update.
4356 (record_full_wait_1): Change type of "options".
4357 (record_full_base_target::wait): Update.
4358 * record-btrace.c (class record_btrace_target) <wait>: Update.
4359 (record_btrace_target::wait): Update.
4360 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4362 (ravenscar_thread_target::wait): Update.
4363 * procfs.c (class procfs_target) <wait>: Update.
4364 (procfs_target::wait): Update.
4365 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4366 * obsd-nat.c (obsd_nat_target::wait): Update.
4367 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4368 (nto_procfs_target::wait): Update.
4369 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4370 * nbsd-nat.c (nbsd_wait): Change type of "options".
4371 (nbsd_nat_target::wait): Update.
4372 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4373 (thread_db_target::wait): Update.
4374 * linux-nat.h (class linux_nat_target) <wait>: Update.
4375 * linux-nat.c (linux_nat_target::wait): Update.
4376 (linux_nat_wait_1): Update.
4377 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4379 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4380 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4381 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4382 (go32_nat_target::wait): Update.
4383 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4384 * gnu-nat.c (gnu_nat_target::wait): Update.
4385 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4386 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4387 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4388 * darwin-nat.c (darwin_nat_target::wait): Update.
4389 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4390 (bsd_uthread_target::wait): Update.
4391 * aix-thread.c (class aix_thread_target) <wait>: Update.
4392 (aix_thread_target::wait): Update.
4394 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4396 * compile/compile-object-run.c (create_copied_type_recursive): New
4398 (compile_object_run): Use new function.
4400 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4402 * NEWS: Mention x86_64 Cygwin core file support.
4404 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4406 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4407 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4409 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4411 * windows-tdep.h: Add prototypes.
4412 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4413 (i386_windows_core_pid_to_str): Move and rename ...
4414 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4415 (windows_core_pid_to_str): ... and here.
4416 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4418 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4419 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4420 (amd64_windows_init_abi_common): ... and register.
4422 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4424 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4425 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4427 2020-09-18 Pedro Alves <pedro@palves.net>
4430 * thread.c (thread_find_command): Switch inferior before calling
4433 2020-09-17 Tom Tromey <tromey@adacore.com>
4435 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4436 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4437 (tdesc_arch_data_up): New typedef.
4438 (tdesc_use_registers, tdesc_data_alloc): Update.
4439 (tdesc_data_cleanup): Don't declare.
4440 * target-descriptions.c (tdesc_data_alloc): Return a
4442 (tdesc_arch_data_deleter::operator()): Rename from
4443 tdesc_data_cleanup. Change argument type.
4444 (tdesc_use_registers): Change early_data to an rvalue reference.
4445 (tdesc_use_registers): Don't use delete.
4446 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4447 * s390-tdep.c (s390_gdbarch_init): Update.
4448 * rx-tdep.c (rx_gdbarch_init): Update.
4449 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4450 * riscv-tdep.c (riscv_gdbarch_init): Update.
4451 * or1k-tdep.c (or1k_gdbarch_init): Update.
4452 * nios2-tdep.c (nios2_gdbarch_init): Update.
4453 * nds32-tdep.c (nds32_gdbarch_init): Update.
4454 * mips-tdep.c (mips_gdbarch_init): Update.
4455 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4456 * m68k-tdep.c (m68k_gdbarch_init): Update.
4457 * i386-tdep.c (i386_gdbarch_init): Update.
4458 * arm-tdep.c (arm_gdbarch_init): Update.
4459 * arc-tdep.c (arc_tdesc_init): Update.
4460 (arc_gdbarch_init): Update.
4461 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4463 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4465 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4466 for WOW64 processes.
4468 2020-09-17 Tom Tromey <tom@tromey.com>
4470 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4472 2020-09-17 Tom Tromey <tom@tromey.com>
4474 * value.c (preserve_values): Update.
4475 * python/py-type.c (save_objfile_types): Update.
4476 * guile/scm-type.c (save_objfile_types): Update.
4477 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4478 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4479 * compile/compile-object-run.c (compile_object_run): Update.
4481 2020-09-17 Tom Tromey <tom@tromey.com>
4483 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4485 <m_table>: Now htab_up.
4486 * typeprint.c (typedef_hash_table::recursively_update)
4487 (typedef_hash_table::add_template_parameters)
4488 (typedef_hash_table::typedef_hash_table): Update.
4489 (typedef_hash_table::~typedef_hash_table): Remove.
4490 (typedef_hash_table::typedef_hash_table)
4491 (typedef_hash_table::find_global_typedef)
4492 (typedef_hash_table::find_typedef): Update.
4494 2020-09-17 Tom Tromey <tom@tromey.com>
4496 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4498 2020-09-17 Tom Tromey <tom@tromey.com>
4500 * linespec.c (class decode_compound_collector)
4501 <~decode_compound_collector>: Remove.
4502 <m_unique_syms>: Now htab_up.
4503 (decode_compound_collector::operator ()): Update.
4504 (class symtab_collector) <~symtab_collector>: Remove.
4505 <m_symtab_table>: Now htab_up.
4506 (symtab_collector::operator ()): Update.
4508 2020-09-17 Tom Tromey <tom@tromey.com>
4510 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4511 (filename_seen_cache::clear): Update.
4512 (~filename_seen_cache): Remove.
4513 (filename_seen_cache::seen): Update.
4514 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4516 <~filename_seen_cache>: Remove.
4519 2020-09-17 Tom Tromey <tom@tromey.com>
4521 * completer.c (completion_tracker::discard_completions)
4522 (completion_tracker::~completion_tracker)
4523 (completion_tracker::maybe_add_completion)
4524 (completion_tracker::remove_completion)
4525 (completion_tracker::recompute_lowest_common_denominator)
4526 (completion_tracker::build_completion_result): Update.
4527 * completer.h (class completion_tracker) <have_completions>:
4529 <m_entries_hash>: Now htab_up.
4531 2020-09-17 Tom Tromey <tom@tromey.com>
4533 * breakpoint.c (ambiguous_names_p): Use htab_up.
4535 2020-09-17 Tom Tromey <tom@tromey.com>
4537 * auto-load.c (struct auto_load_pspace_info)
4538 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4539 <loaded_script_files, loaded_script_texts>: Change type to
4541 (~auto_load_pspace_info) Remove.
4542 (init_loaded_scripts_info, maybe_add_script_file)
4543 (maybe_add_script_text, auto_load_info_scripts): Update.
4545 2020-09-17 Tom Tromey <tromey@adacore.com>
4547 * c-exp.y (name_obstack): Now static.
4549 2020-09-17 Chungyi Chi <demonic@csie.io>
4551 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4553 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4555 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4556 (add_solib_catchpoint): Likewise.
4557 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4559 (add_solib_catchpoint): Change int parameter/variable to bool.
4560 (catch_load_or_unload): Likewise.
4561 (init_catchpoint): Likewise.
4562 (create_fork_vfork_event_catchpoint): Likewise.
4563 (catch_fork_command_1): Likewise.
4564 (catch_exec_command_1): Likewise.
4566 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4568 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4569 Change instance_flags to m_instance_flags.
4571 2020-09-16 Tom Tromey <tromey@adacore.com>
4574 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4576 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4578 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4580 (fbsd_nat_target::insert_exec_catchpoint)
4581 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4582 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4583 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4585 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4587 * configure.ac: Remove check for kinfo_getvmmap().
4588 * configure, config.in: Regenerate.
4589 * fbsd-nat.c (fbsd_read_mapping): Remove
4590 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4591 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4592 kinfo_get_vmmap() are always present.
4594 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4596 * fbsd-nat.c: Always include support for
4597 TARGET_OBJECT_SIGNAL_INFO.
4599 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4601 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4602 sysctl and remove procfs fallback.
4604 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4606 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4607 * fbsd-nat.h: Likewise.
4609 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4611 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4614 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4616 * ada-lang.c (ada_language_data): Delete.
4617 (ada_language): Remove references to ada_language_data.
4618 * c-lang.c (c_language_data): Delete.
4619 (c_language): Remove references to c_language_data.
4620 (cplus_language_data): Delete.
4621 (cplus_language): Remove references to cplus_language_data.
4622 (asm_language_data): Delete.
4623 (asm_language): Remove references to asm_language_data.
4624 (minimal_language_data): Delete.
4625 (minimal_language): Remove references to minimal_language_data.
4626 * d-lang.c (d_language_data): Delete.
4627 (d_language): Remove references to d_language_data.
4628 * f-lang.c (f_language_data): Delete.
4629 (f_language): Remove references to f_language_data.
4630 * go-lang.c (go_language_data): Delete.
4631 (go_language): Remove references to go_language_data.
4632 * language.c (unknown_language_data): Delete.
4633 (unknown_language): Remove references to unknown_language_data.
4634 (auto_language_data): Delete.
4635 (auto_language): Remove references to auto_language_data.
4636 * language.h (language_data): Delete struct.
4637 (language_defn): No longer inherit from language_data.
4638 * m2-lang.c (m2_language_data): Delete.
4639 (m2_language): Remove references to m2_language_data.
4640 * objc-lang.c (objc_language_data): Delete.
4641 (objc_language): Remove references to objc_language_data.
4642 * opencl-lang.c (opencl_language_data): Delete.
4643 (opencl_language): Remove references to opencl_language_data.
4644 * p-lang.c (pascal_language_data): Delete.
4645 (pascal_language): Remove references to pascal_language_data.
4646 * rust-lang.c (rust_language_data): Delete.
4647 (rust_language): Remove references to rust_language_data.
4649 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4651 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4653 (ada_language::opcode_print_table): New member function.
4654 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4655 (c_language::opcode_print_table): New member function.
4656 (cplus_language_data): Remove la_op_print_tab initializer.
4657 (cplus_language::opcode_print_table): New member function.
4658 (asm_language_data): Remove la_op_print_tab initializer.
4659 (asm_language::opcode_print_table): New member function.
4660 (minimal_language_data): Remove la_op_print_tab initializer.
4661 (minimal_language::opcode_print_table): New member function.
4662 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4663 (d_language::opcode_print_table): New member function.
4664 * expprint.c (print_subexp_standard): Update call to
4666 (op_string): Likewise.
4667 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4668 (f_language::opcode_print_table): New member function.
4669 * go-lang.c (go_language_data): Remove la_op_print_tab
4671 (go_language::opcode_print_table): New member function.
4672 * language.c (unknown_language_data): Remove la_op_print_tab
4674 (unknown_language::opcode_print_table): New member function.
4675 (auto_language_data): Remove la_op_print_tab initializer.
4676 (auto_language::opcode_print_table): New member function.
4677 * language.h (language_data): Remove la_op_print_tab field.
4678 (language_defn::opcode_print_table): Declare new member function.
4679 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4681 (m2_language::opcode_print_table): New member function.
4682 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4684 (objc_language::opcode_print_table): New member function.
4685 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4687 (opencl_language::opcode_print_table): New member function.
4688 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4690 (pascal_language::opcode_print_table): New member function.
4691 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4693 (rust_language::opcode_print_table): New member function.
4695 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4697 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4698 (ada_language::expression_ops): New member function.
4699 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4700 (c_language::expression_ops): New member function.
4701 (cplus_language_data): Remove la_exp_desc initializer.
4702 (cplus_language::expression_ops): New member function.
4703 (asm_language_data): Remove la_exp_desc initializer.
4704 (asm_language::expression_ops): New member function.
4705 (minimal_language_data): Remove la_exp_desc initializer.
4706 (minimal_language::expression_ops): New member function.
4707 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4708 (d_language::expression_ops): New member function.
4709 * eval.c (evaluate_subexp): Update call to expression_ops.
4710 * expprint.c (print_subexp): Likewise.
4711 (op_name): Likewise.
4712 (dump_subexp_body): Likewise.
4713 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4714 (f_language::expression_ops): New member function.
4715 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4716 (go_language::expression_ops): New member function.
4717 * language.c (language_defn::expression_ops): New function.
4718 (unknown_language_data): Remove la_exp_desc initializer.
4719 (auto_language_data): Likewise.
4720 * language.h (language_data): Remove la_exp_desc field.
4721 (language_defn::expression_ops): Declare new member function.
4722 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4723 (m2_language::expression_ops): New member function.
4724 * objc-lang.c (objc_language_data): Remove la_exp_desc
4726 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4728 (opencl_language::expression_ops): New member function.
4729 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4730 * parse.c (operator_length): Update call to expression_ops.
4731 (exp_iterate): Likewise.
4732 * rust-lang.c (rust_language_data): Remove la_exp_desc
4734 (ruse_language::expression_ops): New member function.
4736 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4738 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4740 (ada_language::varobj_ops): New member function.
4741 * c-lang.c (c_language_data): Remove la_varobj_ops
4743 (cplus_language_data): Likewise.
4744 (cplus_language::varobj_ops): New member function.
4745 (asm_language_data): Remove la_varobj_ops initializer.
4746 (minimal_language_data): Likewise.
4747 * d-lang.c (d_language_data): Likewise.
4748 * f-lang.c (f_language_data): Likewise.
4749 * go-lang.c (go_language_data): Likewise.
4750 * language.c (language_defn::varobj_ops): New function.
4751 (unknown_language_data): Remove la_varobj_ops
4753 (auto_language_data): Likewise.
4754 * language.h (language_data): Remove la_varobj_ops field.
4755 (language_defn::varobj_ops): Declare new member function.
4756 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4757 * objc-lang.c (objc_language_data): Likewise.
4758 * opencl-lang.c (opencl_language_data): Likewise.
4759 * p-lang.c (pascal_language_data): Likewise.
4760 * rust-lang.c (rust_language_data): Likewise.
4761 * varobj.c (varobj_create): Update call to varobj_ops.
4762 * varobj.h (default_varobj_ops): Delete define.
4764 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4766 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4768 * c-lang.c (c_language_data): Likewise.
4769 (c_language::macro_expansion): New member function.
4770 (cplus_language_data): Likewise.
4771 (cplus_language::macro_expansion): New member function.
4772 (asm_language_data): Likewise.
4773 (asm_language::macro_expansion): New member function.
4774 (minimal_language_data): Likewise.
4775 (minimal_language::macro_expansion): New member function.
4776 * d-lang.c (d_language_data): Remove la_macro_expansion
4778 * f-lang.c (f_language_data): Likewise.
4779 * go-lang.c (go_language_data): Likewise.
4780 * language.c (unknown_language_data): Likewise.
4781 (auto_language_data): Likewise.
4782 * language.h (language_data): Remove la_macro_expansion field.
4783 (language_defn::macro_expansion): New member function.
4784 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4786 * objc-lang.c (objc_language_data): Likewise.
4787 (objc_language::macro_expansion): New member function.
4788 * opencl-lang.c (opencl_language_data): Likewise.
4789 (opencl_language::macro_expansion): New member function.
4790 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4792 * rust-lang.c (rust_language_data): Likewise.
4793 * symtab.c (default_collect_symbol_completion_matches_break_on):
4794 Update call to macro_expansion.
4796 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4798 * ada-lang.c (ada_language_data): Remove la_array_ordering
4800 * c-lang.c (c_language_data): Likewise.
4801 (cplus_language_data): Likewise.
4802 (asm_language_data): Likewise.
4803 (minimal_language_data): Likewise.
4804 * d-lang.c (d_language_data): Likewise.
4805 * dwarf2/read.c (read_array_order): Update for call to
4807 * f-lang.c (f_language_data): Remove la_array_ordering
4809 (f_language::array_ordering): New member function.
4810 * go-lang.c (go_language_data): Remove la_array_ordering
4812 * language.c (unknown_language_data): Likewise.
4813 (auto_language_data): Likewise.
4814 * language.h (language_data): Delete la_array_ordering field.
4815 (language_defn::array_ordering): New member function.
4816 * m2-lang.c (m2_language_data): Remove la_array_ordering
4818 * objc-lang.c (objc_language_data): Likewise.
4819 * opencl-lang.c (opencl_language_data): Likewise.
4820 * p-lang.c (pascal_language_data): Likewise.
4821 * rust-lang.c (rust_language_data): Likewise.
4823 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4825 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4827 * c-lang.c (c_language_data): Likewise.
4828 (cplus_language_data): Likewise.
4829 (asm_language_data): Likewise.
4830 (minimal_language_data): Likewise.
4831 * d-lang.c (d_language_data): Likewise.
4832 * f-lang.c (f_language_data): Likewise.
4833 (f_language::case_sensitivity): New member function.
4834 * go-lang.c (go_language_data): Remove la_case_sensitivity
4836 * language.c (enum case_mode): Moved here from language.h.
4837 (case_mode): Make static.
4838 (show_case_command): Update for case_sensitivity being a method.
4839 (set_case_command): Likewise.
4840 (set_range_case): Likewise.
4841 (unknown_language_data): Remove la_case_sensitivity initializer.
4842 (auto_language_data): Likewise.
4843 * language.h (case_mode): Delete, move enum declaration to
4845 (language_data): Delete la_case_sensitivity field.
4846 (language_defn::case_sensitivity): New member function.
4847 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4849 * objc-lang.c (objc_language_data): Likewise.
4850 * opencl-lang.c (opencl_language_data): Likewise.
4851 * p-lang.c (pascal_language_data): Likewise.
4852 * rust-lang.c (rust_language_data): Likewise.
4854 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4856 * ada-lang.c (ada_language_data): Remove la_range_check
4858 * c-lang.c (c_language_data): Likewise.
4859 (cplus_language_data): Likewise.
4860 (asm_language_data): Likewise.
4861 (minimal_language_data): Likewise.
4862 * d-lang.c (d_language_data): Likewise.
4863 * f-lang.c (f_language_data): Likewise.
4864 (f_language::range_checking_on_by_default): New member function.
4865 * go-lang.c (go_language_data): Remove la_range_check initializer.
4866 * language.c (enum range_mode): Moved here from language.h.
4867 (range_mode): Made static.
4868 (show_range_command): Update to use
4869 range_checking_on_by_default.
4870 (set_range_command): Likewise.
4871 (set_range_case): Likewise.
4872 (unknown_language_data): Remove la_range_check initializer.
4873 (auto_language_data): Likewise.
4874 * language.h (range_mode): Delete. Enum definition moved to
4876 (language_data): Remove la_range_check field.
4877 (language_defn::range_checking_on_by_default): New member
4879 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4880 (m2_language::range_checking_on_by_default): New member function.
4881 * objc-lang.c (objc_language_data): Remove la_range_check
4883 * opencl-lang.c (opencl_language_data): Likewise.
4884 * p-lang.c (pascal_language_data): Likewise.
4885 (pascal_language::range_checking_on_by_default): New member
4887 * rust-lang.c (rust_language_data): Remove la_range_check
4889 (rust_language::range_checking_on_by_default): New member
4892 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4894 * dwarf2/read.c (dwarf2_physname): Remove special case for
4896 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4899 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4901 * ada-lang.c (ada_language_data): Remove
4902 la_store_sym_names_in_linkage_form_p initializer.
4903 (ada_language::store_sym_names_in_linkage_form_p): New member
4905 * c-lang.c (c_language_data): Remove
4906 la_store_sym_names_in_linkage_form_p initializer.
4907 (c_language::store_sym_names_in_linkage_form_p): New member
4909 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4911 (asm_language_data): Likewise.
4912 (asm_language::store_sym_names_in_linkage_form_p): New member
4914 (minimal_language_data): Remove
4915 la_store_sym_names_in_linkage_form_p initializer.
4916 (minimal_language::store_sym_names_in_linkage_form_p): New member
4918 * d-lang.c (d_language_data): Remove
4919 la_store_sym_names_in_linkage_form_p initializer.
4920 * dwarf2/read.c (dwarf2_physname): Update call to
4921 store_sym_names_in_linkage_form_p.
4922 * f-lang.c (f_language_data): Remove
4923 la_store_sym_names_in_linkage_form_p initializer.
4924 * go-lang.c (go_language_data): Remove
4925 la_store_sym_names_in_linkage_form_p initializer.
4926 * language.c (unknown_language_data): Remove
4927 la_store_sym_names_in_linkage_form_p initializer.
4928 (unknown_language::store_sym_names_in_linkage_form_p): New member
4930 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4932 (auto_language::store_sym_names_in_linkage_form_p): New member
4934 * language.h (language_data): Remove
4935 la_store_sym_names_in_linkage_form_p member variable.
4936 (language_defn::store_sym_names_in_linkage_form_p): New member
4938 * m2-lang.c (m2_language_data): Remove
4939 la_store_sym_names_in_linkage_form_p initializer.
4940 * objc-lang.c (objc_language_data): Likewise.
4941 * opencl-lang.c (opencl_language_data): Likewise.
4942 * p-lang.c (pascal_language_data): Likewise.
4943 * rust-lang.c (rust_language_data): Likewise.
4945 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4947 * ada-lang.c (ada_language_data): Remove string_lower_bound
4949 * c-lang.c (c_language_data): Likewise.
4950 (cplus_language_data): Likewise.
4951 (asm_language_data): Likewise.
4952 (minimal_language_data): Likewise.
4953 * d-lang.c (d_language_data): Likewise.
4954 * f-lang.c (f_language_data): Likewise.
4955 * go-lang.c (go_language_data): Likewise.
4956 * language.c (unknown_language_data): Likewise.
4957 (auto_language_data): Likewise.
4958 * language.h (language_data): Remove string_lower_bound field.
4959 (language_defn::string_lower_bound): New member function.
4960 * m2-lang.c (m2_language_data): Remove string_lower_bound
4962 (m2_language::string_lower_bound): New member function.
4963 * objc-lang.c (objc_language_data): Remove string_lower_bound
4965 * opencl-lang.c (opencl_language_data): Likewise.
4966 * p-lang.c (pascal_language_data): Likewise.
4967 * rust-lang.c (rust_language_data): Likewise.
4968 * valops.c (value_cstring): Update call to string_lower_bound.
4969 (value_string): Likewise.
4970 * value.c (allocate_repeated_value): Likewise.
4972 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4974 * valops.c (value_repeat): Fix incorrect argument name in comment.
4976 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4978 * ada-lang.c (ada_language_data): Remove c_style_arrays
4980 (ada_language::c_style_arrays_p): New member fuction.
4981 * c-lang.c (c_language_data): Remove c_style_arrays
4983 (cplus_language_data): Likewise.
4984 (asm_language_data): Likewise.
4985 (minimal_language_data): Likewise.
4986 * d-lang.c (d_language_data): Likewise.
4987 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4988 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4989 (f_language::c_style_arrays_p): New member function.
4990 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4991 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4992 * language.c (unknown_language_data): Remove c_style_arrays
4994 (auto_language_data): Likewise.
4995 * language.h (language_data): Remove c_style_arrays field.
4996 (language_defn::c_style_arrays_p): New member function.
4997 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4998 (m2_language::c_style_arrays_p): New member function.
4999 * objc-lang.c (objc_language_data): Remove c_style_arrays
5001 * opencl-lang.c (opencl_language_data): Likewise.
5002 * p-lang.c (pascal_language_data): Likewise.
5003 * rust-lang.c (rust_language_data): Likewise.
5004 * valarith.c (value_subscript): Update call to c_style_arrays_p,
5005 and update local variable to a bool.
5006 * valops.c (value_cast): Update call to c_style_arrays_p.
5007 (value_array): Likewise.
5008 * value.c (coerce_array): Likewise.
5010 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5012 * ada-lang.c (ada_language_data): Remove la_language initializer.
5013 * c-lang.c (c_language_data): Likewise.
5014 (cplus_language_data): Likewise.
5015 (asm_language_data): Likewise.
5016 (minimal_language_data): Likewise.
5017 * d-lang.c (d_language_data): Likewise.
5018 * f-lang.c (f_language_data): Likewise.
5019 * go-lang.c (go_language_data): Likewise.
5020 * language.c (unknown_language_data): Likewise.
5021 (auto_language_data): Likewise.
5022 * language.h (language_data): Remove la_language field.
5023 (language_defn::language_defn): Initialise la_language field.
5024 (language_defn::la_language): New member variable.
5025 * m2-lang.c (m2_language_data): Remove la_language field.
5026 * objc-lang.c (objc_language_data): Likewise.
5027 * opencl-lang.c (opencl_language_data): Likewise.
5028 * p-lang.c (pascal_language_data): Likewise.
5029 * rust-lang.c (rust_language_data): Likewise.
5031 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5033 * ada-lang.c (ada_extensions): Delete, moved into
5034 ada_language::filename_extensions.
5035 (ada_language_data): Remove la_filename_extensions initializer.
5036 (ada_language::filename_extensions): New member function.
5037 * c-lang.c (c_extensions): Delete, moved into
5038 c_language::filename_extensions.
5039 (c_language_data): Remove la_filename_extensions initializer.
5040 (c_language::filename_extensions): New member function.
5041 (cplus_extensions): Delete, moved into
5042 cplus_language::filename_extensions.
5043 (cplus_language_data): Remove la_filename_extensions initializer.
5044 (cplus_language::filename_extensions): New member function.
5045 (asm_extensions): Delete, moved into
5046 asm_language::filename_extensions.
5047 (asm_language_data): Remove la_filename_extensions initializer.
5048 (asm_language::filename_extensions): New member function.
5049 (minimal_language_data): Remove la_filename_extensions
5051 * d-lang.c (d_extensions): Delete, moved into
5052 d_language::filename_extensions.
5053 (d_language_data): Remove la_filename_extensions initializer.
5054 (d_language::filename_extensions): New member function.
5055 * f-lang.c (f_extensions): Delete, moved into
5056 f_language::filename_extensions.
5057 (f_language_data): Remove la_filename_extensions initializer.
5058 (f_language::filename_extensions): New member function.
5059 * go-lang.c (go_language_data): Remove la_filename_extensions
5061 * language.c (add_set_language_command): Update now that
5062 filename_extensions returns a vector.
5063 (unknown_language_data): Remove la_filename_extensions
5065 (auto_language_data): Likewise.
5066 * language.h (language_data): Remove la_filename_extensions field.
5067 (language_defn::filename_extensions): New member function.
5068 * m2-lang.c (m2_language_data): Remove la_filename_extensions
5070 * objc-lang.c (objc_extensions): Delete, moved into
5071 objc_language::filename_extensions.
5072 (objc_language_data): Remove la_filename_extensions initializer.
5073 (objc_language::filename_extensions): New member function.
5074 * opencl-lang.c (opencl_language_data): Remove
5075 la_filename_extensions initializer.
5076 * p-lang.c (pascal_extensions): Delete, moved into
5077 pascal_language::filename_extensions.
5078 (pascal_language_data): Remove la_filename_extensions initializer.
5079 (pascal_language::filename_extensions): New member function.
5080 * rust-lang.c (rust_extensions): Delete, moved into
5081 rust_language::filename_extensions.
5082 (rust_language_data): Remove la_filename_extensions initializer.
5083 (rust_language::filename_extensions): New member function.
5084 * symfile.c (add_filename_language): Add new assert.
5086 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5088 * ada-lang.c (ada_language_data): Remove la_name and
5089 la_natural_name initializers.
5090 (ada_language::name): New member function.
5091 (ada_language::natural_name): New member function.
5092 * c-lang.c (c_language_data): Remove la_name and
5093 la_natural_name initializers.
5094 (c_language::name): New member function.
5095 (c_language::natural_name): New member function.
5096 (cplus_language_data): Remove la_name and
5097 la_natural_name initializers.
5098 (cplus_language::name): New member function.
5099 (cplus_language::natural_name): New member function.
5100 (asm_language_data): Remove la_name and
5101 la_natural_name initializers.
5102 (asm_language::name): New member function.
5103 (asm_language::natural_name): New member function.
5104 (minimal_language_data): Remove la_name and
5105 la_natural_name initializers.
5106 (minimal_language::name): New member function.
5107 (minimal_language::natural_name): New member function.
5108 * compile/compile.c (compile_to_object): Update call to
5109 lanugage_defn::name.
5110 * d-lang.c (d_language_data): Remove la_name and
5111 la_natural_name initializers.
5112 (d_language::name): New member function.
5113 (d_language::natural_name): New member function.
5114 * expprint.c (print_subexp_standard): Update call to
5115 language_defn::name.
5116 (dump_raw_expression): Likewise
5117 (dump_prefix_expression): Likewise.
5118 * f-lang.c (f_language_data): Remove la_name and
5119 la_natural_name initializers.
5120 (f_language::name): New member function.
5121 (f_language::natural_name): New member function.
5122 * go-lang.c (go_language_data): Remove la_name and
5123 la_natural_name initializers.
5124 (go_language::name): New member function.
5125 (go_language::natural_name): New member function.
5126 * language.c (show_language_command): Update call to
5127 language_defn::name.
5128 (set_language_command): Likewise.
5129 (language_enum): Likewise.
5130 (language_str): Likewise.
5131 (add_set_language_command): Likewise, use
5132 language_defn::natural_name in the doc string.
5133 (unknown_language_data): Remove la_name and
5134 la_natural_name initializers.
5135 (unknown_language::name): New member function.
5136 (unknown_language::natural_name): New member function.
5137 (auto_language_data): Remove la_name and
5138 la_natural_name initializers.
5139 (auto_language::name): New member function.
5140 (auto_language::natural_name): New member function.
5141 (language_lookup_primitive_type_as_symbol): Update call to
5142 language_defn::name.
5143 * language.h (language_data): Remove la_name and la_natural_name
5145 (language_defn::name): New member function.
5146 (language_defn::natural_name): New member function.
5147 * m2-lang.c (m2_language_data): Remove la_name and
5148 la_natural_name initializers.
5149 (m2_language::name): New member function.
5150 (m2_language::natural_name): New member function.
5151 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5152 language_defn::natural_name.
5153 * objc-lang.c (objc_language_data): Remove la_name and
5154 la_natural_name initializers.
5155 (objc_language::name): New member function.
5156 (objc_language::natural_name): New member function.
5157 * opencl-lang.c (opencl_language_data): Remove la_name and
5158 la_natural_name initializers.
5159 (opencl_language::name): New member function.
5160 (opencl_language::natural_name): New member function.
5161 * p-lang.c (pascal_language_data): Remove la_name and
5162 la_natural_name initializers.
5163 (pascal_language::name): New member function.
5164 (pascal_language::natural_name): New member function.
5165 * rust-lang.c (rust_language_data): Remove la_name and
5166 la_natural_name initializers.
5167 (rust_language::name): New member function.
5168 (rust_language::natural_name): New member function.
5169 * symtab.c (lookup_language_this): Update call to
5170 language_defn::name.
5172 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5174 * ada-lang.c (ada_language_data): Remove la_name_of_this
5176 * ax-gdb.c (gen_expr): Update call to name_of_this.
5177 * c-exp.y (classify_name): Likewise.
5178 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5179 (cplus_language_data): Likewise.
5180 (cplus_language::name_of_this): New member function.
5181 (asm_language_data): Remove la_name_of_this initializer.
5182 (minimal_language_data): Likewise.
5183 * d-lang.c (d_language_data): Likewise.
5184 (d_language::name_of_this): New member function.
5185 * expprint.c (print_subexp_standard): Update call to name_of_this.
5186 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5187 * go-lang.c (go_language_data): Likewise.
5188 * language.c (unknown_language_data): Likewise.
5189 (unknown_language::name_of_this): New member function.
5190 (auto_language_data): Remove la_name_of_this initializer.
5191 (auto_language::name_of_this): New member function.
5192 * language.h (language_data): Delete la_name_of_this member
5194 (language_defn::name_of_this): New member function.
5195 * m2-lang.c (m2_language_data): Remove la_name_of_this
5197 * objc-lang.c (objc_language_data): Likewise.
5198 (objc_language::name_of_this): New member function.
5199 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5201 * p-lang.c (pascal_language_data): Likewise.
5202 (pascal_language::name_of_this): New member function.
5203 * rust-lang.c (rust_language_data): Remove la_name_of_this
5205 * symtab.c (lookup_language_this): Update call to name_of_this.
5206 (lookup_symbol_aux): Likewise.
5207 * valops.c (value_of_this): Likewise.
5209 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5211 * ada-lang.c (ada_language_data): Remove
5212 la_struct_too_deep_ellipsis initializer.
5213 (ada_language::struct_too_deep_ellipsis): New member function.
5214 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5216 (cplus_language_data): Likewise.
5217 (asm_language_data): Likewise.
5218 (minimal_language_data): Likewise.
5219 * cp-valprint.c (cp_print_value): Update call to
5220 struct_too_deep_ellipsis.
5221 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5223 * f-lang.c (f_language_data): Likewise.
5224 (f_language::struct_too_deep_ellipsis): New member function.
5225 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5227 * language.c (unknown_language_data): Likewise.
5228 (auto_language_data): Likewise.
5229 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5231 (language_defn::struct_too_deep_ellipsis): New member function.
5232 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5234 * objc-lang.c (objc_language_data): Likewise.
5235 * opencl-lang.c (opencl_language_data): Likewise.
5236 * p-lang.c (pascal_language_data): Likewise.
5237 * rust-lang.c (rust_language_data): Likewise.
5238 * valprint.c (val_print_check_max_depth): Update call to
5239 struct_too_deep_ellipsis.
5241 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5243 * MAINTAINERS (Write After Approval): Add myself.
5245 2020-09-15 Tom Tromey <tom@tromey.com>
5247 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5250 2020-09-15 Tom Tromey <tom@tromey.com>
5252 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5253 and TYPE_CODE_METHODPTR cases.
5254 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5255 (c_value_print_inner): Update.
5256 * valprint.c (generic_value_print_memberptr): New function, from
5257 c_value_print_memberptr.
5258 (generic_value_print): Use it. Call cplus_print_method_ptr.
5260 2020-09-15 Tom Tromey <tromey@adacore.com>
5262 * python/python-internal.h (PyInt_FromLong): Remove define.
5263 * python/py-value.c (convert_value_from_python): Use
5264 gdb_py_object_from_longest.
5265 * python/py-type.c (typy_get_code): Use
5266 gdb_py_object_from_longest.
5267 * python/py-symtab.c (salpy_get_line): Use
5268 gdb_py_object_from_longest.
5269 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5270 gdb_py_object_from_longest.
5271 * python/py-record.c (recpy_gap_reason_code): Use
5272 gdb_py_object_from_longest.
5273 * python/py-record-btrace.c (recpy_bt_insn_size)
5274 (recpy_bt_func_level, btpy_list_count): Use
5275 gdb_py_object_from_longest.
5276 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5277 gdb_py_object_from_longest. Fix error handling.
5278 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5279 gdb_py_object_from_longest.
5280 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5281 gdb_py_object_from_longest.
5282 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5283 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5284 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5286 2020-09-15 Tom Tromey <tromey@adacore.com>
5288 * python/python.c (gdbpy_parameter_value): Use
5289 gdb_py_object_from_ulongest.
5291 2020-09-15 Tom Tromey <tromey@adacore.com>
5293 * python/py-infevents.c (create_register_changed_event_object):
5294 Use gdb_py_object_from_longest.
5295 * python/py-exitedevent.c (create_exited_event_object): Use
5296 gdb_py_object_from_longest.
5298 2020-09-15 Tom Tromey <tromey@adacore.com>
5300 * python/python.c (gdbpy_parameter_value): Use
5301 gdb_py_object_from_longest.
5302 * python/py-type.c (convert_field, typy_range): Use
5303 gdb_py_object_from_longest.
5304 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5305 gdb_py_object_from_longest.
5306 * python/py-lazy-string.c (stpy_get_length): Use
5307 gdb_py_object_from_longest.
5308 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5309 gdb_py_object_from_longest.
5310 * python/py-infevents.c (create_memory_changed_event_object): Use
5311 gdb_py_object_from_longest.
5312 * python/py-inferior.c (infpy_get_num): Use
5313 gdb_py_object_from_longest.
5314 (infpy_get_pid): Likewise.
5316 2020-09-15 Tom Tromey <tromey@adacore.com>
5318 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5320 * python/py-value.c (valpy_long): Use
5321 gdb_py_object_from_ulongest.
5322 * python/py-symtab.c (salpy_get_pc): Use
5323 gdb_py_object_from_ulongest.
5324 (salpy_get_last): Likewise.
5325 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5326 gdb_py_object_from_ulongest.
5327 * python/py-lazy-string.c (stpy_get_address): Use
5328 gdb_py_object_from_ulongest.
5329 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5330 * python/py-arch.c (archpy_disassemble): Use
5331 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5334 2020-09-15 Tom Tromey <tromey@adacore.com>
5336 * python/python-internal.h (gdb_py_long_from_longest): Remove
5338 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5339 * python/py-type.c (convert_field, typy_get_sizeof): Use
5340 gdb_py_object_from_longest.
5341 * python/py-record-btrace.c (btpy_list_index): Use
5342 gdb_py_object_from_longest.
5344 2020-09-15 Tom Tromey <tromey@adacore.com>
5346 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5347 * python/py-record.c (recpy_element_number): Use
5348 gdb_py_object_from_longest.
5349 (recpy_gap_number): Likewise.
5351 2020-09-15 Tom Tromey <tromey@adacore.com>
5353 * top.c (ui::ui): Update.
5354 (highest_ui_num): Remove.
5355 * top.h (struct ui) <num>: Remove.
5357 2020-09-15 Tom Tromey <tromey@adacore.com>
5359 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5360 * ui-style.c (ansi_regex_text): Now array.
5361 * rust-exp.y (number_regex_text): Now array.
5362 * linespec.c (linespec_quote_characters): Now array.
5363 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5366 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5368 * debuginfod-support.c (debuginfod_client_deleter): New.
5369 (debuginfod_client_up): New.
5370 (debuginfod_init): Return debuginfod_client_up.
5371 (debuginfod_source_query): Adjust.
5372 (debuginfod_debuginfo_query): Adjust.
5374 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5376 * debuginfod-support.c (debuginfod_source_query): Use
5377 make_unique_xstrdup.
5379 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5381 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5382 with `type::instance_flags`.
5384 2020-09-14 Michael Mullin <masmullin@gmail.com>
5386 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5387 Remove baton parameter.
5389 2020-09-14 Pedro Alves <pedro@palves.net>
5391 * Makefile.in (SELFTESTS_SRCS): Add
5392 unittests/enum-flags-selftests.c.
5393 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5394 btrace_function_flags instead of enum btrace_function_flag.
5395 * compile/compile-c-types.c (convert_qualified): Use
5397 * compile/compile-cplus-symbols.c (convert_one_symbol)
5398 (convert_symbol_bmsym):
5399 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5400 (compile_cplus_convert_struct_or_union_methods)
5401 (compile_cplus_instance::convert_qualified_base):
5402 * go-exp.y (parse_string_or_char): Add cast to int.
5403 * unittests/enum-flags-selftests.c: New file.
5404 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5405 type to btrace_thread_flags from btrace_thread_flag.
5406 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5407 local's type to btrace_thread_flags from btrace_thread_flag. Add
5410 2020-09-14 Pedro Alves <pedro@palves.net>
5412 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5413 * gdbtypes.c (address_space_name_to_int): Rename to ...
5414 (address_space_name_to_type_instance_flags): ... this.
5415 (address_space_int_to_name): Rename to ...
5416 (address_space_type_instance_flags_to_name): ... this.
5417 * gdbtypes.h (address_space_name_to_int): Rename to ...
5418 (address_space_name_to_type_instance_flags): ... this.
5419 (address_space_int_to_name): Rename to ...
5420 (address_space_type_instance_flags_to_name): ... this.
5421 * type-stack.c (type_stack::insert): Adjust to rename.
5422 * type-stack.h (type_stack::insert): Likewise.
5424 2020-09-14 Pedro Alves <pedro@palves.net>
5425 Andrew Burgess <andrew.burgess@embecosm.com>
5427 * avr-tdep.c (avr_address_class_type_flags): Return
5428 type_instance_flags.
5429 (avr_address_class_type_flags_to_name): Take a
5430 type_instance_flags.
5431 (avr_address_class_name_to_type_flags): Return bool and take a
5432 type_instance_flags.
5433 * d-lang.c (build_d_types): Use type::set_instance_flags.
5434 * ft32-tdep.c (ft32_address_class_type_flags): Return
5435 type_instance_flags.
5436 (ft32_address_class_type_flags_to_name): Take a
5437 type_instance_flags.
5438 (ft32_address_class_name_to_type_flags): Return bool and take a
5439 type_instance_flags.
5440 (ft32_gdbarch_init): Use type::set_instance_flags.
5441 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5442 * gdbarch.h, gdbarch.c: Regenerate.
5443 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5444 (address_class_name_to_type_flags): Use type_instance_flags and
5446 * gdbtypes.c (address_space_name_to_int)
5447 (address_space_int_to_name, make_qualified_type): Use
5448 type_instance_flags.
5449 (make_qualified_type): Use type_instance_flags and
5450 type::set_instance_flags.
5451 (make_type_with_address_space, make_cv_type, make_vector_type)
5452 (check_typedef): Use type_instance_flags.
5453 (recursive_dump_type): Cast type_instance_flags to unsigned for
5455 (copy_type_recursive): Use type::set_instance_flags.
5456 (gdbtypes_post_init): Use type::set_instance_flags.
5457 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5458 <m_instance_flags>: ... this.
5459 <instance_flags, set_instance_flags>: New methods.
5460 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5461 (SET_TYPE_INSTANCE_FLAGS): New.
5462 (address_space_name_to_int, address_space_int_to_name)
5463 (make_type_with_address_space): Pass flags using
5464 type_instance_flags instead of int.
5465 * stabsread.c (cleanup_undefined_types_noname): Use
5466 type::set_instance_flags.
5467 * s390-tdep.c (s390_address_class_type_flags): Return
5468 type_instance_flags.
5469 (s390_address_class_type_flags_to_name): Take a
5470 type_instance_flags.
5471 (s390_address_class_name_to_type_flags): Return bool and take a
5472 type_instance_flags.
5473 * type-stack.c (type_stack::follow_types): Use
5474 type_instance_flags.
5475 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5477 2020-09-14 Tom Tromey <tromey@adacore.com>
5479 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5480 * x86-tdep.c (x86_is_thunk_register_name)
5481 (x86_in_indirect_branch_thunk): Update.
5482 * sparc64-tdep.c (sparc64_fpu_register_names)
5483 (sparc64_cp0_register_names, sparc64_register_names)
5484 (sparc64_pseudo_register_names): Now const.
5485 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5486 cp0_registers_num>: Now const.
5487 * sparc-tdep.c (sparc_core_register_names)
5488 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5489 (sparc32_pseudo_register_names): Now const.
5490 (validate_tdesc_registers): Update.
5491 * rust-lang.c (rust_extensions): Now const.
5492 * p-lang.c (p_extensions): Now const.
5493 * objc-lang.c (objc_extensions): Now const.
5494 * nto-tdep.c (nto_thread_state_str): Now const.
5495 * moxie-tdep.c (moxie_register_names): Now const.
5496 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5498 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5499 (mips_linux_reg_names): Now const.
5500 (mips_gdbarch_init): Update.
5501 * microblaze-tdep.c (microblaze_register_names): Now const.
5502 * m68k-tdep.c (m68k_register_names): Now const.
5503 * m32r-tdep.c (m32r_register_names): Now const.
5504 * ia64-tdep.c (ia64_register_names): Now const.
5505 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5506 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5507 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5508 ymm_avx512_register_names, pkeys_register_names>: Now const.
5509 * i386-tdep.c (i386_register_names, i386_zmm_names)
5510 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5511 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5512 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5513 * f-lang.c (f_extensions): Now const.
5514 * d-lang.c (d_extensions): Now const.
5515 * csky-tdep.c (csky_register_names): Now const.
5516 * charset.c (default_charset_names, charset_enum): Now const.
5517 (_initialize_charset): Update.
5518 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5520 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5521 (bsd_uthread_solib_loaded): Update.
5522 (bsd_uthread_state): Now const.
5523 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5524 (amd64_ymm_avx512_names, amd64_ymmh_names)
5525 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5526 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5527 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5528 (amd64_dword_names): Now const.
5529 * agent.c (can_use_agent_enum): Now const.
5530 * ada-tasks.c (task_states, long_task_states): Now const.
5531 * ada-lang.c (known_runtime_file_name_patterns)
5532 (known_auxiliary_function_name_patterns, attribute_names)
5533 (standard_exc, ada_extensions): Now const.
5535 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5537 * bcache.h (struct bcache) <bcache>: Remove constructor.
5538 <m_hash_function, m_compare_function>: Remove.
5539 <~bcache>: Make virtual.
5540 <compare>: Remove static method, introduce virtual method.
5541 <default_hash>: Remove.
5542 <hash>: New virtual method.
5543 * bcache.c (bcache::expand_hash_table): Update.
5544 (bcache::insert): Update.
5545 (bcache::hash): New.
5546 (bcache::compare): Update comment and parameter names.
5547 * gdbtypes.c (types_deeply_equal): Update.
5548 * psymtab.h (struct psymbol_bcache): New struct.
5549 (class psymtab_storage) <psymtab_storage>: Make default.
5550 <psymbol_cache>: Change type to psymbol_bcache.
5551 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5552 (psymbol_hash): Change to...
5553 (psymbol_bcache::hash): ... this.
5554 (psymbol_compare): Change to...
5555 (psymbol_bcache::compare): ... this.
5557 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5559 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5560 checking for initial lwp.
5562 2020-09-14 Tom Tromey <tromey@adacore.com>
5564 * m68k-tdep.c (m68k_extract_return_value): Use
5565 pointer_result_regnum.
5566 (m68k_store_return_value): Likewise.
5567 (m68k_reg_struct_return_p): Handle vectors and arrays.
5568 (m68k_return_value): Handle arrays.
5569 (m68k_svr4_return_value): Fix single-element aggregate handling.
5570 Handle long double. Adjust for embedded ABI.
5571 (m68k_svr4_init_abi): Set pointer_result_regnum.
5572 (m68k_embedded_init_abi): New function.
5573 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5574 (m68k_osabi_sniffer): New function.
5575 (_initialize_m68k_tdep): Register osabi sniffer.
5576 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5579 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5581 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5582 with gdb::unique_xmalloc_ptr<char>.
5584 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5586 * xml-support.h (xml_fetch_another): Change type to be a
5588 (xml_process_xincludes): Remove baton parameter.
5589 (xml_fetch_content_from_file): Change baton parameter to
5591 * xml-support.c (struct xinclude_parsing_data)
5592 <xinclude_parsing_data>: Remove baton parameter.
5593 <fetcher_baton>: Remove.
5594 (xinclude_start_include): Adjust.
5595 (xml_process_xincludes): Adjust.
5596 (xml_fetch_content_from_file): Replace baton parameter with
5598 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5599 (xml_init_syscalls_info): Use a lambda.
5600 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5601 (file_read_description_xml): Use a lambda.
5602 (fetch_available_features_from_target): Change baton parameter
5604 (target_read_description_xml): Use a lambda.
5605 (target_fetch_description_xml): Use a lambda.
5606 (string_read_description_xml): Update.
5608 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5610 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5611 uses with type::endianity_is_not_default.
5613 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5615 * gdbtypes.h (struct type) <endianity_is_not_default,
5616 set_endianity_is_not_default>: New methods.
5617 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5618 type::endianity_is_not_default, change all write call sites to
5619 use type::set_endianity_is_not_default.
5621 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5623 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5624 uses with type::is_fixed_instance.
5626 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5628 * gdbtypes.h (struct type) <is_fixed_instance,
5629 set_is_fixed_instance>: New methods.
5630 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5631 write call sites to use type::set_is_fixed_instance.
5633 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5635 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5636 uses with type::is_gnu_ifunc.
5638 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5640 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5641 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5642 use type::set_is_gnu_ifunc.
5644 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5646 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5647 uses with type::stub_is_supported.
5649 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5651 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5652 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5653 use type::set_stub_is_supported.
5655 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5657 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5658 uses with type::is_vector.
5660 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5662 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5663 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5664 use type::set_is_vector.
5666 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5668 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5669 uses with type::has_varargs.
5671 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5673 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5674 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5675 use type::set_has_varargs.
5677 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5679 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5680 uses with type::is_prototyped.
5682 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5684 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5686 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5687 call sites to use type::set_is_prototyped.
5689 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5691 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5692 uses with type::target_is_stub.
5694 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5696 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5698 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5699 sites to use type::set_target_is_stub.
5701 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5703 * gdbtypes.h (TYPE_STUB): Remove, replace all
5704 uses with type::is_stub.
5706 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5708 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5709 (TYPE_STUB): Use type::is_stub, change all write call sites to
5710 use type::set_is_stub.
5712 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5714 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5715 type::has_no_signedness.
5717 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5719 * gdbtypes.h (struct type) <has_no_signedness,
5720 set_has_no_signedness>: New methods.
5721 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5722 call sites to use type::set_has_no_signedness.
5724 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5726 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5729 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5731 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5733 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5734 sites to use type::set_is_unsigned.
5736 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5737 Adam Renquinha <arenquinha@cimeq.qc.ca>
5739 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5740 pointer and stack frame offset when unwinding.
5742 2020-09-13 Pedro Alves <pedro@palves.net>
5744 * NEWS: Document "-break-insert --qualified".
5745 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5747 2020-09-13 Pedro Alves <pedro@palves.net>
5749 * linespec.c (classify_mtype, compare_msyms): Delete.
5750 (search_minsyms_for_name): Remove classification logic. Instead
5751 filter out trampoline symbols if we also found an external
5752 function of the same name.
5754 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5756 * NEWS: Create a new section for the next release branch.
5757 Rename the section of the current branch, now that it has
5760 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5762 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5763 * version.in: Bump version to 11.0.50.DATE-git.
5765 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5767 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5769 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5770 Felix Willgerodt <Felix.Willgerodt@intel.com>
5772 * gdbarch.sh: Added bfloat16 type.
5773 * gdbarch.c: Regenerated.
5774 * gdbarch.h: Regenerated.
5775 * gdbtypes.c (floatformats_bfloat16): New struct.
5776 (gdbtypes_post_init): Add builtin_bfloat16.
5777 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5778 (floatformats_bfloat16): New struct.
5779 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5780 (i386_ymm_type): Add field "v16_bfloat16"
5781 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5782 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5783 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5784 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5785 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5786 * features/i386/64bit-avx512.c: Regenerated.
5787 * features/i386/64bit-sse.xml: Add bfloat16 type.
5788 * features/i386/64bit-sse.c: Regenerated.
5790 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5792 * i386-tdep.c (i386_zmm_type): Fix field names.
5793 (i386_ymm_type): Fix field names.
5795 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5797 * breakpoint.c: Fix typo in the help message of the
5798 "set breakpoint condition-evaluation" command.
5800 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5802 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5803 * (nbsd_nat_target::pid_to_exec_file)
5804 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5805 (nbsd_nat_target::post_startup_inferior)
5806 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5807 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5808 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5809 * (nbsd_thread_lister): Remove.
5811 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5813 * fork-inferior.c (startup_inferior): Avoid double free.
5815 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5817 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5818 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5820 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5822 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5823 * netbsd-nat.c: Include <sys/ptrace.h>.
5824 * (netbsd_nat::enable_proc_events): Add.
5826 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5828 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5829 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5830 (netbsd_nat::for_each_thread): Add.
5831 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5832 "gdbsupport/common-debug.h".
5833 * (netbsd_nat::netbsd_thread_lister)
5834 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5835 (netbsd_nat::for_each_thread): Add.
5837 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5839 * netbsd-nat.h: Include <unistd.h>.
5840 * (netbsd_nat::pid_to_exec_file): Add.
5841 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5842 * (netbsd_nat::pid_to_exec_file) Add.
5844 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5846 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5848 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5850 * netbsd-nat.h: New file.
5851 * netbsd-nat.c: Likewise.
5853 2020-09-09 Tom Tromey <tromey@adacore.com>
5855 * ada-lang.c (remove_extra_symbols): Do not increment when
5858 2020-09-08 Tom Tromey <tromey@adacore.com>
5860 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5862 2020-09-08 Tom Tromey <tromey@adacore.com>
5865 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5866 (gdb_bfd_init_data): New function.
5867 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5869 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5871 * infrun.c (fetch_inferior_event): Use
5872 `switch_to_target_no_thread` to switch the target.
5874 2020-09-06 Tom Tromey <tom@tromey.com>
5876 * symfile.h (dwarf2_free_objfile): Don't declare.
5878 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5880 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5881 to match 16 byte real/complex type generated by Flang compiler.
5883 2020-09-03 Tom de Vries <tdevries@suse.de>
5886 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5887 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5889 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5891 * maint.c (index_digits): New function.
5892 (struct maint_print_section_data): Remove.
5893 (print_bfd_section_info): Remove print_data parameter, add arg
5895 (print_objfile_section_info): Likewise.
5896 (print_bfd_section_info_maybe_relocated): Likewise (plus
5898 (maintenance_info_sections): Adjust calls.
5900 2020-09-02 Tom Tromey <tromey@adacore.com>
5902 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5904 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5906 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5908 * bcache.h (struct bcache) <insert>: Change type of `added` to
5910 * bcache.c (bcache::insert): Likewise.
5911 * gdbtypes.c (check_types_worklist): Adjust.
5912 * psymtab.c (add_psymbol_to_bcache): Adjust.
5914 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5916 * corelow.c (unordered_set): Include.
5917 (class core_target): Add field 'm_core_unavailable_mappings'.
5918 (core_target::build_file_mappings): Print only one warning
5919 per inaccessible file. Add unavailable/broken mappings
5920 to m_core_unavailable_mappings.
5921 (core_target::xfer_partial): Call...
5922 (core_target::xfer_memory_via_mappings): New method.
5924 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5926 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5929 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5931 * dwarf2/read.c (struct field_info): Fix indentation.
5933 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5935 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5936 ordering in comment.
5937 * frame.c (frame_id_eq): Fix indentation.
5939 2020-08-31 Scott Linder <scott@scottlinder.com>
5940 Simon Marchi <simon.marchi@efficios.com>
5942 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5943 inline frame ids in outer frame.
5945 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5947 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5948 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5949 (outer_frame_id): Use FID_STACK_OUTER instead of
5951 (frame_id_p): Don't check for outer_frame_id.
5953 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5955 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5956 regnum/frame in value. Call allocate_value_lazy.
5957 * frame.c (frame_unwind_register_value): Use
5958 val_print_not_saved.
5960 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5962 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5964 2020-08-29 Pedro Alves <pedro@palves.net>
5966 * progspace.c (print_program_space): Use all_inferiors. Switch to
5967 the inferior before calling target_pid_to_str.
5969 2020-08-28 Tom Tromey <tom@tromey.com>
5971 * xcoffread.c (xcoff_end_psymtab): Update comment.
5972 * dbxread.c (dbx_end_psymtab): Update comment.
5974 2020-08-28 Tom de Vries <tdevries@suse.de>
5977 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5979 (create_breakpoint): Same.
5980 (base_breakpoint_decode_location): Same.
5981 (bkpt_create_sals_from_location): Same.
5982 (bkpt_decode_location): Same.
5983 (bkpt_probe_create_sals_from_location): Same.
5984 (bkpt_probe_decode_location): Same.
5985 (tracepoint_create_sals_from_location): Same.
5986 (tracepoint_decode_location): Same.
5987 (tracepoint_probe_decode_location): Same.
5988 (strace_marker_create_sals_from_location): Same.
5989 (strace_marker_decode_location): Same.
5990 (create_sals_from_location_default): Same.
5991 (decode_location_default): Same.
5992 * breakpoint.h (struct breakpoint_ops): Same.
5993 (create_breakpoint): Same.
5994 * linespec.h (decode_line_full): Same.
5995 * linespec.c (decode_line_full): Same. Throw error if
5996 result.size () == 0.
5998 2020-08-27 Pedro Alves <pedro@palves.net>
6001 * breakpoint.c (until_break_fsm) <location_breakpoint,
6002 caller_breakpoint>: Delete fields.
6003 <breakpoints>: New field.
6004 <until_break_fsm>: Adjust to save a breakpoint vector instead of
6005 two individual breakpoints.
6006 (until_break_fsm::should_stop): Loop over breakpoints in the
6008 (until_break_fsm::clean_up): Adjust to clear the breakpoints
6010 (until_break_command): Handle location expanding into multiple
6013 2020-08-27 Pedro Alves <pedro@palves.net>
6016 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
6017 bp_until breakpoints user-specified locations. Update intro
6020 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
6022 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
6023 gdb_bfd_sections): New.
6024 * maint.c (print_bfd_section_info): Change param type to
6025 maint_print_section_data.
6026 (print_objfile_section_info): Likewise.
6027 (print_bfd_section_info_maybe_relocated): Likewise.
6028 (maintenance_info_sections): Use gdb_bfd_sections.
6030 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6032 * MAINTAINERS: Add ARC target and maintainer.
6034 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
6036 * configure.tgt: ARC support for GNU/Linux.
6037 * Makefile.in (ALL_TARGET_OBJS): Likewise.
6038 * arc-linux-tdep.c: New file.
6039 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
6040 * arc-tdep.c (arc_write_pc): Use it.
6042 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6044 * arc-tdep.c (arc_check_for_hardware_loop): New.
6045 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
6047 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6049 * arc-tdep.h: Include "gdbarch.h".
6051 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6054 (arc_gdbarch_features): New class to stir the selection of target XML.
6055 (arc_create_target_description): Use FEATURES to choose XML target.
6056 (arc_lookup_target_description): Use arc_create_target_description
6057 to create _new_ target descriptions or return the already created
6058 ones if the FEATURES is the same.
6059 * arch/arc.c: Implementation of prototypes described above.
6060 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
6061 (arc_gdbarch_features_init): Initialize the FEATURES struct.
6062 * arc-tdep.c (*_feature_name): Make feature names consistent.
6063 (arc_register_feature): A new struct to hold information about
6064 registers of a particular target/feature.
6065 (arc_check_tdesc_feature): Check if XML provides registers in
6066 compliance with ARC_REGISTER_FEATURE structs.
6067 (arc_update_acc_reg_names): Add aliases for r58 and r59.
6068 (determine_*_reg_feature_set): Which feature name to look for.
6069 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
6070 (mach_type_to_arc_isa): Convert from a set of binutils machine types
6071 to expected ISA enums to be used in arc_gdbarch_features structs.
6072 * features/Makefile (FEATURE_XMLFILES): Add new files.
6073 * gdb/features/arc/v1-aux.c: New file.
6074 * gdb/features/arc/v1-aux.xml: Likewise.
6075 * gdb/features/arc/v1-core.c: Likewise.
6076 * gdb/features/arc/v1-core.xml: Likewise.
6077 * gdb/features/arc/v2-aux.c: Likewise.
6078 * gdb/features/arc/v2-aux.xml: Likewise.
6079 * gdb/features/arc/v2-core.c: Likewise.
6080 * gdb/features/arc/v2-core.xml: Likewise.
6081 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
6083 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
6084 Andrew Burgess <andrew.burgess@embecosm.com>
6087 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
6088 an assert. Remove single element array indexing pattern as the
6089 MULTI_SUBSCRIPT support will handle this case too.
6091 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
6093 * value.h (valprint_check_validity): Move declaration from
6095 * valprint.h (valprint_check_validity): ... to here.
6097 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6099 * debug.h: New file.
6100 * debug.c (debug_prefixed_vprintf): New function.
6101 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6102 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
6104 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6106 * infrun.h (infrun_debug_printf_1): New function declaration.
6107 (infrun_debug_printf): New macro.
6108 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6110 (infrun_debug_printf): New function.
6111 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6112 (handle_jit_event): Likewise.
6114 2020-08-21 Mark Wielaard <mark@klomp.org>
6116 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6118 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
6120 * frame.c (enum class frame_id_status): New.
6121 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6122 (fprintf_frame): Update.
6123 (compute_frame_id): Set frame id status to "computing" on entry.
6124 Set it back to "not_computed" on failure and to "computed" on
6126 (get_frame_id): Assert the frame id is not being computed.
6127 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6128 (create_new_frame): Likewise.
6129 (frame_cleanup_after_sniffer): Update assert.
6131 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6133 * regcache.c (pid_ptid_regcache_map): New type.
6134 (target_ptid_regcache_map): Remove.
6135 (target_pid_ptid_regcache_map): New type.
6136 (regcaches): Change type to target_pid_ptid_regcache_map.
6137 (get_thread_arch_aspace_regcache): Update.
6138 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6140 (regcaches_size): Update.
6141 (regcache_count): Update.
6142 (registers_changed_ptid_target_pid_test): New.
6143 (_initialize_regcache): Register new test.
6145 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6147 * regcache.c (regcache_count): New.
6148 (struct regcache_test_data): New.
6149 (regcache_test_data_up): New.
6150 (populate_regcaches_for_test): New.
6151 (regcaches_test): Remove.
6152 (get_thread_arch_aspace_regcache_test): New.
6153 (registers_changed_ptid_all_test): New.
6154 (registers_changed_ptid_target_test): New.
6155 (registers_changed_ptid_target_ptid_test): New.
6156 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6157 (_initialize_regcache): Register new tests.
6159 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6161 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6162 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6163 gdbarch and aspace parameter. Use current inferior's aspace.
6164 Validate regcache's arch value.
6165 (regcaches_test): Update.
6167 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6169 * regcache.c (regcaches_test): Call registers_changed.
6171 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6173 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6175 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6177 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6178 to find the end of prologue for flang compiled binaries.
6179 * arm-tdep.c (arm_skip_prologue): Likewise.
6180 * i386-tdep.c (i386_skip_prologue): Likewise.
6181 * producer.c (producer_is_llvm): New function.
6182 (producer_parsing_tests): Added new tests for clang/flang.
6183 * producer.h (producer_is_llvm): New declaration.
6185 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
6187 * linux-nat.c (linux_nat_debug_printf): New function.
6188 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6190 2020-08-18 Aaron Merey <amerey@redhat.com>
6192 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6193 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6194 (CLIBS): Add DEBUGINFOD_LIBS.
6196 2020-08-17 Sergei Trofimovich <siarheit@google.com>
6198 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6201 2020-08-17 Tom Tromey <tromey@adacore.com>
6203 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6204 ada_get_decoded_value returns NULL.
6206 2020-08-17 Tom Tromey <tromey@adacore.com>
6208 * python/py-inferior.c (infpy_search_memory): Use
6209 gdb_py_object_from_ulongest.
6210 * python/py-infevents.c (create_inferior_call_event_object)
6211 (create_memory_changed_event_object): Use
6212 gdb_py_object_from_ulongest.
6213 * python/py-linetable.c (ltpy_entry_get_pc): Use
6214 gdb_py_object_from_ulongest.
6216 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6218 * loc.c (class symbol_needs_eval_context): Fix indentation.
6220 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6222 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6225 2020-08-17 Tom de Vries <tdevries@suse.de>
6228 * gdbtypes.c (dump_dynamic_prop): New function.
6229 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6231 2020-08-15 Tom de Vries <tdevries@suse.de>
6234 * stack.c (print_frame_args): Temporarily set the selected
6235 frame to FRAME while printing the frame's arguments.
6237 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6239 PR breakpoints/26385
6240 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6241 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6243 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6245 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6246 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6247 and >= to check return value instead of == -1 and != -1.
6249 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6251 * utils.h (class gdb_argv) <as_array_view>: New method.
6252 * utils.c (gdb_argv_as_array_view_test): New.
6253 (_initialize_utils): Register selftest.
6254 * maint.c (maintenance_selftest): Use the new method.
6256 2020-08-13 Kamil Rytarowski <n54@gmx.com>
6258 * target.h (supports_dumpcore, dumpcore): New
6259 function declarations.
6260 * target.c (supports_dumpcore, dumpcore): New
6262 * target-delegates.c: Rebuild.
6263 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6264 and target_dumpcore ().
6266 2020-08-13 Aaron Merey <amerey@redhat.com>
6268 * debuginfod-support.c: Replace global variables with user_data.
6270 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6272 * maint.c (maintenance_selftest): Split args and pass array_view
6275 2020-08-12 Luis Machado <luis.machado@linaro.org>
6277 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6279 Use %s and pulongest to print the length.
6281 2020-08-12 Pedro Alves <palves@redhat.com>
6283 * NEWS: Move "Multi-target debugging support" item to the
6284 "Changes since GDB 9" section.
6286 2020-08-12 Pedro Alves <palves@redhat.com>
6289 * progspace.c (program_space::remove_objfile): Invalidate the
6292 2020-08-11 Tom de Vries <tdevries@suse.de>
6294 * MAINTAINERS: Mark ms1 as deleted.
6296 2020-08-10 Luis Machado <luis.machado@linaro.org>
6300 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6302 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6303 movz/str/stur/stp skipping behavior.
6305 2020-08-10 Luis Machado <luis.machado@linaro.org>
6307 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6308 struct user_sve_header instead of struct sve_context.
6310 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6312 * read.h (dwarf2_fetch_die_loc_sect_off,
6313 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6314 `void *` parameter with function_view.
6315 * read.c (dwarf2_fetch_die_loc_sect_off,
6316 dwarf2_fetch_die_loc_cu_off): Likewise.
6317 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6318 (per_cu_dwarf_call): Adjust.
6319 (get_frame_address_in_block_wrapper): Remove.
6320 (indirect_synthetic_pointer): Adjust.
6321 (get_ax_pc): Remove.
6322 (dwarf2_compile_expr_to_ax): Adjust.
6324 2020-08-08 Tom de Vries <tdevries@suse.de>
6327 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6329 * regcache.c (get_thread_arch_aspace_regcache): Same.
6331 2020-08-07 Tom Tromey <tromey@adacore.com>
6333 * ravenscar-thread.c
6334 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6336 (ravenscar_thread_target::wait): Check
6337 runtime_initialized.
6338 (ravenscar_thread_target::prepare_to_store)
6339 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6340 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6341 (ravenscar_thread_target::stopped_by_watchpoint)
6342 (ravenscar_thread_target::stopped_data_address)
6343 (ravenscar_thread_target::core_of_thread): Use
6344 scoped_restore_current_thread and
6345 set_base_thread_from_ravenscar_task.
6347 2020-08-07 Tom Tromey <tromey@adacore.com>
6349 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6351 2020-08-07 Tom Tromey <tromey@adacore.com>
6353 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6354 update_inferior_ptid before update_thread_list.
6355 (temporarily_change_regcache_ptid): New class.
6356 (ravenscar_thread_target::fetch_registers)
6357 (ravenscar_thread_target::store_registers)
6358 (ravenscar_thread_target::prepare_to_store): Use base thread when
6359 forwarding operation.
6361 2020-08-07 Tom Tromey <tromey@adacore.com>
6363 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6366 2020-08-07 Tom Tromey <tromey@adacore.com>
6368 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6370 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6372 (ravenscar_thread_target::add_thread): Rename from
6373 ravenscar_add_thread.
6374 (ravenscar_thread_target::update_thread_list): Use a lambda.
6375 (ravenscar_thread_target::xfer_partial): New method.
6377 2020-08-07 Tom Tromey <tromey@adacore.com>
6379 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6381 (iterate_over_live_ada_tasks): Change type of argument.
6382 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6385 2020-08-07 Tom Tromey <tromey@adacore.com>
6387 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6389 (ravenscar_thread_target::extra_thread_info): Remove.
6390 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6391 defer to target beneath for non-Ravenscar threads.
6393 2020-08-07 Tom Tromey <tromey@adacore.com>
6395 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6396 get_base_thread_from_ravenscar_task>: Now methods.
6397 <m_cpu_map>: New member.
6398 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6399 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6400 (ravenscar_thread_target::task_is_currently_active): Update.
6401 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6403 (ravenscar_thread_target::add_active_thread): Put initial thread
6406 2020-08-07 Tom Tromey <tromey@adacore.com>
6408 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6411 2020-08-07 Tom Tromey <tromey@adacore.com>
6413 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6414 runtime_initialized.
6416 2020-08-07 Tom Tromey <tromey@adacore.com>
6418 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6420 (ravenscar_thread_target::add_active_thread): Now public.
6421 (ravenscar_inferior_created): Call add_active_thread after pushing
6424 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6426 * regcache.c (ptid_regcache_map): New type.
6427 (target_ptid_regcache_map): New type.
6428 (regcaches): Change type to target_ptid_regcache_map.
6429 (get_thread_arch_aspace_regcache): Update to regcaches' new
6431 (regcache_thread_ptid_changed): Likewise.
6432 (registers_changed_ptid): Likewise.
6433 (regcaches_size): Likewise.
6434 (regcaches_test): Update.
6435 (regcache_thread_ptid_changed): Update.
6436 * regcache.h (regcache_up): New type.
6437 * gdbsupport/ptid.h (hash_ptid): New struct.
6439 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6441 * observable.h (thread_ptid_changed): Add parameter
6442 `process_stratum_target *`.
6443 * infrun.c (infrun_thread_ptid_changed): Add parameter
6444 `process_stratum_target *` and use it.
6445 (selftests): New namespace.
6446 (infrun_thread_ptid_changed): New function.
6447 (_initialize_infrun): Register selftest.
6448 * regcache.c (regcache_thread_ptid_changed): Add parameter
6449 `process_stratum_target *` and use it.
6450 (regcache_thread_ptid_changed): New function.
6451 (_initialize_regcache): Register selftest.
6452 * thread.c (thread_change_ptid): Pass target to
6453 thread_ptid_changed observable.
6455 2020-08-06 Caroline Tice <cmtice@google.com>
6457 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6458 (struct dwp_sections): Update field comments. Add loclists and
6460 (struct virtual_v2_dwo_sections): Rename struct to
6461 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6462 size & offset fields for loclists and rnglists.
6463 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6464 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6465 skipping dummy type units.
6466 (create_dwp_hash_table): Update the large comment above the function to
6467 discuss Version 5 DWP files as well, with references. Update all the
6468 version checks in the function to check for version 5 as well. Add new
6469 section at the end to create dwp hash table for version 5.
6470 (create_dwp_v2_section): Rename function to
6471 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6472 Add V5 to error message text.
6473 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6474 into calls to create_dwp_v2_or_v5_section.
6475 (create_dwo_unit_in_dwp_v5): New function.
6476 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6477 check for version2; add else clause to handle version 5.
6478 (open_and_init_dwo_file): Add code to check dwarf version & only call
6479 create_debug_types_hash_table (with sections.types) if version is not 5;
6480 else call create_debug_type_hash_table, with sections.info.
6481 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6483 (dwarf2_locate_v5_dwp_sections): New function.
6484 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6485 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6487 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6489 * regcache.h (class regcache): Remove friend
6490 registers_changed_ptid.
6491 <regcache_thread_ptid_changed>: Remove.
6492 <regcaches>: Remove.
6493 * regcache.c (regcache::regcaches): Rename to...
6494 (regcaches): ... this. Make static.
6495 (get_thread_arch_aspace_regcache): Update.
6496 (regcache::regcache_thread_ptid_changed): Rename to...
6497 (regcache_thread_ptid_changed): ... this. Update.
6498 (class regcache_access): Remove.
6499 (regcaches_test): Update.
6500 (_initialize_regcache): Update.
6501 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6504 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6506 * regcache.h (class regcache) <current_regcache>: Rename to...
6507 <regcaches>: ... this. Move doc here.
6508 * regcache.c (regcache::current_regcache) Rename to...
6509 (regcache::regcaches): ... this. Move doc to header.
6510 (get_thread_arch_aspace_regcache): Update.
6511 (regcache::regcache_thread_ptid_changed): Update.
6512 (registers_changed_ptid): Update.
6513 (class regcache_access) <current_regcache_size>: Rename to...
6514 <regcaches_size>: ... this.
6515 (current_regcache_test): Rename to...
6516 (regcaches_test): ... this.
6517 (_initialize_regcache): Update.
6519 2020-08-06 Victor Collod <vcollod@nvidia.com>
6521 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6523 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6525 * corelow.c (core_target::build_file_mappings): Don't output
6526 null pathname in warning.
6528 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6530 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6531 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6532 gdb.dwarf2/dw2-single-line-discriminators.exp,
6533 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6535 2020-08-05 Tom Tromey <tromey@adacore.com>
6538 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6539 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6540 Fix off-by-one and type size errors in ordinary case.
6542 2020-08-05 Tom de Vries <tdevries@suse.de>
6544 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6545 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6547 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6549 * frame.h (frame_id_p): Return bool.
6550 (frame_id_artificial_p): Return bool.
6551 (frame_id_eq): Return bool.
6552 (has_stack_frames): Return bool.
6553 (get_selected_frame): Fix typo in comment.
6554 (get_frame_pc_if_available): Return bool.
6555 (get_frame_address_in_block_if_available): Return bool.
6556 (get_frame_func_if_available): Return bool.
6557 (read_frame_register_unsigned): Return bool.
6558 (get_frame_register_bytes): Return bool.
6559 (safe_frame_unwind_memory): Return bool.
6560 (deprecated_frame_register_read): Return bool.
6561 (frame_unwinder_is): Return bool.
6562 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6564 <this_id::p>: Likewise.
6566 (frame_stash_add): Return bool.
6567 (get_frame_id): Use bool.
6568 (frame_id_build_special) Use bool.
6569 (frame_id_build_unavailable_stack): Use bool.
6570 (frame_id_build): Use bool.
6571 (frame_id_p): Return bool, use true/false instead of 1/0.
6572 (frame_id_artificial_p): Likewise.
6573 (frame_id_eq): Likewise.
6574 (frame_id_inner): Likewise.
6575 (get_frame_func_if_available): Likewise.
6576 (read_frame_register_unsigned): Likewise.
6577 (deprecated_frame_register_read): Likewise.
6578 (get_frame_register_bytes): Likewise.
6579 (has_stack_frames): Likewise.
6580 (inside_main_func): Likewise.
6581 (inside_entry_func): Likewise.
6582 (get_frame_pc_if_available): Likewise.
6583 (get_frame_address_in_block_if_available): Likewise.
6584 (frame_unwinder_is): Likewise.
6585 (safe_frame_unwind_memory): Likewise.
6586 (frame_unwind_arch): Likewise.
6588 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6590 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6591 type to cached_copy_status.
6592 (fprintf_frame): Adjust.
6593 (get_frame_func_if_available): Adjust.
6594 (frame_cleanup_after_sniffer): Adjust.
6596 2020-08-04 Mark Wielaard <mark@klomp.org>
6598 * MAINTAINERS (Write After Approval): Update email address.
6600 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6602 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6603 dynamic_prop::const_val.
6605 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6607 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6610 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6612 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6614 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6616 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6618 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6619 Jose E. Marchesi <jose.marchesi@oracle.com>
6621 * configure.tgt: Add entry for bpf-*-*.
6622 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6623 (ALLDEPFILES): Add bpf-tdep.c.
6624 * bpf-tdep.c: New file.
6625 * MAINTAINERS: Add bpf target and maintainer.
6626 * NEWS: Mention the support for the new target.
6628 2020-08-04 Tom de Vries <tdevries@suse.de>
6631 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6634 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6636 * syscalls/freebsd.xml: Regenerate.
6638 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6640 * syscalls/update-freebsd.sh: Fix usage and year range.
6642 2020-08-03 Tom de Vries <tdevries@suse.de>
6645 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6646 DW_LNE_lo_user/DW_LNE_hi_user range.
6648 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6651 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6654 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6656 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6658 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6660 * breakpoint.c (set_breakpoint_condition): Update the condition
6661 expressions after checking that the input condition string parses
6662 successfully and does not contain junk at the end.
6664 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6666 * breakpoint.c (set_breakpoint_condition): Update the
6667 condition string after parsing the new condition successfully.
6669 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6671 * proc-api.c (_STRUCTURED_PROC): Don't define.
6672 * proc-events.c: Likewise.
6673 * proc-flags.c: Likewise.
6674 * proc-why.c: Likewise.
6675 * procfs.c: Likewise.
6677 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6678 * configure, config.in: Regenerate.
6680 2020-07-30 Tom de Vries <tdevries@suse.de>
6683 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6684 m_red/m_green/m_blue in a union.
6686 2020-07-29 Tom de Vries <tdevries@suse.de>
6689 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6691 2020-07-28 Tom Tromey <tromey@adacore.com>
6694 * symtab.h (find_pc_partial_function_sym): Declare.
6695 * cli/cli-cmds.c (disassemble_command): Use
6696 find_pc_partial_function_sym. Check asm_demangle.
6697 * blockframe.c (cache_pc_function_sym): New global.
6698 (cache_pc_function_name): Remove.
6699 (clear_pc_function_cache): Update.
6700 (find_pc_partial_function_sym): New function, from
6701 find_pc_partial_function.
6702 (find_pc_partial_function): Rewrite using
6703 find_pc_partial_function_sym.
6705 2020-07-28 Tom Tromey <tromey@adacore.com>
6707 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6710 2020-07-28 Tom Tromey <tromey@adacore.com>
6712 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6713 <DW_OP_GNU_variable_value>: Cast to address type.
6715 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6717 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6718 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6719 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6720 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6721 (nbsd_get_siginfo_type): New.
6722 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6723 (_initialize_nbsd_tdep): New.
6725 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6728 * configure: Regenerated.
6730 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6733 * configure: Regenerated.
6735 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6737 * python/py-frame.c: Remove 'user-regs.h' include.
6738 (frapy_read_register): Rewrite to make use of
6739 gdbpy_parse_register_id.
6740 * python/py-registers.c (gdbpy_parse_register_id): New function,
6741 moved here from python/py-unwind.c. Updated the return type, and
6742 also accepts register descriptor objects.
6743 * python/py-unwind.c: Remove 'user-regs.h' include.
6744 (pyuw_parse_register_id): Moved to python/py-registers.c.
6745 (unwind_infopy_add_saved_register): Update to use
6746 gdbpy_parse_register_id.
6747 (pending_framepy_read_register): Likewise.
6748 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6750 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6752 * python/py-registers.c: Add 'user-regs.h' include.
6753 (register_descriptor_iter_find): New function.
6754 (register_descriptor_iterator_object_methods): New static global
6756 (register_descriptor_iterator_object_type): Add pointer to methods
6759 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6761 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6762 for all architectures on FreeBSD 11.3 and later.
6764 2020-07-27 Tom Tromey <tromey@adacore.com>
6766 * gcore.h (load_corefile): Don't declare.
6768 2020-07-27 Tom de Vries <tdevries@suse.de>
6770 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6771 * config.in: Regenerate.
6772 * configure: Regenerate.
6774 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6776 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6777 ws2tcpip.h. When checking whether socklen_t type is defined, use
6778 ws2tcpip.h if it is available and sys/socket.h isn't.
6779 * configure: Regenerate.
6780 * config.in: Regenerate.
6782 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6786 * valops.c (value_ind): Pass address to
6787 readjust_indirect_value_type.
6788 * value.c (readjust_indirect_value_type): Make parameter
6789 non-const, and add extra address parameter. Resolve original type
6791 * value.h (readjust_indirect_value_type): Update function
6792 signature and comment.
6794 2020-07-25 Tom de Vries <tdevries@suse.de>
6797 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6800 2020-07-24 Aaron Merey <amerey@redhat.com>
6802 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6803 * configure: Rebuild.
6805 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6808 * corelow.c (_initialize_corelow): Add period to help text
6809 for "maintenance print core-file-backed-mappings".
6811 2020-07-23 Pedro Alves <pedro@palves.net>
6813 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6814 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6816 * frame.c (frame_cache_generation, get_frame_cache_generation):
6818 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6819 (get_prev_frame_if_no_cycle): On exception, don't touch
6820 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6821 * frame.h (get_frame_cache_generation): Declare.
6823 2020-07-23 Tom de Vries <tdevries@suse.de>
6826 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6827 New default constructor.
6829 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6831 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6832 exclude non-statement entries.
6834 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6836 * NEWS (New commands): Mention new command
6837 "maintenance print core-file-backed-mappings".
6839 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6841 * corelow.c (gdbcmd.h): Include.
6842 (core_target::info_proc_mappings): New method.
6843 (get_current_core_target): New function.
6844 (maintenance_print_core_file_backed_mappings): New function.
6845 (_initialize_corelow): Add core-file-backed-mappings to
6846 "maint print" commands.
6848 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6850 * linux-tdep.c (dump_note_entry_p): New function.
6851 (linux_dump_mapping_p_ftype): New typedef.
6852 (linux_find_memory_regions_full): Add new parameter,
6853 should_dump_mapping_p.
6854 (linux_find_memory_regions): Adjust call to
6855 linux_find_memory_regions_full.
6856 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6857 call to linux_find_memory_regions_full.
6859 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6861 * corelow.c (solist.h, unordered_map): Include.
6862 (class core_target): Add field m_core_file_mappings and
6863 method build_file_mappings.
6864 (core_target::core_target): Call build_file_mappings.
6865 (core_target::~core_target): Free memory associated with
6866 m_core_file_mappings.
6867 (core_target::build_file_mappings): New method.
6868 (core_target::xfer_partial): Use m_core_file_mappings
6869 for memory transfers.
6870 * linux-tdep.c (linux_read_core_file_mappings): New
6872 (linux_core_info_proc_mappings): Rewrite to use
6873 linux_read_core_file_mappings.
6874 (linux_init_abi): Register linux_read_core_file_mappings.
6876 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6878 * arch-utils.c (default_read_core_file_mappings): New function.
6879 * arch-utils.c (default_read_core_file_mappings): Declare.
6880 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6881 * gdbarch.h, gdbarch.c: Regenerate.
6883 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6886 * corelow.c (core_target:xfer_partial): Revise
6887 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6888 case after first checking the stratum beneath the core
6890 (has_all_memory): Return true.
6891 * target.c (raw_memory_xfer_partial): Revise comment
6892 regarding use of has_all_memory.
6894 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6896 * exec.h (section_table_xfer_memory): Revise declaration,
6897 replacing section name parameter with an optional callback
6899 * exec.c (section_table_xfer_memory): Likewise.
6900 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6901 of section_table_xfer_memory.
6903 2020-07-22 Tom Tromey <tromey@adacore.com>
6905 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6906 lookup_symbol_search_name.
6908 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6910 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6911 redundant local variable.
6912 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6913 reference, not pointer, update code accordingly.
6915 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6916 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6918 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6919 * jit.c (jit_breakpoint_re_set_internal): Use the
6920 `skip_jit_symbol_lookup` field.
6922 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6923 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6925 * jit.c (jit_read_descriptor): Define the descriptor address once,
6927 (jit_breakpoint_deleted): Move the declaration of the loop variable
6928 `iter` into the loop header.
6929 (jit_breakpoint_re_set_internal): Move the declaration of the local
6930 variable `objf_data` to the first point of definition.
6931 (jit_event_handler): Move the declaration of local variables
6932 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6933 Rename `objf` to `jited`.
6935 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6937 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6939 * jit.c (get_jiter_objfile_data): Update.
6941 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6942 Simon Marchi <simon.marchi@polymtl.ca>
6944 * jit.c (struct jit_program_space_data): Remove.
6945 (jit_program_space_key): Remove.
6946 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6948 (get_jit_program_space_data): Remove.
6949 (jit_breakpoint_deleted): Iterate on all of the program space's
6951 (jit_inferior_init): Likewise.
6952 (jit_breakpoint_re_set_internal): Likewise. Also change return
6954 (jit_breakpoint_re_set): Pass current_program_space to
6955 jit_breakpoint_re_set_internal.
6957 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6959 * jit.h (struct jiter_objfile_data) <cached_code_address,
6960 jit_breakpoint>: Move to here from ...
6961 * jit.c (jit_program_space_data): ... here.
6962 (jiter_objfile_data::~jiter_objfile_data): Update.
6963 (jit_breakpoint_deleted): Update.
6964 (jit_breakpoint_re_set_internal): Update.
6966 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6968 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6970 (jit_read_descriptor): Remove NULL check.
6971 (jit_event_handler): Add an assertion.
6973 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6975 * jit.h (struct jit_objfile_data): Split into...
6976 (struct jiter_objfile_data): ... this ...
6977 (struct jited_objfile_data): ... and this.
6978 * objfiles.h (struct objfile) <jit_data>: Remove.
6979 <jiter_data, jited_data>: New fields.
6980 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6981 (jiter_objfile_data::~jiter_objfile_data): ... this.
6982 (get_jit_objfile_data): Rename to ...
6983 (get_jiter_objfile_data): ... this.
6984 (add_objfile_entry): Update.
6985 (jit_read_descriptor): Use get_jiter_objfile_data.
6986 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6987 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6988 (jit_inferior_exit_hook): Use objfile's jited_data field.
6990 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6992 * jit.h: Forward-declare `struct minimal_symbol`.
6993 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6994 constructor, destructor, and an objfile* field.
6995 * jit.c (jit_objfile_data): Remove.
6996 (struct jit_objfile_data): Migrate from here to jit.h.
6997 (jit_objfile_data::~jit_objfile_data): New destructor
6998 implementation with code moved from free_objfile_data.
6999 (free_objfile_data): Delete.
7000 (get_jit_objfile_data): Update to use the jit_data field of objfile.
7001 (jit_find_objf_with_entry_addr): Ditto.
7002 (jit_inferior_exit_hook): Ditto.
7003 (_initialize_jit): Remove the call to
7004 register_objfile_data_with_cleanup.
7005 * objfiles.h (struct objfile) <jit_data>: New field.
7007 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7009 * jit.h: Forward-declare `struct objfile`.
7010 (jit_event_handler): Add a second parameter, the JITer objfile.
7011 * jit.c (jit_read_descriptor): Change the signature to take the
7012 JITer objfile as an argument instead of the jit_program_space_data.
7013 (jit_inferior_init): Update the call to jit_read_descriptor.
7014 (jit_event_handler): Use the new JITer objfile argument when calling
7015 jit_read_descriptor.
7016 * breakpoint.c (handle_jit_event): Update the call to
7017 jit_event_handler to pass the JITer objfile.
7019 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7021 * gdbarch.c: Regenerate.
7022 * gdbarch.h: Regenerate.
7023 * gdbarch.sh (handle_segmentation_fault): Remove method.
7024 * infrun.c (handle_segmentation_fault): Remove.
7025 (print_signal_received_reason): Remove call to
7026 handle_segmentation_fault.
7028 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7030 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7031 Rename to sparc64_linux_report_signal_info and add siggnal
7033 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
7034 instead of sparc64_linux_handle_segmentation_fault.
7036 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7038 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
7039 i386_linux_report_signal_info instead of
7040 i386_linux_handle_segmentation_fault.
7041 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
7042 to i386_linux_report_signal_info and add siggnal argument.
7043 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
7044 of i386_linux_handle_segmentation_fault.
7045 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
7046 to i386_linux_report_signal_info and add siggnal argument.
7048 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7050 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
7053 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7055 * gdbarch.c: Regenerate.
7056 * gdbarch.h: Regenerate.
7057 * gdbarch.sh (report_signal_info): New method.
7058 * infrun.c (print_signal_received_reason): Invoke gdbarch
7059 report_signal_info hook if present.
7061 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7063 * python/py-registers.c : Add 'unordered_map' include.
7064 (gdbpy_new_reggroup): Renamed to...
7065 (gdbpy_get_reggroup): ...this. Update to only create register
7066 group descriptors when needed.
7067 (gdbpy_reggroup_iter_next): Update.
7069 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7071 * python/py-registers.c (gdbpy_register_object_data): New static
7073 (gdbpy_register_object_data_init): New function.
7074 (gdbpy_new_register_descriptor): Renamed to...
7075 (gdbpy_get_register_descriptor): ...this, and update to reuse
7076 existing register descriptors where possible.
7077 (gdbpy_register_descriptor_iter_next): Update.
7078 (gdbpy_initialize_registers): Register new gdbarch data.
7080 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
7082 * linux-nat.c (stopped_pids): Make static.
7084 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
7087 * gdbtypes.c (ada_discrete_type_low_bound,
7088 ada_discrete_type_high_bound): Handle undefined bounds.
7090 2020-07-21 Kamil Rytarowski <n54@gmx.com>
7092 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
7094 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
7097 2020-07-20 John Baldwin <jhb@FreeBSD.org>
7099 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
7100 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
7101 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
7102 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7103 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7106 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7108 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7109 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7110 which are deprecated in Guile 3.0.
7111 * configure.ac (try_guile_versions): Add "guile-3.0".
7112 * configure (try_guile_versions): Regenerate.
7113 * NEWS: Update entry.
7115 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7116 Doug Evans <dje@google.com>
7119 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7120 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7121 USING_GUILE_BEFORE_2_2.
7122 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7123 Change type to 'scm_t_port_type *'.
7124 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7125 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7126 parameter and honor it. Update callers.
7127 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7128 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7130 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7131 USING_GUILE_BEFORE_2_2.
7132 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7133 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7134 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7135 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7136 and 'SCM_PORT_TYPE'.
7137 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7138 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7139 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7140 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7141 [!USING_GUILE_BEFORE_2_2]: New functions.
7142 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7143 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7144 'gdbscm_memory_port_read'.
7145 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7146 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7147 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7149 (ioscm_init_memory_port): Remove.
7150 (ioscm_init_memory_port_stream): New function
7151 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7153 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7154 Return scm_from_uint (0).
7155 (gdbscm_set_memory_port_read_buffer_size_x)
7156 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7157 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7158 Return scm_from_uint (0).
7159 (gdbscm_set_memory_port_write_buffer_size_x)
7160 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7161 * configure.ac (try_guile_versions): Add "guile-2.2".
7162 * configure: Regenerate.
7165 2020-07-18 Tom Tromey <tom@tromey.com>
7167 * linux-nat.c (linux_multi_process): Remove.
7168 (linux_nat_target::supports_multi_process): Return true.
7170 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7172 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7173 (riscv_lookup_target_description): Return pointer out of
7175 * target-descriptions.c (allocate_target_description): Add
7177 (target_desc_deleter::operator()): Likewise.
7178 * target-descriptions.h (struct target_desc_deleter): Moved to
7180 (target_desc_up): Likewise.
7182 2020-07-17 Tom Tromey <tromey@adacore.com>
7184 * linux-nat.c (linux_nat_target::supports_non_stop)
7185 (linux_nat_target::always_non_stop_p): Use "true".
7186 (linux_nat_target::supports_disable_randomization): Use "true" and
7189 2020-07-16 Caroline Tice <cmtice@google.com>
7191 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7192 (RNGLIST_HEADER_SIZE64): New constant definition.
7193 (struct dwop_section_names): Add rnglists_dwo.
7194 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7195 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7196 (struct dwo_sections): Add rnglists field.
7197 (read_attribut_reprocess): Add tag parameter.
7198 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7199 (cu_debug_rnglists_section): New function (decl & definition).
7200 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7201 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7202 die whose range is being checked; get rnglist section from
7203 cu_debug_rnglists_section, to get from either objfile or dwo file as
7204 appropriate. Add cases for DW_RLE_base_addressx,
7205 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7206 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7207 test inside if-condition and updating complaint message.
7208 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7209 dwarf2_rnglists_process.
7210 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7211 dwarf2_ranges_process.
7212 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7213 need_ranges_base and update comment appropriately. Also pass die tag
7214 to dwarf2_ranges_read.
7215 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7216 need_ranges_base and update comment appropriately. Also pass die tag
7217 to dwarf2_ranges_process.
7218 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7219 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7220 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7221 need_ranges_base and update comment appropriately. Also pass die tag
7222 to read_attribute_reprocess and dwarf2_ranges_read.
7223 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7224 and update function comment appropriately.
7225 (read_loclist_index): Call read_loclists_rnglists_header instead of
7226 read_loclist_header.
7227 (read_rnglist_index): New function.
7228 (read_attribute_reprocess): Add tag parameter. Add code for
7229 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7230 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7232 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7234 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7237 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7239 * arch-utils.c (show_architecture): Update formatting of messages.
7241 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7243 * gdbtypes.h (struct type) <bounds>: Handle array and string
7245 * ada-lang.c (assign_aggregate): Use type::bounds on
7247 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7248 * c-varobj.c (c_number_of_children): Likewise.
7249 (c_describe_child): Likewise.
7250 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7251 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7252 (f_type_print_base): Likewise.
7253 * f-valprint.c (f77_array_offset_tbl): Likewise.
7254 (f77_get_upperbound): Likewise.
7255 (f77_print_array_1): Likewise.
7256 * guile/scm-type.c (gdbscm_type_range): Likewise.
7257 * m2-typeprint.c (m2_array): Likewise.
7258 (m2_is_long_set_of_type): Likewise.
7259 * m2-valprint.c (get_long_set_bounds): Likewise.
7260 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7261 * python/py-type.c (typy_range): Likewise.
7262 * rust-lang.c (rust_internal_print_type): Likewise.
7263 * type-stack.c (type_stack::follow_types): Likewise.
7264 * valarith.c (value_subscripted_rvalue): Likewise.
7265 * valops.c (value_cast): Likewise.
7267 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7269 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7270 callers to use the equivalent accessor methods.
7272 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7274 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7275 (struct type) <bit_stride>: New method.
7276 (TYPE_BIT_STRIDE): Remove.
7277 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7279 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7281 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7282 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7283 callers to use the equivalent accessor methods instead.
7285 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7287 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7288 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7289 callers to use the equivalent accessor methods instead.
7291 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7293 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7294 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7295 to use dynamic_prop::kind.
7297 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7299 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7300 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7301 to get the bound property's kind and check against
7304 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7306 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7307 all callers to use type::range_bounds followed by
7308 dynamic_prop::{low,high}.
7310 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7312 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7313 const_val, set_const_val, baton, set_locexpr, set_loclist,
7314 set_addr_offset, variant_parts, set_variant_parts,
7315 original_type, set_original_type>: New methods.
7316 <kind>: Rename to...
7317 <m_kind>: ... this. Update all users to use the new methods
7319 <data>: Rename to...
7320 <m_data>: ... this. Update all users to use the new methods
7323 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7325 * gdbtypes.c (get_discrete_bounds): Return failure if
7326 the range type's bounds are not both defined and constant
7328 (get_array_bounds): Update comment. Remove undefined bound check.
7330 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7332 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7333 the type::bounds method directly.
7335 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7337 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7338 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7339 are used to set the range type's bounds to use set_bounds.
7341 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7343 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7345 2020-07-10 Pedro Alves <pedro@palves.net>
7347 * gdbthread.h (inferior_ref): Define.
7348 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7349 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7351 (scoped_restore_current_thread::restore):
7352 Adjust to gdb::ref_ptr.
7353 (scoped_restore_current_thread::~scoped_restore_current_thread):
7354 Remove manual decref handling.
7355 (scoped_restore_current_thread::scoped_restore_current_thread):
7357 inferior_ref::new_reference/thread_info_ref::new_reference.
7358 Incref the thread before calling get_frame_id instead of after.
7359 Let TARGET_CLOSE_ERROR propagate.
7361 2020-07-10 Pedro Alves <pedro@palves.net>
7363 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7364 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7365 NOT_AVAILABLE_ERROR.
7366 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7367 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7369 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7370 Pedro Alves <pedro@palves.net>
7373 * infrun.c (threads_are_resumed_pending_p): Delete.
7374 (do_target_wait): Remove threads_are_executing and
7375 threads_are_resumed_pending_p checks from the inferior_matches
7376 lambda. Update comments.
7378 2020-07-10 Pedro Alves <pedro@palves.net>
7381 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7384 2020-07-10 Pedro Alves <pedro@palves.net>
7387 * infrun.c (handle_no_resumed): Handle multiple targets.
7389 2020-07-10 Pedro Alves <pedro@palves.net>
7392 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7395 2020-07-10 Pedro Alves <pedro@palves.net>
7398 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7399 threads, not all threads.
7401 2020-07-10 Pedro Alves <pedro@palves.net>
7404 * remote.c (remote_target::open_1): Pass remote target pointer as
7405 data to create_async_event_handler.
7406 (remote_async_inferior_event_handler): Mark async event handler
7407 before returning if the remote target still has either pending
7408 events or unacknowledged notifications.
7410 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7412 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7414 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7417 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7419 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7422 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7424 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7425 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7426 AT_FREEBSD_PS_STRINGS.
7428 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7430 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7431 of debugfile path on Windows.
7433 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7435 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7438 2020-07-08 Tom Tromey <tromey@adacore.com>
7440 * ada-lang.c (ada_exception_message_1): Use read_memory.
7442 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7445 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7446 special handling for inline frames.
7447 * findvar.c (value_of_register_lazy): Skip inline frames when
7448 creating lazy register values.
7449 * frame.c (frame_id_computed_p): Delete definition.
7450 * frame.h (frame_id_computed_p): Delete declaration.
7452 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7454 * NEWS: Mention additions to Python API.
7455 * python/py-arch.c (archpy_register_groups): New function.
7456 (arch_object_methods): Add 'register_groups' method.
7457 * python/py-registers.c (reggroup_iterator_object): New struct.
7458 (reggroup_object): New struct.
7459 (gdbpy_new_reggroup): New function.
7460 (gdbpy_reggroup_to_string): New function.
7461 (gdbpy_reggroup_name): New function.
7462 (gdbpy_reggroup_iter): New function.
7463 (gdbpy_reggroup_iter_next): New function.
7464 (gdbpy_new_reggroup_iterator): New function
7465 (gdbpy_initialize_registers): Register new types.
7466 (reggroup_iterator_object_type): Define new Python type.
7467 (gdbpy_reggroup_getset): New static global.
7468 (reggroup_object_type): Define new Python type.
7469 * python/python-internal.h
7471 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7473 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7474 * python/py-arch.c (archpy_registers): New function.
7475 (arch_object_methods): Add 'registers' method.
7476 * python/py-registers.c: New file.
7477 * python/python-internal.h
7478 (gdbpy_new_register_descriptor_iterator): Declare.
7479 (gdbpy_initialize_registers): Declare.
7480 * python/python.c (do_start_initialization): Call
7481 gdbpy_initialize_registers.
7482 * NEWS: Mention additions to the Python API.
7484 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7486 * NEWS: Mention new Python API method.
7487 * python/py-unwind.c (pending_framepy_architecture): New function.
7488 (pending_frame_object_methods): Add architecture method.
7490 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7492 * gdbarch.c: Regenerate.
7493 * gdbarch.h: Regenerate.
7494 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7495 (gdbarch_data): Use internal_error for the case where
7496 deprecated_set_gdbarch_data was originally needed.
7497 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7498 and use passed in obstack.
7499 (libunwind_frame_set_descr): Should no longer get back NULL from
7501 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7503 * user-regs.c (user_regs_init): Update parameters, and use passed
7505 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7506 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7508 2020-07-06 Tom de Vries <tdevries@suse.de>
7510 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7511 End-Of-Sequence in lte_is_less_than.
7512 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7513 "gdb: Don't reorder line table entries too much when sorting".
7515 2020-07-06 Tom de Vries <tdevries@suse.de>
7518 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7520 2020-07-05 Tom de Vries <tdevries@suse.de>
7523 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7524 std::uncaught_exceptions instead of deprecated
7525 std::uncaught_exception.
7527 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7529 * macroexp.h (macro_stringify): Return
7530 gdb::unique_xmalloc_ptr<char>.
7531 * macroexp.c (macro_stringify): Likewise.
7532 * macrotab.c (fixup_definition): Update.
7534 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7536 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7537 (lex_one_token): Update.
7538 * macroexp.c (struct macro_buffer) <release>: Return
7539 gdb::unique_xmalloc_ptr<char>.
7540 (macro_stringify): Update.
7541 (macro_expand): Update.
7542 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7543 * macroexp.h (macro_expand_next): Likewise.
7545 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7547 * macroexp.h (macro_lookup_ftype): Remove.
7548 (macro_expand, macro_expand_once, macro_expand_next): Remove
7549 lookup function parameters, add scope parameter.
7550 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7551 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7552 * macroscope.h (standard_macro_lookup): Change parameter type
7554 * macroscope.c (standard_macro_lookup): Likewise.
7555 * c-exp.y (lex_one_token): Update.
7556 * macrocmd.c (macro_expand_command): Likewise.
7557 (macro_expand_once_command): Likewise.
7559 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7561 * inf-loop.c (inferior_event_handler): Remove client_data param.
7562 * inf-loop.h (inferior_event_handler): Likewise.
7563 * infcmd.c (step_1): Adjust.
7564 * infrun.c (proceed): Adjust.
7565 (fetch_inferior_event): Remove client_data param.
7566 (infrun_async_inferior_event_handler): Adjust.
7567 * infrun.h (fetch_inferior_event): Remove `void *` param.
7568 * linux-nat.c (handle_target_event): Adjust.
7569 * record-btrace.c (record_btrace_handle_async_inferior_event):
7571 * record-full.c (record_full_async_inferior_event_handler):
7573 * remote.c (remote_async_inferior_event_handler): Adjust.
7575 2020-07-01 Tom Tromey <tom@tromey.com>
7577 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7578 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7580 2020-07-01 Tom Tromey <tom@tromey.com>
7582 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7584 (tui_win_info::make_window): Merge with
7585 tui_gen_win_info::make_window.
7586 (tui_win_info::make_visible): Move from tui_gen_win_info.
7587 * tui/tui-win.c (tui_win_info::max_width): Move from
7589 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7591 <window_factory>: Likewise.
7592 * tui/tui-layout.c (tui_win_info::resize): Move from
7594 (make_standard_window): Change return type.
7595 (get_locator_window, tui_get_window_by_name): Likewise.
7596 (tui_layout_window::apply): Remove a cast.
7597 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7598 (struct tui_win_info): Merge with tui_gen_win_info.
7599 (struct tui_gen_win_info): Remove.
7601 2020-07-01 Tom Tromey <tom@tromey.com>
7603 * tui/tui-stack.h (struct tui_locator_window): Derive from
7605 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7606 <can_box>: New method.
7608 2020-07-01 Tom Tromey <tom@tromey.com>
7610 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7612 2020-07-01 Tom Tromey <tom@tromey.com>
7614 * tui/tui-regs.c (tui_data_window::display_registers_from)
7615 (tui_data_window::display_registers_from)
7616 (tui_data_window::first_data_item_displayed)
7617 (tui_data_window::delete_data_content_windows): Update.
7618 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7620 (tui_data_window::check_register_values): Update.
7621 (tui_data_item_window::rerender): Add parameters. Update.
7622 (tui_data_item_window::refresh_window): Remove.
7623 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7625 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7627 <refresh_window, max_height, min_height>: Remove.
7628 <rerender>: Add parameters.
7629 <x, y, visible>: New members.
7630 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7631 <m_item_width>: New member.
7633 2020-07-01 Tom Tromey <tom@tromey.com>
7635 * tui/tui-regs.c (tui_data_window::show_register_group)
7636 (tui_data_window::check_register_values): Update.
7637 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7640 2020-07-01 Tom Tromey <tom@tromey.com>
7642 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7645 2020-07-01 Tom Tromey <tom@tromey.com>
7647 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7648 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7650 2020-07-01 Tom Tromey <tom@tromey.com>
7652 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7653 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7654 (struct tui_line_or_address): Move from tui-data.h.
7655 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7656 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7657 (tui_cmd_window, tui_source_window_base, tui_source_window)
7658 (tui_disasm_window): Don't declare.
7659 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7661 (SINGLE_KEY): Move to tui-stack.c.
7663 2020-07-01 Tom Tromey <tom@tromey.com>
7665 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7667 * tui/tui-regs.c (class tab_expansion_file): New.
7668 (tab_expansion_file::write): New method.
7669 (tui_register_format): Change return type. Use
7671 (tui_get_register, tui_data_window::display_registers_from)
7672 (tui_data_item_window::rerender): Update.
7673 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7674 * tui/tui-io.c (tui_expand_tabs): Remove.
7676 2020-07-01 Tom Tromey <tom@tromey.com>
7678 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7680 2020-07-01 Fangrui Song <maskray@google.com>
7682 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7684 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7686 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7687 forms for DW_AT_associated and DW_AT_allocated attributes,
7688 which is already checked in function attr_to_dynamic_prop.
7690 2020-06-30 Tom Tromey <tromey@adacore.com>
7692 * dwarf2/read.c (quirk_rust_enum): Correctly call
7693 alloc_rust_variant for default-less enum.
7695 2020-06-30 Tom Tromey <tromey@adacore.com>
7698 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7701 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7703 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7704 * gdbarch.h: Re-generate.
7706 2020-06-28 Tom Tromey <tom@tromey.com>
7708 * command.h (cmd_types): Remove.
7709 (cmd_type): Don't declare.
7710 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7712 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7713 * cli/cli-decode.c (cmd_type): Remove.
7715 2020-06-27 Pedro Alves <palves@redhat.com>
7717 * fork-child.c (prefork_hook): Adjust.
7718 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7720 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7721 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7722 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7723 Remove declarations.
7724 (struct inferior) <set_tty, tty>: New methods.
7725 (struct inferior) <terminal>: Rename to ...
7726 (struct inferior) <m_terminal>: ... this and make private.
7727 * main.c (captured_main_1): Adjust.
7728 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7729 (mi_cmd_inferior_tty_show): Adjust.
7730 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7731 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7733 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7735 * configure.ac: Add --enable-libctf: handle --disable-static
7737 * acinclude.m4: sinclude ../config/enable.m4.
7738 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7739 (LIBCTF): Substitute in.
7740 (CTF_DEPS): New, likewise.
7741 (CLIBS): libctf needs symbols from libbfd: move earlier.
7742 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7744 * ctfread.c: Surround in ENABLE_LIBCTF.
7745 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7746 * configure: Regenerate.
7747 * config.in: Likewise.
7749 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7751 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7753 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7755 * inferior.h (struct inferior) <terminal>: Change type to
7756 gdb::unique_xmalloc_ptr<char>.
7757 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7758 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7759 field, adjust to unique pointer.
7760 (get_inferior_io_terminal): Adjust to unique pointer.
7762 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7764 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7765 registers, not just the known core set of registers.
7767 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7769 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7770 fflags, frm, and fcsr registers.
7771 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7773 (riscv_tdesc_unknown_reg): New function.
7774 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7775 tdesc_use_registers.
7776 * riscv-tdep.h (struct gdbarch_tdep): Add
7777 unknown_csrs_first_regnum, unknown_csrs_count,
7778 duplicate_fflags_regnum, duplicate_frm_regnum, and
7779 duplicate_fcsr_regnum fields.
7781 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7783 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7784 callback, use the callback (when not null) to help number unknown
7786 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7787 (tdesc_use_registers): Add extra parameter to declaration.
7789 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7791 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7793 (class riscv_pending_register_alias): Likewise.
7794 (riscv_register_feature::register_info): Change 'required_p' field
7795 to 'required', and change its type. Add 'check' member function.
7796 (riscv_register_feature::register_info::check): Define new member
7798 (riscv_xreg_feature): Change initialisation of 'required' field.
7799 (riscv_freg_feature): Likewise.
7800 (riscv_virtual_feature): Likewise.
7801 (riscv_csr_feature): Likewise.
7802 (riscv_check_tdesc_feature): Take extra parameter, the csr
7803 tdesc_feature, rewrite the function to use the new
7804 riscv_register_feature::register_info::check function.
7805 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7807 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7809 * features/Makefile: Remove all references to the deleted files
7811 * features/riscv/32bit-csr.c: Deleted.
7812 * features/riscv/32bit-csr.xml: Deleted.
7813 * features/riscv/64bit-csr.c: Deleted.
7814 * features/riscv/64bit-csr.xml: Deleted.
7815 * features/riscv/rebuild-csr-xml.sh: Deleted.
7817 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7819 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7820 whitespace error for declaration of names member variable.
7821 (struct riscv_register_feature): Add new prefer_first_name member
7822 variable, and fix whitespace error in declaration of registers.
7823 (riscv_xreg_feature): Initialize prefer_first_name field.
7824 (riscv_freg_feature): Likewise.
7825 (riscv_virtual_feature): Likewise.
7826 (riscv_csr_feature): Likewise.
7827 (riscv_register_name): Expand on comments. Remove register name
7828 modifications for CSR and virtual registers.
7830 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7832 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7835 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7837 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7839 (class riscv_pending_register_alias): New class.
7840 (riscv_check_tdesc_feature): Take vector of pending aliases and
7841 populate it as appropriate.
7842 (riscv_setup_register_aliases): Delete.
7843 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7844 to riscv_check_tdesc_feature in all cases. Use the vector to
7845 create the register aliases.
7847 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7849 * sol2-tdep.c (sol2_static_transform_name): Remove.
7850 (sol2_init_abi): Don't register it.
7851 * gdbarch.sh (static_transform_name): Remove.
7852 * gdbarch.c, gdbarch.h: Regenerate.
7854 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7855 gdbarch_static_transform_name.
7856 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7857 * stabsread.c (define_symbol) <'X'>: Remove.
7858 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7861 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7862 <'S'>: Remove call to gdbarch_static_transform_name.
7864 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7866 * procfs.c (procfs_pre_trace): New function.
7867 (procfs_target::create_inferior): Pass it to fork_inferior.
7869 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7871 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7872 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7873 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7874 sol2-tdep.o, sparc-sol2-tdep.o.
7875 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7876 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7877 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7878 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7880 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7882 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7883 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7885 Remove calls to set_gdbarch_skip_solib_resolver,
7886 set_gdbarch_core_pid_to_str.
7887 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7888 (i386_sol2_static_transform_name): Remove.
7889 (i386_sol2_init_abi): Call sol2_init_abi.
7890 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7891 set_gdbarch_static_transform_name,
7892 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7893 Use sol2_sigtramp_p.
7894 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7895 (sol2_sigtramp_p): New function.
7896 (sol2_static_transform_name): New function.
7897 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7898 (sol2_init_abi): New function.
7899 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7900 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7901 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7902 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7903 (sparc_sol2_static_transform_name): Remove.
7904 (sparc32_sol2_init_abi): Call sol2_init_abi.
7905 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7906 set_gdbarch_static_transform_name,
7907 set_gdbarch_skip_solib_resolver,
7908 set_gdbarch_core_pid_to_str.
7909 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7910 (sparc_sol2_static_transform_name): Remove
7911 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7912 call sol2_sigtramp_p.
7913 (sparc64_sol2_init_abi): Call sol2_init_abi.
7914 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7915 set_gdbarch_static_transform_name,
7916 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7918 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7920 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7921 * exec.c (validate_exec_file): If from_tty, set both
7922 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7923 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7924 and from_tty, unconditionally ask a confirmation.
7926 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7928 * target-descriptions.c (tdesc_architecture_name): Protect against
7929 NULL pointer dereference.
7930 (maint_print_xml_tdesc_cmd): New function.
7931 (_initialize_target_descriptions): Register new 'maint print
7932 xml-tdesc' command and give it the filename completer.
7933 * NEWS: Mention new 'maint print xml-tdesc' command.
7935 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7937 * target-descriptions.c (class tdesc_compatible_info): New class.
7938 (struct target_desc): Change type of compatible vector.
7939 (tdesc_compatible_p): Update for change in type of
7940 target_desc::compatible.
7941 (tdesc_compatible_info_list): New function.
7942 (tdesc_compatible_info_arch_name): New function.
7943 (tdesc_add_compatible): Update for change in type of
7944 target_desc::compatible.
7945 (print_c_tdesc::visit_pre): Likewise.
7947 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7949 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7950 whitespace to underscore.
7951 (maint_print_c_tdesc_cmd): Use fake filename for target
7952 descriptions that came from the target.
7953 (_initialize_target_descriptions): Add filename command completion
7954 for 'maint print c-tdesc'.
7956 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7958 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7961 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7963 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7965 (dwarf2_find_location_expression): Likewise.
7966 (call_site_parameter_matches): Likewise.
7967 (dwarf2_compile_expr_to_ax): Likewise.
7968 (disassemble_dwarf_expression): Likewise.
7969 (loclist_describe_location): Likewise.
7971 2020-06-23 Pedro Alves <palves@redhat.com>
7973 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7974 progspace-and-thread.h. Include scoped-mock-context.h instead.
7975 (register_to_value_test): Use scoped_mock_context.
7976 * regcache.c: Include "scoped-mock-context.h".
7977 (cooked_read_test): Don't error out if a target is already pushed.
7978 Use scoped_mock_context. Adjust.
7979 * scoped-mock-context.h: New file.
7981 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7983 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7985 (ada_language::is_string_type_p): New member function.
7986 * c-lang.c (c_language_data): Delete la_is_string_type_p
7988 (cplus_language_data): Likewise.
7989 (asm_language_data): Likewise.
7990 (minimal_language_data): Likewise.
7991 * d-lang.c (d_language_data): Likewise.
7992 * f-lang.c (f_is_string_type_p): Delete function, implementation
7993 moved to f_language::is_string_type_p.
7994 (f_language_data): Delete la_is_string_type_p initializer.
7995 (f_language::is_string_type_p): New member function,
7996 implementation from f_is_string_type_p.
7997 * go-lang.c (go_is_string_type_p): Delete function, implementation
7998 moved to go_language::is_string_type_p.
7999 (go_language_data): Delete la_is_string_type_p initializer.
8000 (go_language::is_string_type_p): New member function,
8001 implementation from go_is_string_type_p.
8002 * language.c (language_defn::is_string_type_p): Define new member
8004 (default_is_string_type_p): Make static, add comment copied from
8006 (unknown_language_data): Delete la_is_string_type_p initializer.
8007 (unknown_language::is_string_type_p): New member function.
8008 (auto_language_data): Delete la_is_string_type_p initializer.
8009 (auto_language::is_string_type_p): New member function.
8010 * language.h (language_data): Delete la_is_string_type_p field.
8011 (language_defn::is_string_type_p): Declare new function.
8012 (default_is_string_type_p): Delete desclaration, move comment to
8014 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
8015 moved to m2_language::is_string_type_p.
8016 (m2_language_data): Delete la_is_string_type_p initializer.
8017 (m2_language::is_string_type_p): New member function,
8018 implementation from m2_is_string_type_p.
8019 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
8021 * opencl-lang.c (opencl_language_data): Likewise.
8022 * p-lang.c (pascal_is_string_type_p): Delete function,
8023 implementation moved to pascal_language::is_string_type_p.
8024 (pascal_language_data): Delete la_is_string_type_p initializer.
8025 (pascal_language::is_string_type_p): New member function,
8026 implementation from pascal_is_string_type_p.
8027 * rust-lang.c (rust_is_string_type_p): Delete function,
8028 implementation moved to rust_language::is_string_type_p.
8029 (rust_language_data): Delete la_is_string_type_p initializer.
8030 (rust_language::is_string_type_p): New member function,
8031 implementation from rust_is_string_type_p.
8032 * valprint.c (val_print_scalar_or_string_type_p): Update call to
8035 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8037 * ada-lang.c (ada_language_data): Delete la_print_typedef
8039 (ada_language::print_typedef): New member function.
8040 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
8041 (cplus_language_data): Likewise.
8042 (asm_language_data): Likewise.
8043 (minimal_language_data): Likewise.
8044 * d-lang.c (d_language_data): Likewise.
8045 * f-lang.c (f_language_data): Likewise.
8046 (f_language::print_typedef): New member function.
8047 * go-lang.c (go_language_data): Delete la_print_typedef
8049 * language.c (language_defn::print_typedef): Define member
8051 (unknown_language_data): Delete la_print_typedef initializer.
8052 (unknown_language::print_typedef): New member function.
8053 (auto_language_data): Delete la_print_typedef initializer.
8054 (auto_language::print_typedef): New member function.
8055 * language.h (language_data): Delete la_print_typedef field.
8056 (language_defn::print_typedef): Declare new member function.
8057 (LA_PRINT_TYPEDEF): Update call to print_typedef.
8058 (default_print_typedef): Delete declaration.
8059 * m2-lang.c (m2_language_data): Delete la_print_typedef
8061 (m2_language::print_typedef): New member function.
8062 * objc-lang.c (objc_language_data): Delete la_print_typedef
8064 * opencl-lang.c (opencl_language_data): Likewise.
8065 * p-lang.c (pascal_language_data): Likewise.
8066 (pascal_language::print_typedef): New member function.
8067 * rust-lang.c (rust_print_typedef): Delete function,
8068 implementation moved to rust_language::print_typedef.
8069 (rust_language): Delete la_print_typedef initializer.
8070 (rust_language::print_typedef): New member function,
8071 implementation from rust_print_typedef.
8072 * typeprint.c (default_print_typedef): Delete.
8074 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8076 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
8077 (ada_language::printstr): New member function.
8078 * c-lang.c (c_language_data): Delete la_printstr initializer.
8079 (cplus_language_data): Likewise.
8080 (asm_language_data): Likewise.
8081 (minimal_language_data): Likewise.
8082 * d-lang.c (d_language_data): Likewise.
8083 * f-lang.c (f_printstr): Rename to f_language::printstr.
8084 (f_language_data): Delete la_printstr initializer.
8085 (f_language::printstr): New member function, implementation from
8087 * go-lang.c (go_language_data): Delete la_printstr initializer.
8088 * language.c (language_defn::printstr): Define new member
8090 (unk_lang_printstr): Delete.
8091 (unknown_language_data): Delete la_printstr initializer.
8092 (unknown_language::printstr): New member function.
8093 (auto_language_data): Delete la_printstr initializer.
8094 (auto_language::printstr): New member function.
8095 * language.h (language_data): Delete la_printstr field.
8096 (language_defn::printstr): Declare new member function.
8097 (LA_PRINT_STRING): Update call to printstr.
8098 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
8099 (m2_language_data): Delete la_printstr initializer.
8100 (m2_language::printstr): New member function, implementation from
8102 * objc-lang.c (objc_language_data): Delete la_printstr
8104 * opencl-lang.c (opencl_language_data): Likewise.
8105 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8106 (pascal_language_data): Delete la_printstr initializer.
8107 (pascal_language::printstr): New member function, implementation
8108 from pascal_printstr.
8109 * p-lang.h (pascal_printstr): Delete declaration.
8110 * rust-lang.c (rust_printstr): Update header comment.
8111 (rust_language_data): Delete la_printstr initializer.
8112 (rust_language::printstr): New member function.
8114 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8116 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8117 (ada_language::printchar): New member function.
8118 * c-lang.c (c_language_data): Delete la_printchar initializer.
8119 (cplus_language_data): Likewise.
8120 (asm_language_data): Likewise.
8121 (minimal_language_data): Likewise.
8122 * d-lang.c (d_language_data): Likewise.
8123 * f-lang.c (f_printchar): Rename to f_language::printchar.
8124 (f_language_data): Delete la_printchar initializer.
8125 (f_language::printchar): New member function, implementation from
8127 * go-lang.c (go_language_data): Delete la_printchar initializer.
8128 * language.c (unk_lang_printchar): Delete.
8129 (language_defn::printchar): Define new member function.
8130 (unknown_language_data): Delete la_printchar initializer.
8131 (unknown_language::printchar): New member function.
8132 (auto_language_data): Delete la_printchar initializer.
8133 (auto_language::printchar): New member function.
8134 * language.h (language_data): Delete la_printchar field.
8135 (language_defn::printchar): Declare new member function.
8136 (LA_PRINT_CHAR): Update call to printchar.
8137 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8138 (m2_language::printchar): New member function.
8139 * objc-lang.c (objc_language_data): Delete la_printchar
8141 * opencl-lang.c (opencl_language_data): Likewise.
8142 * p-lang.c (pascal_language_data): Delete la_printchar
8144 (pascal_language::printchar): New member function.
8145 * rust-lang.c (rust_printchar): Rename to
8146 rust_language::printchar.
8147 (rust_language_data): Delete la_printchar initializer.
8148 (rust_language::printchar): New member function, implementation
8149 from rust_printchar.
8151 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8153 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8154 (ada_language_data): Delete la_emitchar initializer.
8155 (ada_language::emitchar): New member function, implementation from
8157 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8158 (cplus_language_data): Likewise.
8159 (asm_language_data): Likewise.
8160 (minimal_language_data): Likewise.
8161 * d-lang.c (d_language_data): Likewise.
8162 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8163 (f_language_data): Delete la_emitchar initializer.
8164 (f_language::emitchar): New member function, implementation from
8166 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8167 * language.c (unk_lang_emit_char): Delete.
8168 (language_defn::emitchar): New member function definition.
8169 (unknown_language_data): Delete la_emitchar initializer.
8170 (unknown_language::emitchar): New member function.
8171 (auto_language_data): Delete la_emitchar initializer.
8172 (auto_language::emitchar): New member function.
8173 * language.h (language_data): Delete la_emitchar field.
8174 (language_defn::emitchar): New member field declaration.
8175 (LA_EMIT_CHAR): Update call to emitchar.
8176 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8177 (m2_language_data): Delete la_emitchar initializer.
8178 (m2_language::emitchar): New member function, implementation from
8180 * objc-lang.c (objc_language_data): Delete la_emitchar
8182 * opencl-lang.c (opencl_language_data): Likewise.
8183 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8184 (pascal_language_data): Delete la_emitchar initializer.
8185 (pascal_language::emitchar): New member function, implementation
8186 from pascal_emit_char.
8187 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8188 (rust_language_data): Delete la_emitchar initializer.
8189 (rust_language::emitchar): New member function, implementation
8192 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8194 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8195 (ada_language_data): Delete la_post_parser initializer.
8196 (ada_language::post_parser): New member function.
8197 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8198 (cplus_language_data): Likewise.
8199 (asm_language_data): Likewise.
8200 (minimal_language_data): Likewise.
8201 * d-lang.c (d_language_data): Likewise.
8202 * f-lang.c (f_language_data): Likewise.
8203 * go-lang.c (go_language_data): Likewise.
8204 * language.c (unknown_language_data): Likewise.
8205 (auto_language_data): Likewise.
8206 * language.h (language_data): Delete la_post_parser field.
8207 (language_defn::post_parser): New member function.
8208 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8209 * objc-lang.c (objc_language_data): Likewise.
8210 * opencl-lang.c (opencl_language_data): Likewise.
8211 * p-lang.c (pascal_language_data): Likewise.
8212 * parse.c (parse_exp_in_context): Update call to post_parser.
8213 (null_post_parser): Delete definition.
8214 * parser-defs.h (null_post_parser): Delete declaration.
8215 * rust-lang.c (rust_language_data): Delete la_post_parser
8218 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8220 * ada-lang.c (parse): Rename to ada_language::parser.
8221 (ada_language_data): Delete la_parser initializer.
8222 (ada_language::parser): New member function, implementation from
8224 * c-lang.c (c_language_data): Delete la_parser initializer.
8225 (cplus_language_data): Likewise.
8226 (asm_language_data): Likewise.
8227 (minimal_language_data): Likewise.
8228 * d-lang.c (d_language_data): Likewise.
8229 (d_language::parser): New member function.
8230 * f-lang.c (f_language_data): Delete la_parser initializer.
8231 (f_language::parser): New member function.
8232 * go-lang.c (go_language_data): Delete la_parser initializer.
8233 (go_language::parser): New member function.
8234 * language.c (unk_lang_parser): Delete.
8235 (language_defn::parser): Define new member function.
8236 (unknown_language_data): Delete la_parser initializer.
8237 (unknown_language::parser): New member function.
8238 (auto_language_data): Delete la_parser initializer.
8239 (auto_language::parser): New member function.
8240 * language.h (language_data): Delete la_parser field.
8241 (language_defn::parser): Declare new member function.
8242 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8243 (m2_language::parser): New member function.
8244 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8245 * opencl-lang.c (opencl_language_data): Likewise.
8246 * p-lang.c (pascal_language_data): Likewise.
8247 (pascal_language::parser): New member function.
8248 * parse.c (parse_exp_in_context): Update call to parser.
8249 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8250 (rust_language::parser): New member function.
8252 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8254 * top.c (print_gdb_configuration): Print --with-python-libdir
8255 configuration value.
8257 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8259 * NEWS: Mention change to the alias command.
8261 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8263 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8264 (alias_command_completer)
8265 (make_alias_options_def_group): New functions.
8266 (alias_opts, alias_option_defs): New struct and array.
8267 (alias_usage_error): Update usage.
8268 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8269 Use option framework.
8270 (_initialize_cli_cmds): Update alias command help.
8271 Update aliases command help.
8273 Add NULL for new default_args lookup_cmd argument.
8274 (valid_command_p): Rename to validate_aliased_command.
8275 Add NULL for new default_args lookup_cmd argument. Verify that the
8276 aliased_command has no default args.
8277 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8278 (lookup_cmd_1, lookup_cmd): New argument default_args.
8280 Add NULL for new default_args lookup_cmd argument.
8281 (print_help_for_command): Show default args under the layout
8282 alias some_alias = some_aliased_cmd some_alias_default_arg.
8283 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8284 xfree default_args in destructor.
8285 * cli/cli-script.c (process_next_line, do_define_command):
8286 Add NULL for new default_args lookup_cmd argument.
8287 * command.h: Declare new default_args argument in lookup_cmd
8289 * completer.c (complete_line_internal_1):
8290 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8291 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8292 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8294 * infcmd.c (_initialize_infcmd): Likewise.
8295 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8296 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8297 * python/py-param.c (add_setshow_generic): Likewise.
8298 * remote.c (_initialize_remote): Likewise.
8299 * top.c (execute_command): Prepend default_args if command has some.
8301 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8302 * tracepoint.c (validate_actionline, encode_actions_1):
8303 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8305 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8307 * jit.c (jit_read_descriptor): Use bool as the return type.
8308 (jit_breakpoint_re_set_internal): Use bool as the return type.
8309 Invert the return value logic; return true if the jit breakpoint
8310 has been successfully initialized.
8311 (jit_inferior_init): Update the call to
8312 jit_breakpoint_re_set_internal.
8314 2020-06-22 Pedro Alves <palves@redhat.com>
8317 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8318 Use the current inferior instead. Don't return
8319 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8321 * sol-thread.c (sol_thread_target::wait): Don't reference
8323 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8324 (sol_update_thread_list_callback): Use the current inferior's pid
8325 instead of inferior_ptid.
8327 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8329 * procfs.c: Cleanup many comments.
8331 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8332 (AFTER_WATCHFLAG): Replace by value.
8334 (MAIN_PROC_NAME_FORMAT): Inline ...
8335 (create_procinfo): ... here.
8337 (procfs_debug_inferior): Remove SYS_exec handling.
8338 (syscall_is_exec): Likewise.
8339 (procfs_set_exec_trap): Likewise.
8341 (syscall_is_lwp_exit): Inline in callers.
8342 (syscall_is_exit): Likewise.
8343 (syscall_is_exec): Likewise.
8344 (syscall_is_lwp_create): Likewise.
8346 (invalidate_cache): Remove #if 0 code.
8348 (make_signal_thread_runnable): Remove.
8349 (procfs_target::resume): Remove #if 0 code.
8351 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8354 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8356 (procfs_target::create_inferior): ... here.
8358 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8360 * exec.c (validate_exec_file): Ensure the build-id is up to
8361 date by calling reopen_exec_file (that checks file timestamp
8362 to decide to re-read the file).
8364 2020-06-18 Pedro Alves <palves@redhat.com>
8367 * gdbthread.h (delete_thread, delete_thread_silent)
8368 (find_thread_ptid): Update comments.
8369 * thread.c (current_thread_): New global.
8370 (is_current_thread): Move higher, and reimplement.
8371 (inferior_thread): Reimplement.
8372 (set_thread_exited): Use bool. Add assertions.
8373 (add_thread_silent): Simplify thread-reuse handling by always
8374 calling delete_thread.
8375 (delete_thread): Remove intro comment.
8376 (find_thread_ptid): Skip exited threads.
8377 (switch_to_thread_no_regs): Write to current_thread_.
8378 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8379 INFERIOR_PTID. Clear current_thread_.
8381 2020-06-18 Pedro Alves <palves@redhat.com>
8383 * aix-thread.c (pd_update): Use switch_to_thread.
8385 2020-06-18 Pedro Alves <palves@redhat.com>
8387 * ravenscar-thread.c (ravenscar_thread_target): Update.
8388 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8389 (ravenscar_thread_target::add_active_thread): ... this. Don't
8390 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8391 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8393 2020-06-18 Pedro Alves <palves@redhat.com>
8395 * nat/windows-nat.c (current_windows_thread): Remove.
8396 * nat/windows-nat.h (current_windows_thread): Remove.
8397 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8399 (display_selectors): Adjust to fetch the current
8400 windows_thread_info based on inferior_ptid.
8401 (fake_create_process): No longer write to current_windows_thread.
8402 (windows_nat_target::get_windows_debug_event):
8403 Don't set inferior_ptid or current_windows_thread.
8404 (windows_nat_target::wait): Adjust to not rely on
8405 current_windows_thread.
8406 (do_initial_windows_stuff): Now a method of windows_nat_target.
8407 Switch to the last_ptid thread.
8408 (windows_nat_target::attach): Adjust.
8409 (windows_nat_target::detach): Use switch_to_no_thread instead of
8410 writing to inferior_ptid directly.
8411 (windows_nat_target::create_inferior): Adjust.
8413 2020-06-18 Pedro Alves <palves@redhat.com>
8415 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8417 2020-06-18 Pedro Alves <palves@redhat.com>
8419 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8420 after creating it, instead of writing to inferior_ptid. Don't
8421 write to inferior_ptid.
8423 2020-06-18 Pedro Alves <palves@redhat.com>
8425 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8427 2020-06-18 Pedro Alves <palves@redhat.com>
8429 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8430 it, instead of writing to inferior_ptid.
8432 2020-06-18 Pedro Alves <palves@redhat.com>
8434 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8437 2020-06-18 Pedro Alves <palves@redhat.com>
8439 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8440 instead of writing to inferior_ptid directly.
8442 2020-06-18 Pedro Alves <palves@redhat.com>
8444 * corelow.c (core_target::close): Use switch_to_no_thread instead
8445 of writing to inferior_ptid directly.
8446 (add_to_thread_list, core_target_open): Use switch_to_thread
8447 instead of writing to inferior_ptid directly.
8449 2020-06-18 Pedro Alves <palves@redhat.com>
8451 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8453 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8455 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8456 inferior_ptid directly.
8457 (darwin_nat_target::init_thread_list): Switch to thread, instead
8458 of writing to inferior_ptid.
8459 (darwin_nat_target::attach): Don't write to inferior_ptid.
8460 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8462 2020-06-18 Pedro Alves <palves@redhat.com>
8464 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8466 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8467 Instead use switch_to_thread.
8468 (gnu_nat_target::detach): Use switch_to_no_thread
8469 instead of writing to inferior_ptid directly. Used passed-in
8470 inferior instead of looking up the inferior by pid.
8472 2020-06-18 Pedro Alves <palves@redhat.com>
8474 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8477 2020-06-18 Pedro Alves <palves@redhat.com>
8479 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8481 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8483 (nto_procfs_target::detach): Avoid referencing
8484 inferior_ptid. Use switch_to_no_thread instead of writing to
8485 inferior_ptid directly.
8486 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8487 instead of writing to inferior_ptid directly.
8488 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8491 2020-06-18 Pedro Alves <palves@redhat.com>
8493 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8494 after creating it, instead of writing to inferior_ptid.
8495 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8496 to inferior_ptid directly.
8497 (gdbsim_target::wait): Don't write to inferior_ptid.
8499 2020-06-18 Pedro Alves <palves@redhat.com>
8501 * remote.c (remote_target::remote_notice_new_inferior): Use
8502 switch_to_thread instead of writing to inferior_ptid directly.
8503 (remote_target::add_current_inferior_and_thread): Use
8504 switch_to_no_thread instead of writing to inferior_ptid directly.
8505 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8506 and switch_to_thread instead of using set_current_inferior or
8507 writing to inferior_ptid directly.
8509 2020-06-18 Pedro Alves <palves@redhat.com>
8511 * tracectf.c (ctf_target_open): Switch to added thread instead of
8512 writing to inferior_ptid directly.
8513 (ctf_target::close): Use switch_to_no_thread instead of writing to
8514 inferior_ptid directly.
8516 2020-06-18 Pedro Alves <palves@redhat.com>
8518 * tracefile-tfile.c (tfile_target_open): Don't write to
8519 inferior_ptid directly, instead switch to added thread.
8520 (tfile_target::close): Use switch_to_no_thread instead of writing
8521 to inferior_ptid directly.
8523 2020-06-18 Pedro Alves <palves@redhat.com>
8525 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8526 (procfs_target::detach): Use switch_to_no_thread
8527 instead of writing to inferior_ptid directly.
8528 (do_attach): Change return type to void. Switch to the added
8530 (procfs_target::create_inferior): Switch to the added thread.
8531 (procfs_do_thread_registers): Don't write to inferior_ptid.
8533 2020-06-18 Pedro Alves <palves@redhat.com>
8535 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8536 of writing to inferior_ptid.
8537 (scoped_restore_exited_inferior): Delete.
8538 (handle_vfork_child_exec_or_exit): Simplify using
8539 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8540 instead of writing to inferior_ptid.
8541 (THREAD_STOPPED_BY): Delete.
8542 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8543 (thread_stopped_by_hw_breakpoint): Delete.
8544 (save_waitstatus): Use
8545 scoped_restore_current_thread+switch_to_thread, and call
8546 target_stopped_by_watchpoint instead of
8547 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8548 instead of thread_stopped_by_sw_breakpoint, and
8549 target_stopped_by_hw_breakpoint instead of
8550 thread_stopped_by_hw_breakpoint.
8551 (handle_inferior_event)
8552 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8553 inferior_ptid directly, nor
8554 set_current_inferior/set_current_program_space. Use
8555 switch_to_thread / switch_to_inferior_no_thread instead.
8557 2020-06-18 Pedro Alves <palves@redhat.com>
8559 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8560 instead of writing to inferior_ptid.
8562 2020-06-18 Pedro Alves <palves@redhat.com>
8564 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8566 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8567 to the added thread.
8568 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8569 instead of writing to inferior_ptid.
8571 2020-06-18 Pedro Alves <palves@redhat.com>
8573 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8574 (register_to_value_test): Mock a program_space too. Heap-allocate
8575 the address space. Don't write to inferior_ptid. Use
8576 switch_to_thread instead.
8578 2020-06-18 Pedro Alves <palves@redhat.com>
8580 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8582 (find_signalled_thread()): New, factored out from
8583 linux_make_corefile_notes and adjusted to handle exited threads.
8584 (linux_make_corefile_notes): Adjust to use the new
8585 find_signalled_thread.
8587 2020-06-18 Pedro Alves <palves@redhat.com>
8589 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8590 of saving/restoring inferior_ptid.
8592 2020-06-17 Tom Tromey <tom@tromey.com>
8594 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8595 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8597 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8599 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8601 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8604 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8606 * regformats/reg-arm.dat: Remove.
8607 * regformats/reg-bfin.dat: Remove.
8608 * regformats/reg-cris.dat: Remove.
8609 * regformats/reg-crisv32.dat: Remove.
8610 * regformats/reg-m32r.dat: Remove.
8611 * regformats/reg-tilegx.dat: Remove.
8612 * regformats/reg-tilegx32.dat: Remove.
8614 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8616 * features/Makefile (WHICH): Remove arm files.
8617 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8618 * regformats/arm/arm-with-neon.dat: Remove.
8619 * regformats/arm/arm-with-vfpv2.dat: Remove.
8620 * regformats/arm/arm-with-vfpv3.dat: Remove.
8622 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8624 * features/Makefile (XMLTOC): Remove rx.xml.
8626 2020-06-17 Pedro Alves <palves@redhat.com>
8628 * gdbthread.h (thread_control_state) <trap_expected> Update
8631 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8633 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8634 ada_language::lookup_symbol_nonlocal.
8635 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8636 (ada_language::lookup_symbol_nonlocal): New member function,
8637 implementation from ada_lookup_symbol_nonlocal.
8638 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8640 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8642 (cplus_language::lookup_symbol_nonlocal): New member function.
8643 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8644 (minimal_language_data) Likewise.
8645 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8646 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8648 (d_language::lookup_symbol_nonlocal): New member function.
8649 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8651 (f_language::lookup_symbol_nonlocal): New member function.
8652 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8654 * language.c (unknown_language_data): Likewise.
8655 (auto_language_data): Likewise.
8656 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8658 (language_defn::lookup_symbol_nonlocal): New member function.
8659 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8661 * objc-lang.c (objc_language_data): Likewise.
8662 * opencl-lang.c (opencl_language_data): Likewise.
8663 * p-lang.c (pascal_language_data): Likewise.
8664 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8665 rust_language::lookup_symbol_nonlocal.
8666 (rust_language_data): Delete la_lookup_symbol_nonlocal
8668 (rust_language::lookup_symbol_nonlocal): New member function,
8669 implementation from rust_lookup_symbol_nonlocal.
8670 * symtab.c (lookup_symbol_aux): Update call to
8671 lookup_symbol_nonlocal.
8672 (basic_lookup_symbol_nonlocal): Rename to...
8673 (language_defn::lookup_symbol_nonlocal): ...this, and update
8674 header comment. Remove language_defn parameter, and replace with
8676 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8678 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8680 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8682 (ada_language::value_print_inner): New member function.
8683 * c-lang.c (c_language_data): Delete la_value_print_inner
8685 (cplus_language_data): Likewise.
8686 (asm_language_data): Likewise.
8687 (minimal_language_data): Likewise.
8688 * d-lang.c (d_language_data): Likewise.
8689 (d_language::value_print_inner): New member function.
8690 * f-lang.c (f_language_data): Delete la_value_print_inner
8692 (f_language::value_print_inner): New member function.
8693 * f-lang.h (f_value_print_innner): Rename to...
8694 (f_value_print_inner): ...this (note spelling of 'inner').
8695 * f-valprint.c (f_value_print_innner): Rename to...
8696 (f_value_print_inner): ...this (note spelling of 'inner').
8697 * go-lang.c (go_language_data): Delete la_value_print_inner
8699 (go_language::value_print_inner): New member function.
8700 * language.c (language_defn::value_print_inner): Define new member
8702 (unk_lang_value_print_inner): Delete.
8703 (unknown_language_data): Delete la_value_print_inner initializer.
8704 (unknown_language::value_print_inner): New member function.
8705 (auto_language_data): Delete la_value_print_inner initializer.
8706 (auto_language::value_print_inner): New member function.
8707 * language.h (language_data): Delete la_value_print_inner field.
8708 (language_defn::value_print_inner): Delcare new member function.
8709 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8711 (m2_language::value_print_inner): New member function.
8712 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8714 * opencl-lang.c (opencl_language_data): Likewise.
8715 * p-lang.c (pascal_language_data): Likewise.
8716 (pascal_language::value_print_inner): New member function.
8717 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8719 (rust_language::value_print_inner): New member function.
8720 * valprint.c (do_val_print): Update call to value_print_inner.
8722 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8724 * ada-lang.c (ada_language_data): Delete la_value_print
8726 (ada_language::value_print): New member function.
8727 * c-lang.c (c_language_data): Delete la_value_print initializer.
8728 (cplus_language_data): Likewise.
8729 (asm_language_data): Likewise.
8730 (minimal_language_data): Likewise.
8731 * d-lang.c (d_language_data): Likewise.
8732 * f-lang.c (f_language_data): Likewise.
8733 * go-lang.c (go_language_data): Likewise.
8734 * language.c (unk_lang_value_print): Delete.
8735 (language_defn::value_print): Define new member function.
8736 (unknown_language_data): Delete la_value_print initializer.
8737 (unknown_language::value_print): New member function.
8738 (auto_language_data): Delete la_value_print initializer.
8739 (auto_language::value_print): New member function.
8740 * language.h (language_data): Delete la_value_print field.
8741 (language_defn::value_print): Declare new member function.
8742 (LA_VALUE_PRINT): Update call to value_print.
8743 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8744 * objc-lang.c (objc_language_data): Likewise.
8745 * opencl-lang.c (opencl_language_data): Likewise.
8746 * p-lang.c (pascal_language_data): Likewise.
8747 (pascal_language::value_print): New member function.
8748 * rust-lang.c (rust_language_data): Delete la_value_print
8751 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8753 * ada-lang.c (ada_watch_location_expression): Rename to
8754 ada_language::watch_location_expression.
8755 (ada_language_data): Delete la_watch_location_expression
8757 (ada_language::watch_location_expression): New member function,
8758 implementation from ada_watch_location_expression.
8759 * breakpoint.c (watch_command_1): Update call to
8760 watch_location_expression.
8761 * c-lang.c (c_watch_location_expression): Rename to
8762 language_defn::watch_location_expression.
8763 (c_language_data): Delete la_watch_location_expression
8765 (cplus_language_data): Likewise.
8766 (asm_language_data): Likewise.
8767 (minimal_language_data): Likewise.
8768 * c-lang.h (c_watch_location_expression): Delete declaration.
8769 * d-lang.c (d_language_data): Delete la_watch_location_expression
8771 * f-lang.c (f_language_data): Likewise.
8772 * go-lang.c (go_language_data): Likewise.
8773 * language.c (language_defn::watch_location_expression): Member
8774 function implementation from c_watch_location_expression.
8775 (unknown_language_data): Delete la_watch_location_expression
8777 (auto_language_data): Likewise.
8778 * language.h (language_data): Delete la_watch_location_expression
8780 (language_defn::watch_location_expression): Declare new member
8782 * m2-lang.c (m2_language_data): Delete
8783 la_watch_location_expression initializer.
8784 * objc-lang.c (objc_language_data): Likewise.
8785 * opencl-lang.c (opencl_language_data): Likewise.
8786 * p-lang.c (pascal_language_data): Likewise.
8787 * rust-lang.c (rust_watch_location_expression): Rename to
8788 rust_language::watch_location_expression.
8789 (rust_language_data): Delete la_watch_location_expression
8791 (rust_language::watch_location_expression): New member function,
8792 implementation from rust_watch_location_expression.
8794 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8796 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8797 ada_language::collect_symbol_completion_matches.
8798 (ada_language_data): Delete la_collect_symbol_completion_matches
8800 (ada_language::collect_symbol_completion_matches): New member
8801 function, implementation from
8802 ada_collect_symbol_completion_matches.
8803 * c-lang.c (c_language_data): Delete
8804 la_collect_symbol_completion_matches initializer.
8805 (cplus_language_data): Likewise.
8806 (asm_language_data): Likewise.
8807 (minimal_language_data): Likewise.
8808 * d-lang.c (d_language_data): Likewise.
8809 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8810 f_language::collect_symbol_completion_matches.
8811 (f_language_data): Delete la_collect_symbol_completion_matches
8813 (f_language::collect_symbol_completion_matches) New member
8814 function, implementation from f_collect_symbol_completion_matches.
8815 * go-lang.c (go_language_data): Delete
8816 la_collect_symbol_completion_matches initializer.
8817 * language.c (unknown_language_data): Likewise.
8818 (auto_language_data): Likewise.
8819 * language.h (language_data): Delete
8820 la_collect_symbol_completion_matches field.
8821 (language_defn::collect_symbol_completion_matches): New member
8823 * m2-lang.c (m2_language_data): Delete
8824 la_collect_symbol_completion_matches initializer.
8825 * objc-lang.c (objc_language_data): Likewise.
8826 * opencl-lang.c (opencl_language_data): Likewise.
8827 * p-lang.c (pascal_language_data): Likewise.
8828 * rust-lang.c (rust_language_data): Likewise.
8829 * symtab.c (default_collect_symbol_completion_matches): Delete.
8830 (collect_symbol_completion_matches): Update call to
8831 collect_symbol_completion_matches.
8832 (collect_symbol_completion_matches_type): Likewise.
8833 * symtab.h (default_collect_symbol_completion_matches): Delete
8836 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8838 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8839 (ada_language_data): Delete la_word_break_characters initializer.
8840 (ada_language::word_break_characters): New member function.
8841 * c-lang.c (c_language_data): Delete la_word_break_characters
8843 (cplus_language_data): Likewise.
8844 (asm_language_data): Likewise.
8845 (minimal_language_data): Likewise.
8846 * completer.c: Update global comment.
8847 (advance_to_expression_complete_word_point): Update call to
8848 word_break_characters.
8849 (complete_files_symbols): Likewise.
8850 (complete_line_internal_1): Likewise.
8851 (default_completer_handle_brkchars): Likewise.
8852 (skip_quoted_chars): Likewise.
8853 * d-lang.c (d_language_data): Delete la_word_break_characters
8855 * f-lang.c (f_word_break_characters): Delete.
8856 (f_language_data): Delete la_word_break_characters initializer.
8857 (f_language::word_break_characters): New member function.
8858 * go-lang.c (go_language_data): Delete la_word_break_characters
8860 * language.c (unknown_language_data): Likewise.
8861 (auto_language_data): Likewise.
8862 * language.h (default_word_break_characters): Move declaration to
8863 earlier in the file.
8864 (language_data): Delete la_word_break_characters field.
8865 (language_defn::word_break_characters): New member function.
8866 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8868 * objc-lang.c (objc_language_data): Likewise.
8869 * opencl-lang.c (opencl_language_data): Likewise.
8870 * p-lang.c (pascal_language_data): Likewise.
8871 * rust-lang.c (rust_language_data): Likewise.
8873 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8875 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8876 (ada_language_data): Delete la_get_symbol_name_matcher
8878 (language_defn::get_symbol_name_matcher_inner): New member
8880 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8882 (cplus_language_data): Likewise.
8883 (cplus_language::get_symbol_name_matcher_inner): New member
8885 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8886 (minimal_language_data): Likewise.
8887 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8888 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8890 * dictionary.c (iter_match_first_hashed): Update call to
8891 get_symbol_name_matcher.
8892 (iter_match_next_hashed): Likewise.
8893 (iter_match_next_linear): Likewise.
8894 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8895 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8897 (f_language::get_symbol_name_matcher_inner): New member function.
8898 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8900 * language.c (default_symbol_name_matcher): Update header comment,
8902 (language_defn::get_symbol_name_matcher): New definition.
8903 (language_defn::get_symbol_name_matcher_inner): Likewise.
8904 (get_symbol_name_matcher): Delete.
8905 (unknown_language_data): Delete la_get_symbol_name_matcher
8907 (auto_language_data): Likewise.
8908 * language.h (language_data): Delete la_get_symbol_name_matcher
8910 (language_defn::get_symbol_name_matcher): New member function.
8911 (language_defn::get_symbol_name_matcher_inner): Likewise.
8912 (default_symbol_name_matcher): Delete declaration.
8913 * linespec.c (find_methods): Update call to
8914 get_symbol_name_matcher.
8915 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8917 * minsyms.c (lookup_minimal_symbol): Update call to
8918 get_symbol_name_matcher.
8919 (iterate_over_minimal_symbols): Likewise.
8920 * objc-lang.c (objc_language_data): Delete
8921 la_get_symbol_name_matcher initializer.
8922 * opencl-lang.c (opencl_language_data): Likewise.
8923 * p-lang.c (pascal_language_data): Likewise.
8924 * psymtab.c (psymbol_name_matches): Update call to
8925 get_symbol_name_matcher.
8926 * rust-lang.c (rust_language_data): Delete
8927 la_get_symbol_name_matcher initializer.
8928 * symtab.c (symbol_matches_search_name): Update call to
8929 get_symbol_name_matcher.
8930 (compare_symbol_name): Likewise.
8932 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8934 * ada-lang.c (ada_language_data): Delete la_compute_program
8936 * c-lang.c (c_language_data): Likewise.
8937 (c_language::compute_program): New member function.
8938 (cplus_language_data): Delete la_compute_program initializer.
8939 (cplus_language::compute_program): New member function.
8940 (asm_language_data): Delete la_compute_program initializer.
8941 (minimal_language_data): Likewise.
8942 * c-lang.h (c_compute_program): Update comment.
8943 (cplus_compute_program): Likewise.
8944 * compile/compile-c-support.c (c_compute_program): Likewise.
8945 (cplus_compute_program): Likewise.
8946 * compile/compile.c (compile_to_object): Update call to
8948 * d-lang.c (d_language_data): Delete la_compute_program
8950 * f-lang.c (f_language_data): Likewise.
8951 * go-lang.c (go_language_data): Likewise.
8952 * language.c (unknown_language_data): Likewise.
8953 (auto_language_data): Likewise.
8954 * language.h (language_data): Delete la_compute_program field.
8955 (language_defn::compute_program): New member function.
8956 * m2-lang.c (m2_language_data): Delete la_compute_program
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-17 Andrew Burgess <andrew.burgess@embecosm.com>
8965 * ada-lang.c (ada_language_data) Delete
8966 la_class_name_from_physname initializer.
8967 * c-lang.c (c_language_data): Likewise.
8968 (cplus_language_data): Likewise.
8969 (cplus_language::class_name_from_physname): New member function.
8970 (asm_language_data): Delete la_class_name_from_physname
8972 (minimal_language_data): Likewise.
8973 * d-lang.c (d_language_data): Likewise.
8974 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8975 method on language_defn class.
8976 (guess_full_die_structure_name): Likewise.
8977 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8979 * go-lang.c (go_language_data): Likewise.
8980 * language.c (language_class_name_from_physname): Delete.
8981 (unk_lang_class_name): Delete.
8982 (unknown_language_data): Delete la_class_name_from_physname
8984 (auto_language_data): Likewise.
8985 * language.h (language_data): Delete la_class_name_from_physname
8987 (language_defn::class_name_from_physname): New function.
8988 (language_class_name_from_physname): Delete declaration.
8989 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8991 * objc-lang.c (objc_language_data): Likewise.
8992 * opencl-lang.c (opencl_language_data): Likewise.
8993 * p-lang.c (pascal_language_data): Likewise.
8994 * rust-lang.c (rust_language_data): Likewise.
8996 2020-06-16 Tom Tromey <tom@tromey.com>
8998 * tui/tui-data.h (STATUS_NAME): New macro.
8999 * tui/tui-layout.c (tui_remove_some_windows)
9000 (initialize_known_windows, tui_register_window)
9001 (tui_layout_split::remove_windows, initialize_layouts)
9002 (tui_new_layout_command): Don't use hard-coded window names.
9004 2020-06-16 Tom Tromey <tom@tromey.com>
9007 * tui/tui.c (tui_ensure_readline_initialized): Rename from
9008 tui_initialize_readline. Only run once. Call rl_initialize.
9009 * tui/tui.h (tui_ensure_readline_initialized): Rename from
9010 tui_initialize_readline.
9011 * tui/tui-io.c (tui_setup_io): Call
9012 tui_ensure_readline_initialized.
9013 * tui/tui-interp.c (tui_interp::init): Update.
9015 2020-06-16 Tom Tromey <tom@tromey.com>
9017 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
9018 Also preserve the status window.
9020 2020-06-16 Tom Tromey <tom@tromey.com>
9022 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
9023 where m_window==nullptr.
9025 2020-06-15 Tom Tromey <tromey@adacore.com>
9027 * windows-nat.c (windows_nat::handle_output_debug_string):
9029 (windows_nat::handle_ms_vc_exception): Update.
9030 * target.h (target_read_string): Change API.
9031 * target.c (target_read_string): Change API.
9032 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9034 * solib-frv.c (frv_current_sos): Update.
9035 * solib-dsbt.c (dsbt_current_sos): Update.
9036 * solib-darwin.c (darwin_current_sos): Update.
9037 * linux-thread-db.c (inferior_has_bug): Update.
9038 * expprint.c (print_subexp_standard): Update.
9039 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
9040 (ada_exception_message_1): Update.
9042 2020-06-15 Tom Tromey <tromey@adacore.com>
9044 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
9046 2020-06-15 Tom Tromey <tromey@adacore.com>
9048 * valprint.c (read_string): Update comment.
9049 * target.c (MIN): Remove.
9050 (target_read_string): Rewrite.
9052 2020-06-15 Tom Tromey <tromey@adacore.com>
9054 * corefile.c (read_memory_string): Remove.
9055 * ada-valprint.c (ada_value_print_ptr): Update.
9056 * ada-lang.h (ada_tag_name): Change return type.
9057 * ada-lang.c (type_from_tag): Update.
9058 (ada_tag_name_from_tsd): Change return type. Use
9060 (ada_tag_name): Likewise.
9061 * gdbcore.h (read_memory_string): Don't declare.
9063 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
9065 * symtab.c (rbreak_command): Ignore Windows drive colon.
9067 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
9069 * NEWS: Mention removed GDBserver host support.
9071 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
9073 * features/riscv/rebuild-csr-xml.sh: Updated.
9075 2020-06-11 Tom Tromey <tom@tromey.com>
9078 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
9080 2020-06-09 Jonny Grant <jg@jguk.org>
9081 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
9083 * main.c (captured_main_1): Don't print new line after help.
9084 (print_gdb_help): add mailing list and IRC channel information
9085 to --help. Add new lines between items in the footer. Remove
9086 quotes around bug url.
9088 2020-06-11 Keith Seitz <keiths@redhat.com>
9091 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
9092 Resolve typedefs for type length calculations.
9094 2020-06-10 Tom de Vries <tdevries@suse.de>
9097 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
9098 (write_psymbols): Enable .gdb_index for ada.
9099 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
9102 2020-06-10 Tom de Vries <tdevries@suse.de>
9104 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9105 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9106 namei" instead of "const char *name" argument.
9107 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9108 dw2_symtab_iter_init.
9110 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9112 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9113 to use type::field and field::type instead.
9115 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9117 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9118 to use field::type instead.
9120 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9122 * gdbtypes.h (struct field) <type, set_type>: New methods.
9123 Rename `type` field to...
9124 <m_type>: ... this. Change references throughout to use type or
9126 (FIELD_TYPE): Use field::type. Change call sites that modify
9127 the field's type to use field::set_type instead.
9129 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9131 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9132 to use type::index_type instead.
9134 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9136 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9138 (TYPE_INDEX_TYPE): Use type::index_type.
9139 * gdbtypes.c (create_array_type_with_stride): Likewise.
9141 2020-06-07 Tom Tromey <tom@tromey.com>
9143 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9145 (generic_value_print): Update.
9147 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9149 Revert commit 982a38f60b0.
9150 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9152 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9154 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9155 avoid use after free.
9157 2020-06-05 Tom de Vries <tdevries@suse.de>
9161 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
9163 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9165 (dwarf2_read_debug_names): Likewise.
9166 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9167 object when re-using a per_bfd object with an index.
9169 2020-06-03 Tom de Vries <tdevries@suse.de>
9172 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9174 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9177 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9179 * ada-lang.c (ada_language_data): Delete skip_trampoline
9181 * c-lang.c (c_language_data): Likewise.
9182 (cplus_language_data): Likewise.
9183 (cplus_language::skip_trampoline): New member function.
9184 (asm_language_data): Delete skip_trampoline initializer.
9185 (minimal_language_data): Likewise.
9186 * d-lang.c (d_language_data): Likewise.
9187 * f-lang.c (f_language_data): Likewise.
9188 * go-lang.c (go_language_data): Likewise.
9189 * language.c (unk_lang_trampoline): Delete function.
9190 (skip_language_trampoline): Update.
9191 (unknown_language_data): Delete skip_trampoline initializer.
9192 (auto_language_data): Likewise.
9193 * language.h (language_data): Delete skip_trampoline field.
9194 (language_defn::skip_trampoline): New function.
9195 * m2-lang.c (m2_language_data): Delete skip_trampoline
9197 * objc-lang.c (objc_skip_trampoline): Delete function, move
9198 implementation to objc_language::skip_trampoline.
9199 (objc_language_data): Delete skip_trampoline initializer.
9200 (objc_language::skip_trampoline): New member function with
9201 implementation from objc_skip_trampoline.
9202 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9204 * p-lang.c (pascal_language_data): Likewise.
9205 * rust-lang.c (rust_language_data): Likewise.
9207 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9209 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9210 (ada_language::demangle): New member function.
9211 * c-lang.c (c_language_data): Delete la_demangle initializer.
9212 (cplus_language_data): Delete la_demangle initializer.
9213 (cplus_language::demangle): New member function.
9214 (asm_language_data): Delete la_demangle initializer.
9215 (minimal_language_data): Delete la_demangle initializer.
9216 * d-lang.c (d_language_data): Delete la_demangle initializer.
9217 (d_language::demangle): New member function.
9218 * f-lang.c (f_language_data): Delete la_demangle initializer.
9219 (f_language::demangle): New member function.
9220 * go-lang.c (go_language_data): Delete la_demangle initializer.
9221 (go_language::demangle): New member function.
9222 * language.c (language_demangle): Update.
9223 (unk_lang_demangle): Delete.
9224 (unknown_language_data): Delete la_demangle initializer.
9225 (unknown_language::demangle): New member function.
9226 (auto_language_data): Delete la_demangle initializer.
9227 (auto_language::demangle): New member function.
9228 * language.h (language_data): Delete la_demangle field.
9229 (language_defn::demangle): New function.
9230 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9231 * objc-lang.c (objc_language_data): Delete la_demangle
9233 (objc_language::demangle): New member function.
9234 * opencl-lang.c (opencl_language_data): Delete la_demangle
9236 * p-lang.c (pascal_language_data): Likewise.
9237 * rust-lang.c (rust_language_data): Likewise.
9238 (rust_language::demangle): New member function.
9240 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9242 * ada-lang.c (ada_language_data): Delete la_print_type
9244 (ada_language::print_type): New member function.
9245 * c-lang.c (c_language_data): Delete la_print_type initializer.
9246 (c_language::print_type): New member function.
9247 (cplus_language_data): Delete la_print_type initializer.
9248 (cplus_language::print_type): New member function.
9249 (asm_language_data): Delete la_print_type initializer.
9250 (asm_language::print_type): New member function.
9251 (minimal_language_data): Delete la_print_type initializer.
9252 (minimal_language::print_type): New member function.
9253 * d-lang.c (d_language_data): Delete la_print_type initializer.
9254 (d_language::print_type): New member function.
9255 * f-lang.c (f_language_data): Delete la_print_type initializer.
9256 (f_language::print_type): New member function.
9257 * go-lang.c (go_language_data): Delete la_print_type initializer.
9258 (go_language::print_type): New member function.
9259 * language.c (unk_lang_print_type): Delete.
9260 (unknown_language_data): Delete la_print_type initializer.
9261 (unknown_language::print_type): New member function.
9262 (auto_language_data): Delete la_print_type initializer.
9263 (auto_language::print_type): New member function.
9264 * language.h (language_data): Delete la_print_type field.
9265 (language_defn::print_type): New function.
9266 (LA_PRINT_TYPE): Update.
9267 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9268 (m2_language::print_type): New member function.
9269 * objc-lang.c (objc_language_data): Delete la_print_type
9271 (objc_language::print_type): New member function.
9272 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9273 to opencl_language::print_type.
9274 (opencl_language_data): Delete la_print_type initializer.
9275 (opencl_language::print_type): New member function, implementation
9276 from opencl_print_type.
9277 * p-lang.c (pascal_language_data): Delete la_print_type
9279 (pascal_language::print_type): New member function.
9280 * rust-lang.c (rust_print_type): Delete, implementation moved to
9281 rust_language::print_type.
9282 (rust_language_data): Delete la_print_type initializer.
9283 (rust_language::print_type): New member function, implementation
9284 from rust_print_type.
9286 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9288 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9289 implementation moves to...
9290 (ada_language::sniff_from_mangled_name): ...here. Update return
9292 (ada_language_data): Delete la_sniff_from_mangled_name
9294 * c-lang.c (c_language_data): Likewise.
9295 (cplus_language_data): Likewise.
9296 (cplus_language::sniff_from_mangled_name): New member function,
9297 implementation taken from gdb_sniff_from_mangled_name.
9298 (asm_language_data): Delete la_sniff_from_mangled_name
9300 (minimal_language_data): Likewise.
9301 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9302 implementation moves to cplus_language::sniff_from_mangled_name.
9303 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9304 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9306 (d_language::sniff_from_mangled_name): ...here.
9307 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9308 * f-lang.c (f_language_data): Likewise.
9309 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9311 (go_language::sniff_from_mangled_name): ...here.
9312 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9313 * language.c (language_sniff_from_mangled_name): Delete.
9314 (unknown_language_data): Delete la_sniff_from_mangled_name
9316 (auto_language_data): Likewise.
9317 * language.h (language_data): Delete la_sniff_from_mangled_name
9319 (language_defn::sniff_from_mangled_name): New function.
9320 (language_sniff_from_mangled_name): Delete declaration.
9321 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9323 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9324 implementation moves to...
9325 (objc_language::sniff_from_mangled_name): ...here.
9326 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9327 * opencl-lang.c (opencl_language_data): Likewise.
9328 * p-lang.c (pascal_language_data): Likewise.
9329 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9330 implementation moves to...
9331 (rust_language::sniff_from_mangled_name): ...here.
9332 (rust_language_data): Delete la_sniff_from_mangled_name
9334 * symtab.c (symbol_find_demangled_name): Call
9335 sniff_from_mangled_name member function.
9337 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9339 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9341 * c-lang.c (c_language_data): Likewise.
9342 (cplus_language_data): Likewise.
9343 (cplus_language::search_name_hash): New member function.
9344 (asm_language_data): Delete la_search_name_hash initializer.
9345 (minimal_language_data): Likewise.
9346 * d-lang.c (d_language_data): Likewise.
9347 * dictionary.c (default_search_name_hash): Rename to...
9348 (language_defn::search_name_hash): ...this.
9349 * f-lang.c (f_language_data): Likewise.
9350 (f_language::search_name_hash): New member function.
9351 * go-lang.c (go_language_data): Delete la_search_name_hash
9353 * language.c (unknown_language_data): Likewise.
9354 (auto_language_data): Likewise.
9355 * language.h (struct language_data): Delete la_search_name_hash
9357 (language_defn::search_name_hash): Declare new member function.
9358 (default_search_name_hash): Delete declaration.
9359 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9361 * objc-lang.c (objc_language_data): Likewise.
9362 * opencl-lang.c (opencl_language_data): Likewise.
9363 * p-lang.c (pascal_language_data): Likewise.
9364 * rust-lang.c (rust_language_data): Likewise.
9365 * symtab.c (search_name_hash): Update call.
9367 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9369 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9371 * c-lang.c (class compile_instance): Declare.
9372 (c_language_data): Delete la_get_compile_instance initializer.
9373 (c_language::get_compile_instance): New member function.
9374 (cplus_language_data): Delete la_get_compile_instance initializer.
9375 (cplus_language::get_compile_instance): New member function.
9376 (asm_language_data): Delete la_get_compile_instance initializer.
9377 (minimal_language_data): Likewise.
9378 * c-lang.h (c_get_compile_context): Update comment.
9379 (cplus_get_compile_context): Update comment.
9380 * compile/compile.c (compile_to_object): Update calls, don't rely
9381 on function pointer being NULL.
9382 * d-lang.c (d_language_data): Delete la_get_compile_instance
9384 * f-lang.c (f_language_data): Likewise.
9385 * go-lang.c (go_language_data): Likewise.
9386 * language.c (unknown_language_data): Likewise.
9387 (auto_language_data): Likewise.
9388 * language.h (language_data): Delete la_get_compile_instance field.
9389 (language_defn::get_compile_instance): New member function.
9390 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9392 * objc-lang.c (objc_language_data): Likewise.
9393 * opencl-lang.c (opencl_language_data): Likewise.
9394 * p-lang.c (pascal_language_data): Likewise.
9395 * rust-lang.c (rust_language_data): Likewise.
9397 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9399 * ada-lang.c (ada_add_all_symbols): Update comment.
9400 (ada_iterate_over_symbols): Delete, move implementation to...
9401 (ada_language::iterate_over_symbols): ...here, a new member
9402 function, rewrite to use range based for loop.
9403 (ada_language_data): Delete la_iterate_over_symbols initializer.
9404 * c-lang.c (c_language_data): Likewise.
9405 (cplus_language_data): Likewise.
9406 (asm_language_data): Likewise.
9407 (minimal_language_data): Likewise.
9408 * d-lang.c (d_language_data): Likewise.
9409 * f-lang.c (f_language_data): Likewise.
9410 * go-lang.c (go_language_data): Likewise.
9411 * language.c (unknown_language_data): Likewise.
9412 (auto_language_data): Likewise.
9413 * language.h (language_data): Delete la_iterate_over_symbols field.
9414 (language_defn::iterate_over_symbols): New member function.
9415 (LA_ITERATE_OVER_SYMBOLS): Update.
9416 * linespec.c (iterate_over_all_matching_symtabs): Update.
9417 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9419 * objc-lang.c (objc_language_data): Likewise.
9420 * opencl-lang.c (opencl_language_data): Likewise.
9421 * p-lang.c (pascal_language_data): Likewise.
9422 * rust-lang.c (rust_language_data): Likewise.
9424 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9426 * ada-lang.c (ada_language_data): Delete
9427 la_lookup_transparent_type initializer.
9428 * c-lang.c (c_language_data): Likewise.
9429 (cplus_language_data): Likewise.
9430 (cplus_language::lookup_transparent_type): New member function.
9431 (asm_language_data): Delete la_lookup_transparent_type
9433 (minimal_language_data): Likewise.
9434 * d-lang.c (d_language_data): Likewise.
9435 * f-lang.c (f_language_data): Likewise.
9436 * go-lang.c (go_language_data): Likewise.
9437 * language.c (unknown_language_data): Likewise.
9438 (auto_language_data): Likewise.
9439 * language.h (struct language_data): Delete
9440 la_lookup_transparent_type field.
9441 (language_defn::lookup_transparent_type): New member function.
9442 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9444 * objc-lang.c (objc_language_data): Likewise.
9445 * opencl-lang.c (opencl_language_data): Likewise.
9446 * p-lang.c (pascal_language_data): Likewise.
9447 * rust-lang.c (rust_language_data): Likewise.
9448 * symtab.c (symbol_matches_domain): Update call.
9450 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9452 * ada-lang.c (ada_language_arch_info): Delete function, move
9453 implementation to...
9454 (ada_language::language_arch_info): ...here, a new member
9456 (ada_language_data): Delete la_language_arch_info.
9457 * c-lang.c (c_language_data): Likewise.
9458 (c_language::language_arch_info): New member function.
9459 (cplus_language_arch_info): Delete function, move
9460 implementation to...
9461 (cplus_language::language_arch_info): ...here, a new member
9463 (cplus_language_data): Delete la_language_arch_info.
9464 (asm_language_data): Likewise.
9465 (asm_language::language_arch_info): New member function.
9466 (minimal_language_data): Delete la_language_arch_info.
9467 (minimal_language::language_arch_info): New member function.
9468 * d-lang.c (d_language_arch_info): Delete function, move
9469 implementation to...
9470 (d_language::language_arch_info): ...here, a new member
9472 (d_language_data): Delete la_language_arch_info.
9473 * f-lang.c (f_language_arch_info): Delete function, move
9474 implementation to...
9475 (f_language::language_arch_info): ...here, a new member
9477 (f_language_data): Delete la_language_arch_info.
9478 * go-lang.c (go_language_arch_info): Delete function, move
9479 implementation to...
9480 (go_language::language_arch_info): ...here, a new member
9482 (go_language_data): Delete la_language_arch_info.
9483 * language.c (unknown_language_data): Likewise.
9484 (unknown_language::language_arch_info): New member function.
9485 (auto_language_data): Delete la_language_arch_info.
9486 (auto_language::language_arch_info): New member function.
9487 (language_gdbarch_post_init): Update call to
9488 la_language_arch_info.
9489 * language.h (language_data): Delete la_language_arch_info
9491 (language_defn::language_arch_info): New function.
9492 * m2-lang.c (m2_language_arch_info): Delete function, move
9493 implementation to...
9494 (m2_language::language_arch_info): ...here, a new member
9496 (m2_language_data): Delete la_language_arch_info.
9497 * objc-lang.c (objc_language_arch_info): Delete function, move
9498 implementation to...
9499 (objc_language::language_arch_info): ...here, a new member
9501 (objc_language_data): Delete la_language_arch_info.
9502 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9503 implementation to...
9504 (opencl_language::language_arch_info): ...here, a new member
9506 (opencl_language_data): Delete la_language_arch_info.
9507 * p-lang.c (pascal_language_arch_info): Delete function, move
9508 implementation to...
9509 (pascal_language::language_arch_info): ...here, a new member
9511 (pascal_language_data): Delete la_language_arch_info.
9512 * rust-lang.c (rust_language_arch_info): Delete function, move
9513 implementation to...
9514 (rust_language::language_arch_info): ...here, a new member
9516 (rust_language_data): Delete la_language_arch_info.
9518 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9520 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9522 * c-lang.c (c_language_data): Likewise.
9523 (cplus_language_data): Likewise.
9524 (cplus_language::pass_by_reference_info): New method.
9525 (asm_language_data): Delete la_pass_by_reference initializer.
9526 (minimal_language_data): Likewise.
9527 * cp-abi.c (cp_pass_by_reference): Remove use of
9528 default_pass_by_reference.
9529 * d-lang.c (d_language_data): Likewise.
9530 * f-lang.c (f_language_data): Likewise.
9531 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9532 default_pass_by_reference.
9533 * go-lang.c (go_language_data): Likewise.
9534 * language.c (language_pass_by_reference): Update.
9535 (default_pass_by_reference): Delete.
9536 (unknown_language_data): Delete la_pass_by_reference
9538 (auto_language_data): Likewise.
9539 * language.h (struct language_data): Delete la_pass_by_reference
9541 (language_defn::pass_by_reference_info): New member function.
9542 (default_pass_by_reference): Delete declaration.
9543 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9545 * objc-lang.c (objc_language_data): Likewise.
9546 * opencl-lang.c (opencl_language_data): Likewise.
9547 * p-lang.c (pascal_language_data): Likewise.
9548 * rust-lang.c (rust_language_data): Likewise.
9550 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9552 * ada-lang.c (ada_read_var_value): Delete function, move
9553 implementation to...
9554 (ada_language::read_var_value): ...here.
9555 (ada_language_data): Delete la_read_var_value initializer.
9556 * c-lang.c (c_language_data): Likewise.
9557 (cplus_language_data): Likewise.
9558 (minimal_language_data): Likewise.
9559 * d-lang.c (d_language_data): Likewise.
9560 * f-lang.c (f_language_data): Likewise.
9561 * findvar.c (default_read_var_value): Rename to...
9562 (language_defn::read_var_value): ...this.
9563 * findvar.c (read_var_value): Update header comment, and change to
9564 call member function instead of function pointer.
9565 * go-lang.c (go_language_data): Likewise.
9566 * language.c (unknown_language_data): Delete la_read_var_value
9568 (auto_language_data): Likewise.
9569 * language.h (struct language_data): Delete la_read_var_value
9571 (language_defn::read_var_value): New member function.
9572 (default_read_var_value): Delete declaration.
9573 * m2-lang.c (m2_language_data): Delete la_read_var_value
9575 * objc-lang.c (objc_language_data): Likewise.
9576 * opencl-lang.c (opencl_language_data): Likewise.
9577 * p-lang.c (pascal_language_data): Likewise.
9578 * rust-lang.c (rust_language_data): Likewise.
9579 * value.h (default_read_var_value): Delete declaration.
9581 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9583 * ada-lang.c (ada_print_array_index): Delete function, move
9584 implementation to...
9585 (ada_language::print_array_index): ...here.
9586 (ada_language_data): Delete la_print_array_index initializer.
9587 * c-lang.c (c_language_data): Likewise.
9588 (cplus_language_data): Likewise.
9589 (minimal_language_data): Likewise.
9590 * d-lang.c (d_language_data): Likewise.
9591 * f-lang.c (f_language_data): Likewise.
9592 * go-lang.c (go_language_data): Likewise.
9593 * language.c (default_print_array_index): Delete function, move
9594 implementation to...
9595 (language_defn::print_array_index): ...here.
9596 (unknown_language_data): Delete la_print_array_index initializer.
9597 (auto_language_data): Likewise.
9598 * language.h (struct language_data): Delete la_print_array_index
9600 (language_defn::print_array_index): New member function.
9601 (LA_PRINT_ARRAY_INDEX): Update.
9602 (default_print_array_index): Delete declaration.
9603 * m2-lang.c (m2_language_data): Delete la_print_array_index
9605 * objc-lang.c (objc_language_data): Likewise.
9606 * opencl-lang.c (opencl_language_data): Likewise.
9607 * p-lang.c (pascal_language_data): Likewise.
9608 * rust-lang.c (rust_language_data): Likewise.
9610 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9612 * gdb/ada-lang.c (ada_language_defn): Convert to...
9613 (ada_language_data): ...this.
9614 (class ada_language): New class.
9615 (ada_language_defn): New static global.
9616 * gdb/c-lang.c (c_language_defn): Convert to...
9617 (c_language_data): ...this.
9618 (class c_language): New class.
9619 (c_language_defn): New static global.
9620 (cplus_language_defn): Convert to...
9621 (cplus_language_data): ...this.
9622 (class cplus_language): New class.
9623 (cplus_language_defn): New static global.
9624 (asm_language_defn): Convert to...
9625 (asm_language_data): ...this.
9626 (class asm_language): New class.
9627 (asm_language_defn): New static global.
9628 (minimal_language_defn): Convert to...
9629 (minimal_language_data): ...this.
9630 (class minimal_language): New class.
9631 (minimal_language_defn): New static global.
9632 * gdb/d-lang.c (d_language_defn): Convert to...
9633 (d_language_data): ...this.
9634 (class d_language): New class.
9635 (d_language_defn): New static global.
9636 * gdb/f-lang.c (f_language_defn): Convert to...
9637 (f_language_data): ...this.
9638 (class f_language): New class.
9639 (f_language_defn): New static global.
9640 * gdb/go-lang.c (go_language_defn): Convert to...
9641 (go_language_data): ...this.
9642 (class go_language): New class.
9643 (go_language_defn): New static global.
9644 * gdb/language.c (unknown_language_defn): Remove declaration.
9645 (current_language): Initialize to nullptr, real initialization is
9646 moved to _initialize_language.
9647 (languages): Delete global.
9648 (language_defn::languages): Define.
9649 (set_language_command): Use language_defn::languages.
9650 (set_language): Likewise.
9651 (range_error): Likewise.
9652 (language_enum): Likewise.
9653 (language_def): Likewise.
9654 (add_set_language_command): Use language_def::languages for the
9655 language list, and language_def to lookup language pointers.
9656 (skip_language_trampoline): Use language_defn::languages.
9657 (unknown_language_defn): Convert to...
9658 (unknown_language_data): ...this.
9659 (class unknown_language): New class.
9660 (unknown_language_defn): New static global.
9661 (auto_language_defn): Convert to...
9662 (auto_language_data): ...this.
9663 (class auto_language): New class.
9664 (auto_language_defn): New static global.
9665 (language_gdbarch_post_init): Use language_defn::languages.
9666 (_initialize_language): Initialize current_language.
9667 * gdb/language.h (struct language_defn): Rename to...
9668 (struct language_data): ...this.
9669 (struct language_defn): New.
9670 (auto_language_defn): Delete.
9671 (unknown_language_defn): Delete.
9672 (minimal_language_defn): Delete.
9673 (ada_language_defn): Delete.
9674 (asm_language_defn): Delete.
9675 (c_language_defn): Delete.
9676 (cplus_language_defn): Delete.
9677 (d_language_defn): Delete.
9678 (f_language_defn): Delete.
9679 (go_language_defn): Delete.
9680 (m2_language_defn): Delete.
9681 (objc_language_defn): Delete.
9682 (opencl_language_defn): Delete.
9683 (pascal_language_defn): Delete.
9684 (rust_language_defn): Delete.
9685 * gdb/m2-lang.c (m2_language_defn): Convert to...
9686 (m2_language_data): ...this.
9687 (class m2_language): New class.
9688 (m2_language_defn): New static global.
9689 * gdb/objc-lang.c (objc_language_defn): Convert to...
9690 (objc_language_data): ...this.
9691 (class objc_language): New class.
9692 (objc_language_defn): New static global.
9693 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9694 (opencl_language_data): ...this.
9695 (class opencl_language): New class.
9696 (opencl_language_defn): New static global.
9697 * gdb/p-lang.c (pascal_language_defn): Convert to...
9698 (pascal_language_data): ...this.
9699 (class pascal_language): New class.
9700 (pascal_language_defn): New static global.
9701 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9702 language pointer, update comment format.
9703 * gdb/rust-lang.c (rust_language_defn): Convert to...
9704 (rust_language_data): ...this.
9705 (class rust_language): New class.
9706 (rust_language_defn): New static global.
9708 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9710 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9712 <m_stmt_at_address>: New member variable.
9713 (lnp_state_machine::record_line): Don't record some lines, update
9714 tracking of is_stmt at the same address.
9715 (lnp_state_machine::lnp_state_machine): Initialise new member
9718 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9720 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9721 "-include gnu-nat-mig.h".
9722 * gnu-nat-mig.h: New file.
9723 * gnu-nat.c: Include "gnu-nat-mig.h".
9724 (exc_server, msg_reply_server, notify_server,
9725 process_reply_server): Remove declarations.
9727 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9729 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9730 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9731 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9732 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9733 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9734 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9735 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9736 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9737 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9738 to gnu_nat_target class.
9739 * gnu-nat.c: Likewise.
9740 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9741 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9742 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9744 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9745 instead of `gnu_target'.
9747 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9749 * i386-gnu-tdep.c: Include "gdbcore.h"
9750 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9751 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9752 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9753 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9754 i386_gnu_sigcontext_addr): New functions
9755 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9756 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9759 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9761 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9762 before fork_inferior call. Avoid calling it if target_is_pushed returns
9765 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9767 * gnu-nat.h (gnu_target): New variable declaration.
9768 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9770 * gnu-nat.c (gnu_target): New variable.
9771 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9772 add_thread_silent, and add_thread calls.
9773 (gnu_nat_target::create_inferior): Pass gnu_target to
9774 add_thread_silent, thread_change_ptid call.
9775 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9778 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9780 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9781 (gnu_nat_target::find_memory_regions): Remove unused
9782 `old_address' variable.
9784 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9786 * gnu-nat.c: Include "gdbarch.h".
9788 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9790 * reply_mig_hack.awk (Error return): Cast function through
9791 void *, to bypass compiler function call check.
9793 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9795 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9796 $(srcdir)/reply_mig_hack.awk.
9798 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9800 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9802 2020-05-30 Jonny Grant <jg@jguk.org>
9804 * configure.ac (ACX_BUGURL): change bug URL to https.
9806 2020-05-30 Pedro Alves <palves@redhat.com>
9808 * cp-support.c (replace_typedefs_template): New.
9809 (replace_typedefs_qualified_name): Handle
9810 DEMANGLE_COMPONENT_TEMPLATE.
9812 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9814 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9815 dwarf2/index-cache.h, dwarf2/index-write.c,
9816 dwarf2/index-write.h, dwarf2/line-header.c,
9817 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9818 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9819 variables and fields from `dwarf2_per_objfile` to just
9820 `per_objfile` throughout.
9822 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9824 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9825 <push_dwarf_reg_entry_value>: Add comment.
9827 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9828 Keith Seitz <keiths@redhat.com>
9830 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9831 instead of PyEval_ReleaseLock.
9832 (class gdbpy_gil): Move to earlier in file.
9833 (finalize_python): Set gdb_python_initialized.
9834 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9835 when not initialized.
9837 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9839 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9840 <push_dwarf_reg_entry_value>: Remove assert. Override
9841 per_objfile with caller_per_objfile.
9843 2020-05-28 Tom de Vries <tdevries@suse.de>
9845 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9846 PR gold/15646 workaround to symbol kind "type".
9848 2020-05-27 Tom Tromey <tromey@adacore.com>
9850 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9852 2020-05-27 Tom Tromey <tromey@adacore.com>
9854 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9855 Use htab_find_with_hash.
9856 <add_abbrev>: Remove "abbrev_number" parameter.
9857 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9858 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9859 (hash_abbrev): Add comment.
9860 (abbrev_table::lookup_abbrev): Move to header file.
9861 (abbrev_table::read): Update.
9863 2020-05-27 Tom Tromey <tromey@adacore.com>
9865 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9867 <canonical_name>: New member.
9868 <raw_name>: Rename from "name".
9869 (partial_die_info): Initialize canonical_name.
9870 (scan_partial_symbols): Check raw_name.
9871 (partial_die_parent_scope, partial_die_full_name)
9872 (add_partial_symbol, add_partial_subprogram)
9873 (add_partial_enumeration, load_partial_dies): Use "name" method.
9874 (partial_die_info::name): New method.
9875 (partial_die_info::read, guess_partial_die_structure_name)
9876 (partial_die_info::fixup): Update.
9878 2020-05-27 Tom Tromey <tromey@adacore.com>
9880 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9881 <get_ref_die_offset>: Inline.
9882 <get_ref_die_offset_complaint>: New method.
9883 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9884 (attribute::get_ref_die_offset_complaint): Rename from
9885 get_ref_die_offset. Just issue complaint.
9887 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9889 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9891 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9893 * exec.c (exec_file_attach): Use errno value of first openp failure.
9895 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9897 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9898 Don't close thread handle.
9900 2020-05-27 Tom Tromey <tom@tromey.com>
9901 Simon Marchi <simon.marchi@efficios.com>
9903 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9905 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9907 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9908 dwarf2_per_bfd_objfile_data_key>: New globals.
9909 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9910 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9911 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9913 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9914 short-circuit when sharing.
9915 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9916 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9918 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9920 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9922 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9923 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9925 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9927 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9928 build_name_components, find_name_components_bounds>:
9929 Add per_objfile parameter.
9930 (struct mapped_index) <symbol_name_at>: Likewise.
9931 (struct mapped_debug_names): Remove constructor.
9932 <dwarf2_per_objfile>: Remove field.
9933 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9934 (mapped_index_base::find_name_components_bounds,
9935 mapped_index_base::build_name_components,
9936 dw2_expand_symtabs_matching_symbol): Likewise.
9937 (class mock_mapped_index) <symbol_name_at>: Likewise.
9938 (check_match): Likewise.
9939 (check_find_bounds_finds): Likewise.
9940 (test_mapped_index_find_name_component_bounds): Update.
9941 (CHECK_MATCH): Update.
9942 (dw2_expand_symtabs_matching): Update.
9943 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9944 per_objfile parameter.
9945 <find_vec_in_debug_names>: Likewise.
9946 <m_per_objfile>: New field.
9947 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9949 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9950 (dw2_debug_names_iterator::next): Update.
9951 (dw2_debug_names_lookup_symbol): Update.
9952 (dw2_debug_names_expand_symtabs_for_function): Update.
9953 (dw2_debug_names_map_matching_symbols): Update.
9954 (dw2_debug_names_expand_symtabs_matching): Update.
9955 (dwarf2_read_debug_names): Update.
9957 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9959 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9960 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9961 move to dwarf2_per_objfile.
9962 <read_in_chain>: Remove.
9963 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9964 remove_all_cus, age_comp_units>: New methods.
9965 <m_dwarf2_cus>: New member.
9966 (struct dwarf2_per_cu_data) <cu>: Remove.
9967 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9968 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9969 moved to methods of dwarf2_per_objfile.
9970 (dwarf2_clear_marks): Remove.
9971 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9972 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9973 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9974 (dwarf2_per_objfile::remove_all_cus): New.
9975 (class free_cached_comp_units) <~free_cached_comp_units>:
9978 (dw2_do_instantiate_symtab): Adjust.
9979 (fill_in_sig_entry_from_dwo_entry): Adjust.
9980 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9981 (cutu_reader::cutu_reader): Likewise.
9982 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9983 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9984 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9985 and dwarf2_per_objfile::age_comp_units.
9986 (load_partial_comp_unit): Update.
9987 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9988 (process_queue): Likewise.
9989 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9991 (dwarf2_read_addr_index): Likewise.
9992 (follow_die_offset): Likewise.
9993 (dwarf2_fetch_die_loc_sect_off): Likewise.
9994 (dwarf2_fetch_constant_bytes): Likewise.
9995 (dwarf2_fetch_die_type_sect_off): Likewise.
9996 (follow_die_sig_1): Likewise.
9997 (load_full_type_unit): Likewise.
9998 (read_signatured_type): Likewise.
9999 (dwarf2_cu::dwarf2_cu): Don't set cu field.
10000 (dwarf2_cu::~dwarf2_cu): Remove.
10001 (dwarf2_per_objfile::get_cu): New.
10002 (dwarf2_per_objfile::set_cu): New.
10003 (age_cached_comp_units): Rename to...
10004 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
10005 to std::unordered_map.
10006 (free_one_cached_comp_unit): Rename to...
10007 (dwarf2_per_objfile::remove_cu): ... this. Adjust
10008 to std::unordered_map.
10009 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
10010 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
10011 a dwarf2_per_objfile in data.
10012 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
10013 (dwarf2_clear_marks): Remove.
10015 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10017 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
10018 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
10019 (init_tu_and_read_dwo_dies): Likewise.
10020 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
10021 (cutu_reader::cutu_reader): Likewise.
10022 (load_partial_comp_unit): Likewise.
10023 (process_psymtab_comp_unit): Update.
10024 (build_type_psymtabs_1): Update.
10025 (process_skeletonless_type_unit): Update.
10026 (load_full_comp_unit): Update.
10027 (find_partial_die): Update.
10028 (dwarf2_read_addr_index): Update.
10029 (read_signatured_type): Update.
10031 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10033 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
10034 m_header_read_in>: New fields.
10035 <get_header>: New method.
10036 * dwarf2/read.c (per_cu_header_read_in): Remove.
10037 (dwarf2_per_cu_data::get_header): New.
10038 (dwarf2_per_cu_data::addr_size): Update.
10039 (dwarf2_per_cu_data::offset_size): Update.
10040 (dwarf2_per_cu_data::ref_addr_size): Update.
10042 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10044 * dwarf2/read.c (load_cu): Return dwarf2_cu.
10045 (dw2_do_instantiate_symtab): Update.
10046 (queue_and_load_all_dwo_tus): Change parameter from
10047 dwarf2_per_cu_data to dwarf2_cu.
10048 (dwarf2_fetch_die_loc_sect_off): Update.
10049 (dwarf2_fetch_constant_bytes): Update.
10050 (dwarf2_fetch_die_type_sect_off): Update.
10052 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10054 * dwarf2/read.c (process_full_comp_unit,
10055 process_full_type_unit): Remove per_cu, per_objfile paramters.
10056 Add dwarf2_cu parameter.
10057 (process_queue): Update.
10059 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10061 * dwarf2/read.c (create_cu_from_index_list): Replace
10062 dwarf2_per_objfile parameter with dwarf2_per_bfd.
10063 (create_cus_from_index_list): Likewise.
10064 (create_cus_from_index): Likewise.
10065 (create_signatured_type_table_from_index): Likewise.
10066 (create_cus_from_debug_names_list): Likewise.
10067 (create_cus_from_debug_names): Likewise.
10068 (dwarf2_read_gdb_index): Update.
10069 (dwarf2_read_debug_names): Update.
10071 2020-05-27 Tom Tromey <tom@tromey.com>
10072 Simon Marchi <simon.marchi@efficios.com>
10074 * dwarf2/read.h (struct dwarf2_per_objfile)
10075 <get_type_for_signatured_type, set_type_for_signatured_type>:
10077 <m_type_map>: New member.
10078 (struct signatured_type) <type>: Remove.
10080 (dwarf2_per_objfile::get_type_for_signatured_type,
10081 dwarf2_per_objfile::set_type_for_signatured_type): New.
10082 (get_signatured_type): Use new methods.
10084 2020-05-27 Tom Tromey <tom@tromey.com>
10085 Simon Marchi <simon.marchi@efficios.com>
10087 * dwarf2/read.h (struct type_unit_group_unshareable): New.
10088 (struct dwarf2_per_objfile) <type_units>: New member.
10089 <get_type_unit_group_unshareable>: New method.
10090 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
10091 num_symtabs, symtabs>: Remove; move to
10092 type_unit_group_unshareable.
10093 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
10094 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
10095 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
10097 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10099 * dwarf2/read.h (struct dwarf2_per_cu_data):
10100 <dwarf2_per_objfile>: Remove.
10101 * dwarf2/read.c (create_cu_from_index_list): Don't assign
10102 dwarf2_per_objfile.
10103 (create_signatured_type_table_from_index): Likewise.
10104 (create_signatured_type_table_from_debug_names): Likewise.
10105 (create_debug_type_hash_table): Likewise.
10106 (fill_in_sig_entry_from_dwo_entry): Likewise.
10107 (create_type_unit_group): Likewise.
10108 (read_comp_units_from_section): Likewise.
10109 (create_cus_hash_table): Likewise.
10111 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10113 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10114 dwarf2_per_cu_data::dwarf2_per_objfile.
10115 (compute_compunit_symtab_includes): Likewise.
10116 (dwarf2_cu::start_symtab): Likewise.
10118 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10120 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10122 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10123 (read_namespace_alias): Update.
10124 (lookup_die_type): Update.
10125 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10126 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10128 (disassemble_dwarf_expression): Update.
10130 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10132 * dwarf2/read.h (struct dwarf2_queue_item): Add
10133 dwarf2_per_objfile parameter, assign new parameter.
10134 <per_objfile>: New field.
10135 * dwarf2/read.c (free_one_cached_comp_unit): Add
10136 dwarf2_per_objfile parameter.
10137 (queue_comp_unit): Likewise.
10138 (dw2_do_instantiate_symtab): Update.
10139 (process_psymtab_comp_unit): Update.
10140 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10141 (process_imported_unit_die): Update.
10142 (queue_and_load_dwo_tu): Update.
10143 (follow_die_offset): Update.
10144 (follow_die_sig_1): Update.
10146 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10148 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10149 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10150 (read_call_site_scope): Assign per_objfile.
10151 (dwarf2_per_cu_data::objfile): Remove.
10152 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10153 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10154 dwarf2_per_objfile parameter.
10155 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10156 dwarf2_per_objfile parameter.
10157 (dwarf_expr_reg_to_entry_parameter): Add output
10158 dwarf2_per_objfile parameter.
10159 (locexpr_get_frame_base): Update.
10160 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10161 <push_dwarf_reg_entry_value>: Update.
10162 <call_site_to_target_addr>: Update.
10163 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10165 (value_of_dwarf_reg_entry): Update.
10166 (rw_pieced_value): Update.
10167 (indirect_synthetic_pointer): Update.
10168 (dwarf2_evaluate_property): Update.
10169 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10171 (locexpr_read_variable): Update.
10172 (locexpr_get_symbol_read_needs): Update.
10173 (loclist_read_variable): Update.
10175 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10177 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10178 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10179 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10181 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10182 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10183 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10185 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10186 sect_variable_value): Add dwarf2_per_objfile parameter.
10187 (class dwarf_evaluate_loc_desc) <dwarf_call,
10188 dwarf_variable_value>: Update.
10189 (fetch_const_value_from_synthetic_pointer): Add
10190 dwarf2_per_objfile parameter.
10191 (fetch_const_value_from_synthetic_pointer): Update.
10192 (coerced_pieced_ref): Update.
10193 (class symbol_needs_eval_context) <dwarf_call,
10194 dwarf_variable_value>: Update.
10195 (dwarf2_compile_expr_to_ax): Update.
10197 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10199 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10201 (dwarf2_evaluate_loc_desc_full): Update.
10203 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10205 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10207 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10208 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10209 dwarf2_per_objfile parameter.
10210 (decode_debug_loc_dwo_addresses): Likewise.
10211 (dwarf2_find_location_expression): Update.
10212 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10213 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10215 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10217 (locexpr_describe_location_1): Likewise.
10218 (locexpr_describe_location): Update.
10220 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10222 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10224 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10225 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10226 (dwarf2_compile_property_to_c): Update.
10227 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10228 use text offset from objfile.
10229 (locexpr_tracepoint_var_ref): Update.
10230 (locexpr_generate_c_location): Update.
10231 (loclist_describe_location): Update.
10232 (loclist_tracepoint_var_ref): Update.
10233 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10234 dwarf2_per_objfile parameter.
10235 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10236 use text offset from objfile.
10237 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10239 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10241 * dwarf2/expr.h (struct dwarf_expr_context)
10242 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10244 <per_objfile>: New member.
10245 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10246 dwarf2_per_objfile parameter. Don't set offset, set
10248 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10249 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10250 a dwarf2_per_objfile object instead of an offset.
10251 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10253 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10254 to dwarf2_expr_executor constructor. Don't set offset.
10255 (dwarf2_fetch_cfa_info): Update.
10256 (struct dwarf2_frame_cache) <text_offset>: Remove.
10257 <per_objfile>: New field.
10258 (dwarf2_frame_cache): Update.
10259 (dwarf2_frame_prev_register): Update.
10260 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10261 <dwarf_evaluate_loc_desc>: Add constructor.
10262 (dwarf2_evaluate_loc_desc_full): Update.
10263 (dwarf2_locexpr_baton_eval): Update.
10264 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10266 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10268 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10270 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10271 addr_sized_int_type>: Move to dwarf2_cu.
10272 <int_type>: Move to dwarf2_per_objfile.
10273 (struct dwarf2_per_objfile) <int_type>: Move here.
10274 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10275 addr_sized_int_type>: Move here.
10276 (read_func_scope): Update.
10277 (read_array_type): Update.
10278 (read_tag_string_type): Update.
10279 (attr_to_dynamic_prop): Update.
10280 (dwarf2_per_cu_data::int_type): Rename to...
10281 (dwarf2_per_objfile::int_type): ... this.
10282 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10283 (dwarf2_cu::addr_sized_int_type): ... this.
10284 (read_subrange_type): Update.
10285 (dwarf2_per_cu_data::addr_type): Rename to...
10286 (dwarf2_cu::addr_type): ... this.
10287 (set_die_type): Update.
10289 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10291 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10292 data through per_cu->cu.
10294 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10296 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10297 dwarf2_per_cu_data parameter fo dwarf2_cu.
10298 (lookup_dwo_type_unit): Likewise.
10299 (read_cutu_die_from_dwo): Likewise.
10300 (lookup_dwo_unit): Likewise.
10301 (open_and_init_dwo_file): Likewise.
10302 (lookup_dwo_cutu): Likewise.
10303 (lookup_dwo_comp_unit): Likewise.
10304 (lookup_dwo_type_unit): Likewise.
10305 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10306 (cutu_reader::cutu_reader): Update.
10308 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10310 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10312 (process_full_type_unit): Likewise.
10313 (process_queue): Update.
10315 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10317 * dwarf2/read.c (recursively_compute_inclusions): Add
10318 dwarf2_per_objfile parameter.
10319 (compute_compunit_symtab_includes): Likewise.
10320 (process_cu_includes): Update.
10322 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10324 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10326 (create_type_unit_group): Update.
10327 (process_psymtab_comp_unit_reader): Update.
10328 (build_type_psymtabs_reader): Update.
10330 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10332 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10333 object through m_this_cu->cu.
10335 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10337 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10338 the info parameter.
10339 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10341 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10343 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10344 per_objfile parameter.
10345 (load_full_type_unit): Add per_objfile parameter.
10346 (read_signatured_type): Likewise.
10347 (load_full_comp_unit): Likewise.
10348 (load_cu): Likewise.
10349 (dw2_do_instantiate_symtab): Likewise.
10350 (dw2_get_file_names): Likewise.
10351 (dw2_map_symtabs_matching_filename): Update.
10352 (dw_expand_symtabs_matching_file_matcher): Update.
10353 (dw2_map_symbol_filenames): Update.
10354 (process_psymtab_comp_unit): Add per_objfile parameter.
10355 (build_type_psymtabs_1): Update.
10356 (process_skeletonless_type_unit): Update.
10357 (dwarf2_build_psymtabs_hard): Update.
10358 (load_partial_comp_unit): Add per_objfile parameter.
10359 (scan_partial_symbols): Update.
10360 (load_full_comp_unit): Add per_objfile parameter.
10361 (process_imported_unit_die): Update.
10362 (create_cus_hash_table): Update.
10363 (find_partial_die): Update.
10364 (dwarf2_read_addr_index): Update.
10365 (follow_die_offset): Update.
10366 (dwarf2_fetch_die_loc_sect_off): Update.
10367 (dwarf2_fetch_constant_bytes): Update.
10368 (dwarf2_fetch_die_type_sect_off): Update.
10369 (follow_die_sig_1): Update.
10370 (load_full_type_unit): Add per_objfile parameter.
10371 (read_signatured_type): Likewise.
10373 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10375 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10378 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10380 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10381 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10382 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10384 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10385 (create_cus_from_index): Update.
10386 (dwarf2_read_gdb_index): Update.
10387 (create_cus_from_debug_names): Update.
10388 (dwarf2_read_debug_names): Update.
10389 (get_abbrev_section_for_cu): Update.
10390 (create_all_comp_units): Update.
10391 (read_attribute_value): Update.
10392 (get_debug_line_section): Update.
10393 * dwarf2/index-cache.c (index_cache::store): Update.
10394 * dwarf2/index-write.c (save_gdb_index_command): Update.
10395 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10397 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10399 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10401 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10402 dwarf2_per_cu_data::per_bfd.
10403 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10404 (create_type_unit_group): Likewise.
10405 (queue_comp_unit): Remove reference to
10406 per_cu->dwarf2_per_objfile.
10407 (maybe_queue_comp_unit): Likewise.
10408 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10409 (create_cus_hash_table): Assign new field.
10411 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10413 * dwarf2/read.c: Replace
10414 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10415 dwarf2_cu->per_objfile throughout.
10417 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10419 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10420 parameter, don't use per_cu->dwarf2_per_objfile.
10421 (dw2_instantiate_symtab): Likewise.
10422 (dw2_find_last_source_symtab): Update.
10423 (dw2_map_expand_apply): Update.
10424 (dw2_lookup_symbol): Update.
10425 (dw2_expand_symtabs_for_function): Update.
10426 (dw2_expand_all_symtabs): Update.
10427 (dw2_expand_symtabs_with_fullname): Update.
10428 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10429 don't use per_cu->dwarf2_per_objfile.
10430 (dw2_expand_marked_cus): Update.
10431 (dw2_find_pc_sect_compunit_symtab): Update.
10432 (dw2_debug_names_lookup_symbol): Update.
10433 (dw2_debug_names_expand_symtabs_for_function): Update.
10434 (dw2_debug_names_map_matching_symbols): Update.
10435 (dwarf2_psymtab::expand_psymtab): Update.
10437 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10439 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10440 <per_objfile>: New member.
10441 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10442 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10444 (cutu_reader::cutu_reader): Update.
10445 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10447 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10449 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10450 struct dwarf2_per_objfile.
10451 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10453 * dwarf2/read.c (set_die_type): Update.
10454 (get_die_type_at_offset): Update.
10456 2020-05-27 Tom Tromey <tom@tromey.com>
10457 Simon Marchi <simon.marchi@efficios.com>
10459 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10461 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10462 get_symtab, set_symtab>: New methods.
10463 <m_symtabs>: New field.
10464 (struct dwarf2_psymtab): Derive from partial_symtab.
10465 <readin_p, get_compunit_symtab>: Declare methods.
10466 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10467 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10469 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10470 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10471 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10472 (dw2_symtab_iter_next, dw2_print_stats)
10473 (dw2_expand_symtabs_with_fullname)
10474 (dw2_expand_symtabs_matching_one)
10475 (dw_expand_symtabs_matching_file_matcher)
10476 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10477 (dw2_debug_names_iterator::next)
10478 (dw2_debug_names_map_matching_symbols)
10479 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10480 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10481 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10483 (get_compunit_symtab, process_full_comp_unit)
10484 (process_full_type_unit): Update.
10485 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10487 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10489 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10490 then introduce a new dwarf2_per_objfile type.
10491 <read_line_string>: Move to the new dwarf2_per_objfile type.
10492 <objfile>: Likewise.
10493 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10494 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10495 dwarf2_per_objfile->per_bfd.
10496 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10497 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10498 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10499 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10500 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10501 (dwarf2_per_objfile::locate_sections): Rename to...
10502 (dwarf2_per_bfd::locate_sections): ... this.
10503 (dwarf2_per_objfile::get_cutu): Rename to...
10504 (dwarf2_per_bfd::get_cutu): ... this.
10505 (dwarf2_per_objfile::get_cu): Rename to...
10506 (dwarf2_per_bfd::get_cu): ... this.
10507 (dwarf2_per_objfile::get_tu): Rename to...
10508 (dwarf2_per_bfd::get_tu): ... this.
10509 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10510 (dwarf2_per_bfd::allocate_per_cu): ... this.
10511 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10512 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10513 (get_gdb_index_contents_ftype): Change parameter from
10514 dwarf2_per_objfile to dwarf2_per_bfd.
10515 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10516 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10518 2020-05-27 Tom Tromey <tom@tromey.com>
10519 Simon Marchi <simon.marchi@efficios.com>
10521 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10522 (allocate_piece_closure): Set "per_objfile" member.
10523 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10524 (locexpr_describe_location, loclist_describe_location): Use new
10526 * dwarf2/read.c (read_call_site_scope)
10527 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10528 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10529 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10530 handle_data_member_location): Set per_objfile member.
10531 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10533 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10535 2020-05-27 Tom Tromey <tom@tromey.com>
10537 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10538 allocate_signatured_type>: Declare new methods.
10539 <m_num_psymtabs>: New member.
10540 (struct dwarf2_per_cu_data) <index>: New member.
10541 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10542 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10543 (create_cu_from_index_list): Use allocate_per_cu.
10544 (create_signatured_type_table_from_index)
10545 (create_signatured_type_table_from_debug_names)
10546 (create_debug_type_hash_table, add_type_unit)
10547 (read_comp_units_from_section): Use allocate_signatured_type.
10549 2020-05-27 Tom Tromey <tom@tromey.com>
10551 * psymtab.c (partial_map_expand_apply)
10552 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10553 (psym_lookup_global_symbol_language)
10554 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10555 (psym_print_stats, psym_expand_symtabs_for_function)
10556 (psym_map_symbol_filenames, psym_map_matching_symbols)
10557 (psym_expand_symtabs_matching)
10558 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10559 (maintenance_check_psymtabs): Update.
10560 * psympriv.h (struct partial_symtab) <readin_p,
10561 get_compunit_symtab>: Add objfile parameter.
10562 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10564 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10565 get_compunit_symtab>: Likewise.
10566 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10568 2020-05-27 Tom Tromey <tom@tromey.com>
10570 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10572 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10573 (create_cu_from_index_list)
10574 (create_signatured_type_table_from_index)
10575 (create_signatured_type_table_from_debug_names)
10576 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10577 (dwarf2_create_include_psymtab)
10578 (create_debug_type_hash_table, add_type_unit)
10579 (create_type_unit_group, read_comp_units_from_section)
10580 (dwarf2_compute_name, create_cus_hash_table)
10581 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10582 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10584 (dw2_get_real_path): Likewise. Change argument to
10585 dwarf2_per_objfile.
10587 2020-05-27 Luis Machado <luis.machado@linaro.org>
10590 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10591 for ldrd (immediate).
10593 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10595 * command.h: Add comment giving the name of class_tui.
10596 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10597 create the fake command for the help for class_tui.
10599 2020-05-26 Tom Tromey <tromey@adacore.com>
10601 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10602 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10603 (val_atr): New function.
10604 (value_val_atr): Use it.
10605 * ada-valprint.c (print_optional_low_bound): Change low bound
10606 handling for enums.
10607 (val_print_packed_array_elements): Don't call discrete_position.
10608 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10609 discrete_position for enum types.
10610 * language.c (default_print_array_index): Change type.
10611 * language.h (struct language_defn) <la_print_array_index>: Add
10612 index_type parameter, change type of index_value.
10613 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10614 (default_print_array_index): Update.
10615 * valprint.c (maybe_print_array_index): Don't call
10616 value_from_longest. Update.
10617 (value_print_array_elements): Don't call discrete_position.
10619 2020-05-26 Tom Tromey <tromey@adacore.com>
10621 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10622 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10624 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10627 * avr-tdep.c (avr_integer_to_address): Return data or code
10628 address accordingly to the second 'type' argument of the
10631 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10633 * infcmd.c, inferior.h: (construct_inferior_arguments):
10634 Moved function from here to gdbsupport/common-inferior.{h,cc}
10636 2020-05-23 Tom Tromey <tom@tromey.com>
10638 Revert commit eca1f90c:
10639 * NEWS: Remove entry for completion styling.
10640 * completer.c (_rl_completion_prefix_display_length): Move
10642 (gdb_fnprint): Revert.
10643 (gdb_display_match_list_1): Likewise.
10644 * cli/cli-style.c (completion_prefix_style)
10645 (completion_difference_style, completion_suffix_style): Remove.
10646 (_initialize_cli_style): Revert.
10647 * cli/cli-style.h (completion_prefix_style)
10648 (completion_difference_style, completion_suffix_style): Don't
10651 2020-05-24 Pedro Alves <palves@redhat.com>
10653 * symtab.c (completion_list_add_name): Return boolean indication
10654 of whether the symbol matched.
10655 (completion_list_add_symbol): Don't try to remove C++ aliases if
10656 the symbol didn't match in the first place.
10657 * symtab.h (completion_list_add_name): Return bool.
10659 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10661 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10664 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10668 2020-05-23 Tom Tromey <tom@tromey.com>
10670 * NEWS: Add entry for completion styling.
10671 * completer.c (_rl_completion_prefix_display_length): Move
10672 declaration earlier.
10673 (gdb_fnprint): Use completion_style.
10674 (gdb_display_match_list_1): Likewise.
10675 * cli/cli-style.c (completion_prefix_style)
10676 (completion_difference_style, completion_suffix_style): New
10678 (_initialize_cli_style): Register new globals.
10679 * cli/cli-style.h (completion_prefix_style)
10680 (completion_difference_style, completion_suffix_style): Declare.
10682 2020-05-23 Pedro Alves <palves@redhat.com>
10684 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10685 (parse_escape): Use ISDIGIT instead of isdigit.
10686 (puts_debug): Use gdb_isprint instead of isprint.
10687 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10688 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10689 ISSPACE instead of isspace.
10690 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10691 instead of isspace.
10692 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10693 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10694 instead of isxdigit and ISDIGIT instead of isdigit.
10696 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10698 * gdbtypes.h (struct type) <field>: New method.
10699 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10702 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10704 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10705 (TYPE_FIELDS): Use type::fields. Change all call sites that
10706 modify the propery to use type::set_fields instead.
10708 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10710 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10711 type::num_fields instead.
10713 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10715 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10717 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10718 that modify the number of fields to use type::set_num_fields
10721 2020-05-22 Tom Tromey <tromey@adacore.com>
10723 * compile/compile-object-load.h (munmap_list_free): Don't
10726 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10728 * annotate.c (annotate_source_line): Update return type, add call
10729 to update current symtab and line.
10730 * annotate.h (annotate_source_line): Update return type, and
10731 extend header comment.
10732 * source.c (info_line_command): Check annotation_level before
10733 calling annotate_source_line.
10734 * stack.c (print_frame_info): If calling annotate_source_line
10735 returns true, then don't print any other source line information.
10737 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10739 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10741 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10743 * coffread.c (patch_type): Remove NULL check before xfree.
10744 * corefile.c (set_gnutarget): Likewise.
10745 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10746 * exec.c (build_section_table): Likewise.
10747 * remote.c (remote_target::pass_signals): Likewise.
10748 * utils.c (n_spaces): Likewise.
10749 * cli/cli-script.c (document_command): Likewise.
10750 * i386-windows-tdep.c (core_process_module_section): Likewise.
10751 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10753 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10755 * symfile.c (reread_symbols): Clear objfile's section_offsets
10756 vector and section indices, re-compute them by calling
10759 2020-05-20 Tom Tromey <tromey@adacore.com>
10761 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10762 (desc_one_bound, desc_index_type): Compute field name.
10764 2020-05-20 Tom de Vries <tdevries@suse.de>
10767 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10769 2020-05-20 Alan Modra <amodra@gmail.com>
10772 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10774 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10775 passed to bfd_set_filename.
10776 * symfile-mem.c (add_vsyscall_page): Likewise for string
10777 passed to symbol_file_add_from_memory.
10778 (symbol_file_add_from_memory): Make name param a const char* and
10781 2020-05-20 Alan Modra <amodra@gmail.com>
10783 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10784 rather than accessing bfd->filename directly.
10785 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10786 and use bfd_section_name.
10787 * dwarf2/frame.c (decode_frame_entry): Likewise.
10788 * exec.c (exec_set_section_address): Likewise.
10789 * solib-aix.c (solib_aix_bfd_open): Likewise.
10790 * stap-probe.c (get_stap_base_address): Likewise.
10791 * symfile.c (reread_symbols): Likewise.
10793 2020-05-19 Tom Tromey <tromey@adacore.com>
10795 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10797 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10799 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10801 2020-05-19 Pedro Alves <palves@redhat.com>
10803 * NEWS (set exec-file-mismatch): Adjust entry.
10804 * exec.c: Include "build-id.h".
10805 (validate_exec_file): Try to match build IDs instead of filenames.
10806 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10807 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10808 and pass down 'warn_if_slow'.
10809 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10810 gdb_bfd_open_closure to pass it down.
10811 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10813 2020-05-19 Pedro Alves <palves@redhat.com>
10815 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10816 * target.c (target_fileio_open_1): Rename to target_fileio_open
10817 and make extern. Use bool.
10818 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10819 (target_fileio_read_alloc_1): Adjust.
10820 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10821 (target_fileio_open_warn_if_slow): Delete declaration.
10823 2020-05-19 Pedro Alves <palves@redhat.com>
10825 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10826 Adjust all callers.
10828 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10830 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10831 whether disp is negative.
10833 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10835 * symfile.h (struct symfile_segment_data)
10836 <~symfile_segment_data>: Remove.
10837 <segment_info>: Change to std::vector.
10838 * symfile.c (default_symfile_segments): Update.
10839 * elfread.c (elf_symfile_segments): Update.
10841 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10843 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10845 <segment_bases, segment_sizes>: Remove.
10846 * symfile.c (default_symfile_segments): Update.
10847 * elfread.c (elf_symfile_segments): Update.
10848 * remote.c (remote_target::get_offsets): Update.
10849 * solib-target.c (solib_target_relocate_section_addresses):
10852 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10854 * symfile.h (struct symfile_segment_data): Initialize fields.
10855 <~symfile_segment_data>: Add.
10856 (symfile_segment_data_up): New.
10857 (struct sym_fns) <sym_segments>: Return a
10858 symfile_segment_data_up.
10859 (default_symfile_segments): Return a symfile_segment_data_up.
10860 (free_symfile_segment_data): Remove.
10861 (get_symfile_segment_data): Return a symfile_segment_data_up.
10862 * symfile.c (default_symfile_segments): Likewise.
10863 (get_symfile_segment_data): Likewise.
10864 (free_symfile_segment_data): Remove.
10865 (symfile_find_segment_sections): Update.
10866 * elfread.c (elf_symfile_segments): Return a
10867 symfile_segment_data_up.
10868 * remote.c (remote_target::get_offsets): Update.
10869 * solib-target.c (solib_target_relocate_section_addresses):
10871 * symfile-debug.c (debug_sym_segments): Return a
10872 symfile_segment_data_up.
10874 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10877 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10878 Hardcode register numbers.
10881 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10882 procfs_find_LDT_entry): Remove.
10883 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10884 procfs_find_LDT_entry): Remove.
10885 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10888 2020-05-17 Pedro Alves <palves@redhat.com>
10889 Andrew Burgess <andrew.burgess@embecosm.com>
10890 Keno Fischer <keno@juliacomputing.com>
10893 * breakpoint.c (build_target_condition_list): Update comments.
10894 (build_target_command_list): Update comments and skip matching
10896 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10897 a separate function. Simplify "set breakpoint auto-hw off"
10899 (insert_breakpoints): Update comment.
10900 (tracepoint_locations_match): New parameter. For breakpoints,
10901 compare location types too, if the caller wants to.
10902 (handle_automatic_hardware_breakpoints): New functions.
10903 (bp_location_is_less_than): Also sort by location type and
10904 hardware breakpoint length.
10905 (update_global_location_list): Handle "set breakpoint auto-hw on"
10907 (update_breakpoint_locations): Ask breakpoint_locations_match to
10908 ignore location types.
10910 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10912 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10913 type::name instead.
10915 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10917 * gdbtypes.h (struct type) <name, set_name>: New methods.
10918 (TYPE_CODE): Use type::name. Change all call sites used to set
10919 the name to use type::set_name instead.
10921 2020-05-16 Tom Tromey <tom@tromey.com>
10923 * top.c (quit_force): Update.
10924 * infrun.c (handle_no_resumed): Update.
10925 * top.h (all_uis): New function.
10928 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10930 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10932 2020-05-16 Pedro Alves <palves@redhat.com>
10935 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10937 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10939 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10941 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10942 (sparc64_adi_info): Likewise.
10944 2020-05-15 Tom Tromey <tom@tromey.com>
10946 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10948 (lookup_objfile_from_block): Remove.
10949 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10950 (lookup_global_symbol): Use block_objfile.
10951 * symtab.h (lookup_objfile_from_block): Don't declare.
10952 * printcmd.c (clear_dangling_display_expressions): Use
10954 * parse.c (operator_check_standard): Use block_objfile.
10956 2020-05-15 Tom Tromey <tom@tromey.com>
10958 * language.c (language_alloc_type_symbol): Set
10960 * symtab.c (initialize_objfile_symbol): Remove.
10961 (allocate_symbol): Remove.
10962 (allocate_template_symbol): Remove.
10963 * dwarf2/read.c (fixup_go_packaging): Use "new".
10964 (new_symbol): Use "new".
10965 (read_variable): Don't call initialize_objfile_symbol. Use
10967 (read_func_scope): Use "new".
10968 * xcoffread.c (process_xcoff_symbol): Don't call
10969 initialize_objfile_symbol.
10970 (SYMBOL_DUP): Remove.
10971 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10973 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10974 (allocate_template_symbol): Don't declare.
10975 (struct symbol): Add copy constructor. Change defaults.
10976 * jit.c (finalize_symtab): Use "new".
10977 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10979 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10980 (common_block_end): Use "new".
10981 * mdebugread.c (parse_symbol): Use "new".
10982 (new_symbol): Likewise.
10984 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10986 * NEWS: Mention changes to help and apropos.
10988 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10990 * command.h (enum command_class): Improve comments, document
10991 that class_alias is for user-defined aliases, give the class
10992 name for each class, remove unused class_xdb.
10993 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10994 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10995 by a precise class.
10996 * infcmd.c (_initialize_infcmd): Likewise.
10997 * reverse.c (_initialize_reverse): Likewise.
10998 * stack.c (_initialize_stack): Likewise.
10999 * symfile.c (_initialize_symfile): Likewise.
11000 * tracepoint.c (_initialize_tracepoint): Likewise.
11002 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11004 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
11005 when their aliased command is traversed.
11006 (help_cmd): Add fput_command_names_styled call to
11007 output command name and aliases when command has an alias.
11009 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11011 * cli/cli-decode.h (help_cmd_list): Remove declaration.
11012 * cli/cli-decode.c (help_cmd_list): Declare as static,
11013 remove prefix argument, use bool for recurse arg, rework to show the aliases of
11014 a command together with the command.
11015 (fput_command_name_styled, fput_command_names_styled): New functions.
11016 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
11017 fput_command_name_styled.
11018 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
11019 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
11021 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11023 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
11024 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
11025 * command.h (cmd_show_list): Likewise.
11026 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
11027 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
11029 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11031 * unittests/command-def-selftests.c (traverse_command_structure):
11032 Verify all commands of a list have the same prefix command and
11033 that only the top cmdlist commands have a null prefix.
11035 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11037 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
11038 as prefix, not one of its aliases.
11039 (set_cmd_prefix): Remove.
11040 (do_add_cmd): Centralize the setting of the prefix of a command, when
11041 command is defined after its full chain of prefix commands.
11042 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
11043 (add_setshow_cmd_full): Likewise.
11044 (update_prefix_field_of_prefixed_commands): New function.
11045 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
11046 update_prefix_field_of_prefixed_commands.
11047 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
11048 addresses of remote_set_cmdlist and remote_show_cmdlist given
11049 as argument, not the address of an argument.
11050 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
11051 * gdb/remote.c (_initialize_remote): Likewise.
11053 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11055 * cli/cli-cmds.c (alias_command): Check for an existing alias
11056 using lookup_cmd_composition, as valid_command_p is too strict
11057 and forbids aliases that are the prefix of an existing alias
11059 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
11060 command is properly recognised as a valid command.
11062 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11064 * unittests/help-doc-selftests.c: Rename to
11065 unittests/command-def-selftests.c
11066 * unittests/command-def-selftests.c (help_doc_tests): Update some
11068 (command_structure_tests, traverse_command_structure): New namespace
11070 (command_structure_invariants_tests): New function.
11071 (_initialize_command_def_selftests) Renamed from
11072 _initialize_help_doc_selftests, register command_structure_invariants
11075 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11077 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
11078 an alias of 'show'.
11080 2020-05-15 Joel Brobecker <brobecker@adacore.com>
11082 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
11083 ada_is_fixed_point_type. Update all callers.
11084 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
11086 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
11087 Update all callers.
11088 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
11089 print_fixed_point_type. Update all callers.
11090 * ada-valprint.c (ada_value_print_num): Replace call to
11091 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
11093 2020-05-14 Kevin Buettner <kevinb@redhat.com>
11095 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
11097 (cpu_supports_bts): Add CV_AMD case.
11099 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
11100 Simon Marchi <simon.marchi@efficios.com>
11102 * infrun.c (stop_all_threads): Collect multiple wait events at
11105 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11107 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11108 type::code instead.
11110 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11112 * gdbtypes.h (struct type) <code, set_code>: New methods.
11113 (TYPE_CODE): Use type::code. Change all call sites used to set
11114 the code to use type::set_code instead.
11116 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11117 Tom de Vries <tdevries@suse.de>
11118 Pedro Alves <palves@redhat.com>
11121 * infrun.c (stop_all_threads): Do NOT ignore
11122 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11123 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11125 (handle_no_resumed): Remove code handling a live inferior with no
11127 * remote.c (has_single_non_exited_thread): New.
11128 (remote_target::update_thread_list): Do not delete a thread if is
11129 the last thread of the process.
11130 * thread.c (thread_select): Call delete_exited_threads instead of
11133 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11135 * infrun.c (stop_all_threads): Enable/disable thread events of all
11136 targets. Move a debug message denoting the end of the function
11137 into the SCOPED_EXIT block.
11139 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11141 * process-stratum-target.h: Include <set>.
11142 (all_non_exited_process_targets, switch_to_target_no_thread): New
11143 function declarations.
11144 * process-stratum-target.c (all_non_exited_process_targets)
11145 (switch_to_target_no_thread): New function implementations.
11147 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11149 * infrun.c (handle_inferior_event): Extract out a piece of code
11151 (mark_non_executing_threads): ...this new function.
11153 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11155 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11158 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11160 * regcache.c (regcache_read_pc_protected): New function
11161 implementation that returns 0 if the PC cannot read via
11162 'regcache_read_pc'.
11163 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11164 instead of 'regcache_read_pc'.
11165 (keep_going_pass_signal): Ditto.
11167 2020-05-13 Tom Tromey <tromey@adacore.com>
11169 * ada-lang.c (align_value): Remove.
11170 (ada_template_to_fixed_record_type_1): Use align_up.
11172 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11174 * async-event.c: Update the copyright year.
11175 * async-event.h: Update the copyright year.
11177 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
11179 * objfiles.h (is_addr_in_objfile,
11180 shared_objfile_contains_address_p): Return bool.
11181 * objfile.c (is_addr_in_objfile,
11182 shared_objfile_contains_address_p): Return bool.
11184 2020-05-11 Tom Tromey <tromey@adacore.com>
11186 * cli/cli-cmds.c (info_command): Restore.
11187 (_initialize_cli_cmds): Use add_prefix_command for "info".
11188 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11190 2020-05-11 Tom Tromey <tromey@adacore.com>
11192 * ada-lang.c (ada_value_primitive_field): Now public.
11193 * ada-lang.h (ada_value_primitive_field): Declare.
11194 * ada-valprint.c (print_field_values): Use
11195 ada_value_primitive_field for wrapper fields.
11197 2020-05-11 Tom de Vries <tdevries@suse.de>
11199 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11202 2020-05-11 Tom de Vries <tdevries@suse.de>
11205 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11206 with length 0, if not gdb-produced.
11207 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11209 2020-05-09 Tom de Vries <tdevries@suse.de>
11212 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11215 2020-05-09 Tom Tromey <tom@tromey.com>
11217 * top.c (server_command): Now bool.
11218 * top.h (server_command): Now bool.
11220 2020-05-08 Tom Tromey <tromey@adacore.com>
11222 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11223 already being processed.
11225 2020-05-08 Tom Tromey <tom@tromey.com>
11227 * printcmd.c (struct display) <next>: Remove.
11228 <display>: New constructor.
11229 <exp_string>: Now a std::string.
11230 <enabled_p>: Now a bool.
11231 (display_number): Move definition earlier.
11232 (displays): Rename from display_chain. Now a std::vector.
11233 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11234 (display_command): Update.
11235 (do_one_display, disable_display)
11236 (enable_disable_display_command, do_enable_disable_display):
11238 (free_display): Remove.
11239 (clear_displays): Rewrite.
11240 (delete_display): Update.
11241 (map_display_numbers): Use function_view. Remove "data"
11243 (do_delete_display): Remove.
11244 (undisplay_command): Update.
11245 (do_one_display, do_displays, disable_display)
11246 (info_display_command): Update.
11247 (do_enable_disable_display): Remove.
11248 (enable_disable_display_command)
11249 (clear_dangling_display_expressions): Update.
11251 2020-05-08 Tom Tromey <tom@tromey.com>
11253 * symtab.c (set_symbol_cache_size)
11254 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11255 (maintenance_print_symbol_cache_statistics): Update.
11256 * symmisc.c (print_symbol_bcache_statistics)
11257 (print_objfile_statistics, maintenance_print_objfiles)
11258 (maintenance_info_symtabs, maintenance_check_symtabs)
11259 (maintenance_expand_symtabs, maintenance_info_line_tables):
11261 * symfile-debug.c (set_debug_symfile): Update.
11262 * source.c (forget_cached_source_info): Update.
11263 * python/python.c (gdbpy_progspaces): Update.
11264 * psymtab.c (maintenance_info_psymtabs): Update.
11265 * probe.c (parse_probes): Update.
11266 * linespec.c (iterate_over_all_matching_symtabs)
11267 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11268 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11269 * exec.c (exec_target::close): Update.
11270 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11271 * breakpoint.c (print_one_breakpoint_location)
11272 (create_longjmp_master_breakpoint)
11273 (create_std_terminate_master_breakpoint): Update.
11274 * progspace.c (program_spaces): Now a std::vector.
11275 (maybe_new_address_space): Update.
11276 (add_program_space): Remove.
11277 (program_space::program_space): Update.
11278 (remove_program_space): Update.
11279 (number_of_program_spaces): Remove.
11280 (print_program_space, update_address_spaces): Update.
11281 * progspace.h (program_spaces): Change type.
11282 (ALL_PSPACES): Remove.
11283 (number_of_program_spaces): Don't declare.
11284 (struct program_space) <next>: Remove.
11286 2020-05-08 Tom Tromey <tom@tromey.com>
11288 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11289 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11290 (enable_break): Update.
11291 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11292 (frv_fdpic_find_canonical_descriptor): Update.
11293 (frv_fetch_objfile_link_map): Update.
11294 * progspace.c (program_space::free_all_objfiles): Update.
11295 (program_space::solibs): New method.
11296 * progspace.h (struct program_space) <solibs>: New method.
11297 * solist.h (master_so_list): Don't declare.
11298 (ALL_SO_LIBS): Remove.
11299 * solib.h (so_list_head): Remove.
11300 (update_solib_list): Update comment.
11301 * solib.c (master_so_list): Remove.
11302 (solib_used, update_solib_list, solib_add)
11303 (info_sharedlibrary_command, clear_solib)
11304 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11306 2020-05-08 Tom Tromey <tom@tromey.com>
11308 * extension.c (extension_languages): Now a std::array.
11309 (ALL_EXTENSION_LANGUAGES): Remove.
11310 (get_ext_lang_defn, get_ext_lang_of_file)
11311 (eval_ext_lang_from_control_command): Update.
11312 (finish_ext_lang_initialization)
11313 (auto_load_ext_lang_scripts_for_objfile)
11314 (ext_lang_type_printers::ext_lang_type_printers)
11315 (apply_ext_lang_type_printers)
11316 (ext_lang_type_printers::~ext_lang_type_printers)
11317 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11318 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11319 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11320 (get_matching_xmethod_workers, ext_lang_colorize)
11321 (ext_lang_before_prompt): Update.
11322 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11324 2020-05-08 Tom Tromey <tom@tromey.com>
11326 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11328 <swap_string, m_string>: Remove.
11329 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11331 * stabsread.c (define_symbol, read_type): Update.
11332 * linespec.c (find_linespec_symbols): Update.
11333 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11334 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11335 * dbxread.c (read_dbx_symtab): Update.
11336 * cp-support.h (cp_canonicalize_string_full)
11337 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11338 Return unique_xmalloc_ptr.
11339 * cp-support.c (inspect_type): Update.
11340 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11341 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11343 * c-typeprint.c (print_name_maybe_canonical): Update.
11344 * break-catch-throw.c (check_status_exception_catchpoint):
11347 2020-05-08 Tom de Vries <tdevries@suse.de>
11349 * infrun.c (follow_fork): Copy current_line and current_symtab to
11352 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11354 * async-event.c (struct async_signal_handler, struct
11355 async_event_handler): Reformat, remove typedef.
11357 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11359 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11360 access thistype->main_type->dyn_prop_list directly.
11362 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11364 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11365 (remove_dyn_prop): Remove. Update all users to use
11366 type::remove_dyn_prop.
11367 * gdbtypes.c (remove_dyn_prop): Rename to...
11368 (type::remove_dyn_prop): ... this.
11370 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11372 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11373 (add_dyn_prop): Remove. Update all users to use
11374 type::add_dyn_prop.
11375 * gdbtypes.c (add_dyn_prop): Rename to...
11376 (type::add_dyn_prop): ... this.
11378 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11380 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11381 (get_dyn_prop): Remove. Update all users to use
11383 * gdbtypes.c (get_dyn_prop): Rename to...
11384 (type::dyn_prop): ... this.
11386 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11388 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11390 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11392 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11393 instruction, skip it if it's there.
11395 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11397 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11399 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11401 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11402 * gdbtypes.c (recursive_dump_type): Remove use of
11405 2020-05-03 Tom Tromey <tom@tromey.com>
11407 * breakpoint.c (catch_command, tcatch_command): Remove.
11408 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11409 add_show_prefix_cmd.
11410 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11411 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11413 (add_internal_problem_command): Use add_basic_prefix_cmd,
11414 add_show_prefix_cmd.
11415 * mips-tdep.c (set_mipsfpu_command): Remove.
11416 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11417 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11418 (_initialize_index_cache): Use add_basic_prefix_cmd.
11419 * memattr.c (dummy_cmd): Remove.
11420 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11421 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11422 (_initialize_tui_win): Use add_basic_prefix_cmd,
11423 add_show_prefix_cmd.
11424 * cli/cli-logging.c (set_logging_command): Remove.
11425 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11426 add_show_prefix_cmd.
11427 (show_logging_command): Remove.
11428 * target.c (target_command): Remove.
11429 (add_target): Use add_basic_prefix_cmd.
11431 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11433 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11435 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11437 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11440 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11442 * nbsd-nat.c (nbsd_enable_proc_events)
11443 (nbsd_nat_target::post_startup_inferior): Add.
11444 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11445 (nbsd_nat_target::update_thread_list): Rewrite.
11446 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11447 "PTRACE_LWP_CREATE".
11448 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11450 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11452 * stack.c (_initialize_stack): Remove duplicated creation
11453 of "frame" command and "f" alias.
11455 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11458 * gdbtypes.c (check_typedef): Calculate size of array of
11461 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11464 * i386-tdep.c (i386_push_dummy_call): Call
11465 i386_thiscall_push_dummy_call.
11466 (i386_thiscall_push_dummy_call): New function.
11467 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11468 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11469 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11471 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11473 * gdbarch.sh (do_read): Add shellcheck disable directive for
11476 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11478 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11479 "referenced but not assigned" warning.
11481 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11483 * gdbarch.sh: Remove code that sets fallbackdefault.
11485 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11487 * gdbarch.sh: Use shell operators && and || instead of
11490 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11492 * gdbarch.sh: Use $(...) instead of `...`.
11494 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11496 * gdbarch.sh: Use double quotes around variables.
11498 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11500 * gdbarch.sh: Use %s with printf, instead of variables in the
11503 2020-04-29 Tom Tromey <tromey@adacore.com>
11506 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11508 (read_enumeration_type): Call
11509 update_enumeration_type_from_children later. Update comments.
11510 (process_enumeration_scope): Don't create type fields.
11512 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11514 * nbsd-tdep.c: Include "xml-syscall.h".
11515 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11517 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11519 * nbsd-nat.c: Include "sys/wait.h".
11520 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11521 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11522 (nbsd_nat_target::remove_exec_catchpoint)
11523 (nbsd_nat_target::set_syscall_catchpoint): Add.
11524 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11525 (nbsd_nat_target::insert_exec_catchpoint)
11526 (nbsd_nat_target::remove_exec_catchpoint)
11527 (nbsd_nat_target::set_syscall_catchpoint): Add.
11528 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11529 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11530 `nbsd_get_syscall_number'.
11532 2020-04-29 Tom Tromey <tom@tromey.com>
11534 * stack.c (print_block_frame_labels): Remove.
11536 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11539 * ada-valprint.c (val_print_packed_array_elements): Move array
11540 end bracket to new line.
11541 (ada_val_print_string): Remove extra spaces before first array
11543 * c-valprint.c (c_value_print_array): Likewise.
11544 * m2-valprint.c (m2_print_array_contents): Likewise.
11545 (m2_value_print_inner): Likewise.
11546 * p-valprint.c (pascal_value_print_inner): Likewise.
11547 * valprint.c (generic_val_print_array): Likewise.
11548 (value_print_array_elements): Move first array element and array
11549 end bracket to new line.
11551 2020-04-29 Tom de Vries <tdevries@suse.de>
11554 * linespec.c (find_method): Fix ix calculation.
11556 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11558 * syscalls/update-netbsd.sh: New file.
11559 * syscalls/netbsd.xml: Regenerate.
11560 * data-directory/Makefile.in: Register `netbsd.xml' in
11563 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11565 * syscalls/update-freebsd.sh: Add double quotes.
11567 2020-04-28 Tom Tromey <tom@tromey.com>
11570 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11571 (cmdpy_init): Allow class_tui.
11573 2020-04-28 Mark Williams <mark@myosotissp.com>
11576 * dwarf2read.c: Add missing assingments to list_in_scope when
11577 start_symtab was already called.
11579 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11582 * dwarf2/read.c (offset_map_type): Use
11583 gdb:hash_enum<sect_offset> as hash function.
11585 2020-04-28 Tom de Vries <tdevries@suse.de>
11587 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11588 with DW_AT_signature.
11590 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11592 * configure.ac: Remove check for fs_base/gs_base in
11594 * configure: Re-generate.
11595 * config.in: Re-generate.
11596 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11597 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11598 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11600 2020-04-27 Luis Machado <luis.machado@linaro.org>
11602 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11603 problematic inline frame unwinding situation.
11604 * frame.c (frame_id_computed_p): New function.
11605 * frame.h (frame_id_computed_p): New prototype.
11607 2020-04-26 Tom Tromey <tom@tromey.com>
11609 * command.h (enum command_class) <class_pseudo>: Remove.
11611 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11613 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11616 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11618 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11619 `PT_GET_PROCESS_STATE' block.
11621 2020-04-24 Tom Tromey <tom@tromey.com>
11623 * symtab.h (symbol_get_demangled_name): Don't declare.
11624 * symtab.c (symbol_get_demangled_name): Remove.
11625 (general_symbol_info::natural_name)
11626 (general_symbol_info::demangled_name): Update.
11628 2020-04-24 Tom Tromey <tom@tromey.com>
11631 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11633 2020-04-24 Tom Tromey <tom@tromey.com>
11636 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11638 (new_symbol): Likewise.
11639 * compile/compile-object-load.c (get_out_value_type): Use
11640 symbol_matches_search_name.
11642 2020-04-24 Tom Tromey <tom@tromey.com>
11644 * dwarf2/read.c (add_partial_symbol): Do not call
11645 compute_and_set_names.
11647 2020-04-24 Tom Tromey <tom@tromey.com>
11649 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11652 2020-04-24 Tom Tromey <tom@tromey.com>
11654 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11655 (add_psymbol_to_list): New overload. Make old overload call new
11657 * psympriv.h (add_psymbol_to_list): New overload.
11659 2020-04-24 Tom Tromey <tom@tromey.com>
11661 * dwarf2/read.c (partial_die_info::read) <case
11662 DW_AT_linkage_name>: Use value_as_string.
11663 (dwarf2_string_attr): Use value_as_string.
11664 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11666 * dwarf2/attribute.c (attribute::value_as_string): New method.
11668 2020-04-24 Tom Tromey <tom@tromey.com>
11670 * symtab.c (general_symbol_info::natural_name)
11671 (general_symbol_info::demangled_name): Check for language_rust.
11673 2020-04-24 Tom Tromey <tom@tromey.com>
11675 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11676 (dwarf2_physname): ... from here.
11677 (partial_die_info::read): Add Rust "{" hack.
11679 2020-04-24 Tom Tromey <tom@tromey.com>
11681 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11683 (symbol_set_demangled_name): Don't declare.
11684 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11685 symbol_set_demangled_name.
11686 (general_symbol_info::set_language)
11687 (general_symbol_info::compute_and_set_names): Update.
11688 * minsyms.c (minimal_symbol_reader::install): Update.
11689 * dwarf2/read.c (new_symbol): Update.
11691 2020-04-24 Tom Tromey <tromey@adacore.com>
11694 * python/py-type.c (convert_field): Handle
11695 FIELD_LOC_KIND_DWARF_BLOCK.
11696 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11697 (typy_get_dynamic): Nw function.
11698 (type_object_getset): Add "dynamic".
11701 2020-04-24 Tom Tromey <tromey@adacore.com>
11703 * ada-typeprint.c (print_choices, print_variant_part)
11704 (print_record_field_types_dynamic): New functions.
11705 (print_record_field_types): Use print_record_field_types_dynamic.
11707 2020-04-24 Tom Tromey <tromey@adacore.com>
11709 * dwarf2/read.c (handle_data_member_location): New overload.
11710 (dwarf2_add_field): Use it.
11711 (decode_locdesc): Add "computed" parameter. Update comment.
11712 * gdbtypes.c (is_dynamic_type_internal): Also look for
11713 FIELD_LOC_KIND_DWARF_BLOCK.
11714 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11715 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11716 virtual base classes.
11717 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11718 FIELD_LOC_KIND_DWARF_BLOCK.
11720 2020-04-24 Tom Tromey <tromey@adacore.com>
11722 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11723 * gdbtypes.c (is_dynamic_type_internal): Check
11724 TYPE_HAS_DYNAMIC_LENGTH.
11725 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11726 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11728 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11731 2020-04-24 Tom Tromey <tromey@adacore.com>
11733 * dwarf2/read.c (struct variant_field): Rewrite.
11734 (struct variant_part_builder): New.
11735 (struct nextfield): Remove "variant" field. Add "offset".
11736 (struct field_info): Add "current_variant_part" and
11738 (alloc_discriminant_info): Remove.
11739 (alloc_rust_variant): New function.
11740 (quirk_rust_enum): Update.
11741 (dwarf2_add_field): Set "offset" member. Don't handle
11742 DW_TAG_variant_part.
11743 (offset_map_type): New typedef.
11744 (convert_variant_range, create_one_variant)
11745 (create_one_variant_part, create_variant_parts)
11746 (add_variant_property): New functions.
11747 (dwarf2_attach_fields_to_type): Call add_variant_property.
11748 (read_structure_type): Don't handle DW_TAG_variant_part.
11749 (handle_variant_part, handle_variant): New functions.
11750 (handle_struct_member_die): Use them.
11751 (process_structure_scope): Don't handle variant parts.
11752 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11753 (struct discriminant_info): Remove.
11754 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11755 (struct main_type) <flag_discriminated_union>: Remove.
11756 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11757 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11758 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11760 * valops.c (value_union_variant): Remove.
11761 * value.h (value_union_variant): Don't declare.
11763 2020-04-24 Tom Tromey <tromey@adacore.com>
11765 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11766 (ada_value_primitive_packed_val): Update.
11767 * ada-valprint.c (ada_value_print_1): Update.
11768 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11769 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11770 just an address. Use evaluate_for_locexpr_baton.
11771 (dwarf2_evaluate_property): Update.
11772 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11774 * findvar.c (default_read_var_value): Update.
11775 * gdbtypes.c (compute_variant_fields_inner)
11776 (resolve_dynamic_type_internal): Update.
11777 (resolve_dynamic_type): Change type of valaddr parameter.
11778 * gdbtypes.h (resolve_dynamic_type): Update.
11779 * valarith.c (value_subscripted_rvalue): Update.
11780 * value.c (value_from_contents_and_address): Update.
11782 2020-04-24 Tom Tromey <tromey@adacore.com>
11784 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11785 "push_initial_value" parameter.
11786 (dwarf2_evaluate_property): Likewise.
11787 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11789 2020-04-24 Tom Tromey <tromey@adacore.com>
11791 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11792 (variant::matches, compute_variant_fields_recurse)
11793 (compute_variant_fields_inner, compute_variant_fields): New
11795 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11796 Use resolved_type after type is made.
11797 (operator==): Add new cases.
11798 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11799 (struct discriminant_range, struct variant, struct variant_part):
11801 (union dynamic_prop_data) <variant_parts, original_type>: New
11803 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11804 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11806 * value.c (unpack_bits_as_long): Now public.
11807 * value.h (unpack_bits_as_long): Declare.
11809 2020-04-24 Tom Tromey <tromey@adacore.com>
11811 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11812 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11814 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11816 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11818 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11820 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11821 (remove_fork_catchpoint, post_startup_inferior)
11822 (post_attach): Move...
11823 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11824 (remove_fork_catchpoint, post_startup_inferior)
11825 (post_attach): ...here.
11826 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11827 (remove_fork_catchpoint, post_startup_inferior)
11828 (post_attach): Move...
11829 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11830 (remove_fork_catchpoint, post_startup_inferior)
11831 (post_attach): ...here.
11833 2020-04-24 Tom Tromey <tromey@adacore.com>
11835 * nat/windows-nat.h (struct windows_thread_info)
11836 <pc_adjusted>: New member.
11837 * windows-nat.c (windows_fetch_one_register): Check
11839 (windows_nat_target::get_windows_debug_event)
11840 (windows_nat_target::wait): Set pc_adjusted.
11842 2020-04-24 Tom de Vries <tdevries@suse.de>
11844 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11845 Run gdb-add-index inside temp dir.
11847 2020-04-23 Tom Tromey <tromey@adacore.com>
11849 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11852 2020-04-23 Luis Machado <luis.machado@linaro.org>
11854 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11855 get_frame_register instead of gdbarch_unwind_pc.
11857 2020-04-23 Tom de Vries <tdevries@suse.de>
11859 * symtab.c (lookup_global_symbol): Prefer def over decl.
11861 2020-04-23 Tom de Vries <tdevries@suse.de>
11864 * block.c (best_symbol, better_symbol): Promote to external.
11865 * block.h (best_symbol, better_symbol): Declare.
11866 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11869 2020-04-23 Tom Tromey <tromey@adacore.com>
11872 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11873 "const char *", not a "const std::string &".
11874 <name_and_matcher::operator==>: Update.
11875 * unittests/lookup_name_info-selftests.c: Change type of
11878 2020-04-23 Tom Tromey <tom@tromey.com>
11880 * inferior.h (iterate_over_inferiors): Don't declare.
11881 * inferior.c (iterate_over_inferiors): Remove.
11882 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11884 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11885 use iterate_over_inferiors.
11886 (darwin_resume_inferior_it)
11887 (struct resume_inferior_threads_param)
11888 (darwin_resume_inferior_threads_it): Remove.
11889 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11891 2020-04-23 Tom de Vries <tdevries@suse.de>
11893 * blockframe.c (find_pc_partial_function): Use
11894 find_pc_sect_compunit_symtab rather than
11895 objfile->sf->qf->find_pc_sect_compunit_symtab.
11897 2020-04-22 Tom de Vries <tdevries@suse.de>
11900 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11903 2020-04-22 Tom de Vries <tdevries@suse.de>
11906 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11909 2020-04-22 Tom de Vries <tdevries@suse.de>
11912 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11913 CU if already created.
11915 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11917 * infrun.c (displaced_step_fixup): Switch to the event_thread
11918 before calling displaced_step_restore, not after.
11920 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11922 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11923 its inferior is not recorded by us.
11924 (record_btrace_target_open): Replace call to
11925 all_non_exited_threads () with call to current_inferior
11926 ()->non_exited_threads ().
11927 (record_btrace_target::stop_recording): Likewise.
11928 (record_btrace_target::close): Likewise.
11929 (record_btrace_target::wait): Likewise.
11930 (record_btrace_target::record_stop_replaying): Likewise.
11932 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11934 * btrace.c (btrace_enable): Throw an error on double enables and
11935 when enabling recording fails.
11936 (btrace_disable): Throw an error if the thread is not recorded.
11938 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11940 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11941 request if we do not have a thread_info.
11943 2020-04-21 Tom de Vries <tdevries@suse.de>
11947 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11948 exception in get_frame_id.
11950 2020-04-20 Tom Tromey <tromey@adacore.com>
11952 * python/python.c (struct gdbpy_event): Mark move constructor as
11954 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11955 constructor as noexcept.
11956 * completer.h (struct completion_result): Mark move constructor as
11958 * completer.c (completion_result::completion_result): Use
11959 initialization style. Don't call reset_match_list.
11961 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11963 * MAINTAINERS (Write After Approval): Add myself.
11965 2020-04-18 Tom Tromey <tom@tromey.com>
11967 * windows-tdep.c (init_w32_command_list)
11968 (w32_prefix_command_valid): Restore.
11969 (_initialize_windows_tdep): Call init_w32_command_list.
11971 2020-04-18 Tom Tromey <tom@tromey.com>
11973 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11974 * value.c (value_fn_field): Update.
11975 * valops.c (find_function_in_inferior)
11976 (value_allocate_space_in_inferior): Update.
11977 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11979 * tui/tui-source.c (tui_source_window::set_contents): Update.
11980 * symtab.c (lookup_global_or_static_symbol)
11981 (find_function_start_sal_1, skip_prologue_sal)
11982 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11983 * symmisc.c (dump_msymbols, dump_symtab_1)
11984 (maintenance_print_one_line_table): Update.
11985 * symfile.c (init_entry_point_info, section_is_mapped)
11986 (list_overlays_command, simple_read_overlay_table)
11987 (simple_overlay_update_1): Update.
11988 * stap-probe.c (handle_stap_probe): Update.
11989 * stabsread.c (dbx_init_float_type, define_symbol)
11990 (read_one_struct_field, read_enum_type, read_range_type): Update.
11991 * source.c (info_line_command): Update.
11992 * python/python.c (gdbpy_source_objfile_script)
11993 (gdbpy_execute_objfile_script): Update.
11994 * python/py-type.c (save_objfile_types): Update.
11995 * python/py-objfile.c (py_free_objfile): Update.
11996 * python/py-inferior.c (python_new_objfile): Update.
11997 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11998 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11999 (maintenance_check_psymtabs): Update.
12000 * printcmd.c (info_address_command): Update.
12001 * objfiles.h (struct objfile) <arch>: New method, from
12003 (get_objfile_arch): Don't declare.
12004 * objfiles.c (get_objfile_arch): Remove.
12005 (filter_overlapping_sections): Update.
12006 * minsyms.c (msymbol_is_function): Update.
12007 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
12008 (output_nondebug_symbol): Update.
12009 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
12010 (mdebug_expand_psymtab): Update.
12011 * machoread.c (macho_add_oso_symfile): Update.
12012 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
12014 * linux-fork.c (checkpoint_command): Update.
12015 * linespec.c (convert_linespec_to_sals): Update.
12016 * jit.c (finalize_symtab): Update.
12017 * infrun.c (insert_exception_resume_from_probe): Update.
12018 * ia64-tdep.c (ia64_find_unwind_table): Update.
12019 * hppa-tdep.c (internalize_unwinds): Update.
12020 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
12022 * gcore.c (call_target_sbrk): Update.
12023 * elfread.c (record_minimal_symbol, elf_symtab_read)
12024 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
12025 (elf_gnu_ifunc_resolve_by_got): Update.
12026 * dwarf2/read.c (create_addrmap_from_index)
12027 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12028 (read_debug_names_from_section)
12029 (process_psymtab_comp_unit_reader, add_partial_symbol)
12030 (add_partial_subprogram, process_full_comp_unit)
12031 (read_file_scope, read_func_scope, read_lexical_block_scope)
12032 (read_call_site_scope, dwarf2_ranges_read)
12033 (dwarf2_record_block_ranges, dwarf2_add_field)
12034 (mark_common_block_symbol_computed, read_tag_pointer_type)
12035 (read_tag_string_type, dwarf2_init_float_type)
12036 (dwarf2_init_complex_target_type, read_base_type)
12037 (partial_die_info::read, partial_die_info::read)
12038 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
12039 (dwarf2_fetch_die_loc_sect_off): Update.
12040 * dwarf2/loc.c (dwarf2_find_location_expression)
12041 (class dwarf_evaluate_loc_desc, rw_pieced_value)
12042 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
12043 (dwarf2_loc_desc_get_symbol_read_needs)
12044 (locexpr_describe_location_piece, locexpr_describe_location_1)
12045 (loclist_describe_location): Update.
12046 * dwarf2/index-write.c (write_debug_names): Update.
12047 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
12048 * dtrace-probe.c (dtrace_process_dof): Update.
12049 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
12050 (process_one_symbol): Update.
12051 * ctfread.c (ctf_init_float_type, read_base_type): Update.
12052 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
12053 (coff_read_enum_type): Update.
12054 * cli/cli-cmds.c (edit_command, list_command): Update.
12055 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
12056 * breakpoint.c (create_overlay_event_breakpoint)
12057 (create_longjmp_master_breakpoint)
12058 (create_std_terminate_master_breakpoint)
12059 (create_exception_master_breakpoint, get_sal_arch): Update.
12060 * block.c (block_gdbarch): Update.
12061 * annotate.c (annotate_source_line): Update.
12063 2020-04-17 Tom Tromey <tromey@adacore.com>
12065 * auto-load.c (show_auto_load_cmd): Remove.
12066 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
12067 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
12068 (maintenance_print_arc_command): Remove.
12069 * tui/tui-win.c (tui_command): Remove.
12070 (tui_get_cmd_list): Use add_basic_prefix_cmd.
12071 * tui/tui-layout.c (tui_layout_command): Remove.
12072 (_initialize_tui_layout): Use add_basic_prefix_cmd.
12073 * python/python.c (user_set_python, user_show_python): Remove.
12074 (_initialize_python): Use add_basic_prefix_cmd,
12075 add_show_prefix_cmd.
12076 * guile/guile.c (set_guile_command, show_guile_command): Remove.
12077 (install_gdb_commands): Use add_basic_prefix_cmd,
12078 add_show_prefix_cmd.
12079 (info_guile_command): Remove.
12080 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
12081 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
12082 add_show_prefix_cmd.
12083 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
12084 Remove do_set and do_show parameters.
12085 * cli/cli-style.c (set_style, show_style): Remove.
12086 (_initialize_cli_style): Use add_basic_prefix_cmd,
12087 add_show_prefix_cmd.
12088 (cli_style_option::add_setshow_commands): Remove do_set and
12089 do_show parameters.
12090 (cli_style_option::add_setshow_commands): Use
12091 add_basic_prefix_cmd, add_show_prefix_cmd.
12092 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
12093 (set_style_name): Remove.
12094 * cli/cli-dump.c (dump_command, append_command): Remove.
12095 (srec_dump_command, ihex_dump_command, verilog_dump_command)
12096 (tekhex_dump_command, binary_dump_command)
12097 (binary_append_command): Remove.
12098 (_initialize_cli_dump): Use add_basic_prefix_cmd.
12099 * windows-tdep.c (w32_prefix_command_valid): Remove global.
12100 (init_w32_command_list): Remove; move into ...
12101 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
12102 * valprint.c (set_print, show_print, set_print_raw)
12103 (show_print_raw): Remove.
12104 (_initialize_valprint): Use add_basic_prefix_cmd,
12105 add_show_prefix_cmd.
12106 * typeprint.c (set_print_type, show_print_type): Remove.
12107 (_initialize_typeprint): Use add_basic_prefix_cmd,
12108 add_show_prefix_cmd.
12109 * record.c (set_record_command, show_record_command): Remove.
12110 (_initialize_record): Use add_basic_prefix_cmd,
12111 add_show_prefix_cmd.
12112 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12113 add_show_prefix_cmd.
12114 (info_command, show_command, set_debug, show_debug): Remove.
12115 * top.h (set_history, show_history): Don't declare.
12116 * top.c (set_history, show_history): Remove.
12117 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12118 (unset_tdesc_cmd): Remove.
12119 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12120 add_show_prefix_cmd.
12121 * symtab.c (info_module_command): Remove.
12122 (_initialize_symtab): Use add_basic_prefix_cmd.
12123 * symfile.c (overlay_command): Remove.
12124 (_initialize_symfile): Use add_basic_prefix_cmd.
12125 * sparc64-tdep.c (info_adi_command): Remove.
12126 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12127 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12128 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12129 add_show_prefix_cmd.
12130 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12131 (_initialize_serial): Use add_basic_prefix_cmd,
12132 add_show_prefix_cmd.
12133 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12134 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12135 add_show_prefix_cmd.
12136 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12137 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12138 add_show_prefix_cmd.
12139 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12140 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12141 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12142 add_show_prefix_cmd.
12143 * remote.c (remote_command, set_remote_cmd): Remove.
12144 (_initialize_remote): Use add_basic_prefix_cmd.
12145 * record-full.c (set_record_full_command)
12146 (show_record_full_command): Remove.
12147 (_initialize_record_full): Use add_basic_prefix_cmd,
12148 add_show_prefix_cmd.
12149 * record-btrace.c (cmd_set_record_btrace)
12150 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12151 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12152 (cmd_show_record_btrace_pt): Remove.
12153 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12154 add_show_prefix_cmd.
12155 * ravenscar-thread.c (set_ravenscar_command)
12156 (show_ravenscar_command): Remove.
12157 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12158 add_show_prefix_cmd.
12159 * mips-tdep.c (show_mips_command, set_mips_command)
12160 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12161 add_show_prefix_cmd.
12162 * maint.c (maintenance_command, maintenance_info_command)
12163 (maintenance_check_command, maintenance_print_command)
12164 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12165 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12166 add_show_prefix_cmd.
12167 (show_per_command_cmd): Remove.
12168 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12170 (maintenance_show_test_settings_cmd): Remove.
12171 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12172 add_show_prefix_cmd.
12173 * maint-test-options.c (maintenance_test_options_command):
12175 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12176 * macrocmd.c (macro_command): Remove
12177 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12178 * language.c (set_check, show_check): Remove.
12179 (_initialize_language): Use add_basic_prefix_cmd,
12180 add_show_prefix_cmd.
12181 * infcmd.c (unset_command): Remove.
12182 (_initialize_infcmd): Use add_basic_prefix_cmd.
12183 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12184 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12185 add_show_prefix_cmd.
12186 * go32-nat.c (go32_info_dos_command): Remove.
12187 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12188 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12189 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12190 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12191 (_initialize_frame): Use add_basic_prefix_cmd,
12192 add_show_prefix_cmd.
12193 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12194 (_initialize_dcache): Use add_basic_prefix_cmd,
12195 add_show_prefix_cmd.
12196 * cp-support.c (maint_cplus_command): Remove.
12197 (_initialize_cp_support): Use add_basic_prefix_cmd.
12198 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12199 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12200 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12201 add_basic_prefix_cmd, add_show_prefix_cmd.
12202 * breakpoint.c (save_command): Remove.
12203 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12204 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12205 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12206 add_show_prefix_cmd.
12207 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12208 (set_ada_command, show_ada_command): Remove.
12209 (_initialize_ada_language): Use add_basic_prefix_cmd,
12210 add_show_prefix_cmd.
12211 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12213 2020-04-16 Kamil Rytarowski <n54@gmx.com>
12215 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12216 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12218 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12220 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12223 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12225 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12226 import table is not at beginning of .idata section.
12228 2020-04-16 Pedro Alves <palves@redhat.com>
12230 * inferior.c (delete_inferior): Use delete operator directly
12231 instead of delete_program_space.
12232 * progspace.c (add_program_space): New, factored out from
12233 program_space::program_space.
12234 (remove_program_space): New, factored out from
12235 delete_program_space.
12236 (program_space::program_space): Remove intro comment. Rewrite.
12237 (program_space::~program_space): Remove intro comment. Call
12238 remove_program_space.
12239 (delete_program_space): Delete.
12240 * progspace.h (program_space::program_space): Make explicit. Move
12241 intro comment here, adjusted.
12242 (program_space::~program_space): Move intro comment here,
12244 (delete_program_space): Remove.
12246 2020-04-16 Tom Tromey <tromey@adacore.com>
12248 * windows-nat.c (windows_nat::handle_access_violation): New
12250 * nat/windows-nat.h (handle_access_violation): Declare.
12251 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12252 windows-nat.c. Call handle_access_violation.
12254 2020-04-16 Tom de Vries <tdevries@suse.de>
12257 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12258 CUs without psymtab.
12260 2020-04-16 Kevin Buettner <kevinb@redhat.com>
12262 * python/python.c (do_start_initialization): Don't call
12263 PyEval_InitThreads for Python 3.9 and beyond.
12265 2020-04-15 Kamil Rytarowski <n54@gmx.com>
12267 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12269 (obsd_nat_target::wait): Likewise.
12271 2020-04-15 Tom Tromey <tromey@adacore.com>
12273 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12274 (DEBUG_EXCEPT): Use debug_printf.
12276 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12278 * completer.c (class completion_tracker::completion_hash_entry)
12279 <hash_name>: New member function.
12280 (completion_tracker::discard_completions): New callback to hash a
12281 completion_hash_entry, pass this to htab_create_alloc.
12283 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12285 * windows-nat.c (windows_make_so): Warn rather than stopping with
12286 an error if realpath() fails.
12288 2020-04-14 Kamil Rytarowski <n54@gmx.com>
12290 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12291 (nbsd_nat_target::info_proc): Add do_status.
12293 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12294 Tom de Vries <tdevries@suse.de>
12297 * psympriv.h (struct partial_symtab::read_symtab)
12298 (struct partial_symtab::expand_psymtab)
12299 (struct partial_symtab::read_dependencies): Update comments.
12300 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12301 read_symtab for includer.
12302 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12303 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12304 (struct dwarf2_include_psymtab::m_readin): Remove.
12305 (struct dwarf2_include_psymtab::includer): New member function.
12306 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12308 2020-04-14 Tom de Vries <tdevries@suse.de>
12311 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12312 with NULL symbol_matcher and lookup_name.
12313 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12315 * dwarf2/read.c (dw2_expand_symtabs_matching)
12316 (dw2_debug_names_expand_symtabs_matching): Same.
12317 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12318 Make lookup_name a pointer. Update comment.
12319 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12320 lookup_name being a pointer.
12321 * symfile.c (expand_symtabs_matching): Same.
12322 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12323 * linespec.c (iterate_over_all_matching_symtabs): Same.
12325 2020-04-13 Tom Tromey <tom@tromey.com>
12327 * run-on-main-thread.c: Update include.
12328 * unittests/main-thread-selftests.c: Update include.
12329 * tui/tui-win.c: Update include.
12330 * tui/tui-io.c: Update include.
12331 * tui/tui-interp.c: Update include.
12332 * tui/tui-hooks.c: Update include.
12333 * top.h: Update include.
12334 * top.c: Update include.
12335 * ser-base.c: Update include.
12336 * remote.c: Update include.
12337 * remote-notif.c: Update include.
12338 * remote-fileio.c: Update include.
12339 * record-full.c: Update include.
12340 * record-btrace.c: Update include.
12341 * python/python.c: Update include.
12342 * posix-hdep.c: Update include.
12343 * mingw-hdep.c: Update include.
12344 * mi/mi-main.c: Update include.
12345 * mi/mi-interp.c: Update include.
12346 * main.c: Update include.
12347 * linux-nat.c: Update include.
12348 * interps.c: Update include.
12349 * infrun.c: Update include.
12350 * inf-loop.c: Update include.
12351 * event-top.c: Update include.
12352 * event-loop.c: Move to ../gdbsupport/.
12353 * event-loop.h: Move to ../gdbsupport/.
12354 * async-event.h: Update include.
12355 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12357 2020-04-13 Tom Tromey <tom@tromey.com>
12359 * tui/tui-win.c: Include async-event.h.
12360 * remote.c: Include async-event.h.
12361 * remote-notif.c: Include async-event.h.
12362 * record-full.c: Include async-event.h.
12363 * record-btrace.c: Include async-event.h.
12364 * infrun.c: Include async-event.h.
12365 * event-top.c: Include async-event.h.
12366 * event-loop.h: Move some declarations to async-event.h.
12367 * event-loop.c: Don't include ser-event.h or top.h. Move some
12368 code to async-event.c.
12369 * async-event.h: New file.
12370 * async-event.c: New file.
12371 * Makefile.in (COMMON_SFILES): Add async-event.c.
12372 (HFILES_NO_SRCDIR): Add async-event.h.
12374 2020-04-13 Tom Tromey <tom@tromey.com>
12376 * utils.c (flush_streams): New function.
12377 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12379 2020-04-13 Tom Tromey <tom@tromey.com>
12381 * event-loop.c (handle_file_event): Use warning, not
12384 2020-04-13 Tom Tromey <tom@tromey.com>
12386 * event-loop.c: Include <chrono>.
12388 2020-04-13 Tom Tromey <tom@tromey.com>
12390 * gdb_select.h: Move to ../gdbsupport/.
12391 * event-loop.c: Update include path.
12392 * top.c: Update include path.
12393 * ser-base.c: Update include path.
12394 * ui-file.c: Update include path.
12395 * ser-tcp.c: Update include path.
12396 * guile/scm-ports.c: Update include path.
12397 * posix-hdep.c: Update include path.
12398 * ser-unix.c: Update include path.
12399 * gdb_usleep.c: Update include path.
12400 * mingw-hdep.c: Update include path.
12401 * inflow.c: Update include path.
12402 * infrun.c: Update include path.
12403 * event-top.c: Update include path.
12405 2020-04-13 Tom Tromey <tom@tromey.com>
12407 * configure: Rebuild.
12408 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12410 2020-04-13 Tom Tromey <tom@tromey.com>
12412 * event-loop.h (start_event_loop): Don't declare.
12413 * event-loop.c (start_event_loop): Move...
12414 * main.c (start_event_loop): ...here. Now static.
12416 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12418 * MAINTAINERS: Update my email address.
12420 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12422 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12425 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12427 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12428 (nbsd_nat_target::info_proc): Add do_cmdline.
12430 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12432 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12433 (nbsd_nat_target::info_proc): Add do_cwd.
12435 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12437 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12439 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12441 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12442 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12443 (nbsd_nat_target::info_proc): New functions.
12444 * nbsd-nat.c (kinfo_get_vmmap): New function.
12445 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12446 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12447 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12448 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12450 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12451 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12452 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12453 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12454 (KINFO_VME_FLAG_GROWS_DOWN): New.
12456 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12458 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12461 2020-04-10 Tom Tromey <tromey@adacore.com>
12463 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12465 2020-04-10 Tom Tromey <tromey@adacore.com>
12467 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12468 separate debug files.
12470 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12472 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12474 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12476 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12477 Check for STATUS_WX86_BREAKPOINT.
12478 (windows_nat_target::wait): Same.
12480 2020-04-10 Tom de Vries <tdevries@suse.de>
12483 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12485 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12487 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12488 (Write After Approval): Remove Tom de Vries.
12490 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12493 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12495 * buildsym.c (record_line): Fix undefined behavior and preserve
12498 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12500 * auxv.h (svr4_auxv_parse): New.
12501 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12502 and generic_auxv_parse.
12503 (svr4_auxv_parse): Add.
12504 * obsd-tdep.c: Include "auxv.h".
12505 (obsd_auxv_parse): Remove.
12506 (obsd_init_abi): Remove comment.
12507 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12508 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12509 * nbsd-tdep.c: Include "auxv.h".
12510 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12512 2020-04-08 Tom Tromey <tromey@adacore.com>
12514 * nat/windows-nat.h (last_wait_event): Don't declare.
12515 (wait_for_debug_event): Update comment.
12516 * nat/windows-nat.c (last_wait_event): Now static.
12518 2020-04-08 Tom Tromey <tromey@adacore.com>
12520 * windows-nat.c (wait_for_debug_event): Move to
12522 * nat/windows-nat.h (wait_for_debug_event): Declare.
12523 * nat/windows-nat.c (wait_for_debug_event): Move from
12524 windows-nat.c. No longer static.
12526 2020-04-08 Tom Tromey <tromey@adacore.com>
12528 * windows-nat.c (get_windows_debug_event): Use
12529 fetch_pending_stop.
12530 * nat/windows-nat.h (fetch_pending_stop): Declare.
12531 * nat/windows-nat.c (fetch_pending_stop): New function.
12533 2020-04-08 Tom Tromey <tromey@adacore.com>
12535 * windows-nat.c (windows_continue): Use matching_pending_stop and
12536 continue_last_debug_event.
12537 * nat/windows-nat.h (matching_pending_stop)
12538 (continue_last_debug_event): Declare.
12539 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12540 (matching_pending_stop, continue_last_debug_event): New
12543 2020-04-08 Tom Tromey <tromey@adacore.com>
12545 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12546 (handle_exception_result): Move to nat/windows-nat.h.
12547 (DEBUG_EXCEPTION_SIMPLE): Remove.
12548 (windows_nat::handle_ms_vc_exception): New function.
12549 (handle_exception): Move to nat/windows-nat.c.
12550 (get_windows_debug_event): Update.
12551 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12553 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12554 (handle_exception_result): Move from windows-nat.c.
12555 (handle_exception): Declare.
12556 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12557 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12560 2020-04-08 Tom Tromey <tromey@adacore.com>
12562 * windows-nat.c (exception_count, event_count): Remove.
12563 (handle_exception, get_windows_debug_event)
12564 (do_initial_windows_stuff): Update.
12566 2020-04-08 Tom Tromey <tromey@adacore.com>
12568 * windows-nat.c (windows_nat::handle_load_dll)
12569 (windows_nat::handle_unload_dll): Rename. No longer static.
12570 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12573 2020-04-08 Tom Tromey <tromey@adacore.com>
12575 * complaints.h (stop_whining): Declare at top-level.
12576 (complaint): Don't declare stop_whining.
12578 2020-04-08 Tom Tromey <tromey@adacore.com>
12580 * windows-nat.c (windows_nat::handle_output_debug_string):
12581 Rename. No longer static.
12582 * nat/windows-nat.h (handle_output_debug_string): Declare.
12584 2020-04-08 Tom Tromey <tromey@adacore.com>
12586 * windows-nat.c (current_process_handle, current_process_id)
12587 (main_thread_id, last_sig, current_event, last_wait_event)
12588 (current_windows_thread, desired_stop_thread_id, pending_stops)
12589 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12590 (display_selectors, fake_create_process)
12591 (get_windows_debug_event): Update.
12592 * nat/windows-nat.h (current_process_handle, current_process_id)
12593 (main_thread_id, last_sig, current_event, last_wait_event)
12594 (current_windows_thread, desired_stop_thread_id, pending_stops)
12595 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12596 * nat/windows-nat.c (current_process_handle, current_process_id)
12597 (main_thread_id, last_sig, current_event, last_wait_event)
12598 (current_windows_thread, desired_stop_thread_id, pending_stops)
12599 (siginfo_er): New globals. Move from windows-nat.c.
12601 2020-04-08 Tom Tromey <tromey@adacore.com>
12603 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12604 (handle_load_dll): Update.
12605 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12607 2020-04-08 Tom Tromey <tromey@adacore.com>
12609 * windows-nat.c (enum thread_disposition_type): Move to
12611 (windows_nat::thread_rec): Rename from thread_rec. No longer
12613 (windows_add_thread, windows_nat_target::fetch_registers)
12614 (windows_nat_target::store_registers, handle_exception)
12615 (windows_nat_target::resume, get_windows_debug_event)
12616 (windows_nat_target::get_tib_address)
12617 (windows_nat_target::thread_name)
12618 (windows_nat_target::thread_alive): Update.
12619 * nat/windows-nat.h (enum thread_disposition_type): Move from
12621 (thread_rec): Declare.
12623 2020-04-08 Tom Tromey <tromey@adacore.com>
12625 * windows-nat.c: Add "using namespace".
12626 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12627 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12629 2020-04-08 Tom Tromey <tromey@adacore.com>
12631 * nat/windows-nat.h (struct windows_thread_info): Declare
12633 * nat/windows-nat.c (~windows_thread_info): New.
12635 2020-04-08 Tom Tromey <tromey@adacore.com>
12638 * windows-nat.c (current_event): Update comment.
12639 (last_wait_event, desired_stop_thread_id): New globals.
12640 (struct pending_stop): New.
12641 (pending_stops): New global.
12642 (windows_nat_target) <stopped_by_sw_breakpoint>
12643 <supports_stopped_by_sw_breakpoint>: New methods.
12644 (windows_fetch_one_register): Add assertions. Adjust PC.
12645 (windows_continue): Handle pending stops. Suspend other threads
12646 when stepping. Use last_wait_event
12647 (wait_for_debug_event): New function.
12648 (get_windows_debug_event): Use wait_for_debug_event. Handle
12649 pending stops. Queue spurious stops.
12650 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12651 (windows_nat_target::kill): Use wait_for_debug_event.
12652 * nat/windows-nat.h (struct windows_thread_info)
12653 <stopped_at_software_breakpoint>: New field.
12654 * nat/windows-nat.c (windows_thread_info::resume): Clear
12655 stopped_at_software_breakpoint.
12657 2020-04-08 Tom Tromey <tromey@adacore.com>
12659 * windows-nat.c (enum thread_disposition_type): New.
12660 (thread_rec): Replace "get_context" parameter with "disposition";
12662 (windows_add_thread, windows_nat_target::fetch_registers)
12663 (windows_nat_target::store_registers, handle_exception)
12664 (windows_nat_target::resume, get_windows_debug_event)
12665 (windows_nat_target::get_tib_address)
12666 (windows_nat_target::thread_name)
12667 (windows_nat_target::thread_alive): Update.
12669 2020-04-08 Tom Tromey <tromey@adacore.com>
12671 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12672 (windows_continue): Use windows_continue::resume.
12673 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12674 resume>: Declare new methods.
12675 * nat/windows-nat.c: New file.
12676 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12678 2020-04-08 Tom Tromey <tromey@adacore.com>
12680 * windows-nat.c (windows_add_thread, windows_delete_thread)
12681 (windows_nat_target::fetch_registers)
12682 (windows_nat_target::store_registers, fake_create_process)
12683 (windows_nat_target::resume, windows_nat_target::resume)
12684 (get_windows_debug_event, windows_nat_target::wait)
12685 (windows_nat_target::pid_to_str)
12686 (windows_nat_target::get_tib_address)
12687 (windows_nat_target::get_ada_task_ptid)
12688 (windows_nat_target::thread_name)
12689 (windows_nat_target::thread_alive): Use lwp, not tid.
12691 2020-04-08 Tom Tromey <tromey@adacore.com>
12693 * windows-nat.c (handle_exception)
12694 (windows_nat_target::thread_name): Update.
12695 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12696 <name>: Now unique_xmalloc_ptr.
12698 2020-04-08 Tom Tromey <tromey@adacore.com>
12700 * windows-nat.c (thread_rec)
12701 (windows_nat_target::fetch_registers): Update.
12702 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12704 <debug_registers_changed, reload_context>: Now bool.
12706 2020-04-08 Tom Tromey <tromey@adacore.com>
12708 * windows-nat.c (windows_add_thread): Use new.
12709 (windows_init_thread_list, windows_delete_thread): Use delete.
12710 (get_windows_debug_event): Update.
12711 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12712 destructor, and initializers.
12714 2020-04-08 Tom Tromey <tromey@adacore.com>
12716 * windows-nat.c (struct windows_thread_info): Remove.
12717 * nat/windows-nat.h: New file.
12719 2020-04-08 Tom Tromey <tromey@adacore.com>
12721 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12722 (thread_rec, windows_add_thread, windows_delete_thread)
12723 (windows_continue): Update.
12725 2020-04-08 Tom Tromey <tromey@adacore.com>
12727 * windows-nat.c (struct windows_thread_info): Remove typedef.
12728 (thread_head): Remove.
12729 (thread_list): New global.
12730 (thread_rec, windows_add_thread, windows_init_thread_list)
12731 (windows_delete_thread, windows_continue): Update.
12733 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12735 * windows-tdep.h (windows_init_abi): Add comment.
12736 (cygwin_init_abi): New declaration.
12737 * windows-tdep.c: Split signal enumeration in two, one for
12738 Windows and one for Cygwin.
12739 (windows_gdb_signal_to_target): Only deal with signal of the
12741 (cygwin_gdb_signal_to_target): New function.
12742 (windows_init_abi): Rename to windows_init_abi_common, don't set
12743 gdb_signal_to_target gdbarch method. Add new new function with
12745 (cygwin_init_abi): New function.
12746 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12747 comment. Don't call windows_init_abi.
12748 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12749 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12750 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12751 i386_windows_init_abi_common, don't call windows_init_abi. Add
12752 a new function of this name.
12753 (i386_cygwin_init_abi): New function.
12754 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12757 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12759 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12761 (dwarf2_read_gdb_index): Update.
12763 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12765 * nbsd-tdep.c: Include "objfiles.h".
12766 (nbsd_skip_solib_resolver): New.
12767 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12769 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12771 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12772 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12773 with DW_LLE_base_addressx are being emitted in DWARFv5.
12774 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12775 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12778 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12780 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12781 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12782 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12783 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12784 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12785 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12786 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12789 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12791 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12792 (read_loclist_index): New function definition.
12793 (lookup_loclist_base): New function definition.
12794 (read_loclist_header): New function definition.
12795 (dwarf2_cu): Add loclist_base and loclist_header field.
12796 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12797 (read_full_die_1): Read the value of DW_AT_loclists_base.
12798 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12799 (read_attribute_value): Handle DW_FORM_loclistx.
12800 (skip_one_die): Handle DW_FORM_loclistx.
12801 (loclist_header): New structure declaration.
12802 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12804 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12806 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12807 constructor. Remove `addr` parameter from other constructor and
12808 add `per_cu` parameter.
12809 * dwarf2/read.c (create_partial_symtab): Update.
12811 2020-04-07 Tom de Vries <tdevries@suse.de>
12814 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12815 (partial_die_info::fixup): Inherit has_const_value.
12817 2020-04-07 Tom de Vries <tdevries@suse.de>
12819 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12820 symbols without address.
12822 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12824 * nbsd-nat.h (struct thread_info): Add forward declaration.
12825 (nbsd_nat_target::thread_alive): Add.
12826 (nbsd_nat_target::thread_name): Likewise.
12827 (nbsd_nat_target::update_thread_list): Likewise.
12828 (update_thread_list::post_attach): Likewise.
12829 (post_attach::pid_to_str): Likewise.
12830 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12831 (nbsd_thread_lister): Add.
12832 (nbsd_nat_target::thread_alive): Likewise.
12833 (nbsd_nat_target::thread_name): Likewise.
12834 (nbsd_add_threads): Likewise.
12835 (update_thread_list::post_attach): Likewise.
12836 (nbsd_nat_target::update_thread_list): Likewise.
12837 (post_attach::pid_to_str): Likewise.
12839 2020-04-06 Tom Tromey <tromey@adacore.com>
12841 * ada-valprint.c (print_variant_part): Extract the variant field.
12842 (print_field_values): Use the field as the outer value when
12845 2020-04-06 Tom Tromey <tromey@adacore.com>
12847 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12848 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12849 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12850 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12851 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12853 2020-04-06 Tom Tromey <tromey@adacore.com>
12855 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12858 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12860 * nbsd-tdep.c: Include "gdbarch.h".
12861 Define enum with NetBSD signal numbers.
12862 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12863 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12864 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12865 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12866 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12867 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12868 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12869 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12870 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12871 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12872 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12873 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12875 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12878 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12880 2020-04-03 Tom Tromey <tromey@adacore.com>
12882 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12883 Read constant block.
12885 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12887 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12888 (gdb_bfd_get_full_section_contents): New declaration.
12889 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12890 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12891 gdb_bfd_get_full_section_contents.
12893 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12895 * exec.c (build_section_table): Replace internal_error with
12897 (section_table_xfer_memory_partial): Likewise.
12898 * mdebugread.c (parse_partial_symbols): Likewise.
12899 * psymtab.c (lookup_partial_symbol): Likewise.
12900 * utils.c (wrap_here): Likewise.
12902 2020-04-02 Tom Tromey <tromey@adacore.com>
12904 * f-lang.c (build_fortran_types): Use arch_type to initialize
12905 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12907 2020-04-02 Tom Tromey <tromey@adacore.com>
12909 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12912 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12913 Bernd Edlinger <bernd.edlinger@hotmail.de>
12914 Tom Tromey <tromey@adacore.com>
12916 * buildsym.c (buildsym_compunit::record_line): Remove
12917 deduplication code.
12919 2020-04-02 Tom de Vries <tdevries@suse.de>
12922 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12924 2020-04-02 Tom de Vries <tdevries@suse.de>
12926 * dwarf2/read.c (dwarf2_gdb_index_functions,
12927 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12929 * psymtab.c (psym_lookup_global_symbol_language): New function.
12930 (psym_functions): Init psym_lookup_global_symbol_language with
12931 psym_lookup_global_symbol_language.
12932 * symfile-debug.c (debug_sym_quick_functions): Init
12933 lookup_global_symbol_language with NULL.
12934 * symfile.c (set_initial_language): Remove fixme comment.
12935 * symfile.h (struct quick_symbol_functions): Add
12936 lookup_global_symbol_language.
12937 * symtab.c (find_quick_global_symbol_language): New function.
12938 (find_main_name): Use find_quick_global_symbol_language.
12940 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12942 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12944 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12946 * buildsym.c (record_line): Fix undefined behavior and preserve
12949 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12951 * buildsym.c (record_line): Fix the resizing condition.
12953 2020-04-01 Tom Tromey <tom@tromey.com>
12955 * value.h (value_literal_complex): Add comment.
12956 * valops.c (value_literal_complex): Refer to value.h.
12958 2020-04-01 Tom Tromey <tom@tromey.com>
12960 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12961 (scalar_type): New rule, from typebase.
12962 (typebase): Use scalar_type. Recognize complex types.
12963 (field_name): Handle FLOAT_KEYWORD.
12964 (ident_tokens): Add _Complex and __complex__.
12966 2020-04-01 Tom Tromey <tom@tromey.com>
12969 * valarith.c (promotion_type, complex_binop): New functions.
12970 (scalar_binop): Handle complex numbers. Use promotion_type.
12971 (value_pos, value_neg, value_complement): Handle complex numbers.
12973 2020-04-01 Tom Tromey <tom@tromey.com>
12975 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12976 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12977 (parse_number): Handle complex numbers.
12979 2020-04-01 Tom Tromey <tom@tromey.com>
12981 * c-valprint.c (c_decorations): Change complex suffix to "i".
12983 2020-04-01 Tom Tromey <tom@tromey.com>
12985 * valprint.c (generic_value_print_complex): Use accessors.
12986 * value.h (value_real_part, value_imaginary_part): Declare.
12987 * valops.c (value_real_part, value_imaginary_part): New
12989 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12991 2020-04-01 Tom Tromey <tom@tromey.com>
12993 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12994 (read_range_type): Update.
12995 * mdebugread.c (basic_type): Update.
12996 * go-lang.c (build_go_types): Use init_complex_type.
12997 * gdbtypes.h (struct main_type) <complex_type>: New member.
12998 (init_complex_type): Update.
12999 (arch_complex_type): Don't declare.
13000 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
13001 Make name if none given. Use alloc_type_copy. Look for cached
13003 (arch_complex_type): Remove.
13004 (gdbtypes_post_init): Use init_complex_type.
13005 * f-lang.c (build_fortran_types): Use init_complex_type.
13006 * dwarf2/read.c (read_base_type): Update.
13007 * d-lang.c (build_d_types): Use init_complex_type.
13008 * ctfread.c (read_base_type): Update.
13010 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13012 * infrun.c (stop_all_threads): Update assertion, plus when
13013 stopping threads, take into account that we might be trying
13014 to stop an all-stop target.
13015 (stop_waiting): Call 'stop_all_threads' if there exists a
13018 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13020 * target.h (exists_non_stop_target): New function declaration.
13021 * target.c (exists_non_stop_target): New function.
13023 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
13026 * eval.c (is_integral_or_integral_reference): New function.
13027 (evaluate_subexp_standard): Allow integer references in
13028 pointer arithmetic.
13030 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13032 * remote.c (remote_target::remote_parse_stop_reply): Remove the
13033 check for no ptid in the stop reply when the target is non-stop.
13035 2020-04-01 Tom Tromey <tromey@adacore.com>
13037 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
13038 "name" parameter to rvalue reference. Initialize m_name_holder.
13039 <lookup_name_info>: New overloads.
13040 <name>: Return gdb::string_view.
13041 <c_str>: New method.
13042 <make_ignore_params>: Update.
13043 <search_name_hash>: Update.
13044 <language_lookup_name>: Return const char *.
13045 <m_name>: Change type.
13046 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
13047 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
13048 (lookup_name_info::match_any): Update.
13049 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
13051 * minsyms.c (linkage_name_str): Update.
13052 * language.c (default_symbol_name_matcher): Update.
13053 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
13055 * ada-lang.c (ada_fold_name): Change parameter to string_view.
13056 (ada_lookup_name_info::ada_lookup_name_info): Update.
13057 (literal_symbol_name_matcher): Update.
13059 2020-04-01 Tom Tromey <tromey@adacore.com>
13061 * psymtab.c (psymtab_search_name): Remove function.
13062 (psym_lookup_symbol): Create search name and lookup name here.
13063 (lookup_partial_symbol): Remove "name" parameter; add
13065 (psym_expand_symtabs_for_function): Update.
13067 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
13070 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
13072 2020-03-31 Tom Tromey <tromey@adacore.com>
13074 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
13077 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
13079 * features/riscv/32bit-csr.xml: Regenerated.
13080 * features/riscv/64bit-csr.xml: Regenerated.
13082 2020-03-30 Tom Tromey <tromey@adacore.com>
13084 * ada-valprint.c (print_variant_part): Update.
13085 * ada-lang.h (ada_which_variant_applies): Update.
13086 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
13087 outer_valaddr parameters; replace with "outer" value parameter.
13088 (to_fixed_variant_branch_type): Update.
13090 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13092 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
13093 <list>. Remove inclusion of observable.h.
13094 (PPC_DEBUG_CURRENT_VERSION): Move up define.
13095 (struct arch_lwp_info): New struct.
13096 (class ppc_linux_dreg_interface): New class.
13097 (struct ppc_linux_process_info): New struct.
13098 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
13099 <low_new_clone, low_forget_process, low_prepare_to_resume>
13100 <copy_thread_dreg_state, mark_thread_stale>
13101 <mark_debug_registers_changed, register_hw_breakpoint>
13102 <clear_hw_breakpoint, register_wp, clear_wp>
13103 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
13104 <num_memory_accesses, get_trigger_type>
13105 <create_watchpoint_request, hwdebug_point_cmp>
13106 <init_arch_lwp_info, get_arch_lwp_info>
13107 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13109 <struct ptid_hash>: New inner struct.
13110 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13112 (saved_dabr_value, hwdebug_info, max_slots_number)
13113 (struct hw_break_tuple, struct thread_points, ppc_threads)
13114 (have_ptrace_hwdebug_interface)
13115 (hwdebug_find_thread_points_by_tid)
13116 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13117 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13118 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13119 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13120 use m_dreg_interface.
13121 (hwdebug_point_cmp): Change to...
13122 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13123 reference arguments instead of pointers.
13124 (ppc_linux_nat_target::ranged_break_num_registers): Use
13126 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13127 m_dreg_interface. Call register_hw_breakpoint.
13128 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13129 m_dreg_interface. Call clear_hw_breakpoint.
13130 (get_trigger_type): Change to...
13131 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13133 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13134 use m_dreg_interface. Call register_hw_breakpoint.
13135 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13136 use m_dreg_interface. Call clear_hw_breakpoint.
13137 (can_use_watchpoint_cond_accel): Change to...
13138 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13139 method. Update comment, use m_dreg_interface and
13141 (calculate_dvc): Change to...
13142 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13144 (num_memory_accesses): Change to...
13145 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13146 (check_condition): Change to...
13147 (ppc_linux_nat_target::check_condition): ...this method.
13148 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13149 comment, use m_dreg_interface.
13150 (create_watchpoint_request): Change to...
13151 (ppc_linux_nat_target::create_watchpoint_request): ...this
13152 method. Use m_dreg_interface.
13153 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13154 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13155 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13156 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13157 (ppc_linux_nat_target::low_forget_process)
13158 (ppc_linux_nat_target::low_new_fork)
13159 (ppc_linux_nat_target::low_new_clone)
13160 (ppc_linux_nat_target::low_delete_thread)
13161 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13162 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13163 only call mark_thread_stale.
13164 (ppc_linux_thread_exit): Remove.
13165 (ppc_linux_nat_target::stopped_data_address): Change to...
13166 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13167 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13168 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13169 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13170 comment. Call low_stopped_data_address.
13171 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13173 (ppc_linux_nat_target::masked_watch_num_registers): Use
13175 (ppc_linux_nat_target::copy_thread_dreg_state)
13176 (ppc_linux_nat_target::mark_thread_stale)
13177 (ppc_linux_nat_target::mark_debug_registers_changed)
13178 (ppc_linux_nat_target::register_hw_breakpoint)
13179 (ppc_linux_nat_target::clear_hw_breakpoint)
13180 (ppc_linux_nat_target::register_wp)
13181 (ppc_linux_nat_target::clear_wp)
13182 (ppc_linux_nat_target::init_arch_lwp_info)
13183 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13184 (_initialize_ppc_linux_nat): Remove observer callback.
13186 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13188 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13189 (ppc_linux_nat_target::auxv_parse)
13190 (ppc_linux_nat_target::read_description)
13191 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13194 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13196 * linux-nat.h (low_new_clone): New method.
13197 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13199 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13201 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13202 (dbx_expand_psymtab): ... this.
13203 (start_psymtab): Update.
13204 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13205 (mdebug_expand_psymtab): ... this.
13206 (parse_partial_symbols): Update.
13207 (new_psymtab): Update.
13208 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13209 (xcoff_expand_psymtab): ... this.
13210 (xcoff_start_psymtab): Update.
13212 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13214 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13215 <expand_dependencies>: ... this.
13216 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13217 (partial_symtab::expand_dependencies): ... this.
13218 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13220 (dwarf2_psymtab::expand_psymtab): Update.
13221 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13222 * mdebugread.c (psymtab_to_symtab_1): Update.
13223 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13225 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13227 * psympriv.h (discard_psymtab): Remove.
13228 * dbxread.c (dbx_end_psymtab): Update.
13229 * xcoffread.c (xcoff_end_psymtab): Update.
13231 2020-03-28 Tom Tromey <tom@tromey.com>
13233 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13236 2020-03-28 Tom Tromey <tom@tromey.com>
13238 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13240 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
13242 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13244 2020-03-26 John Baldwin <jhb@FreeBSD.org>
13246 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13248 2020-03-26 Tom Tromey <tom@tromey.com>
13250 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13251 (mark_common_block_symbol_computed, read_tag_string_type)
13252 (attr_to_dynamic_prop, read_subrange_type): Update.
13253 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13254 to be methods on struct attribute.
13255 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13256 (read_call_site_scope, partial_die_info::read)
13257 (partial_die_info::read, lookup_die_type, follow_die_ref):
13259 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13260 from dwarf2_get_ref_die_offset.
13261 (attribute::constant_value): New method, from
13262 dwarf2_get_attr_constant_value.
13263 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13265 <constant_value>: New method.
13267 2020-03-26 Tom Tromey <tom@tromey.com>
13269 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13270 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13271 (dwarf_type_encoding_name): Move to stringify.c.
13272 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13273 * dwarf2/stringify.c: New file.
13274 * dwarf2/stringify.h: New file.
13276 2020-03-26 Tom Tromey <tom@tromey.com>
13278 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13281 2020-03-26 Tom Tromey <tom@tromey.com>
13283 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13285 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13286 (lookup_ranges_base): Likewise.
13287 (read_cutu_die_from_dwo, read_full_die_1): Update.
13289 2020-03-26 Tom Tromey <tom@tromey.com>
13291 * dwarf2/read.c (read_import_statement, read_file_scope)
13292 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13293 (read_lexical_block_scope, read_call_site_scope)
13294 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13295 (handle_struct_member_die, process_structure_scope)
13296 (update_enumeration_type_from_children)
13297 (process_enumeration_scope, read_array_type, read_common_block)
13298 (read_namespace, read_module, read_subroutine_type): Update.
13299 (sibling_die): Remove.
13301 2020-03-26 Tom Tromey <tom@tromey.com>
13303 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13304 (build_type_psymtabs_reader, read_structure_type)
13305 (read_enumeration_type, read_full_die_1): Update.
13306 (dwarf2_attr_no_follow): Move to die.h.
13307 * dwarf2/die.h (struct die_info) <attr>: New method.
13309 2020-03-26 Tom Tromey <tom@tromey.com>
13311 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13312 <base_address>: Now an optional.
13313 (dwarf2_find_base_address, dwarf2_rnglists_process)
13314 (dwarf2_ranges_process, fill_in_loclist_baton)
13315 (dwarf2_symbol_mark_computed): Update.
13317 2020-03-26 Tom Tromey <tom@tromey.com>
13319 * dwarf2/read.c (struct die_info): Move to die.h.
13320 * dwarf2/die.h: New file.
13322 2020-03-26 Tom Tromey <tom@tromey.com>
13324 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13326 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13327 Move to line-header.c.
13328 (read_checked_initial_length_and_offset, read_formatted_entries):
13330 (dwarf_decode_line_header): Split into two.
13331 * dwarf2/line-header.c
13332 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13334 (read_checked_initial_length_and_offset, read_formatted_entries):
13336 (dwarf_decode_line_header): New function, split from read.c.
13338 2020-03-26 Tom Tromey <tom@tromey.com>
13340 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13342 * dwarf2/read.c (read_attribute_value): Update.
13343 (dwarf2_per_objfile::read_line_string): Rename from
13344 read_indirect_line_string.
13345 (read_formatted_entries): Update.
13347 2020-03-26 Tom Tromey <tom@tromey.com>
13349 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13352 2020-03-26 Tom Tromey <tom@tromey.com>
13354 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13356 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13357 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13360 2020-03-26 Tom Tromey <tom@tromey.com>
13362 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13363 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13364 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13365 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13367 2020-03-26 Tom Tromey <tom@tromey.com>
13369 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13370 file_names_size, file_full_name, file_file_name>: Use const.
13371 <file_name_at, file_names>: Add const overload.
13372 * dwarf2/line-header.c (line_header::file_file_name)
13373 (line_header::file_full_name): Update.
13375 2020-03-26 Tom Tromey <tom@tromey.com>
13377 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13378 (macro_start_file, consume_improper_spaces)
13379 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13380 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13381 (dwarf_decode_macros): Move to macro.c.
13382 * dwarf2/macro.c: New file.
13383 * dwarf2/macro.h: New file.
13384 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13386 2020-03-26 Tom Tromey <tom@tromey.com>
13388 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13390 * dwarf2/section.c: New method. From
13391 read_indirect_string_at_offset_from.
13392 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13393 (read_indirect_string_at_offset_from): Move to section.c.
13394 (read_indirect_string_at_offset): Rewrite.
13395 (read_indirect_line_string_at_offset): Remove.
13396 (read_indirect_string, read_indirect_line_string)
13397 (dwarf_decode_macro_bytes): Update.
13399 2020-03-26 Tom Tromey <tom@tromey.com>
13401 * dwarf2/section.h (struct dwarf2_section_info)
13402 <overload_complaint>: Declare.
13403 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13404 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13405 Rename from dwarf2_section_buffer_overflow_complaint.
13406 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13407 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13409 2020-03-26 Tom Tromey <tom@tromey.com>
13411 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13413 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13415 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13418 2020-03-26 Tom Tromey <tom@tromey.com>
13420 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13422 2020-03-26 Tom Tromey <tom@tromey.com>
13424 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13426 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13428 (dwarf_decode_macros): Update.
13430 2020-03-26 Tom Tromey <tom@tromey.com>
13432 * dwarf2/read.c (read_attribute_value): Update.
13433 (read_indirect_string_from_dwz): Move to dwz.c; change into
13435 (dwarf_decode_macro_bytes): Update.
13436 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13437 * dwarf2/dwz.c: New file.
13438 * Makefile.in (COMMON_SFILES): Add dwz.c.
13440 2020-03-26 Tom Tromey <tom@tromey.com>
13442 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13443 * dwarf2/read.c: Add include.
13444 * dwarf2/index-write.c: Add include.
13445 * dwarf2/index-cache.c: Add include.
13446 * dwarf2/dwz.h: New file.
13448 2020-03-25 Tom Tromey <tom@tromey.com>
13450 * compile/compile-object-load.c (get_out_value_type): Mention
13451 correct symbol name in error message.
13453 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13455 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13457 2020-03-25 Tom de Vries <tdevries@suse.de>
13459 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13460 * symmisc.c (dump_symtab_1): Print user and includes fields.
13461 (maintenance_info_symtabs): Same.
13463 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13466 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13467 (riscv_regcache_cooked_write): New function.
13468 (riscv_push_dummy_call): Use new function.
13469 (riscv_return_value): Likewise.
13471 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13473 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13474 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13475 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13476 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13477 * infrun.c (follow_fork): Likewise.
13478 (follow_fork_inferior): Likewise.
13479 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13480 * linux-nat.h (class linux_nat_target): Likewise.
13481 * remote.c (class remote_target) <follow_fork>: Likewise.
13482 (remote_target::follow_fork): Likewise.
13483 * target-delegates.c: Re-generate.
13484 * target.c (default_follow_fork): Likewise.
13485 (target_follow_fork): Likewise.
13486 * target.h (struct target_ops) <follow_fork>: Likewise.
13487 (target_follow_fork): Likewise.
13489 2020-03-24 Tom de Vries <tdevries@suse.de>
13491 * psymtab.c (maintenance_info_psymtabs): Print user field.
13493 2020-03-20 Tom Tromey <tromey@adacore.com>
13495 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13497 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13500 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13502 * ptrace.m4: Don't check for ptrace declaration.
13503 * config.in: Re-generate.
13504 * configure: Re-generate.
13505 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13508 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13510 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13512 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13513 * sparc-nat.c (gdb_ptrace): Likewise.
13514 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13516 2020-03-20 Tom Tromey <tromey@adacore.com>
13518 * c-exp.y (lex_one_token): Fix assert.
13520 2020-03-20 Tom Tromey <tromey@adacore.com>
13522 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13523 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13526 2020-03-20 Tom Tromey <tromey@adacore.com>
13528 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13530 2020-03-20 Tom Tromey <tromey@adacore.com>
13532 * ada-valprint.c (print_variant_part): Remove parameters; switch
13533 to value-based API.
13534 (print_field_values): Likewise.
13535 (ada_val_print_struct_union): Likewise.
13536 (ada_value_print_1): Update.
13538 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13540 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13541 nbsd_nat_target instead of inf_ptrace_target.
13542 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13545 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13547 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13548 it to the ptrace call.
13549 * (store_registers): Likewise.
13551 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13553 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13554 it to the ptrace call.
13555 * (store_registers): Likewise.
13557 2020-03-19 Luis Machado <luis.machado@linaro.org>
13559 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13560 valid, fetch vg value from ptrace.
13562 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13563 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13564 * inf-ptrace.c: Likewise.
13565 * (gdb_ptrace): Add.
13566 * (inf_ptrace_target::resume): Update.
13567 * (inf_ptrace_target::xfer_partial): Likewise.
13568 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13569 * (inf_ptrace_peek_poke): Update.
13571 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13573 * x86-bsd-nat.c (gdb_ptrace): New.
13574 * (x86bsd_dr_set): Add new argument `ptid'.
13575 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13576 x86bsd_dr_set_addr): Update.
13578 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13580 * remote.c (remote_target::process_stop_reply): Handle events for
13581 all threads differently.
13583 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13585 * completer.c (completion_tracker::remove_completion): Define new
13587 * completer.h (completion_tracker::remove_completion): Declare new
13589 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13590 when adding a C++ function symbol.
13592 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13594 * completer.c (completion_tracker::completion_hash_entry): Define
13596 (advance_to_filename_complete_word_point): Call
13597 recompute_lowest_common_denominator.
13598 (completion_tracker::completion_tracker): Call discard_completions
13599 to setup the hash table.
13600 (completion_tracker::discard_completions): Allow for being called
13601 from the constructor, pass new equal function, and element deleter
13602 when constructing the hash table. Initialise new class member
13604 (completion_tracker::maybe_add_completion): Remove use of
13605 m_entries_vec, and store more information into m_entries_hash.
13606 (completion_tracker::recompute_lcd_visitor): New function, most
13607 content taken from...
13608 (completion_tracker::recompute_lowest_common_denominator):
13609 ...here, this now just visits each item in the hash calling the
13611 (completion_tracker::build_completion_result): Remove use of
13612 m_entries_vec, call recompute_lowest_common_denominator.
13613 * completer.h (completion_tracker::have_completions): Remove use
13615 (completion_tracker::completion_hash_entry): Declare new class.
13616 (completion_tracker::recompute_lowest_common_denominator): Change
13617 function signature.
13618 (completion_tracker::recompute_lcd_visitor): Declare new function.
13619 (completion_tracker::m_entries_vec): Delete.
13620 (completion_tracker::m_entries_hash): Initialize to NULL.
13621 (completion_tracker::m_lowest_common_denominator_valid): New
13623 (completion_tracker::m_lowest_common_denominator_max_length): New
13626 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13628 * regformats/regdef.h: Put reg in gdb namespace.
13630 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13632 * i386-bsd-nat.c (gdb_ptrace): New.
13633 * (i386bsd_fetch_inferior_registers,
13634 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13635 * (i386bsd_fetch_inferior_registers,
13636 i386bsd_store_inferior_registers) Use gdb_ptrace.
13638 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13640 * amd64-bsd-nat.c (gdb_ptrace): New.
13641 * (amd64bsd_fetch_inferior_registers,
13642 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13643 * (amd64bsd_fetch_inferior_registers,
13644 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13646 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13648 * user-regs.c (user_reg::read): Rename to...
13649 (user_reg::xread): ...this.
13650 * (append_user_reg): Rename argument `read' to `xread'.
13651 * (user_reg_add_builtin): Likewise.
13652 * (user_reg_add): Likewise.
13653 * (value_of_user_reg): Likewise.
13655 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13657 * sparc-nat.c (gdb_ptrace): New.
13658 * sparc-nat.c (sparc_fetch_inferior_registers)
13659 (sparc_store_inferior_registers) Remove obsolete comment.
13660 * sparc-nat.c (sparc_fetch_inferior_registers)
13661 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13662 * sparc-nat.c (sparc_fetch_inferior_registers)
13663 (sparc_store_inferior_registers) Use gdb_ptrace.
13665 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13667 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13668 it to the ptrace call.
13669 * sh-nbsd-nat.c (store_registers): Likewise.
13671 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13673 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13674 nbsd_nat_target instead of inf_ptrace_target.
13675 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13678 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13680 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13682 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13684 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13686 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13688 2020-03-17 Tom de Vries <tdevries@suse.de>
13691 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13693 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13695 (process_imported_unit_die): Skip import of c++ CUs.
13697 2020-03-16 Tom Tromey <tom@tromey.com>
13699 * p-valprint.c (pascal_object_print_value): Initialize
13702 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13703 Shahab Vahedi <shahab@synopsys.com>
13705 * Makefile.in: Add arch/arc.o
13706 * configure.tgt: Likewise.
13707 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13708 (_initialize_arc_tdep): Don't initialize old target descriptions.
13709 (arc_read_description): New function to cache target descriptions.
13710 * arc-tdep.h (arc_read_description): Add proto type.
13711 * arch/arc.c: New file.
13712 * arch/arc.h: Likewise.
13713 * features/Makefile: Replace old target descriptions with new.
13714 * features/arc-arcompact.c: Remove.
13715 * features/arc-arcompact.xml: Likewise.
13716 * features/arc-v2.c: Likewise
13717 * features/arc-v2.xml: Likewise
13718 * features/arc/aux-arcompact.xml: New file.
13719 * features/arc/aux-v2.xml: Likewise.
13720 * features/arc/core-arcompact.xml: Likewise.
13721 * features/arc/core-v2.xml: Likewise.
13722 * features/arc/aux-arcompact.c: Generate.
13723 * features/arc/aux-v2.c: Likewise.
13724 * features/arc/core-arcompact.c: Likewise.
13725 * features/arc/core-v2.c: Likewise.
13726 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13728 2020-03-16 Tom Tromey <tromey@adacore.com>
13731 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13732 putting value into bcache.
13734 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13737 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13739 (amd64_windows_init_abi_common): ... this. Don't set size of
13741 (amd64_windows_init_abi): New function.
13742 (amd64_cygwin_init_abi): New function.
13743 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13745 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13748 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13750 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13751 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13752 (pe_import_directory_entry): New struct type.
13753 (is_linked_with_cygwin_dll): New function.
13754 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13755 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13756 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13758 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13760 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13761 i386_cygwin_core_osabi_sniffer.
13763 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13765 * i386-cygwin-tdep.c: Rename to...
13766 * i386-windows-tdep.c: ... this.
13767 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13768 i386-windows-tdep.c.
13769 * configure.tgt: Likewise.
13771 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13773 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13774 * osabi.c (gdb_osabi_names): Add "Windows".
13775 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13776 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13777 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13778 i386_cygwin_osabi_sniffer.
13779 (_initialize_i386_cygwin_tdep): Register OS ABI
13780 GDB_OSABI_WINDOWS for i386.
13781 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13782 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13783 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13785 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13786 when the target matches '*-*-mingw*'.
13788 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13790 * defs.h (enum gdb_osabi): Move to...
13791 * osabi.h (enum gdb_osabi): ... here.
13792 * gdbarch.sh: Include osabi.h in gdbarch.h.
13793 * gdbarch.h: Re-generate.
13795 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13797 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13799 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13801 2020-03-14 Tom Tromey <tom@tromey.com>
13803 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13805 (c_type_print_modifier): Likewise. Add "language" parameter.
13806 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13807 (c_type_print_base_1): Update.
13808 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13810 * type-stack.c (type_stack::insert): Handle tp_atomic and
13812 (type_stack::follow_type_instance_flags): Likewise.
13813 (type_stack::follow_types): Likewise. Merge type-following code.
13814 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13815 (space_identifier, cv_with_space_id)
13816 (const_or_volatile_or_space_identifier_noopt)
13817 (const_or_volatile_or_space_identifier): Remove.
13818 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13820 (ptr_operator, typebase): Update.
13821 (enum token_flag) <FLAG_C>: New constant.
13822 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13824 (lex_one_token): Handle FLAG_C.
13826 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13828 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13829 it to the ptrace call.
13830 * m68k-bsd-nat.c (store_registers): Likewise.
13832 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13834 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13836 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13837 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13838 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13840 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13842 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13843 nbsd_nat_target instead of inf_ptrace_target.
13844 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13847 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13849 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13852 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13854 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13855 it to the ptrace call.
13856 * alpha-bsd-nat.c (store_registers): Likewise.
13858 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13860 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13862 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13863 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13864 fill_fpregset): Likewise.
13866 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13868 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13869 nbsd_nat_target instead of inf_ptrace_target.
13870 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13873 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13875 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13878 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13880 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13881 it to the ptrace call.
13882 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13883 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13884 * arm-nbsd-nat.c (store_register): Likewise.
13885 * arm-nbsd-nat.c (store_regs): Likewise.
13886 * arm-nbsd-nat.c (store_fp_register): Likewise.
13887 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13889 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13891 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13892 nbsd_nat_target instead of inf_ptrace_target.
13893 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13896 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13898 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13899 it to the ptrace call.
13900 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13902 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13904 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13905 it to the ptrace call.
13906 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13908 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13910 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13912 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13914 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13916 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13917 instead of inf_ptrace_target.
13918 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13921 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13923 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13926 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13928 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13931 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13933 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13936 2020-03-13 Tom Tromey <tom@tromey.com>
13938 * value.h (val_print): Don't declare.
13939 * valprint.h (val_print_array_elements)
13940 (val_print_scalar_formatted, generic_val_print): Don't declare.
13941 * valprint.c (generic_val_print_array): Take a struct value.
13942 (generic_val_print_ptr, generic_val_print_memberptr)
13943 (generic_val_print_bool, generic_val_print_int)
13944 (generic_val_print_char, generic_val_print_complex)
13945 (generic_val_print): Remove.
13946 (generic_value_print): Update.
13947 (do_val_print): Remove unused parameters. Don't call
13949 (val_print): Remove.
13950 (common_val_print): Update. Don't call value_check_printable.
13951 (val_print_scalar_formatted, val_print_array_elements): Remove.
13952 * rust-lang.c (rust_val_print): Remove.
13953 (rust_language_defn): Update.
13954 * p-valprint.c (pascal_val_print): Remove.
13955 (pascal_value_print_inner): Update.
13956 (pascal_object_print_val_fields, pascal_object_print_val):
13958 (pascal_object_print_static_field): Update.
13959 * p-lang.h (pascal_val_print): Don't declare.
13960 * p-lang.c (pascal_language_defn): Update.
13961 * opencl-lang.c (opencl_language_defn): Update.
13962 * objc-lang.c (objc_language_defn): Update.
13963 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13964 * m2-lang.h (m2_val_print): Don't declare.
13965 * m2-lang.c (m2_language_defn): Update.
13966 * language.h (struct language_defn) <la_val_print>: Remove.
13967 * language.c (unk_lang_value_print_inner): Rename. Change
13969 (unknown_language_defn, auto_language_defn): Update.
13970 * go-valprint.c (go_val_print): Remove.
13971 * go-lang.h (go_val_print): Don't declare.
13972 * go-lang.c (go_language_defn): Update.
13973 * f-valprint.c (f_val_print): Remove.
13974 * f-lang.h (f_value_print): Don't declare.
13975 * f-lang.c (f_language_defn): Update.
13976 * d-valprint.c (d_val_print): Remove.
13977 * d-lang.h (d_value_print): Don't declare.
13978 * d-lang.c (d_language_defn): Update.
13979 * cp-valprint.c (cp_print_value_fields)
13980 (cp_print_value_fields_rtti, cp_print_value): Remove.
13981 (cp_print_static_field): Update.
13982 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13983 (c_val_print_struct, c_val_print_union, c_val_print_int)
13984 (c_val_print_memberptr, c_val_print): Remove.
13985 * c-lang.h (c_val_print_array, cp_print_value_fields)
13986 (cp_print_value_fields_rtti): Don't declare.
13987 * c-lang.c (c_language_defn, cplus_language_defn)
13988 (asm_language_defn, minimal_language_defn): Update.
13989 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13990 (ada_val_print_enum): Take a struct value.
13991 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13992 (ada_val_print): Remove.
13993 (ada_value_print_1): Update.
13994 (printable_val_type): Remove.
13995 * ada-lang.h (ada_val_print): Don't declare.
13996 * ada-lang.c (ada_language_defn): Update.
13998 2020-03-13 Tom Tromey <tom@tromey.com>
14000 * valprint.c (do_val_print): Update.
14001 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
14003 (value_to_value_object_no_release): Declare.
14004 * python/py-value.c (value_to_value_object_no_release): New
14006 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
14008 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
14010 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
14012 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
14014 (gdbscm_apply_val_pretty_printer): Take a struct value.
14015 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
14017 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
14019 * extension-priv.h (struct extension_language_ops)
14020 <apply_val_pretty_printer>: Take a struct value.
14021 * cp-valprint.c (cp_print_value): Create a struct value.
14022 (cp_print_value): Update.
14024 2020-03-13 Tom Tromey <tom@tromey.com>
14026 * ada-valprint.c (print_field_values): Call common_val_print.
14028 2020-03-13 Tom Tromey <tom@tromey.com>
14030 * ada-valprint.c (val_print_packed_array_elements): Remove
14031 bitoffset and val parameters. Call common_val_print.
14032 (ada_val_print_string): Remove offset, address, and original_value
14034 (ada_val_print_array): Update.
14035 (ada_value_print_array): New function.
14036 (ada_value_print_1): Call it.
14038 2020-03-13 Tom Tromey <tom@tromey.com>
14040 * ada-valprint.c (ada_value_print): Use common_val_print.
14042 2020-03-13 Tom Tromey <tom@tromey.com>
14044 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
14046 2020-03-13 Tom Tromey <tom@tromey.com>
14048 * ada-valprint.c (ada_value_print_num): New function.
14049 (ada_value_print_1): Use it.
14051 2020-03-13 Tom Tromey <tom@tromey.com>
14053 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
14055 2020-03-13 Tom Tromey <tom@tromey.com>
14057 * ada-valprint.c (ada_value_print_ptr): New function.
14058 (ada_value_print_1): Use it.
14060 2020-03-13 Tom Tromey <tom@tromey.com>
14062 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
14063 call common_val_print.
14064 (ada_val_print_1): Update.
14065 (ada_value_print_1): New function.
14066 (ada_value_print_inner): Rewrite.
14068 2020-03-13 Tom Tromey <tom@tromey.com>
14070 * cp-valprint.c (cp_print_value_fields): Update.
14071 (cp_print_value): New function.
14073 2020-03-13 Tom Tromey <tom@tromey.com>
14075 * m2-valprint.c (m2_value_print_inner): Use
14076 cp_print_value_fields.
14077 * cp-valprint.c (cp_print_value_fields): New function.
14078 * c-valprint.c (c_value_print_struct): New function.
14079 (c_value_print_inner): Use c_value_print_struct.
14080 * c-lang.h (cp_print_value_fields): Declare.
14082 2020-03-13 Tom Tromey <tom@tromey.com>
14084 * c-valprint.c (c_value_print_array): New function.
14085 (c_value_print_inner): Use it.
14087 2020-03-13 Tom Tromey <tom@tromey.com>
14089 * c-valprint.c (c_value_print_memberptr): New function.
14090 (c_value_print_inner): Use it.
14092 2020-03-13 Tom Tromey <tom@tromey.com>
14094 * c-valprint.c (c_value_print_int): New function.
14095 (c_value_print_inner): Use it.
14097 2020-03-13 Tom Tromey <tom@tromey.com>
14099 * c-valprint.c (c_value_print_ptr): New function.
14100 (c_value_print_inner): Use it.
14102 2020-03-13 Tom Tromey <tom@tromey.com>
14104 * c-valprint.c (c_value_print_inner): Rewrite.
14106 2020-03-13 Tom Tromey <tom@tromey.com>
14108 * valprint.c (generic_value_print_complex): New function.
14109 (generic_value_print): Use it.
14111 2020-03-13 Tom Tromey <tom@tromey.com>
14113 * valprint.c (generic_val_print_float): Don't call
14114 val_print_scalar_formatted.
14115 (generic_val_print, generic_value_print): Update.
14117 2020-03-13 Tom Tromey <tom@tromey.com>
14119 * valprint.c (generic_value_print_char): New function
14120 (generic_value_print): Use it.
14122 2020-03-13 Tom Tromey <tom@tromey.com>
14124 * valprint.c (generic_value_print_int): New function.
14125 (generic_value_print): Use it.
14127 2020-03-13 Tom Tromey <tom@tromey.com>
14129 * valprint.c (generic_value_print_bool): New function.
14130 (generic_value_print): Use it.
14132 2020-03-13 Tom Tromey <tom@tromey.com>
14134 * valprint.c (generic_val_print_func): Simplify.
14135 (generic_val_print, generic_value_print): Update.
14137 2020-03-13 Tom Tromey <tom@tromey.com>
14139 * valprint.c (generic_val_print_flags): Remove.
14140 (generic_val_print, generic_value_print): Update.
14141 (val_print_type_code_flags): Add original_value parameter.
14143 2020-03-13 Tom Tromey <tom@tromey.com>
14145 * valprint.c (generic_val_print): Update.
14146 (generic_value_print): Update.
14147 * valprint.c (generic_val_print_enum): Don't call
14148 val_print_scalar_formatted.
14150 2020-03-13 Tom Tromey <tom@tromey.com>
14152 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14153 * valprint.c (generic_value_print_ptr): New function.
14155 2020-03-13 Tom Tromey <tom@tromey.com>
14157 * valprint.c (generic_value_print): Rewrite.
14159 2020-03-13 Tom Tromey <tom@tromey.com>
14161 * p-valprint.c (pascal_object_print_value_fields)
14162 (pascal_object_print_value): New functions.
14164 2020-03-13 Tom Tromey <tom@tromey.com>
14166 * p-valprint.c (pascal_value_print_inner): Rewrite.
14168 2020-03-13 Tom Tromey <tom@tromey.com>
14170 * f-valprint.c (f_value_print_innner): Rewrite.
14172 2020-03-13 Tom Tromey <tom@tromey.com>
14174 * m2-valprint.c (m2_print_unbounded_array): New overload.
14175 (m2_print_unbounded_array): Update.
14176 (m2_print_array_contents): Take a struct value.
14177 (m2_value_print_inner): Rewrite.
14179 2020-03-13 Tom Tromey <tom@tromey.com>
14181 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14182 (d_value_print_inner): New function.
14183 * d-lang.h (d_value_print_inner): Declare.
14184 * d-lang.c (d_language_defn): Use d_value_print_inner.
14186 2020-03-13 Tom Tromey <tom@tromey.com>
14188 * go-valprint.c (go_value_print_inner): New function.
14189 * go-lang.h (go_value_print_inner): Declare.
14190 * go-lang.c (go_language_defn): Use go_value_print_inner.
14192 2020-03-13 Tom Tromey <tom@tromey.com>
14194 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14196 (rust_val_print): Rewrite.
14197 (rust_value_print_inner): New function, from rust_val_print.
14198 (rust_language_defn): Use rust_value_print_inner.
14200 2020-03-13 Tom Tromey <tom@tromey.com>
14202 * ada-valprint.c (ada_value_print_inner): New function.
14203 * ada-lang.h (ada_value_print_inner): Declare.
14204 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14206 2020-03-13 Tom Tromey <tom@tromey.com>
14208 * f-valprint.c (f_value_print_innner): New function.
14209 * f-lang.h (f_value_print_innner): Declare.
14210 * f-lang.c (f_language_defn): Use f_value_print_innner.
14212 2020-03-13 Tom Tromey <tom@tromey.com>
14214 * p-valprint.c (pascal_value_print_inner): New function.
14215 * p-lang.h (pascal_value_print_inner): Declare.
14216 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14218 2020-03-13 Tom Tromey <tom@tromey.com>
14220 * m2-valprint.c (m2_value_print_inner): New function.
14221 * m2-lang.h (m2_value_print_inner): Declare.
14222 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14224 2020-03-13 Tom Tromey <tom@tromey.com>
14226 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14227 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14228 * c-valprint.c (c_value_print_inner): New function.
14229 * c-lang.h (c_value_print_inner): Declare.
14230 * c-lang.c (c_language_defn, cplus_language_defn)
14231 (asm_language_defn, minimal_language_defn): Use
14232 c_value_print_inner.
14234 2020-03-13 Tom Tromey <tom@tromey.com>
14236 * p-valprint.c (pascal_object_print_value_fields): Now static.
14237 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14239 2020-03-13 Tom Tromey <tom@tromey.com>
14241 * c-valprint.c (c_val_print_array): Simplify.
14243 2020-03-13 Tom Tromey <tom@tromey.com>
14245 * valprint.c (value_print_array_elements): New function.
14246 * valprint.h (value_print_array_elements): Declare.
14248 2020-03-13 Tom Tromey <tom@tromey.com>
14250 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14251 * mips-tdep.c (mips_print_register): Use
14252 value_print_scalar_formatted.
14254 2020-03-13 Tom Tromey <tom@tromey.com>
14256 * valprint.h (value_print_scalar_formatted): Declare.
14257 * valprint.c (value_print_scalar_formatted): New function.
14259 2020-03-13 Tom Tromey <tom@tromey.com>
14261 * valprint.h (generic_value_print): Declare.
14262 * valprint.c (generic_value_print): New function.
14264 2020-03-13 Tom Tromey <tom@tromey.com>
14266 * valprint.c (do_val_print): Call la_value_print_inner, if
14268 * rust-lang.c (rust_language_defn): Update.
14269 * p-lang.c (pascal_language_defn): Update.
14270 * opencl-lang.c (opencl_language_defn): Update.
14271 * objc-lang.c (objc_language_defn): Update.
14272 * m2-lang.c (m2_language_defn): Update.
14273 * language.h (struct language_defn) <la_value_print_inner>: New
14275 * language.c (unknown_language_defn, auto_language_defn): Update.
14276 * go-lang.c (go_language_defn): Update.
14277 * f-lang.c (f_language_defn): Update.
14278 * d-lang.c (d_language_defn): Update.
14279 * c-lang.c (c_language_defn, cplus_language_defn)
14280 (asm_language_defn, minimal_language_defn): Update.
14281 * ada-lang.c (ada_language_defn): Update.
14283 2020-03-13 Tom Tromey <tom@tromey.com>
14285 * c-valprint.c (c_value_print): Use common_val_print.
14287 2020-03-13 Tom Tromey <tom@tromey.com>
14289 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14291 2020-03-13 Tom Tromey <tom@tromey.com>
14293 * f-valprint.c (f77_print_array_1, f_val_print): Use
14296 2020-03-13 Tom Tromey <tom@tromey.com>
14298 * riscv-tdep.c (riscv_print_one_register_info): Use
14301 2020-03-13 Tom Tromey <tom@tromey.com>
14303 * mi/mi-main.c (output_register): Use common_val_print.
14305 2020-03-13 Tom Tromey <tom@tromey.com>
14307 * infcmd.c (default_print_one_register_info): Use
14310 2020-03-13 Tom Tromey <tom@tromey.com>
14312 * valprint.h (common_val_print_checked): Declare.
14313 * valprint.c (common_val_print_checked): New function.
14314 * stack.c (print_frame_arg): Use common_val_print_checked.
14316 2020-03-13 Tom Tromey <tom@tromey.com>
14318 * valprint.c (do_val_print): New function, from val_print.
14319 (val_print): Use do_val_print.
14320 (common_val_print): Use do_val_print.
14322 2020-03-13 Tom Tromey <tom@tromey.com>
14324 * valprint.c (value_print): Use scoped_value_mark.
14326 2020-03-13 Tom de Vries <tdevries@suse.de>
14329 * psymtab.c (partial_symtab::partial_symtab): Don't set
14330 globals_offset and statics_offset. Push element onto
14331 current_global_psymbols and current_static_psymbols stacks.
14332 (concat): New function.
14333 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14334 element from current_global_psymbols and current_static_psymbols
14335 stacks. Concat popped elements to global_psymbols and
14337 (add_psymbol_to_list): Use current_global_psymbols and
14338 current_static_psymbols stacks.
14339 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14340 current_static_psymbols fields.
14342 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14344 * corelow.c (sniff_core_bfd): Remove.
14345 (class core_target) <m_core_vec>: Remove.
14346 (core_target::core_target): Update.
14347 (core_file_fns): Remove.
14348 (deprecated_add_core_fns): Remove.
14349 (default_core_sniffer): Remove.
14350 (sniff_core_bfd): Remove.
14351 (default_check_format): Remove.
14352 (gdb_check_format): Remove.
14353 (core_target_open): Update.
14354 (core_target::get_core_register_section): Update.
14355 (get_core_registers_cb): Update.
14356 (core_target::fetch_registers): Update.
14357 * gdbcore.h (struct core_fns): Remove.
14358 (deprecated_add_core_fns): Remove.
14359 (default_core_sniffer): Remove.
14360 (default_check_format): Remove.
14362 2020-03-12 Tom Tromey <tom@tromey.com>
14364 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14366 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14368 2020-03-12 Tom Tromey <tom@tromey.com>
14370 * remote.c (remote_target::download_tracepoint)
14371 (remote_target::enable_tracepoint)
14372 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14373 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14376 2020-03-12 Tom Tromey <tom@tromey.com>
14378 * symfile-mem.c: Update CORE_ADDR size assert.
14380 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14382 * selftest.m4: Move to gdbsupport/.
14383 * acinclude.m4: Update path to selftest.m4.
14385 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14387 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14388 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14389 gdbarch-selfselftests.c and selftest-arch.c.
14390 (SUBDIR_UNITTESTS_OBS): Rename to...
14391 (SELFTESTS_OBS): ... this.
14392 (COMMON_SFILES): Remove disasm-selftests.c and
14393 gdbarch-selftests.c.
14394 * configure.ac: Don't add selftest-arch.{c,o} to
14396 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14397 preprocessor conditions.
14399 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14401 * configure.ac: Don't source bfd/development.sh.
14402 * selftest.m4: Modify comment.
14403 * configure: Re-generate.
14405 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14407 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14408 not "true" or "false".
14409 * configure: Re-generate.
14411 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14413 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14414 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14415 renamed to arm_nbsd_supply_gregset.
14416 (fetch_register): Update to call arm_nbsd_supply_gregset.
14417 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14418 (arm_netbsd_nat_target::fetch_registers): Update.
14419 (fetch_elfcore_registers): Removed.
14420 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14421 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14422 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14423 not require NetBSD system headers.
14424 (arm_nbsd_regset): New struct.
14425 (arm_nbsd_iterate_over_regset_sections): New function.
14426 (arm_netbsd_init_abi_common): Updated to call
14427 set_gdbarch_iterate_over_regset_sections.
14428 * arm-nbsd-tdep.h: New file.
14430 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14432 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14435 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14437 * configure: Re-generate.
14439 2020-03-11 Tom Tromey <tromey@adacore.com>
14441 * ada-typeprint.c (print_choices): Fix comment.
14443 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14445 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14446 previous item in the list, when the list has no items.
14448 2020-03-11 Tom de Vries <tdevries@suse.de>
14450 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14451 PROP_LOCLIST handling code.
14453 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14455 * buildsym-legacy.c (record_line): Pass extra parameter to
14457 * buildsym.c (buildsym_compunit::record_line): Take an extra
14458 parameter, reduce duplication in the line table, and record the
14459 is_stmt flag in the line table.
14460 * buildsym.h (buildsym_compunit::record_line): Add extra
14462 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14463 non-statement lines.
14464 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14465 this to the symtab builder.
14466 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14467 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14468 through to dwarf_record_line_1.
14469 * infrun.c (process_event_stop_test): When stepping, don't stop at
14470 a non-statement instruction, and only refresh the step info when
14471 we land in the middle of a line's range. Also add an extra
14473 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14475 * record-btrace.c (btrace_find_line_range): Only record lines
14476 marked as is-statement.
14477 * stack.c (frame_show_address): Show the frame address if we are
14478 in a non-statement sal.
14479 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14480 (maintenance_print_one_line_table): Print a header for the is_stmt
14481 column, and include is_stmt information in the output.
14482 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14483 preference to non-statements.
14484 (find_pcs_for_symtab_line): Prefer is-statement entries.
14485 (find_line_common): Likewise.
14486 * symtab.h (struct linetable_entry): Add is_stmt field.
14487 (struct symtab_and_line): Likewise.
14488 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14489 arranging the line table.
14491 2020-03-07 Tom de Vries <tdevries@suse.de>
14493 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14496 2020-03-07 Tom Tromey <tom@tromey.com>
14498 * valops.c (value_literal_complex): Remove obsolete comment.
14499 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14502 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14504 * infrun.h: Forward-declare thread_info.
14505 (set_step_info): Add thread_info parameter, add doc.
14506 * infrun.c (set_step_info): Add thread_info parameter, move doc
14508 * infrun.c (process_event_stop_test): Pass thread to
14509 set_step_info call.
14510 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14512 (prepare_one_step): Add thread_info parameter, pass it to
14513 set_step_frame and prepare_one_step (recursive) call.
14514 (step_1): Pass thread to prepare_one_step call.
14515 (step_command_fsm::should_stop): Pass thread to
14517 (until_next_fsm): Pass thread to set_step_frame call.
14518 (finish_command): Pass thread to set_step_info call.
14520 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14522 * windows-tdep.c (windows_solib_create_inferior_hook):
14523 Check if inferior is running.
14525 2020-03-06 Tom de Vries <tdevries@suse.de>
14527 * NEWS: Fix "the the".
14530 2020-03-06 Tom de Vries <tdevries@suse.de>
14532 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14534 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14536 * .dir-locals.el: Add a comment referencing the other copies of
14539 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14541 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14544 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14546 * .gitattributes: New file.
14548 2020-03-04 Tom Tromey <tom@tromey.com>
14550 * symmisc.c (print_symbol_bcache_statistics)
14551 (print_objfile_statistics): Update.
14552 * symfile.c (allocate_symtab): Use intern.
14553 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14554 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14555 macro_cache>: Remove.
14556 <string_cache>: New member.
14557 (struct objfile) <intern>: New methods.
14558 * elfread.c (elf_symtab_read): Use intern.
14559 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14560 (dwarf2_compute_name, dwarf2_physname)
14561 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14563 (guess_partial_die_structure_name): Update.
14564 (partial_die_info::fixup): Intern name.
14565 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14567 (dwarf2_name): Intern name. Update.
14568 * buildsym.c (buildsym_compunit::get_macro_table): Use
14571 2020-03-04 Tom Tromey <tom@tromey.com>
14573 * jit.c (bfd_open_from_target_memory): Make "target" const.
14574 * corefile.c (gnutarget): Now const.
14575 * gdbcore.h (gnutarget): Now const.
14577 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14579 * NEWS: Mention support for WOW64 processes.
14580 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14581 (amd64_windows_segment_register_p): Remove static.
14582 (_initialize_amd64_windows_nat): Update.
14583 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14584 * i386-windows-nat.c (context_offset): Update.
14585 (i386_mappings): Rename and remove static.
14586 (i386_windows_segment_register_p): Remove static.
14587 (_initialize_i386_windows_nat): Update.
14588 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14589 (STATUS_WX86_SINGLE_STEP): New macro.
14590 (EnumProcessModulesEx): New macro.
14591 (Wow64SuspendThread): New macro.
14592 (Wow64GetThreadContext): New macro.
14593 (Wow64SetThreadContext): New macro.
14594 (Wow64GetThreadSelectorEntry): New macro.
14595 (windows_set_context_register_offsets): Add static.
14596 (windows_set_segment_register_p): Likewise.
14597 (windows_add_thread): Adapt for WOW64 processes.
14598 (windows_fetch_one_register): Likewise.
14599 (windows_nat_target::fetch_registers): Likewise.
14600 (windows_store_one_register): Likewise.
14601 (display_selector): Likewise.
14602 (display_selectors): Likewise.
14603 (handle_exception): Likewise.
14604 (windows_continue): Likewise.
14605 (windows_nat_target::resume): Likewise.
14606 (windows_add_all_dlls): Likewise.
14607 (do_initial_windows_stuff): Likewise.
14608 (windows_nat_target::attach): Likewise.
14609 (windows_get_exec_module_filename): Likewise.
14610 (windows_nat_target::create_inferior): Likewise.
14611 (windows_xfer_siginfo): Likewise.
14612 (_initialize_loadable): Initialize Wow64SuspendThread,
14613 Wow64GetThreadContext, Wow64SetThreadContext,
14614 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14615 * windows-nat.h (windows_set_context_register_offsets):
14616 Remove declaration.
14617 (windows_set_segment_register_p): Likewise.
14618 (i386_windows_segment_register_p): Add declaration.
14619 (amd64_windows_segment_register_p): Likewise.
14621 2020-03-04 Luis Machado <luis.machado@linaro.org>
14623 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14624 in "info registers" for AArch64/ARM.
14626 The change caused "info registers" to not print GPR's.
14630 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14632 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14633 when reg->group is empty and reggroup is not.
14635 2020-03-03 Tom Tromey <tromey@adacore.com>
14637 * dwarf2/frame.c (struct dwarf2_frame_cache)
14638 <checked_tailcall_bottom, entry_cfa_sp_offset,
14639 entry_cfa_sp_offset_p>: Remove members.
14640 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14641 (dwarf2_frame_prev_register): Don't call
14642 dwarf2_tailcall_sniffer_first.
14643 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14644 * frame-unwind.c (add_unwinder): New fuction.
14645 (frame_unwind_init): Use it. Add tailcall unwinder.
14647 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14648 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14650 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14651 value should be printed as true.
14653 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14655 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14656 (windows_init_abi): Set and use windows_so_ops.
14658 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14660 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14661 when verifying if dealing with a convenience variable.
14663 2020-03-03 Luis Machado <luis.machado@linaro.org>
14665 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14667 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14669 * infrun.c (gdbarch_supports_displaced_stepping): New.
14670 (use_displaced_stepping): Break up conditions in smaller pieces.
14671 Use gdbarch_supports_displaced_stepping.
14672 (displaced_step_prepare_throw): Use
14673 gdbarch_supports_displaced_stepping.
14675 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14677 * NEWS: Mention new behaviour of the history filename.
14678 * top.c (write_history_p): Add comment.
14679 (show_write_history_p): Add header comment, give a different
14680 message when history writing is on, but the history filename is
14682 (history_filename): Add comment.
14683 (history_filename_empty): New function.
14684 (show_history_filename): Add header comment, give a different
14685 message when the filename is empty.
14686 (init_history): Compare history_filename against nullptr, and only
14687 read history if the filename is not empty.
14688 (set_history_filename): Add header comment, and only make
14689 non-empty filenames absolute.
14690 (init_main): Make the filename argument to 'set history filename'
14693 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14695 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14696 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14697 (fetch_fp_register): Update.
14698 (fetch_fp_regs): Update.
14699 (store_fp_register): Update.
14700 (store_fp_regs): Update.
14701 (arm_netbsd_nat_target::read_description): New function.
14702 (fetch_elfcore_registers): Update.
14704 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14706 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14707 general_thread if the stop reply is missing a thread-id.
14708 (remote_target::process_stop_reply): Use the first non-exited
14709 thread if the target didn't pass a thread-id.
14710 * infrun.c (do_target_wait): Move call to
14711 switch_to_inferior_no_thread to ....
14712 (do_target_wait_1): ... here.
14714 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14716 * debuginfod-support.c: Include defs.h first.
14718 2020-02-28 Tom de Vries <tdevries@suse.de>
14720 * symfile.c (set_initial_language): Use default language for lookup.
14722 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14724 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14725 reader variable, pass `this` to read_cutu_die_from_dwo.
14727 2020-02-27 Aaron Merey <amerey@redhat.com>
14729 * source.c (open_source_file): Check for nullptr when computing
14732 2020-02-27 Tom Tromey <tromey@adacore.com>
14734 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14736 (dwarf2_add_field): Don't update nfields.
14737 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14739 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14741 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14744 2020-02-26 Tom Tromey <tom@tromey.com>
14746 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14747 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14748 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14749 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14752 2020-02-26 Tom Tromey <tom@tromey.com>
14754 * dwarf2/index-write.c (psym_index_map): Change type.
14755 (add_address_entry_worker, write_one_signatured_type)
14756 (recursively_count_psymbols, recursively_write_psymbols)
14757 (class debug_names, psyms_seen_size, write_gdbindex)
14758 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14760 2020-02-26 Aaron Merey <amerey@redhat.com>
14762 * Makefile.in: Handle optional debuginfod support.
14764 * README: Add --with-debuginfod summary.
14765 * config.in: Regenerate.
14766 * configure: Regenerate.
14767 * configure.ac: Handle optional debuginfod support.
14768 * debuginfod-support.c: debuginfod helper functions.
14769 * debuginfod-support.h: Ditto.
14770 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14772 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14773 when a dwz file cannot be found.
14774 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14775 debuginfo file cannot be found.
14776 * source.c (open_source_file): Query debuginfod servers when a
14777 source file cannot be found.
14778 * top.c (print_gdb_configuration): Include
14779 --{with,without}-debuginfod in the output.
14781 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14783 * thread.c (thr_try_catch_cmd): Print thread name.
14785 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14787 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14788 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14789 dwarf2_fetch_die_type_sect_off): Move to...
14790 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14791 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14792 dwarf2_fetch_die_type_sect_off): ... here.
14793 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14794 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14795 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14797 2020-02-26 Tom de Vries <tdevries@suse.de>
14800 * symfile.c (set_initial_language): Exit-early if
14801 language_mode == language_mode_manual.
14803 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14805 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14806 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14807 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14809 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14811 * gdbtypes.c (create_array_type_with_stride): Handle negative
14813 * valarith.c (value_subscripted_rvalue): Likewise.
14815 2020-02-25 Luis Machado <luis.machado@linaro.org>
14817 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14819 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14821 * loc.h (dwarf2_get_die_type): Move to...
14822 * read.h (dwarf2_get_die_type): ... here.
14823 * read.c (dwarf2_get_die_type): Move doc to header.
14825 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14827 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14828 'gnulib/Makefile.in' to the list.
14830 2020-02-24 Tom Tromey <tom@tromey.com>
14832 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14834 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14837 2020-02-24 Tom Tromey <tom@tromey.com>
14839 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14841 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14842 (dw2_do_instantiate_symtab, dw2_get_file_names)
14843 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14845 2020-02-24 Tom Tromey <tom@tromey.com>
14847 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14848 make_scoped_restore.
14849 (dwarf2_psymtab::read_symtab): Don't clear
14850 reading_partial_symbols.
14852 2020-02-24 Tom de Vries <tdevries@suse.de>
14855 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14857 2020-02-24 Tom de Vries <tdevries@suse.de>
14859 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14860 commands layout next/prev/regs.
14862 2020-02-22 Tom Tromey <tom@tromey.com>
14864 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14865 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14867 2020-02-22 Tom Tromey <tom@tromey.com>
14869 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14871 2020-02-22 Tom Tromey <tom@tromey.com>
14873 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14874 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14875 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14876 * tui/tui.c (_initialize_tui): Add usage text.
14878 2020-02-22 Tom Tromey <tom@tromey.com>
14880 * tui/tui-win.c (tui_set_focus_command)
14881 (tui_set_win_height_command): Use error_no_arg.
14882 (_initialize_tui_win): Update help text.
14883 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14885 2020-02-22 Tom Tromey <tom@tromey.com>
14887 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14888 * tui/tui-disasm.h (struct tui_disasm_window)
14889 <display_start_addr>: Declare.
14890 * tui/tui-source.h (struct tui_source_window)
14891 <display_start_addr>: Declare.
14892 * tui/tui-winsource.h (struct tui_source_window_base)
14893 <show_source_line, display_start_addr>: New methods.
14894 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14895 Rename and move to protected section.
14896 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14897 (tui_source_window_base::do_erase_source_content): Update.
14898 (tui_source_window_base::show_source_line): Now a method.
14899 (tui_source_window_base::show_source_content)
14900 (tui_source_window_base::tui_source_window_base)
14901 (tui_source_window_base::rerender)
14902 (tui_source_window_base::refill)
14903 (tui_source_window_base::do_scroll_horizontal)
14904 (tui_source_window_base::set_is_exec_point_at)
14905 (tui_source_window_base::update_breakpoint_info)
14906 (tui_source_window_base::update_exec_info): Update.
14907 * tui/tui-source.c (tui_source_window::set_contents)
14908 (tui_source_window::showing_source_p)
14909 (tui_source_window::do_scroll_vertical)
14910 (tui_source_window::location_matches_p)
14911 (tui_source_window::line_is_displayed): Update.
14912 (tui_source_window::display_start_addr): New method.
14913 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14914 (tui_disasm_window::do_scroll_vertical)
14915 (tui_disasm_window::location_matches_p): Update.
14916 (tui_disasm_window::display_start_addr): New method.
14918 2020-02-22 Tom Tromey <tom@tromey.com>
14920 * NEWS: Add entry for gdb.register_window_type.
14921 * tui/tui-layout.h (window_factory): New typedef.
14922 (tui_register_window): Declare.
14923 * tui/tui-layout.c (saved_tui_windows): New global.
14924 (tui_apply_current_layout): Use it.
14925 (tui_register_window): New function.
14926 * python/python.c (do_start_initialization): Call
14927 gdbpy_initialize_tui.
14928 (python_GdbMethods): Add "register_window_type" function.
14929 * python/python-internal.h (gdbpy_register_tui_window)
14930 (gdbpy_initialize_tui): Declare.
14931 * python/py-tui.c: New file.
14932 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14934 2020-02-22 Tom Tromey <tom@tromey.com>
14936 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14938 2020-02-22 Tom Tromey <tom@tromey.com>
14940 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14941 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14942 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14943 (tui_set_win_focus_to): Move from tui-win.c.
14945 2020-02-22 Tom Tromey <tom@tromey.com>
14947 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14949 (known_window_types): New global.
14950 (tui_get_window_by_name): Reimplement.
14951 (initialize_known_windows): New function.
14952 (validate_window_name): Rewrite.
14953 (_initialize_tui_layout): Call initialize_known_windows.
14955 2020-02-22 Tom Tromey <tom@tromey.com>
14957 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14959 * tui/tui-winsource.h (struct tui_source_window_base)
14960 <tui_source_window_base>: Remove parameter.
14961 * tui/tui-winsource.c
14962 (tui_source_window_base::tui_source_window_base): Remove
14964 (tui_source_window_base::refill): Update.
14965 * tui/tui-stack.h (struct tui_locator_window)
14966 <tui_locator_window>: Update.
14967 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14968 Default the constructor.
14969 * tui/tui-regs.h (struct tui_data_item_window)
14970 <tui_data_item_window>: Default the constructor.
14971 (struct tui_data_window) <tui_data_window>: Likewise.
14972 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14973 Default the constructor.
14974 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14975 Default the constructor.
14977 (struct tui_win_info) <tui_win_info>: Default the constructor.
14978 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14979 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14980 Default the constructor.
14982 2020-02-22 Tom Tromey <tom@tromey.com>
14984 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14985 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14986 * tui/tui-win.c (tui_resize_all): Don't call
14987 tui_delete_invisible_windows.
14988 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14990 (tui_set_layout): Update.
14991 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14992 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14993 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14995 2020-02-22 Tom Tromey <tom@tromey.com>
14997 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
15000 2020-02-22 Tom Tromey <tom@tromey.com>
15002 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
15004 2020-02-22 Tom Tromey <tom@tromey.com>
15006 * tui/tui-winsource.h (struct tui_source_window_iterator)
15007 <inner_iterator>: New etytypedef.
15008 <tui_source_window_iterator>: Take "end" parameter.
15009 <tui_source_window_iterator>: Take iterator.
15010 <operator*, advance>: Update.
15011 <m_iter>: Change type.
15012 <m_end>: New field.
15013 (struct tui_source_windows) <begin, end>: Update.
15014 * tui/tui-layout.c (tui_windows): New global.
15015 (tui_apply_current_layout): Clear tui_windows.
15016 (tui_layout_window::apply): Update tui_windows.
15017 * tui/tui-data.h (tui_windows): Declare.
15018 (all_tui_windows): Now inline function.
15019 (class tui_window_iterator, struct all_tui_windows): Remove.
15021 2020-02-22 Tom Tromey <tom@tromey.com>
15024 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
15025 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
15027 (class tui_layout_window) <get_sizes>: Likewise.
15028 (class tui_layout_split) <tui_layout_split>: Add "vertical"
15030 <get_sizes>: Add "height" argument.
15031 <m_vertical>: New field.
15032 * tui/tui-layout.c (tui_layout_split::clone): Update.
15033 (tui_layout_split::get_sizes): Add "height" argument.
15034 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
15035 (tui_new_layout_command): Parse "-horizontal".
15036 (_initialize_tui_layout): Update help string.
15037 (tui_layout_split::specification): Add "-horizontal" when needed.
15038 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
15040 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
15043 2020-02-22 Tom Tromey <tom@tromey.com>
15045 * tui/tui-layout.h (enum tui_adjust_result): New.
15046 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
15047 (class tui_layout_window) <adjust_size>: Return
15048 tui_adjust_result. Rewrite.
15049 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
15050 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
15052 2020-02-22 Tom Tromey <tom@tromey.com>
15054 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
15055 parameter and return types.
15056 (class tui_layout_base) <specification>: Add "depth".
15057 (class tui_layout_window) <specification>: Add "depth".
15058 (class tui_layout_split) <specification>: Add "depth".
15059 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
15061 (tui_new_layout_command): Parse sub-layouts.
15062 (_initialize_tui_layout): Update help string.
15063 (tui_layout_window::specification): Add "depth".
15064 (add_layout_command): Update.
15066 2020-02-22 Tom Tromey <tom@tromey.com>
15068 * NEWS: Add "tui new-layout" item.
15069 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
15070 Add new-layout command to help text.
15071 (validate_window_name): New function.
15072 (tui_new_layout_command): New function.
15073 (_initialize_tui_layout): Register "new-layout".
15074 (tui_layout_window::specification): New method.
15075 (tui_layout_window::specification): New method.
15076 * tui/tui-layout.h (class tui_layout_base) <specification>: New
15078 (class tui_layout_window) <specification>: New method.
15079 (class tui_layout_split) <specification>: New method.
15081 2020-02-22 Tom Tromey <tom@tromey.com>
15083 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
15084 * tui/tui-win.c (window_name_completer): Update comment.
15085 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
15087 (class tui_layout_window) <replace_window>: Likewise.
15088 (class tui_layout_split) <replace_window>: Likewise.
15089 (tui_set_layout): Don't declare.
15090 (tui_set_initial_layout): Declare function.
15091 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
15092 (asm_regs_layout): New globals.
15093 (tui_current_layout, show_layout): Remove.
15094 (tui_set_layout, tui_add_win_to_layout): Rewrite.
15095 (find_layout, tui_apply_layout): New function.
15096 (layout_completer): Remove.
15097 (tui_next_layout): Reimplement.
15098 (tui_next_layout_command): New function.
15099 (tui_set_initial_layout, tui_prev_layout_command): New functions.
15100 (tui_regs_layout): Reimplement.
15101 (tui_regs_layout_command): New function.
15102 (extract_display_start_addr): Rewrite.
15103 (next_layout, prev_layout): Remove.
15104 (tui_layout_window::replace_window): New method.
15105 (tui_layout_split::replace_window): New method.
15106 (destroy_layout): New function.
15107 (layout_list): New global.
15108 (add_layout_command): New function.
15109 (initialize_layouts): Update.
15110 (tui_layout_command): New function.
15111 (_initialize_tui_layout): Install "layout" commands.
15112 * tui/tui-data.h (enum tui_layout_type): Remove.
15113 (tui_current_layout): Don't declare.
15115 2020-02-22 Tom Tromey <tom@tromey.com>
15117 * tui/tui-regs.c (tui_reg_layout): Remove.
15118 (tui_reg_command): Use tui_regs_layout.
15119 * tui/tui-layout.h (tui_reg_command): Declare.
15120 * tui/tui-layout.c (tui_reg_command): New function.
15122 2020-02-22 Tom Tromey <tom@tromey.com>
15124 * tui/tui.c (tui_rl_delete_other_windows): Call
15125 tui_remove_some_windows.
15126 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15128 (class tui_layout_window) <remove_windows>: New method.
15129 (class tui_layout_split) <remove_windows>: Declare.
15130 (tui_remove_some_windows): Declare.
15131 * tui/tui-layout.c (tui_remove_some_windows): New function.
15132 (tui_layout_split::remove_windows): New method.
15134 2020-02-22 Tom Tromey <tom@tromey.com>
15136 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15137 * tui/tui-layout.h (tui_next_layout): Declare.
15138 * tui/tui-layout.c (tui_next_layout): New function.
15140 2020-02-22 Tom Tromey <tom@tromey.com>
15142 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15143 correct coordinates.
15145 2020-02-22 Tom Tromey <tom@tromey.com>
15147 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15148 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15151 2020-02-22 Tom Tromey <tom@tromey.com>
15153 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15154 TUI_DISASM_WIN, not tui_win_list.
15156 2020-02-22 Tom Tromey <tom@tromey.com>
15158 * valprint.c (generic_val_print_enum_1)
15159 (val_print_type_code_flags): Style member names.
15160 * rust-lang.c (val_print_struct, rust_print_enum)
15161 (rust_print_struct_def, rust_internal_print_type): Style member
15163 * p-valprint.c (pascal_object_print_value_fields): Style member
15164 names. Only call fprintf_symbol_filtered for static members.
15165 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15166 * f-valprint.c (f_val_print): Style member names.
15167 * f-typeprint.c (f_type_print_base): Style member names.
15168 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15169 call fprintf_symbol_filtered for static members.
15170 (cp_print_class_member): Style member names.
15171 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15173 * ada-valprint.c (ada_print_scalar): Style enum names.
15174 (ada_val_print_enum): Likewise.
15175 * ada-typeprint.c (print_enum_type): Style enum names.
15177 2020-02-21 Tom Tromey <tom@tromey.com>
15179 * psympriv.h (struct partial_symtab): Update comment.
15181 2020-02-21 Tom Tromey <tromey@adacore.com>
15183 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15186 2020-02-21 Tom de Vries <tdevries@suse.de>
15189 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15190 if dependencies[i]->user != NULL.
15192 2020-02-21 Ali Tamur <tamur@google.com>
15194 * dwarf2/read.c (dwarf2_name): Add null check.
15196 2020-02-20 Tom Tromey <tom@tromey.com>
15198 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15199 ">=", in binary search.
15200 (dwarf2_find_containing_comp_unit): New overload.
15201 (run_test): New self-test.
15202 (_initialize_dwarf2_read): Register new test.
15204 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
15206 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15207 * riscv-tdep.h: Likewise.
15208 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15210 * features/riscv/64bit-csr.xml: Regenerated.
15212 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15213 Tom Tromey <tom@tromey.com>
15215 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15216 of 'fputc_unfiltered'.
15217 (putchar_unfiltered): Call 'fputc_unfiltered'.
15218 (fputc_unfiltered): Call 'fputs_unfiltered'.
15220 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15222 * config.in: Regenerate.
15223 * configure: Regenerate.
15224 * configure.ac: Add --with-python-libdir option.
15225 * main.c: Use WITH_PYTHON_LIBDIR.
15227 2020-02-19 Tom Tromey <tom@tromey.com>
15229 * symtab.c (general_symbol_info::compute_and_set_names): Use
15230 obstack_strndup. Simplify call to symbol_set_demangled_name.
15232 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
15234 * dwarf2/read.c (allocate_signatured_type_table,
15235 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15236 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15237 Remove objfile parameter, update all callers.
15239 2020-02-19 Doug Evans <dje@google.com>
15242 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15243 rust_enum_variant calculation.
15245 2020-02-19 Tom Tromey <tromey@adacore.com>
15247 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15249 2020-02-19 Tom Tromey <tromey@adacore.com>
15251 * ada-lang.c (cache_symbol): Use obstack_strdup.
15253 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15255 * configure: Regenerate.
15257 2020-02-19 Tom Tromey <tromey@adacore.com>
15259 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15262 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
15264 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15266 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15268 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15269 if GDBSERVER is not defined.
15270 (riscv_tdesc_cache): Likewise, also store const target_desc.
15271 (STATIC_IN_GDB): Define.
15272 (riscv_create_target_description): Update declaration with
15274 (riscv_lookup_target_description): New function, only define if
15275 GDBSERVER is not defined.
15276 * arch/riscv.h (riscv_create_target_description): Declare only
15277 when GDBSERVER is defined.
15278 (riscv_lookup_target_description): New declaration when GDBSERVER
15280 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15281 (riscv_linux_read_features): ...this, and return
15282 riscv_gdbarch_features instead of target_desc.
15283 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15284 (riscv_linux_read_description): Rename to...
15285 (riscv_linux_read_features): ...this.
15286 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15287 Update to use riscv_gdbarch_features and
15288 riscv_lookup_target_description.
15289 * riscv-tdep.c (riscv_find_default_target_description): Use
15290 riscv_lookup_target_description instead of
15291 riscv_create_target_description.
15293 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15295 * valprint.c (generic_val_print_enum_1): When printing a flag
15296 enum with value 0 and there is no enumerator with value 0, print
15297 just "0" instead of "(unknown: 0x0)".
15299 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15301 * valprint.c (generic_val_print_enum_1): Print unknown part of
15304 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15306 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15307 flag enums to contain duplicate enumerators.
15308 * valprint.c (generic_val_print_enum_1): Update comment.
15310 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15312 * dwarf2/read.c: Include "count-one-bits.h".
15313 (update_enumeration_type_from_children): If an enumerator has
15314 multiple bits set, don't treat the enumeration as a "flag enum".
15315 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15316 of flag enums have 0 or 1 bit set.
15318 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15320 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15322 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15323 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15324 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15325 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15326 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15328 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15330 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15332 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15334 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15335 displaced_step_closure_up.
15336 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15337 (struct displaced_step_closure_up):
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):
15342 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15343 * gdbarch.c, gdbarch.h: Re-generate.
15344 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15345 displaced_step_closure_up.
15346 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15347 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15348 * infrun.h (displaced_step_closure_up): New type alias.
15349 (struct displaced_step_inferior_state) <step_closure>: Change
15350 type to displaced_step_closure_up.
15351 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15352 displaced_step_closure_up.
15353 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15355 2020-02-14 Tom Tromey <tom@tromey.com>
15357 * minidebug.c (gnu_debug_key): New global.
15358 (find_separate_debug_file_in_section): Use it.
15360 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15362 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15364 * gdbarch.c: Re-generate.
15365 * gdbarch.h: Re-generate.
15366 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15368 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15369 type to std::unique_ptr.
15370 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15371 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15372 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15373 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15374 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15375 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15376 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15377 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15378 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15380 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15382 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15384 (displaced_step_clear): Rename to...
15385 (displaced_step_reset): ... this. Just call displaced->reset ().
15386 (displaced_step_clear_cleanup): Rename to...
15387 (displaced_step_reset_cleanup): ... this.
15388 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15389 (displaced_step_fixup): Likewise.
15390 (resume_1): Likewise.
15391 (handle_inferior_event): Restore child's memory before calling
15392 displaced_step_fixup on the parent.
15393 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15394 to std::unique_ptr.
15395 <step_closure>: Change type to std::unique_ptr.
15397 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15399 * arm-tdep.c: Include count-one-bits.h.
15400 (cleanup_block_store_pc): Use count_one_bits.
15401 (cleanup_block_load_pc): Use count_one_bits.
15402 (arm_copy_block_xfer): Use count_one_bits.
15403 (thumb2_copy_block_xfer): Use count_one_bits.
15404 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15405 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15406 (thumb_get_next_pcs_raw): Use count_one_bits.
15407 (arm_get_next_pcs_raw): Use count_one_bits_l.
15408 * arch/arm.c (bitcount): Remove.
15409 * arch/arm.h (bitcount): Remove.
15411 2020-02-14 Tom Tromey <tromey@adacore.com>
15413 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15415 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15416 * dwarf2/loc.c (call_site_find_chain_1): Return
15417 unique_xmalloc_ptr.
15418 (call_site_find_chain): Likewise.
15420 2020-02-14 Richard Biener <rguenther@suse.de>
15422 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15423 on expression with division operators.
15425 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15427 * MAINTAINERS (Write After Approval): Adding myself.
15429 2020-02-12 Tom Tromey <tom@tromey.com>
15431 * event-loop.c (event_data, gdb_event, event_handler_func):
15434 2020-02-12 Tom Tromey <tom@tromey.com>
15436 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15437 (dwarf2_frame_objfile_data): Add comment.
15438 (find_comp_unit, set_comp_unit): New functions.
15439 (dwarf2_frame_find_fde): Use find_comp_unit.
15440 (dwarf2_build_frame_info): Use set_comp_unit.
15442 2020-02-12 Tom Tromey <tom@tromey.com>
15444 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15445 (comp_unit): Don't initialize objfile.
15446 (execute_cfa_program): Add text_offset parameter.
15447 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15448 (dwarf2_frame_cache): Update.
15449 (dwarf2_build_frame_info): Don't set "objfile" member.
15451 2020-02-12 Tom Tromey <tom@tromey.com>
15453 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15454 (decode_frame_entry): Likewise.
15455 (dwarf2_build_frame_info): Update.
15457 2020-02-12 Tom Tromey <tom@tromey.com>
15459 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15460 (decode_frame_entry_1): Use the comp_unit obstack.
15462 2020-02-12 Tom Tromey <tom@tromey.com>
15464 * dwarf2/frame.c (struct comp_unit): Add initializers and
15466 (dwarf2_frame_objfile_data): Store a comp_unit.
15467 (dwarf2_frame_find_fde): Update.
15468 (dwarf2_build_frame_info): Use "new".
15470 2020-02-12 Tom Tromey <tom@tromey.com>
15472 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15473 (dwarf2_fde_table): Typedef for std::vector.
15474 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15475 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15476 (decode_frame_entry): Update.
15477 (dwarf2_build_frame_info): Use "new".
15479 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15481 * arm-tdep.c (arm_gdbarch_init): Update.
15482 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15483 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15484 have_neon, is_m>: Change to bool.
15486 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15488 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15490 2020-02-12 Tom Tromey <tom@tromey.com>
15492 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15494 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15496 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15497 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15499 2020-02-11 Tom Tromey <tom@tromey.com>
15501 * psymtab.h: Update comment.
15503 2020-02-11 Tom Tromey <tom@tromey.com>
15505 * gdb_obstack.h (struct auto_obstack): Use
15506 DISABLE_COPY_AND_ASSIGN.
15508 2020-02-11 Tom Tromey <tom@tromey.com>
15510 * dwarf2/frame.h (struct objfile): Don't forward declare.
15512 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15514 * cris-tdep.c (cris_supply_gregset): Change signature to match
15515 what struct regset expects.
15516 (cris_regset): New struct.
15517 (fetch_core_registers): Remove.
15518 (cris_iterate_over_regset_sections): New function.
15519 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15520 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15522 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15524 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15527 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15529 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15531 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15533 * configure: Re-generate.
15535 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15537 * configure: Re-generate.
15539 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15541 * acinclude: Update warning.m4 path.
15542 * warning.m4: Move to gdbsupport.
15544 2020-02-11 Tom Tromey <tromey@adacore.com>
15546 * remote.c (remote_console_output): Update.
15547 * printcmd.c (printf_command): Update.
15548 * event-loop.c (gdb_wait_for_event): Update.
15549 * linux-nat.c (sigchld_handler): Update.
15550 * remote-sim.c (gdb_os_write_stdout): Update.
15551 (gdb_os_flush_stdout): Update.
15552 (gdb_os_flush_stderr): Update.
15553 (gdb_os_write_stderr): Update.
15554 * exceptions.c (print_exception): Update.
15555 * remote-fileio.c (remote_fileio_func_read): Update.
15556 (remote_fileio_func_write): Update.
15557 * tui/tui.c (tui_enable): Update.
15558 * tui/tui-interp.c (tui_interp::init): Update.
15559 * utils.c (init_page_info): Update.
15560 (putchar_unfiltered, fputc_unfiltered): Update.
15561 (gdb_flush): Update.
15562 (emit_style_escape): Update.
15563 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15564 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15565 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15566 (stderr_file::write): Update.
15567 (stderr_file::puts): Update.
15568 * ui-file.h (ui_file_isatty, ui_file_write)
15569 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15570 (ui_file_puts): Don't declare.
15572 2020-02-10 Tom de Vries <tdevries@suse.de>
15574 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15575 sentinel to char *.
15577 2020-02-09 Tom de Vries <tdevries@suse.de>
15579 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15580 filename if it matches "<artificial>".
15582 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15584 * windows-tdep.c (struct enum_value_name): New struct.
15585 (create_enum): New function.
15586 (windows_get_siginfo_type): Create and use enum types.
15588 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15590 * NEWS: Mention $_siginfo support for Windows.
15591 * windows-nat.c (handle_exception): Set siginfo_er.
15592 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15593 (windows_xfer_siginfo): New function.
15594 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15595 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15596 (init_windows_gdbarch_data): New function.
15597 (get_windows_gdbarch_data): New function.
15598 (windows_get_siginfo_type): New function.
15599 (windows_init_abi): Register windows_get_siginfo_type.
15600 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15602 2020-02-08 Tom Tromey <tom@tromey.com>
15604 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15605 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15606 <keep>: Declare method.
15607 <m_keep>: Remove member.
15608 <~cutu_reader>: Remove.
15609 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15610 (cutu_reader::cutu_reader): Update.
15611 (cutu_reader::keep): Rename from ~cutu_reader.
15612 (process_psymtab_comp_unit, build_type_psymtabs_1)
15613 (process_skeletonless_type_unit, load_partial_comp_unit)
15614 (load_full_comp_unit, dwarf2_read_addr_index)
15615 (read_signatured_type): Update.
15617 2020-02-08 Tom Tromey <tom@tromey.com>
15619 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15620 "want_partial_unit" parameter.
15621 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15622 Inline check for DW_TAG_partial_unit.
15623 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15625 2020-02-08 Tom Tromey <tom@tromey.com>
15627 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15629 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15632 2020-02-08 Tom Tromey <tom@tromey.com>
15634 * dwarf2/read.c (read_address): Move to comp-unit.c.
15635 (dwarf2_rnglists_process, dwarf2_ranges_process)
15636 (read_attribute_value, dwarf_decode_lines_1)
15637 (var_decode_location, decode_locdesc): Update.
15638 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15639 read.c. Remove "cu" parameter.
15640 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15643 2020-02-08 Tom Tromey <tom@tromey.com>
15645 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15646 (read_indirect_line_string): Update.
15647 * dwarf2/comp-unit.c (read_offset): Remove.
15648 (read_comp_unit_head): Update.
15649 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15651 (read_offset): Don't declare.
15653 2020-02-08 Tom Tromey <tom@tromey.com>
15655 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15656 * dwarf2/read.c (struct comp_unit_head): Move to
15657 dwarf2/comp-unit.h.
15658 (enum class rcuh_kind): Move to comp-unit.h.
15659 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15660 (read_comp_unit_head, error_check_comp_unit_head)
15661 (read_and_check_comp_unit_head): Move to comp-unit.c.
15662 (read_offset, dwarf_unit_type_name): Likewise.
15663 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15664 (cutu_reader::cutu_reader, read_call_site_scope)
15665 (find_partial_die, follow_die_offset): Update.
15666 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15668 2020-02-08 Tom Tromey <tom@tromey.com>
15670 * dwarf2/read.c (read_offset_1): Move to leb.c.
15671 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15672 (dwarf_decode_macro_bytes): Update.
15673 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15674 * dwarf2/leb.h (read_offset): Declare.
15676 2020-02-08 Tom Tromey <tom@tromey.com>
15678 * dwarf2/read.c (dwarf2_section_size): Remove.
15679 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15681 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15683 2020-02-08 Tom Tromey <tom@tromey.com>
15685 * dwarf2/read.c (read_initial_length): Move to leb.c.
15686 * dwarf2/leb.h (read_initial_length): Declare.
15687 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15688 handle_nonstd parameter.
15689 * dwarf2/frame.c (read_initial_length): Remove.
15690 (decode_frame_entry_1): Update.
15692 2020-02-08 Tom Tromey <tom@tromey.com>
15694 * dwarf2/loc.c (dwarf2_find_location_expression)
15695 (dwarf_evaluate_loc_desc::get_tls_address)
15696 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15697 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15698 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15699 (dwarf2_compile_property_to_c)
15700 (dwarf2_loc_desc_get_symbol_read_needs)
15701 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15702 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15703 (loclist_describe_location, loclist_tracepoint_var_ref)
15704 (loclist_generate_c_location): Update.
15705 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15706 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15707 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15708 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15709 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15710 (dwarf2_per_cu_data::addr_size)
15711 (dwarf2_per_cu_data::ref_addr_size)
15712 (dwarf2_per_cu_data::text_offset)
15713 (dwarf2_per_cu_data::addr_type): Now methods.
15714 (per_cu_header_read_in): Make per_cu "const".
15715 (dwarf2_version): Remove.
15716 (dwarf2_per_cu_data::int_type): Now a method.
15717 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15718 (set_die_type, read_array_type, read_subrange_index_type)
15719 (read_tag_string_type, read_subrange_type): Update.
15720 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15721 offset_size, ref_addr_size, text_offset, addr_type, version,
15722 objfile, int_type, addr_sized_int_type>: Declare methods.
15724 2020-02-08 Tom Tromey <tom@tromey.com>
15726 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15729 2020-02-08 Tom Tromey <tom@tromey.com>
15731 * dwarf2/read.h (dwarf_line_debug): Declare.
15732 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15733 * dwarf2/read.c: Move line_header code to new files.
15734 (dwarf_line_debug): No longer static.
15735 * dwarf2/line-header.c: New file.
15736 * dwarf2/line-header.h: New file.
15738 2020-02-08 Tom Tromey <tom@tromey.com>
15740 * dwarf2/read.c (struct line_header) <file_full_name,
15741 file_file_name>: Return unique_xmalloc_ptr.
15742 (line_header::file_file_name): Update.
15743 (line_header::file_full_name): Update.
15744 (dw2_get_file_names_reader): Update.
15745 (macro_start_file): Update.
15747 2020-02-08 Tom Tromey <tom@tromey.com>
15749 * dwarf2/read.c (struct line_header) <file_full_name,
15750 file_file_name>: Declare methods.
15751 (dw2_get_file_names_reader): Update.
15752 (file_file_name): Now a method.
15753 (file_full_name): Likewise.
15754 (macro_start_file): Update.
15756 2020-02-08 Tom Tromey <tom@tromey.com>
15758 * dwarf2/read.c (dwarf_always_disassemble)
15759 (show_dwarf_always_disassemble): Move to loc.c.
15760 (_initialize_dwarf2_read): Move "always-disassemble" registration
15762 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15763 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15765 (show_dwarf_always_disassemble): Move from read.c.
15766 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15768 2020-02-08 Tom Tromey <tom@tromey.com>
15770 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15771 (create_quick_file_names_table): Return htab_up.
15772 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15774 * dwarf2/read.h (struct dwarf2_per_objfile)
15775 <quick_file_names_table>: Now htab_up.
15777 2020-02-08 Tom Tromey <tom@tromey.com>
15779 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15781 2020-02-08 Tom Tromey <tom@tromey.com>
15783 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15785 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15786 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15787 (abbrev_table::abbrev_table): No longer inline.
15788 (ABBREV_HASH_SIZE): Remove.
15789 (abbrev_table::m_abbrevs): Now an htab_up.
15791 2020-02-08 Tom Tromey <tom@tromey.com>
15793 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15794 (cutu_reader): Update.
15795 (build_type_psymtabs_1): Update.
15796 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15797 (abbrev_table::alloc_abbrev): Update.
15798 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15799 (abbrev_table::read): New static method, renamed from
15800 abbrev_table_read_table.
15801 (abbrev_table::alloc_abbrev)
15802 (abbrev_table::add_abbrev): Now private.
15803 (abbrev_table::abbrev_table): Now private.
15804 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15806 2020-02-08 Tom Tromey <tom@tromey.com>
15808 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15809 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15812 2020-02-08 Tom Tromey <tom@tromey.com>
15814 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15816 (lookup_dwo_unit_in_dwp): Update.
15817 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15820 2020-02-08 Tom Tromey <tom@tromey.com>
15822 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15825 2020-02-08 Tom Tromey <tom@tromey.com>
15827 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15829 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15830 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15831 Change type to htab_up.
15833 2020-02-08 Tom Tromey <tom@tromey.com>
15835 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15836 htab_up. Don't allocate on obstack.
15837 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15838 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15839 Change type to htab_up.
15841 2020-02-08 Tom Tromey <tom@tromey.com>
15843 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15844 Change type to htab_up.
15845 * dwarf2/read.c (create_signatured_type_table_from_index)
15846 (create_signatured_type_table_from_debug_names)
15847 (create_all_type_units, add_type_unit)
15848 (lookup_dwo_signatured_type, lookup_signatured_type)
15849 (process_skeletonless_type_unit): Update.
15850 (create_debug_type_hash_table, create_debug_types_hash_table):
15851 Change type of types_htab.
15852 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15853 htab_up. Don't allocate on obstack.
15854 (create_cus_hash_table): Change type of cus_htab parameter.
15855 (struct dwo_file) <cus, tus>: Now htab_up.
15856 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15857 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15858 (queue_and_load_all_dwo_tus): Update.
15859 * dwarf2/index-write.c (write_gdbindex): Update.
15860 (write_debug_names): Update.
15862 2020-02-08 Tom Tromey <tom@tromey.com>
15864 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15865 dwarf2/read.c. Remove "next" member. Add constructor ntad
15867 (struct dwarf2_per_objfile) <queue>: New member.
15868 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15870 (dwarf2_queue, dwarf2_queue_tail): Remove.
15871 (class dwarf2_queue_guard): Add parameter to constructor. Use
15872 DISABLE_COPY_AND_ASSIGN.
15873 <m_per_objfile>: New member.
15874 <~dwarf2_queue_guard>: Rewrite.
15875 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15877 (~dwarf2_queue_item): New.
15879 2020-02-08 Tom Tromey <tom@tromey.com>
15881 * dwarf2/read.c (struct die_info) <has_children>: New member.
15882 (dw2_get_file_names_reader): Remove has_children.
15883 (dw2_get_file_names): Update.
15884 (read_cutu_die_from_dwo): Remove has_children.
15885 (cutu_reader::init_tu_and_read_dwo_dies)
15886 (cutu_reader::cutu_reader): Update.
15887 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15888 Remove has_children.
15889 (build_type_psymtabs_1, process_skeletonless_type_unit)
15890 (load_partial_comp_unit, load_full_comp_unit): Update.
15891 (create_dwo_cu_reader): Remove has_children.
15892 (create_cus_hash_table, read_die_and_children): Update.
15893 (read_full_die_1,read_full_die): Remove has_children.
15894 (read_signatured_type): Update.
15895 (class cutu_reader) <has_children>: Remove.
15897 2020-02-08 Tom Tromey <tom@tromey.com>
15899 * dwarf2/expr.c: Rename from dwarf2expr.c.
15900 * dwarf2/expr.h: Rename from dwarf2expr.h.
15901 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15902 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15903 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15904 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15905 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15906 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15907 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15908 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15909 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15910 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15911 * dwarf2/loc.c: Rename from dwarf2loc.c.
15912 * dwarf2/loc.h: Rename from dwarf2loc.h.
15913 * dwarf2/read.c: Rename from dwarf2read.c.
15914 * dwarf2/read.h: Rename from dwarf2read.h.
15915 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15916 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15917 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15918 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15919 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15920 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15921 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15922 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15923 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15924 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15925 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15926 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15927 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15929 * Makefile.in (COMMON_SFILES): Update.
15930 (HFILES_NO_SRCDIR): Update.
15932 2020-02-08 Tom Tromey <tom@tromey.com>
15934 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15935 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15937 2020-02-08 Tom Tromey <tom@tromey.com>
15939 * dwarf2read.h (struct die_info): Don't declare.
15941 2020-02-08 Tom Tromey <tom@tromey.com>
15943 * dwarf2read.h (die_info_ptr): Remove typedef.
15945 2020-02-08 Tom Tromey <tom@tromey.com>
15947 * dwarf2read.c (read_call_site_scope)
15948 (handle_data_member_location, dwarf2_add_member_fn)
15949 (mark_common_block_symbol_computed, read_common_block)
15950 (attr_to_dynamic_prop, partial_die_info::read)
15951 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15952 (dwarf2_symbol_mark_computed, set_die_type): Update.
15953 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15955 (attr_form_is_block): Don't declare.
15956 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15958 2020-02-08 Tom Tromey <tom@tromey.com>
15960 * dwarf2read.c (dwarf2_find_base_address, )
15961 (read_call_site_scope, rust_containing_type)
15962 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15963 (handle_data_member_location, dwarf2_add_member_fn)
15964 (get_alignment, read_structure_type, process_structure_scope)
15965 (mark_common_block_symbol_computed, read_common_block)
15966 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15967 (partial_die_info::read, read_attribute_value, new_symbol)
15968 (lookup_die_type, dwarf2_get_ref_die_offset)
15969 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15970 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15971 (dwarf2_symbol_mark_computed): Update.
15972 * dwarf2/attribute.h (struct attribute) <value_as_address,
15973 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15975 (value_as_address, attr_form_is_section_offset)
15976 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15977 * dwarf2/attribute.c (attribute::value_as_address)
15978 (attribute::form_is_section_offset, attribute::form_is_constant)
15979 (attribute::form_is_ref): Now methods.
15981 2020-02-08 Tom Tromey <tom@tromey.com>
15983 * dwarf2read.c (struct attribute, DW_STRING)
15984 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15985 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15986 (attr_form_is_block, attr_form_is_section_offset)
15987 (attr_form_is_constant, attr_form_is_ref): Move.
15988 * dwarf2/attribute.h: New file.
15989 * dwarf2/attribute.c: New file, from dwarf2read.c.
15990 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15992 2020-02-08 Tom Tromey <tom@tromey.com>
15994 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15995 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15997 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15998 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15999 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
16001 * dwarf2/abbrev.h: New file.
16002 * dwarf2/abbrev.c: New file, from dwarf2read.c.
16003 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
16005 2020-02-08 Tom Tromey <tom@tromey.com>
16007 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
16008 (dwarf2_section_size, dwarf2_get_section_info)
16009 (create_signatured_type_table_from_debug_names)
16010 (create_addrmap_from_aranges, read_debug_names_from_section)
16011 (get_gdb_index_contents_from_section, read_comp_unit_head)
16012 (error_check_comp_unit_head, read_abbrev_offset)
16013 (create_debug_type_hash_table, init_cu_die_reader)
16014 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
16015 (read_comp_units_from_section, create_cus_hash_table)
16016 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
16017 (create_dwp_v2_section, dwarf2_rnglists_process)
16018 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
16019 (abbrev_table_read_table, read_indirect_string_at_offset_from)
16020 (read_indirect_string_from_dwz, read_addr_index_1)
16021 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
16022 (dwarf_decode_macro_bytes, dwarf_decode_macros)
16023 (fill_in_loclist_baton): Update.
16024 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
16025 get_containing_section, get_bfd_owner, get_bfd_section,
16026 get_file_name, get_id, get_flags, empty, read>: Declare methods.
16027 (dwarf2_read_section, get_section_name, get_section_file_name)
16028 (get_containing_section, get_section_bfd_owner)
16029 (get_section_bfd_section, get_section_name, get_section_file_name)
16030 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
16032 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
16033 (dwarf2_section_info::get_bfd_owner)
16034 (dwarf2_section_info::get_bfd_section)
16035 (dwarf2_section_info::get_name)
16036 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
16037 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
16038 (dwarf2_section_info::read): Now methods.
16039 * dwarf-index-write.c (class debug_names): Update.
16041 2020-02-08 Tom Tromey <tom@tromey.com>
16043 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
16044 Move to dwarf2/section.h.
16045 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
16046 (get_section_bfd_section, get_section_name)
16047 (get_section_file_name, get_section_id, get_section_flags)
16048 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
16050 * dwarf2/section.h: New file.
16051 * dwarf2/section.c: New file, from dwarf2read.c.
16052 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
16054 2020-02-08 Tom Tromey <tom@tromey.com>
16056 * dwarf2read.h (read_unsigned_leb128): Don't declare.
16057 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
16058 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
16059 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
16060 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
16061 * dwarf2/leb.h: New file, from dwarf2read.c.
16062 * dwarf2/leb.c: New file, from dwarf2read.c.
16063 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
16065 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
16066 (COMMON_SFILES): Add dwarf2/leb.c.
16068 2020-02-08 Joel Brobecker <brobecker@adacore.com>
16072 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16075 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
16076 * gdb/remote.c (remote_console_output): Update.
16077 * gdb/ui-file.c (fputs_unfiltered): Rename to...
16078 (ui_file_puts): ...this.
16079 * gdb/ui-file.h (ui_file_puts): Add declaration.
16080 * gdb/utils.c (emit_style_escape): Update.
16081 (flush_wrap_buffer): Update.
16082 (fputs_maybe_filtered): Update.
16083 (fputs_unfiltered): Add function.
16085 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16087 * gdb/event-loop.c (gdb_wait_for_event): Update.
16088 * gdb/printcmd.c (printf_command): Update.
16089 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
16090 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
16091 (gdb_os_flush_stderr): Update.
16092 * gdb/remote.c (remote_console_output): Update.
16093 * gdb/ui-file.c (gdb_flush): Rename to...
16094 (ui_file_flush): ...this.
16095 (stderr_file::write): Update.
16096 (stderr_file::puts): Update.
16097 * gdb/ui-file.h (gdb_flush): Rename to...
16098 (ui_file_flush): ...this.
16099 * gdb/utils.c (gdb_flush): Add function.
16100 * gdb/utils.h (gdb_flush): Add declaration.
16102 2020-02-07 Tom Tromey <tromey@adacore.com>
16104 PR breakpoints/24915:
16105 * source.c (find_and_open_source): Do not check basenames_may_differ.
16107 2020-02-07 Tom Tromey <tom@tromey.com>
16109 * README: Update gdbserver documentation.
16110 * gdbserver: Move to top level.
16111 * configure.tgt (build_gdbserver): Remove.
16112 * configure.ac: Remove --enable-gdbserver.
16113 * configure: Rebuild.
16114 * Makefile.in (distclean): Don't mention gdbserver.
16116 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16118 * source-cache.c (source_cache::ensure): Surround
16119 get_plain_source_lines with a try/catch.
16120 (source_cache::get_line_charpos): Get rid of try/catch
16121 and only check for the return value of "ensure".
16122 * tui/tui-source.c (tui_source_window::set_contents):
16123 Simplify "nlines" calculation.
16125 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16127 * MAINTAINERS (Write After Approval): Add myself.
16129 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16131 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16134 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16136 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16138 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
16140 * nat/riscv-linux-tdesc.h: New file.
16141 * nat/riscv-linux-tdesc.c: New file, taking code from...
16142 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16144 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16147 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16149 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16150 we don't set the fake simulator ptid to the null_ptid.
16152 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
16154 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16155 * gdbthread.h (class thread_info) <resumed>: Likewise.
16156 * infrun.c (resume_1): Likewise.
16157 (proceed): Likewise.
16158 (infrun_thread_stop_requested): Likewise.
16159 (stop_all_threads): Likewise.
16160 (handle_inferior_event): Likewise.
16161 (restart_threads): Likewise.
16162 (finish_step_over): Likewise.
16163 (keep_going_stepped_thread): Likewise.
16164 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16165 (linux_handle_extended_wait): Likewise.
16166 * record-btrace.c (get_thread_current_frame_id): Likewise.
16167 * record-full.c (record_full_wait_1): Likewise.
16168 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16169 * target.c (target_resume): Likewise.
16170 * thread.c (set_running_thread): Likewise.
16172 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16174 * f-valprint.c (f77_print_array_1): Changed datatype of index
16175 variable to LONGEST from int to enable it to contain bound
16178 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
16180 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16181 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16182 offsets according to FLEN determined.
16183 (riscv_linux_nat_target::read_description): Determine FLEN
16185 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16186 according to FLEN determined.
16187 (riscv_linux_nat_target::store_registers): Likewise.
16189 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
16191 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16192 when reg->group is empty and reggroup is not.
16194 2020-01-31 Tom Tromey <tromey@adacore.com>
16196 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16197 Call beneath target's mourn_inferior after unpushing.
16199 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16202 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16203 have enough lines to fill the screen, still return the lowest
16206 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16208 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16209 '-', '<', and '>' commands.
16211 2020-01-29 Pedro Alves <palves@redhat.com>
16212 Sergio Durigan Junior <sergiodj@redhat.com>
16214 * infcmd.c (construct_inferior_arguments): Assert that
16215 'argc' is greater than 0.
16217 2020-01-29 Luis Machado <luis.machado@linaro.org>
16219 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16220 (BRK_INSN_MASK): Define to 0xd4200000.
16221 (aarch64_program_breakpoint_here_p): New function.
16222 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16223 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16225 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16227 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16228 call gdbarch_program_breakpoint_here_p.
16229 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16230 default_program_breakpoint_here_p, changed return type to bool and
16232 * breakpoint.h (program_breakpoint_here): Moved prototype to
16233 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16234 return type to bool.
16235 * gdbarch.c: Regenerate.
16236 * gdbarch.h: Regenerate.
16237 * gdbarch.sh (program_breakpoint_here_p): New method.
16238 * infrun.c (handle_signal_stop): Call
16239 gdbarch_program_breakpoint_here_p.
16241 2020-01-26 Tom Tromey <tom@tromey.com>
16243 * ctfread.c (struct ctf_fp_info): Reindent.
16244 (_initialize_ctfread): Remove.
16246 2020-01-26 Tom Tromey <tom@tromey.com>
16248 * psymtab.c (partial_map_expand_apply)
16249 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16250 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16251 (psym_print_stats, psym_expand_symtabs_for_function)
16252 (psym_map_symbol_filenames, psym_map_matching_symbols)
16253 (psym_expand_symtabs_matching)
16254 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16255 (maintenance_check_psymtabs): Use new methods.
16256 * psympriv.h (struct partial_symtab) <readin_p,
16257 get_compunit_symtab>: New methods.
16258 <readin, compunit_symtab>: Remove members.
16259 (struct standard_psymtab): New.
16260 (struct legacy_psymtab): Derive from standard_psymtab.
16261 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16263 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16265 2020-01-26 Tom Tromey <tom@tromey.com>
16267 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16268 read_dependencies. Add assert.
16269 * psymtab.c (partial_symtab::read_dependencies): New method.
16270 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16272 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16273 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16275 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16278 2020-01-26 Tom Tromey <tom@tromey.com>
16280 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16281 Call expand_psymtab.
16282 (xcoff_read_symtab): Call expand_psymtab.
16283 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16284 legacy_expand_psymtab.
16285 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16287 (struct legacy_psymtab) <expand_psymtab>: Implement.
16288 <legacy_expand_psymtab>: New member.
16289 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16290 (parse_partial_symbols): Set legacy_expand_psymtab.
16291 (psymtab_to_symtab_1): Change argument order. Call
16293 (new_psymtab): Set legacy_expand_psymtab.
16294 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16295 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16297 (dwarf2_psymtab::expand_psymtab): Rename from
16298 psymtab_to_symtab_1. Call expand_psymtab.
16299 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16300 (dbx_end_psymtab): Likewise.
16301 (dbx_psymtab_to_symtab_1): Change argument order. Call
16303 (dbx_read_symtab): Call expand_psymtab.
16304 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16305 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16306 (ctf_psymtab::read_symtab): Call expand_psymtab.
16308 2020-01-26 Tom Tromey <tom@tromey.com>
16310 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16311 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16313 * mdebugread.c (mdebug_read_symtab): Remove prints.
16314 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16316 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16318 2020-01-26 Tom Tromey <tom@tromey.com>
16320 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16321 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16322 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16324 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16325 * psymtab.c (psymtab_to_symtab): Call method.
16326 (dump_psymtab): Update.
16327 * psympriv.h (struct partial_symtab): Add virtual destructor.
16328 <read_symtab>: New method.
16329 (struct legacy_symtab): New.
16330 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16331 (struct pst_map) <pst>: Now a legacy_psymtab.
16332 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16333 (new_psymtab): Use legacy_psymtab.
16334 * dwarf2read.h (struct dwarf2_psymtab): New.
16335 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16336 * dwarf2read.c (dwarf2_create_include_psymtab)
16337 (dwarf2_build_include_psymtabs, create_type_unit_group)
16338 (create_partial_symtab, process_psymtab_comp_unit_reader)
16339 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16340 (set_partial_user): Use dwarf2_psymtab.
16341 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16342 (psymtab_to_symtab_1, process_full_comp_unit)
16343 (process_full_type_unit, dwarf2_ranges_read)
16344 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16345 (dwarf_decode_lines): Use dwarf2_psymtab.
16346 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16347 (add_address_entry_worker, write_one_signatured_type)
16348 (recursively_count_psymbols, recursively_write_psymbols)
16349 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16350 (write_debug_names): Likewise.
16351 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16352 <pst>: Now a legacy_psymtab.
16353 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16354 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16355 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16356 * ctfread.c (struct ctf_psymtab): New.
16357 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16359 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16360 (create_partial_symtab): Return a ctf_psymtab.
16361 (scan_partial_symbols): Update.
16363 2020-01-26 Tom Tromey <tom@tromey.com>
16365 * xcoffread.c (xcoff_start_psymtab): Use new.
16366 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16367 renamed from start_psymtab_common.
16368 * psympriv.h (struct partial_symtab): Add new constructor.
16369 (start_psymtab_common): Don't declare.
16370 * mdebugread.c (parse_partial_symbols): Use new.
16371 * dwarf2read.c (create_partial_symtab): Use new.
16372 * dbxread.c (start_psymtab): Use new.
16373 * ctfread.c (create_partial_symtab): Use new.
16375 2020-01-26 Tom Tromey <tom@tromey.com>
16377 * xcoffread.c (xcoff_end_psymtab): Use new.
16378 * psymtab.c (start_psymtab_common): Use new.
16379 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16381 * psympriv.h (struct partial_symtab): Add parameters to
16382 constructor. Don't inline.
16383 (allocate_psymtab): Don't declare.
16384 * mdebugread.c (new_psymtab): Use new.
16385 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16386 * dbxread.c (dbx_end_psymtab): Use new.
16388 2020-01-26 Tom Tromey <tom@tromey.com>
16390 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16391 allocate_psymtab. Update documentation.
16392 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16393 allocate_psymtab. Do not use new.
16394 (allocate_psymtab): Use new. Update.
16396 2020-01-26 Tom Tromey <tom@tromey.com>
16398 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16399 * psymtab.c (psym_print_stats): Update.
16400 * psympriv.h (struct partial_symtab) <readin,
16401 psymtabs_addrmap_supported, anonymous>: Now bool.
16402 * mdebugread.c (psymtab_to_symtab_1): Update.
16403 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16404 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16405 (process_full_comp_unit, process_full_type_unit): Update.
16406 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16407 * ctfread.c (psymtab_to_symtab): Update.
16409 2020-01-26 Tom Tromey <tom@tromey.com>
16411 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16412 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16413 * psymtab.c (psymtab_storage): Delete psymtabs.
16414 (psymtab_storage::allocate_psymtab): Use new.
16415 (psymtab_storage::discard_psymtab): Use delete.
16416 * psympriv.h (struct partial_symtab): Add constructor and
16419 2020-01-26 Tom Tromey <tom@tromey.com>
16421 * machoread.c: Do not include psympriv.h.
16423 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16425 * NEWS: Mention the new option and the set/show commands.
16427 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16429 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16430 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16431 (validate_exec_file): New variables, enums, functions.
16432 (exec_file_locate_attach, print_section_info): Style the filenames.
16433 (_initialize_exec): Install show_exec_file_mismatch_command and
16434 set_exec_file_mismatch_command.
16435 * gdbcore.h (validate_exec_file): Declare.
16436 * infcmd.c (attach_command): Call validate_exec_file.
16437 * remote.c ( remote_target::remote_add_inferior): Likewise.
16439 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16441 * frame.c (find_frame_sal): Move call to get_next_frame into more
16443 * inline-frame.c (inilne_state) <inline_state>: Update argument
16445 (inilne_state) <skipped_symbol>: Rename to...
16446 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16447 (skip_inline_frames): Build vector of skipped symbols and use this
16448 to reate the inline_state.
16449 (inline_skipped_symbol): Add a comment and some assertions, fetch
16450 skipped symbol from the list.
16452 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16454 * buildsym.c (lte_is_less_than): Delete.
16455 (buildsym_compunit::end_symtab_with_blockvector): Create local
16456 lambda function to sort line table entries, and use
16457 std::stable_sort instead of std::sort.
16458 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16459 markers when looking for a previous line.
16461 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16463 * dwarf2read.c (lnp_state_machine::record_line): Include
16464 end_sequence parameter in debug print out. Record the line if we
16465 are at an end_sequence marker even if it's not the start of a
16467 * symmisc.c (maintenance_print_one_line_table): Print end of
16468 sequence markers with 'END' not '0'.
16470 2020-01-24 Pedro Alves <palves@redhat.com>
16473 * thread.c (scoped_restore_current_thread::restore): Use
16474 switch_to_inferior_no_thread.
16475 * exec.c: Include "progspace-and-thread.h".
16476 (add_target_sections, remove_target_sections):
16477 scoped_restore_current_pspace_and_thread instead of
16478 scoped_restore_current_thread.
16479 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16480 and aspace to the inferior before calling clone_program_space.
16481 Remove stale comment.
16483 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16485 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16486 (arm_netbsd_nat_target::fetch_registers): ...this.
16487 (arm_nbsd_nat_target::store_registers): Rename to...
16488 (arm_netbsd_nat_target::store_registers): ...this.
16490 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16492 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16495 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16497 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16499 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16501 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16502 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16503 the correct replacement (iterate_over_regset_sections).
16504 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16507 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16510 * gdb/python/python.c (execute_gdb_command): Call
16511 async_enable_stdin in catch block.
16513 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16515 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16516 SWITCH_THRU_ALL_UIS.
16518 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16521 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16522 comment, add extra parameter, and update to store previous symbol
16524 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16525 add extra parameter.
16526 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16527 remove unneeded parameter, add try/catch around gdb_print_insn,
16528 rewrite to add items to asm_lines vector.
16529 (tui_find_backward_disassembly_start_address): New function.
16530 (tui_find_disassembly_address): Updated throughout.
16531 (tui_disasm_window::set_contents): Update for changes to
16533 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16534 number of lines to scroll.
16536 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16538 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16539 (SECT_OFF_DATA): Likewise.
16540 (SECT_OFF_RODATA): Likewise.
16541 (SECT_OFF_TEXT): Likewise.
16542 (SECT_OFF_BSS): Likewise.
16543 (struct objfile) <text_section_offset, data_section_offset>: New
16545 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16546 objfile::text_section_offset.
16547 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16548 * coffread.c (coff_symtab_read): Likewise.
16549 (enter_linenos): Likewise.
16550 (process_coff_symbol): Likewise.
16551 * ctfread.c (get_objfile_text_range): Likewise.
16552 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16553 Use objfile::data_section_offset.
16554 * dwarf2-frame.c (execute_cfa_program): Use
16555 objfile::text_section_offset.
16556 (dwarf2_frame_find_fde): Likewise.
16557 * dwarf2read.c (create_addrmap_from_index): Likewise.
16558 (create_addrmap_from_aranges): Likewise.
16559 (dw2_find_pc_sect_compunit_symtab): Likewise.
16560 (process_psymtab_comp_unit_reader): Likewise.
16561 (add_partial_symbol): Likewise.
16562 (add_partial_subprogram): Likewise.
16563 (process_full_comp_unit): Likewise.
16564 (read_file_scope): Likewise.
16565 (read_func_scope): Likewise.
16566 (read_lexical_block_scope): Likewise.
16567 (read_call_site_scope): Likewise.
16568 (dwarf2_rnglists_process): Likewise.
16569 (dwarf2_ranges_process): Likewise.
16570 (dwarf2_ranges_read): Likewise.
16571 (dwarf_decode_lines_1): Likewise.
16572 (new_symbol): Likewise.
16573 (dwarf2_fetch_die_loc_sect_off): Likewise.
16574 (dwarf2_per_cu_text_offset): Likewise.
16575 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16576 * hppa-tdep.c (read_unwind_info): Likewise.
16577 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16578 * psympriv.h (struct partial_symtab): Likewise.
16579 * psymtab.c (find_pc_sect_psymtab): Likewise.
16580 * solib-svr4.c (enable_break): Likewise.
16581 * stap-probe.c (relocate_address): Use
16582 objfile::data_section_offset.
16583 * xcoffread.c (enter_line_range): Use
16584 objfile::text_section_offset.
16585 (read_xcoff_symtab): Likewise.
16587 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16589 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16590 declaration to narrower scopes.
16592 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16594 * darwin-nat.h (struct darwin_exception_msg, enum
16595 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16597 (class darwin_nat_target) <wait_1, check_new_threads,
16598 decode_exception_message, decode_message, stop_inferior,
16599 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16600 * darwin-nat.c (darwin_check_new_threads): Rename to...
16601 (darwin_nat_target::check_new_threads): ... this.
16602 (darwin_suspend_inferior_it): Remove.
16603 (darwin_decode_exception_message): Rename to...
16604 (darwin_nat_target::decode_exception_message): ... this.
16605 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16606 (darwin_decode_message): Rename to...
16607 (darwin_nat_target::decode_message): ... this.
16608 (cancel_breakpoint): Rename to...
16609 (darwin_nat_target::cancel_breakpoint): ... this.
16610 (darwin_wait): Rename to...
16611 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16612 instead of iterate_over_inferiors.
16613 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16614 (darwin_stop_inferior): Rename to...
16615 (darwin_nat_target::stop_inferior): ... this.
16616 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16617 (darwin_init_thread_list): Rename to...
16618 (darwin_nat_target::init_thread_list): ... this.
16619 (darwin_ptrace_him): Rename to...
16620 (darwin_nat_target::ptrace_him): ... this.
16621 (darwin_nat_target::create_inferior): Pass lambda function to
16623 (darwin_nat_target::detach): Call stop_inferior instead of
16624 darwin_stop_inferior.
16625 * fork-inferior.h (fork_inferior): Change init_trace_fun
16626 parameter to gdb::function_view.
16627 * fork-inferior.c (fork_inferior): Likewise.
16629 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16631 * i386-cygwin-tdep.c (core_process_module_section): Update.
16632 * windows-nat.c (struct lm_info_windows): Add text_offset.
16633 (windows_xfer_shared_libraries): Update.
16634 * windows-tdep.c (windows_xfer_shared_library):
16635 Add text_offset_cached argument.
16636 * windows-tdep.h (windows_xfer_shared_library): Update.
16638 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16640 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16642 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16644 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16645 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16646 replace with range-based for.
16647 (gdbsim_interrupt_inferior): Remove.
16648 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16649 with a range-based for. Inline code from
16650 gdbsim_interrupt_inferior.
16652 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16654 * infrun.c (proceed): Fix indentation.
16656 2020-01-21 Tom Tromey <tromey@adacore.com>
16658 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16659 * python/python.c (python_extension_ops): Update.
16660 (gdbpy_colorize): New function.
16661 * python/lib/gdb/__init__.py (colorize): New function.
16662 * extension.h (ext_lang_colorize): Declare.
16663 * extension.c (ext_lang_colorize): New function.
16664 * extension-priv.h (struct extension_language_ops) <colorize>: New
16666 * cli/cli-style.c (_initialize_cli_style): Update help text.
16668 2020-01-21 Luis Machado <luis.machado@linaro.org>
16670 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16671 <cond>: Change type to bool.
16672 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16673 (aarch64_displaced_step_cb): Likewise.
16674 (aarch64_displaced_step_tb): Likewise.
16676 2020-01-21 Luis Machado <luis.machado@linaro.org>
16678 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16681 2020-01-21 Luis Machado <luis.machado@linaro.org>
16683 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16684 <pc_adjust>: Adjust the documentation.
16685 (aarch64_displaced_step_fixup): Check if PC really moved before
16688 2020-01-19 Tom Tromey <tom@tromey.com>
16690 * disasm.c (~gdb_disassembler): New destructor.
16691 (gdb_buffered_insn_length): Call disassemble_free_target.
16692 * disasm.h (class gdb_disassembler): Declare destructor. Use
16693 DISABLE_COPY_AND_ASSIGN.
16695 2020-01-19 Tom Tromey <tom@tromey.com>
16697 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16698 (die_reader_func_ftype): Remove.
16699 (cutu_reader): New class.
16700 (dw2_get_file_names_reader): Remove "data" parameter.
16701 (dw2_get_file_names): Use cutu_reader.
16702 (create_debug_type_hash_table): Update.
16703 (read_cutu_die_from_dwo): Update comment.
16704 (lookup_dwo_unit): Add dwo_name parameter.
16705 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16706 die_reader_func_ftype and data parameters.
16707 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16708 Remove die_reader_func_ftype and data parameters.
16709 (~cutu_reader): New; from init_cutu_and_read_dies.
16710 (cutu_reader::cutu_reader): Rename from
16711 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16712 and data parameters.
16713 (init_cutu_and_read_dies_simple): Remove.
16714 (struct process_psymtab_comp_unit_data): Remove.
16715 (process_psymtab_comp_unit_reader): Remove data parameter; add
16716 want_partial_unit and pretend_language parameters.
16717 (process_psymtab_comp_unit): Use cutu_reader.
16718 (build_type_psymtabs_reader): Remove data parameter.
16719 (build_type_psymtabs_1): Use cutu_reader.
16720 (process_skeletonless_type_unit): Likewise.
16721 (load_partial_comp_unit_reader): Remove.
16722 (load_partial_comp_unit): Use cutu_reader.
16723 (load_full_comp_unit_reader): Remove.
16724 (load_full_comp_unit): Use cutu_reader.
16725 (struct create_dwo_cu_data): Remove.
16726 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16727 dwo_unit parameters.
16728 (create_cus_hash_table): Use cutu_reader.
16729 (struct dwarf2_read_addr_index_data): Remove.
16730 (dwarf2_read_addr_index_reader): Remove.
16731 (dwarf2_read_addr_index): Use cutu_reader.
16732 (read_signatured_type_reader): Remove.
16733 (read_signatured_type): Use cutu_reader.
16735 2020-01-19 Tom Tromey <tom@tromey.com>
16737 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16738 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16739 (tui_wrefresh): Declare.
16740 * tui/tui-wingeneral.c (suppress_output): New global.
16741 (tui_suppress_output, ~tui_suppress_output): New constructor and
16743 (tui_wrefresh): New function.
16744 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16745 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16746 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16748 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16750 (tui_data_window::no_refresh): New method.
16751 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16752 (tui_reg_command): Use tui_suppress_output
16753 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16754 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16756 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16758 2020-01-19 Tom Tromey <tom@tromey.com>
16760 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16761 Handle case where symtab is null.
16763 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16765 * linux-fork.c (one_fork_p): Simplify.
16767 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16769 * top.c (struct qt_args): Remove.
16770 (kill_or_detach): Change return type to void, replace `void *`
16771 parameter with a proper one.
16772 (print_inferior_quit_action): Likewise.
16773 (quit_confirm): Use range-based for loop to iterate over inferiors.
16774 (quit_force): Likewise.
16776 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16778 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16779 `void *` parameter with proper parameters.
16780 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16781 (print_one_inferior): Change return type to void, replace `void *`
16782 parameter with proper parameters.
16783 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16785 (get_other_inferior): Remove.
16786 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16789 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16791 * mi/mi-interp.c (report_initial_inferior): Remove.
16792 (mi_interp::init): Use range-based for to iterate over inferiors.
16794 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16796 * python/py-inferior.c (build_inferior_list): Remove.
16797 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16799 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16801 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16802 (btrace_stitch_trace): Likewise.
16803 * charset.c (intermediate_encoding): Likewise (vaild).
16804 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16805 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16806 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16808 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16810 * windows-tdep.c (windows_get_tlb_type):
16811 Add rtl_user_process_parameters type.
16813 2020-01-16 Pedro Alves <palves@redhat.com>
16814 Norbert Lange <nolange79@gmail.com>
16817 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16818 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16819 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16820 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16821 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16822 (ps_plog): Redeclare exported functions with default visibility.
16824 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16826 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16827 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16829 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16831 * infcmd.c (post_create_inferior): Use get_thread_regcache
16832 instead of get_current_regcache.
16834 2020-01-14 Tom Tromey <tom@tromey.com>
16837 * python/python.c (gdbpy_decode_line): Treat empty string the same
16840 2020-01-14 Tom Tromey <tom@tromey.com>
16842 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16844 2020-01-14 Tom Tromey <tom@tromey.com>
16846 * nat/linux-btrace.c: Don't include <config.h>.
16847 * nat/linux-ptrace.c: Don't include <config.h>.
16848 * nat/x86-linux-dregs.c: Don't include <config.h>.
16850 2020-01-14 Tom Tromey <tom@tromey.com>
16852 * configure: Rebuild.
16853 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16855 2020-01-14 Tom Tromey <tom@tromey.com>
16857 * nat/x86-linux-dregs.c: Include configh.h.
16858 * nat/linux-ptrace.c: Include configh.h.
16859 * nat/linux-btrace.c: Include configh.h.
16860 * defs.h: Include config.h, bfd.h.
16861 * configure.ac: Don't source common.host.
16862 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16863 * configure: Rebuild.
16864 * acinclude.m4: Update path.
16865 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16866 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16867 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16868 (CLIBS): Add LIBSUPPORT.
16870 (COMMON_SFILES): Remove gdbsupport files.
16871 (HFILES_NO_SRCDIR): Likewise.
16872 (stamp-version): Update path to create-version.sh.
16873 (ALLDEPFILES): Remove gdbsupport files.
16875 2020-01-14 Tom Tromey <tom@tromey.com>
16877 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16878 USE_WIN32API when needed.
16879 * configure.ac (USE_WIN32API): Don't define.
16880 (WIN32LIBS): Use WIN32APILIBS.
16881 * configure: Rebuild.
16883 2020-01-14 Tom Tromey <tom@tromey.com>
16885 * configure: Rebuild.
16886 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16888 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16890 * skip.c (skip_function_command): Make skip w/o arguments use the
16891 name of the inlined function if pc is inside any inlined function.
16893 2020-01-14 Luis Machado <luis.machado@linaro.org>
16895 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16896 * infrun.c (resume_1): Likewise.
16897 (handle_inferior_event): Remove stale comment.
16898 * linux-nat.c (linux_nat_target::resume): Update comments.
16899 (save_stop_reason): Likewise.
16900 (linux_nat_filter_event): Likewise.
16901 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16903 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16905 * elfread.c (record_minimal_symbol): Set section index to 0 for
16906 non-allocatable sections.
16909 2020-01-13 Ali Tamur <tamur@google.com>
16911 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16912 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16913 to gdb::optional. Update comments.
16914 (dwo_file): Update comments.
16915 (read_attribute): Update API to take an additional out parameter,
16916 need_reprocess. This is used to mark attributes that need other
16917 attributes (e.g. str_offsets_base) for correct computation which may not
16918 have been read yet.
16919 (read_attribute_reprocess): New function declaration.
16920 (read_addr_index): Likewise.
16921 (read_dwo_str_index): Likewise.
16922 (read_stub_str_index): Likewise.
16923 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16924 (lookup_addr_base): New function definition.
16925 (lookup_ranges_base): Likewise.
16926 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16927 lookup_ranges_base.
16928 (init_cutu_and_read_dies): Update comments.
16929 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16930 unit. This is used to inherit parent's str_offsets_base and addr_base.
16932 (init_cutu_and_read_dies_simple): Reflect API changes.
16933 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16934 (create_cus_hash_table): Change API to take parent compile unit.
16935 Reflect API changes.
16936 (open_and_init_dwo_file): Reflect API changes.
16937 (dwarf2_get_pc_bounds): Update comments.
16938 (dwarf2_record_block_ranges): Likewise.
16939 (read_full_die_1): Change implementation to reprocess attributes that
16940 need str_offsets_base and addr_base.
16941 (partial_die_info::read): Likewise.
16942 (read_attribute_reprocess): New function definition.
16943 (read_attribute_value): Change API to take an additional out parameter,
16944 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16945 when a non-dwo compile unit has index based attributes.
16946 (read_attribute): Reflect API changes.
16947 (read_addr_index_1): Reflect API changes. Update comments.
16948 (dwarf2_read_addr_index_data): Reflect API changes.
16949 (dwarf2_read_addr_index): Likewise.
16950 (read_str_index): Change API and implementation. This becomes a helper
16951 to be used by the new string index related methods. Update error
16952 message and comments.
16953 (read_dwo_str_index): New function definition.
16954 (read_stub_str_index): Likewise.
16955 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16956 * symfile.h (dwarf2_debug_sections): Likewise.
16957 * xcoffread.c (dwarf2_debug_sections): Likewise.
16959 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16961 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16962 core_reg_sect type to gdb_byte *.
16963 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16964 * cris-tdep.c (fetch_core_registers): Likewise.
16965 * corelow.c (core_target::get_core_register_section): Change
16966 type of `contents` to gdb::byte_vector.
16968 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16970 * tui/tui-wingeneral.c (box_win): Position the title in the center
16973 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16975 * corelow.c (core_target::get_core_register_section): Use
16976 std::vector instead of alloca.
16978 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16980 * warning.m4: Add -Wmissing-declarations to build_warnings.
16981 * configure: Re-generate.
16983 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16985 * python/python.c (init__gdb_module): Add declaration.
16987 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16989 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16990 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16991 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16992 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16993 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16994 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16995 * ada-exp.y (_initialize_ada_exp): Add declaration.
16996 * ada-lang.c (_initialize_ada_language): Add declaration.
16997 * ada-tasks.c (_initialize_tasks): Add declaration.
16998 * agent.c (_initialize_agent): Add declaration.
16999 * aix-thread.c (_initialize_aix_thread): Add declaration.
17000 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
17001 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
17002 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
17003 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
17004 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
17005 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
17006 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
17007 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
17008 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
17009 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
17010 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
17011 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
17012 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
17013 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
17014 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
17015 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
17016 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
17017 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
17018 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
17019 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
17020 * annotate.c (_initialize_annotate): Add declaration.
17021 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
17022 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
17023 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
17024 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
17025 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
17026 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
17027 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
17028 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
17029 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
17030 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
17031 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
17032 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
17033 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
17034 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
17035 * auto-load.c (_initialize_auto_load): Add declaration.
17036 * auxv.c (_initialize_auxv): Add declaration.
17037 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
17038 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
17039 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
17040 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
17041 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
17042 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
17043 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
17044 * breakpoint.c (_initialize_breakpoint): Add declaration.
17045 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
17046 * btrace.c (_initialize_btrace): Add declaration.
17047 * charset.c (_initialize_charset): Add declaration.
17048 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
17049 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
17050 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
17051 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
17052 * cli/cli-script.c (_initialize_cli_script): Add declaration.
17053 * cli/cli-style.c (_initialize_cli_style): Add declaration.
17054 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
17055 * coffread.c (_initialize_coffread): Add declaration.
17056 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
17057 * compile/compile.c (_initialize_compile): Add declaration.
17058 * complaints.c (_initialize_complaints): Add declaration.
17059 * completer.c (_initialize_completer): Add declaration.
17060 * copying.c (_initialize_copying): Add declaration.
17061 * corefile.c (_initialize_core): Add declaration.
17062 * corelow.c (_initialize_corelow): Add declaration.
17063 * cp-abi.c (_initialize_cp_abi): Add declaration.
17064 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
17065 * cp-support.c (_initialize_cp_support): Add declaration.
17066 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
17067 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
17068 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
17069 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
17070 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
17071 * ctfread.c (_initialize_ctfread): Add declaration.
17072 * d-lang.c (_initialize_d_language): Add declaration.
17073 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
17074 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
17075 * dbxread.c (_initialize_dbxread): Add declaration.
17076 * dcache.c (_initialize_dcache): Add declaration.
17077 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
17078 * disasm.c (_initialize_disasm): Add declaration.
17079 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
17080 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
17081 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
17082 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
17083 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
17084 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
17085 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
17086 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
17087 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
17088 * elfread.c (_initialize_elfread): Add declaration.
17089 * exec.c (_initialize_exec): Add declaration.
17090 * extension.c (_initialize_extension): Add declaration.
17091 * f-lang.c (_initialize_f_language): Add declaration.
17092 * f-valprint.c (_initialize_f_valprint): Add declaration.
17093 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
17094 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
17095 * filesystem.c (_initialize_filesystem): Add declaration.
17096 * findcmd.c (_initialize_mem_search): Add declaration.
17097 * findvar.c (_initialize_findvar): Add declaration.
17098 * fork-child.c (_initialize_fork_child): Add declaration.
17099 * frame-base.c (_initialize_frame_base): Add declaration.
17100 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
17101 * frame.c (_initialize_frame): Add declaration.
17102 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
17103 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
17104 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17105 * gcore.c (_initialize_gcore): Add declaration.
17106 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17107 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17108 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17109 * gdbarch.c (_initialize_gdbarch): Add declaration.
17110 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17111 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17112 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17113 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17114 * go-lang.c (_initialize_go_language): Add declaration.
17115 * go32-nat.c (_initialize_go32_nat): Add declaration.
17116 * guile/guile.c (_initialize_guile): Add declaration.
17117 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17118 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17119 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17120 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17121 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17122 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17123 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17124 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17125 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17126 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17127 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17128 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17129 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17130 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17131 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17132 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17133 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17134 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17135 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17136 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17137 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17138 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17139 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17140 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17141 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17142 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17143 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17144 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17145 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17146 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17147 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17148 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17149 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17150 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17151 * infcall.c (_initialize_infcall): Add declaration.
17152 * infcmd.c (_initialize_infcmd): Add declaration.
17153 * inflow.c (_initialize_inflow): Add declaration.
17154 * infrun.c (_initialize_infrun): Add declaration.
17155 * interps.c (_initialize_interpreter): Add declaration.
17156 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17157 * jit.c (_initialize_jit): Add declaration.
17158 * language.c (_initialize_language): Add declaration.
17159 * linux-fork.c (_initialize_linux_fork): Add declaration.
17160 * linux-nat.c (_initialize_linux_nat): Add declaration.
17161 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17162 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17163 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17164 * m2-lang.c (_initialize_m2_language): Add declaration.
17165 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17166 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17167 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17168 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17169 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17170 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17171 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17172 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17173 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17174 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17175 * machoread.c (_initialize_machoread): Add declaration.
17176 * macrocmd.c (_initialize_macrocmd): Add declaration.
17177 * macroscope.c (_initialize_macroscope): Add declaration.
17178 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17179 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17180 * maint.c (_initialize_maint_cmds): Add declaration.
17181 * mdebugread.c (_initialize_mdebugread): Add declaration.
17182 * memattr.c (_initialize_mem): Add declaration.
17183 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17184 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17185 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17186 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17187 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17188 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17189 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17190 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17191 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17192 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17193 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17194 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17195 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17196 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17197 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17198 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17199 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17200 * mipsread.c (_initialize_mipsread): Add declaration.
17201 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17202 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17203 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17204 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17205 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17206 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17207 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17208 * nto-procfs.c (_initialize_procfs): Add declaration.
17209 * objc-lang.c (_initialize_objc_language): Add declaration.
17210 * observable.c (_initialize_observer): Add declaration.
17211 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17212 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17213 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17214 * osabi.c (_initialize_gdb_osabi): Add declaration.
17215 * osdata.c (_initialize_osdata): Add declaration.
17216 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17217 * parse.c (_initialize_parse): Add declaration.
17218 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17219 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17220 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17221 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17222 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17223 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17224 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17225 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17226 * printcmd.c (_initialize_printcmd): Add declaration.
17227 * probe.c (_initialize_probe): Add declaration.
17228 * proc-api.c (_initialize_proc_api): Add declaration.
17229 * proc-events.c (_initialize_proc_events): Add declaration.
17230 * proc-service.c (_initialize_proc_service): Add declaration.
17231 * procfs.c (_initialize_procfs): Add declaration.
17232 * producer.c (_initialize_producer): Add declaration.
17233 * psymtab.c (_initialize_psymtab): Add declaration.
17234 * python/python.c (_initialize_python): Add declaration.
17235 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17236 * record-btrace.c (_initialize_record_btrace): Add declaration.
17237 * record-full.c (_initialize_record_full): Add declaration.
17238 * record.c (_initialize_record): Add declaration.
17239 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17240 * regcache.c (_initialize_regcache): Add declaration.
17241 * reggroups.c (_initialize_reggroup): Add declaration.
17242 * remote-notif.c (_initialize_notif): Add declaration.
17243 * remote-sim.c (_initialize_remote_sim): Add declaration.
17244 * remote.c (_initialize_remote): Add declaration.
17245 * reverse.c (_initialize_reverse): Add declaration.
17246 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17247 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17248 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17249 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17250 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17251 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17252 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17253 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17255 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17256 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17257 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17258 * rust-exp.y (_initialize_rust_exp): Add declaration.
17259 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17260 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17261 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17262 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17263 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17264 * score-tdep.c (_initialize_score_tdep): Add declaration.
17265 * ser-go32.c (_initialize_ser_dos): Add declaration.
17266 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17267 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17268 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17269 * ser-uds.c (_initialize_ser_socket): Add declaration.
17270 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17271 * serial.c (_initialize_serial): Add declaration.
17272 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17273 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17274 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17275 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17276 * skip.c (_initialize_step_skip): Add declaration.
17277 * sol-thread.c (_initialize_sol_thread): Add declaration.
17278 * solib-aix.c (_initialize_solib_aix): Add declaration.
17279 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17280 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17281 * solib-frv.c (_initialize_frv_solib): Add declaration.
17282 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17283 * solib-target.c (_initialize_solib_target): Add declaration.
17284 * solib.c (_initialize_solib): Add declaration.
17285 * source-cache.c (_initialize_source_cache): Add declaration.
17286 * source.c (_initialize_source): Add declaration.
17287 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17288 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17289 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17290 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17291 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17292 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17293 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17294 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17295 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17296 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17297 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17298 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17299 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17300 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17301 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17302 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17303 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17304 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17305 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17306 * stabsread.c (_initialize_stabsread): Add declaration.
17307 * stack.c (_initialize_stack): Add declaration.
17308 * stap-probe.c (_initialize_stap_probe): Add declaration.
17309 * std-regs.c (_initialize_frame_reg): Add declaration.
17310 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17311 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17312 * symfile.c (_initialize_symfile): Add declaration.
17313 * symmisc.c (_initialize_symmisc): Add declaration.
17314 * symtab.c (_initialize_symtab): Add declaration.
17315 * target.c (_initialize_target): Add declaration.
17316 * target-connection.c (_initialize_target_connection): Add
17318 * target-dcache.c (_initialize_target_dcache): Add declaration.
17319 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17320 * thread.c (_initialize_thread): Add declaration.
17321 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17322 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17323 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17324 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17325 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17326 * tracectf.c (_initialize_ctf): Add declaration.
17327 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17328 * tracefile.c (_initialize_tracefile): Add declaration.
17329 * tracepoint.c (_initialize_tracepoint): Add declaration.
17330 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17331 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17332 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17333 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17334 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17335 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17336 * tui/tui.c (_initialize_tui): Add declaration.
17337 * typeprint.c (_initialize_typeprint): Add declaration.
17338 * ui-style.c (_initialize_ui_style): Add declaration.
17339 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17340 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17341 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17342 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17343 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17344 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17345 * unittests/filtered_iterator-selftests.c
17346 (_initialize_filtered_iterator_selftests): Add declaration.
17347 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17348 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17349 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17350 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17351 * unittests/main-thread-selftests.c
17352 (_initialize_main_thread_selftests): Add declaration.
17353 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17354 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17355 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17356 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17357 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17358 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17359 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17360 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17361 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17362 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17363 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17364 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17365 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17366 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17367 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17369 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17370 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17371 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17372 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17373 * user-regs.c (_initialize_user_regs): Add declaration.
17374 * utils.c (_initialize_utils): Add declaration.
17375 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17376 * valops.c (_initialize_valops): Add declaration.
17377 * valprint.c (_initialize_valprint): Add declaration.
17378 * value.c (_initialize_values): Add declaration.
17379 * varobj.c (_initialize_varobj): Add declaration.
17380 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17381 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17382 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17383 * windows-nat.c (_initialize_windows_nat): Add declaration.
17384 (_initialize_check_for_gdb_ini): Add declaration.
17385 (_initialize_loadable): Add declaration.
17386 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17387 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17388 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17389 * xcoffread.c (_initialize_xcoffread): Add declaration.
17390 * xml-support.c (_initialize_xml_support): Add declaration.
17391 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17392 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17393 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17394 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17396 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17398 * regformats/regdat.sh: Generate declaration for init function.
17400 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17402 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17404 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17405 close_one_inferior>: New methods.
17406 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17407 pass down target to find_inferior_pid.
17408 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17409 Pass down target to find_inferior_ptid.
17410 (gdbsim_target::create_inferior): Pass down target to
17412 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17413 target down to find_inferior_ptid and switch_to_thread.
17414 (gdbsim_target::close): Update to call close_one_inferior.
17415 (struct resume_data): Remove.
17416 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17417 directly, rather than through a void pointer.
17418 (gdbsim_target::resume): Update to call resume_one_inferior.
17420 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17422 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17424 2020-01-12 Pedro Alves <palves@redhat.com>
17426 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17427 directly for the current inferior instead of
17428 discard_all_inferiors.
17429 (discard_all_inferiors): Delete.
17431 2020-01-11 Tom Tromey <tom@tromey.com>
17433 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17434 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17435 deprecated_safe_get_selected_frame.
17437 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17439 * inferior.c (print_inferior): Switch inferior before printing it.
17441 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17442 Pedro Alves <palves@redhat.com>
17444 * progspace-and-thread.c (switch_to_program_space_and_thread):
17445 Assert there's an inferior for PSPACE. Use
17446 switch_to_inferior_no_thread to switch the inferior too.
17447 * progspace.c (program_space::~program_space): Call
17448 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17449 (program_space::free_all_objfiles): Don't call clear_symtab_users
17451 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17453 2020-01-10 Pedro Alves <palves@redhat.com>
17455 * NEWS: Mention multi-target debugging, "info connections", and
17456 "add-inferior -no-connection".
17458 2020-01-10 Pedro Alves <palves@redhat.com>
17460 * infrun.c: Include "target-connection.h".
17461 (check_multi_target_resumption): New.
17462 (proceed): Call it.
17463 * target-connection.c (make_target_connection_string): Make
17465 * target-connection.h (make_target_connection_string): Declare.
17467 2020-01-10 Pedro Alves <palves@redhat.com>
17469 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17470 * inferior.c (uiout_field_connection): New function.
17471 (print_inferior): Add new "connection-id" column.
17472 (add_inferior_command): Show connection number/string of added
17474 * process-stratum-target.h
17475 (process_stratum_target::connection_string): New virtual method.
17476 (process_stratum_target::connection_number): New field.
17477 * remote.c (remote_target::connection_string): New override.
17478 * target-connection.c: New file.
17479 * target-connection.h: New file.
17480 * target.c (decref_target): Remove process_stratum targets from
17481 the connection list.
17482 (target_stack::push): Add process_stratum targets to the
17485 2020-01-10 Pedro Alves <palves@redhat.com>
17488 2016-04-12 Pedro Alves <palves@redhat.com>
17489 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17490 Remove references to name.
17491 * serial.h (struct serial) <name>: Delete.
17493 2020-01-10 Pedro Alves <palves@redhat.com>
17495 * gdbarch-selftests.c (register_to_value_test): Remove "target
17496 already pushed" check.
17498 2020-01-10 Pedro Alves <palves@redhat.com>
17499 John Baldwin <jhb@FreeBSD.org>
17501 * aarch64-linux-nat.c
17502 (aarch64_linux_nat_target::thread_architecture): Adjust.
17503 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17504 (task_command_1): Likewise.
17505 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17506 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17507 (aix_thread_target::store_registers)
17508 (aix_thread_target::thread_alive): Adjust.
17509 * amd64-fbsd-tdep.c: Include "inferior.h".
17510 (amd64fbsd_get_thread_local_address): Pass down target.
17511 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17512 thread's gdbarch instead of target_gdbarch.
17513 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17514 get_last_target_status.
17515 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17516 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17518 (update_inserted_breakpoint_locations): Skip if inferiors with no
17520 (update_global_location_list): When handling moribund locations,
17521 find representative inferior for location's pspace, and use thread
17522 count of its process_stratum target.
17523 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17524 * bsd-uthread.c (bsd_uthread_target::wait): Use
17525 as_process_stratum_target and adjust thread_change_ptid and
17527 (bsd_uthread_target::update_thread_list): Use
17528 as_process_stratum_target and adjust find_thread_ptid,
17529 thread_change_ptid and add_thread calls.
17530 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17531 find_thread_ptid call.
17532 * corelow.c (add_to_thread_list): Adjust add_thread call.
17533 (core_target_open): Adjust add_thread_silent and thread_count
17535 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17536 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17537 * event-top.c (async_disconnect): Pop targets from all inferiors.
17538 * exec.c (add_target_sections): Push exec target on all inferiors
17539 sharing the program space.
17540 (remove_target_sections): Remove the exec target from all
17541 inferiors sharing the program space.
17542 (exec_on_vfork): New.
17543 * exec.h (exec_on_vfork): Declare.
17544 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17546 (fbsd_nat_target::update_thread_list): Adjust.
17547 (fbsd_nat_target::resume): Adjust.
17548 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17550 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17551 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17552 get_thread_arch_regcache call.
17553 * fork-child.c (gdb_startup_inferior): Pass target down to
17554 startup_inferior and set_executing.
17555 * gdbthread.h (struct process_stratum_target): Forward declare.
17556 (add_thread, add_thread_silent, add_thread_with_info)
17557 (in_thread_list): Add process_stratum_target parameter.
17558 (find_thread_ptid(inferior*, ptid_t)): New overload.
17559 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17561 (all_threads()): Delete overload.
17562 (all_threads, all_non_exited_threads): Add process_stratum_target
17564 (all_threads_safe): Use brace initialization.
17565 (thread_count): Add process_stratum_target parameter.
17566 (set_resumed, set_running, set_stop_requested, set_executing)
17567 (threads_are_executing, finish_thread_state): Add
17568 process_stratum_target parameter.
17569 (switch_to_thread): Use is_current_thread.
17570 * i386-fbsd-tdep.c: Include "inferior.h".
17571 (i386fbsd_get_thread_local_address): Pass down target.
17572 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17573 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17574 have_inferiors check.
17575 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17576 (inf_ptrace_target::attach): Adjust.
17577 * infcall.c (run_inferior_call): Adjust.
17578 * infcmd.c (run_command_1): Pass target to
17579 scoped_finish_thread_state.
17580 (proceed_thread_callback): Skip inferiors with no execution.
17581 (continue_command): Rename 'all_threads' local to avoid hiding
17582 'all_threads' function. Adjust get_last_target_status call.
17583 (prepare_one_step): Adjust set_running call.
17584 (signal_command): Use user_visible_resume_target. Compare thread
17585 pointers instead of inferior_ptid.
17586 (info_program_command): Adjust to pass down target.
17587 (attach_command): Mark target's 'thread_executing' flag.
17588 (stop_current_target_threads_ns): New, factored out from ...
17589 (interrupt_target_1): ... this. Switch inferior before making
17592 (struct all_inferiors_iterator, struct all_inferiors_range)
17593 (struct all_inferiors_safe_range)
17594 (struct all_non_exited_inferiors_range): Filter on
17595 process_stratum_target too. Remove explicit.
17596 * inferior.c (inferior::inferior): Push dummy target on target
17598 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17599 Add process_stratum_target parameter, and pass it down.
17600 (have_live_inferiors): Adjust.
17601 (switch_to_inferior_and_push_target): New.
17602 (add_inferior_command, clone_inferior_command): Handle
17603 "-no-connection" parameter. Use
17604 switch_to_inferior_and_push_target.
17605 (_initialize_inferior): Mention "-no-connection" option in
17606 the help of "add-inferior" and "clone-inferior" commands.
17607 * inferior.h: Include "process-stratum-target.h".
17608 (interrupt_target_1): Use bool.
17609 (struct inferior) <push_target, unpush_target, target_is_pushed,
17610 find_target_beneath, top_target, process_target, target_at,
17612 (discard_all_inferiors): Delete.
17613 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17614 (all_inferiors, all_non_exited_inferiors): Add
17615 process_stratum_target parameter.
17616 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17617 (target_last_proc_target): New global.
17618 (follow_fork_inferior): Push target on new inferior. Pass target
17619 to add_thread_silent. Call exec_on_vfork. Handle target's
17621 (follow_fork): Adjust get_last_target_status call. Also consider
17623 (follow_exec): Push target on new inferior.
17624 (struct execution_control_state) <target>: New field.
17625 (user_visible_resume_target): New.
17626 (do_target_resume): Call target_async.
17627 (resume_1): Set target's threads_executing flag. Consider resume
17629 (commit_resume_all_targets): New.
17630 (proceed): Also consider resume target. Skip threads of inferiors
17631 with no execution. Commit resumtion in all targets.
17632 (start_remote): Pass current inferior to wait_for_inferior.
17633 (infrun_thread_stop_requested): Consider target as well. Pass
17634 thread_info pointer to clear_inline_frame_state instead of ptid.
17635 (infrun_thread_thread_exit): Consider target as well.
17636 (random_pending_event_thread): New inferior parameter. Use it.
17637 (do_target_wait): Rename to ...
17638 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17640 (threads_are_resumed_pending_p, do_target_wait): New.
17641 (prepare_for_detach): Adjust calls.
17642 (wait_for_inferior): New inferior parameter. Handle it. Use
17643 do_target_wait_1 instead of do_target_wait.
17644 (fetch_inferior_event): Adjust. Switch to representative
17645 inferior. Pass target down.
17646 (set_last_target_status): Add process_stratum_target parameter.
17647 Save target in global.
17648 (get_last_target_status): Add process_stratum_target parameter and
17650 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17651 (context_switch): Check inferior_ptid == null_ptid before calling
17653 (get_inferior_stop_soon): Pass down target.
17654 (wait_one): Rename to ...
17655 (poll_one_curr_target): ... this.
17656 (struct wait_one_event): New.
17658 (stop_all_threads): Adjust.
17659 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17661 (switch_back_to_stepped_thread): Also consider target.
17662 (print_stop_event): Update.
17663 (normal_stop): Update. Also consider the resume target.
17664 * infrun.h (wait_for_inferior): Remove declaration.
17665 (user_visible_resume_target): New declaration.
17666 (get_last_target_status, set_last_target_status): New
17667 process_stratum_target parameter.
17668 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17669 process_stratum_target parameter, and use it.
17670 (clear_inline_frame_state (thread_info*)): New.
17671 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17672 process_stratum_target parameter.
17673 (clear_inline_frame_state (thread_info*)): Declare.
17674 * linux-fork.c (delete_checkpoint_command): Pass target down to
17676 (checkpoint_command): Adjust.
17677 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17678 instead of just tweaking inferior_ptid.
17679 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17680 (exit_lwp): Pass target down to find_thread_ptid.
17681 (attach_proc_task_lwp_callback): Pass target down to
17682 add_thread/set_running/set_executing.
17683 (linux_nat_target::attach): Pass target down to
17684 thread_change_ptid.
17685 (get_detach_signal): Pass target down to find_thread_ptid.
17686 Consider last target status's target.
17687 (linux_resume_one_lwp_throw, resume_lwp)
17688 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17689 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17690 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17691 (linux_nat_target::async_wait_fd): New.
17692 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17694 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17695 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17696 * linux-thread-db.c (struct thread_db_info::process_target): New
17698 (add_thread_db_info): Save target.
17699 (get_thread_db_info): New process_stratum_target parameter. Also
17701 (delete_thread_db_info): New process_stratum_target parameter.
17703 (thread_from_lwp): Adjust to pass down target.
17704 (thread_db_notice_clone): Pass down target.
17705 (check_thread_db_callback): Pass down target.
17706 (try_thread_db_load_1): Always push the thread_db target.
17707 (try_thread_db_load, record_thread): Pass target down.
17708 (thread_db_target::detach): Pass target down. Always unpush the
17710 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17711 target down. Always unpush the thread_db target.
17712 (find_new_threads_callback, thread_db_find_new_threads_2)
17713 (thread_db_target::update_thread_list): Pass target down.
17714 (thread_db_target::pid_to_str): Pass current inferior down.
17715 (thread_db_target::get_thread_local_address): Pass target down.
17716 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17718 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17719 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17720 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17721 (procfs_init_inferior): Rename to ...
17722 (procfs_target::procfs_init_inferior): ... this and adjust.
17723 (procfs_target::create_inferior, procfs_notice_thread)
17724 (procfs_do_thread_registers): Adjust.
17725 * ppc-fbsd-tdep.c: Include "inferior.h".
17726 (ppcfbsd_get_thread_local_address): Pass down target.
17727 * proc-service.c (ps_xfer_memory): Switch current inferior and
17728 program space as well.
17729 (get_ps_regcache): Pass target down.
17730 * process-stratum-target.c
17731 (process_stratum_target::thread_address_space)
17732 (process_stratum_target::thread_architecture): Pass target down.
17733 * process-stratum-target.h
17734 (process_stratum_target::threads_executing): New field.
17735 (as_process_stratum_target): New.
17736 * ravenscar-thread.c
17737 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17738 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17740 * record-btrace.c (record_btrace_target::info_record): Adjust.
17741 (record_btrace_target::record_method)
17742 (record_btrace_target::record_is_replaying)
17743 (record_btrace_target::fetch_registers)
17744 (get_thread_current_frame_id, record_btrace_target::resume)
17745 (record_btrace_target::wait, record_btrace_target::stop): Pass
17747 * record-full.c (record_full_wait_1): Switch to event thread.
17749 * regcache.c (regcache::regcache)
17750 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17751 process_stratum_target parameter and handle it.
17752 (current_thread_target): New global.
17753 (get_thread_regcache): Add process_stratum_target parameter and
17754 handle it. Switch inferior before calling target method.
17755 (get_thread_regcache): Pass target down.
17756 (get_thread_regcache_for_ptid): Pass target down.
17757 (registers_changed_ptid): Add process_stratum_target parameter and
17759 (registers_changed_thread, registers_changed): Pass target down.
17760 (test_get_thread_arch_aspace_regcache): New.
17761 (current_regcache_test): Define a couple local test_target_ops
17762 instances and use them for testing.
17763 (readwrite_regcache): Pass process_stratum_target parameter.
17764 (cooked_read_test, cooked_write_test): Pass mock_target down.
17765 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17766 (get_thread_arch_aspace_regcache): Add process_stratum_target
17768 (regcache::target): New method.
17769 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17770 (regcache::registers_changed_ptid): Add process_stratum_target
17772 (regcache::m_target): New field.
17773 (registers_changed_ptid): Add process_stratum_target parameter.
17774 * remote.c (remote_state::supports_vCont_probed): New field.
17775 (remote_target::async_wait_fd): New method.
17776 (remote_unpush_and_throw): Add remote_target parameter.
17777 (get_current_remote_target): Adjust.
17778 (remote_target::remote_add_inferior): Push target.
17779 (remote_target::remote_add_thread)
17780 (remote_target::remote_notice_new_inferior)
17781 (get_remote_thread_info): Pass target down.
17782 (remote_target::update_thread_list): Skip threads of inferiors
17783 bound to other targets. (remote_target::close): Don't discard
17784 inferiors. (remote_target::add_current_inferior_and_thread)
17785 (remote_target::process_initial_stop_replies)
17786 (remote_target::start_remote)
17787 (remote_target::remote_serial_quit_handler): Pass down target.
17788 (remote_target::remote_unpush_target): New remote_target
17789 parameter. Unpush the target from all inferiors.
17790 (remote_target::remote_unpush_and_throw): New remote_target
17791 parameter. Pass it down.
17792 (remote_target::open_1): Check whether the current inferior has
17793 execution instead of checking whether any inferior is live. Pass
17795 (remote_target::remote_detach_1): Pass down target. Use
17796 remote_unpush_target.
17797 (extended_remote_target::attach): Pass down target.
17798 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17799 (remote_target::append_resumption): Pass down target.
17800 (remote_target::append_pending_thread_resumptions)
17801 (remote_target::remote_resume_with_hc, remote_target::resume)
17802 (remote_target::commit_resume): Pass down target.
17803 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17804 (remote_target::interrupt_query)
17805 (remote_target::remove_new_fork_children)
17806 (remote_target::check_pending_events_prevent_wildcard_vcont)
17807 (remote_target::remote_parse_stop_reply)
17808 (remote_target::process_stop_reply): Pass down target.
17809 (first_remote_resumed_thread): New remote_target parameter. Pass
17811 (remote_target::wait_as): Pass down target.
17812 (unpush_and_perror): New remote_target parameter. Pass it down.
17813 (remote_target::readchar, remote_target::remote_serial_write)
17814 (remote_target::getpkt_or_notif_sane_1)
17815 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17817 (remote_target::mourn_inferior): Pass down target. Use
17818 remote_unpush_target.
17819 (remote_target::core_of_thread)
17820 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17821 (remote_target::pid_to_exec_file)
17822 (remote_target::thread_handle_to_thread_info): Pass down target.
17823 (remote_target::async_wait_fd): New.
17824 * riscv-fbsd-tdep.c: Include "inferior.h".
17825 (riscv_fbsd_get_thread_local_address): Pass down target.
17826 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17827 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17828 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17830 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17831 * solib-svr4.c (enable_break): Pass down target.
17832 * spu-multiarch.c (parse_spufs_run): Pass down target.
17833 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17834 * target-delegates.c: Regenerate.
17835 * target.c (g_target_stack): Delete.
17836 (current_top_target): Return the current inferior's top target.
17837 (target_has_execution_1): Refer to the passed-in inferior's top
17839 (target_supports_terminal_ours): Check whether the initial
17840 inferior was already created.
17841 (decref_target): New.
17842 (target_stack::push): Incref/decref the target.
17843 (push_target, push_target, unpush_target): Adjust.
17844 (target_stack::unpush): Defref target.
17845 (target_is_pushed): Return bool. Adjust to refer to the current
17846 inferior's target stack.
17847 (dispose_inferior): Delete, and inline parts ...
17848 (target_preopen): ... here. Only dispose of the current inferior.
17849 (target_detach): Hold strong target reference while detaching.
17851 (target_thread_name): Add assertion.
17852 (target_resume): Pass down target.
17853 (target_ops::beneath, find_target_at): Adjust to refer to the
17854 current inferior's target stack.
17855 (get_dummy_target): New.
17856 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17857 has a thread running.
17858 (initialize_targets): Rename to ...
17859 (_initialize_target): ... this.
17860 * target.h: Include "gdbsupport/refcounted-object.h".
17861 (struct target_ops): Inherit refcounted_object.
17862 (target_ops::shortname, target_ops::longname): Make const.
17863 (target_ops::async_wait_fd): New method.
17864 (decref_target): Declare.
17865 (struct target_ops_ref_policy): New.
17866 (target_ops_ref): New typedef.
17867 (get_dummy_target): Declare function.
17868 (target_is_pushed): Return bool.
17869 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17870 (all_matching_threads_iterator::all_matching_threads_iterator):
17871 Handle filter target.
17872 * thread-iter.h (struct all_matching_threads_iterator, struct
17873 all_matching_threads_range, class all_non_exited_threads_range):
17874 Filter by target too. Remove explicit.
17875 * thread.c (threads_executing): Delete.
17876 (inferior_thread): Pass down current inferior.
17877 (clear_thread_inferior_resources): Pass down thread pointer
17879 (add_thread_silent, add_thread_with_info, add_thread): Add
17880 process_stratum_target parameter. Use it for thread and inferior
17882 (is_current_thread): New.
17883 (thread_info::deletable): Use it.
17884 (find_thread_ptid, thread_count, in_thread_list)
17885 (thread_change_ptid, set_resumed, set_running): New
17886 process_stratum_target parameter. Pass it down.
17887 (set_executing): New process_stratum_target parameter. Pass it
17888 down. Adjust reference to 'threads_executing'.
17889 (threads_are_executing): New process_stratum_target parameter.
17890 Adjust reference to 'threads_executing'.
17891 (set_stop_requested, finish_thread_state): New
17892 process_stratum_target parameter. Pass it down.
17893 (switch_to_thread): Also match inferior.
17894 (switch_to_thread): New process_stratum_target parameter. Pass it
17896 (update_threads_executing): Reimplement.
17897 * top.c (quit_force): Pop targets from all inferior.
17898 (gdb_init): Don't call initialize_targets.
17899 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17901 (windows_add_thread, windows_delete_thread): Adjust.
17902 (get_windows_debug_event): Rename to ...
17903 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17904 * tracefile-tfile.c (tfile_target_open): Pass down target.
17905 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17907 (switch_to_thread): Add process_stratum_target parameter.
17908 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17910 (mi_on_resume): Pass target down.
17911 * nat/fork-inferior.c (startup_inferior): Add
17912 process_stratum_target parameter. Pass it down.
17913 * nat/fork-inferior.h (startup_inferior): Add
17914 process_stratum_target parameter.
17915 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17917 2020-01-10 Pedro Alves <palves@redhat.com>
17919 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17920 directly. Instead find the first thread in the thread list and
17921 use switch_to_thread.
17923 2020-01-10 Pedro Alves <palves@redhat.com>
17925 * remote.c (remote_target::remote_add_inferior): Don't bind a
17926 process to the current inferior if the current inferior is already
17927 bound to a process.
17929 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17930 Pedro Alves <palves@redhat.com>
17932 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17933 If no process is specified, return null_ptid instead of
17935 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17936 TARGET_WAITKIND_SIGNALLED with no pid.
17938 2020-01-10 Pedro Alves <palves@redhat.com>
17940 * remote.c (first_remote_resumed_thread): New.
17941 (remote_target::wait_as): Use it as default event_ptid instead of
17944 2020-01-10 Pedro Alves <palves@redhat.com>
17946 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17948 2020-01-10 Pedro Alves <palves@redhat.com>
17950 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17953 2020-01-10 Pedro Alves <palves@redhat.com>
17955 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17956 ptid to get_last_target_status.
17957 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17958 ptid to get_last_target_status.
17959 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17960 get_last_target_status.
17961 (info_program_command): Don't pass a target_waitstatus to
17962 get_last_target_status.
17963 * infrun.c (init_wait_for_inferior): Use
17964 nullify_last_target_wait_ptid.
17965 (get_last_target_status): Handle nullptr arguments.
17966 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17967 (print_stop_event): Don't pass a ptid to get_last_target_status.
17968 (normal_stop): Don't pass a ptid to get_last_target_status.
17969 * infrun.h (get_last_target_status, set_last_target_status): Move
17970 comments here and update.
17971 (nullify_last_target_wait_ptid): Declare.
17972 * linux-fork.c (fork_load_infrun_state): Remove local extern
17973 declaration of nullify_last_target_wait_ptid.
17974 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17975 to get_last_target_status.
17977 2020-01-10 Pedro Alves <palves@redhat.com>
17979 * gdbthread.h (scoped_restore_current_thread)
17980 <dont_restore, restore, m_dont_restore>: Declare.
17981 * thread.c (thread_alive): Add assertion. Return bool.
17982 (switch_to_thread_if_alive): New.
17983 (prune_threads): Switch inferior/thread.
17984 (print_thread_info_1): Switch thread before calling target methods.
17985 (scoped_restore_current_thread::restore): New, factored out from
17987 (scoped_restore_current_thread::~scoped_restore_current_thread):
17989 (scoped_restore_current_thread::scoped_restore_current_thread):
17991 (thread_apply_all_command, thread_select): Use
17992 switch_to_thread_if_alive.
17993 * infrun.c (proceed, restart_threads, handle_signal_stop)
17994 (switch_back_to_stepped_thread): Switch current thread before
17995 calling target methods.
17997 2020-01-10 Pedro Alves <palves@redhat.com>
17999 * inferior.c (switch_to_inferior_no_thread): New function,
18000 factored out from ...
18001 (inferior_command): ... here.
18002 * inferior.h (switch_to_inferior_no_thread): Declare.
18003 * mi/mi-main.c (run_one_inferior): Use
18004 switch_to_inferior_no_thread.
18006 2020-01-10 Pedro Alves <palves@redhat.com>
18008 * infcmd.c (kill_command): Remove dead code.
18010 2020-01-10 Pedro Alves <palves@redhat.com>
18012 * remote.c (remote_target::mourn_inferior): No longer check
18013 whether the target is running.
18015 2020-01-10 Pedro Alves <palves@redhat.com>
18017 * corelow.c (core_target::has_execution): Change parameter type to
18019 * inferior.c (number_of_live_inferiors): Use
18020 inferior::has_execution instead of target_has_execution_1.
18021 * inferior.h (inferior::has_execution): New.
18022 * linux-thread-db.c (thread_db_target::update_thread_list): Use
18023 inferior::has_execution instead of target_has_execution_1.
18024 * process-stratum-target.c
18025 (process_stratum_target::has_execution): Change parameter type to
18026 inferior pointer. Check the inferior's PID instead of
18028 * process-stratum-target.h
18029 (process_stratum_target::has_execution): Change parameter type to
18031 * record-full.c (record_full_core_target::has_execution): Change
18032 parameter type to inferior pointer.
18033 * target.c (target_has_execution_1): Change parameter type to
18035 (target_has_execution_current): Adjust.
18036 * target.h (target_ops::has_execution): Change parameter type to
18038 (target_has_execution_1): Change parameter type to inferior
18039 pointer. Change return type to bool.
18040 * tracefile.h (tracefile_target::has_execution): Change parameter
18041 type to inferior pointer.
18043 2020-01-10 Pedro Alves <palves@redhat.com>
18045 * exceptions.c (print_flush): Remove current_top_target() check.
18047 2020-01-10 Pedro Alves <palves@redhat.com>
18049 * remote.c (show_remote_exec_file): Show the current inferior's
18050 exec-file instead of the command variable's value.
18052 2020-01-10 Pedro Alves <palves@redhat.com>
18054 * record-full.c (record_full_resume_ptid): New global.
18055 (record_full_target::resume): Set it.
18056 (record_full_wait_1): Use record_full_resume_ptid instead of
18059 2020-01-10 Pedro Alves <palves@redhat.com>
18061 * gdbthread.h (scoped_restore_current_thread)
18062 <dont_restore, restore, m_dont_restore>: Declare.
18063 * thread.c (thread_alive): Add assertion. Return bool.
18064 (switch_to_thread_if_alive): New.
18065 (prune_threads): Switch inferior/thread.
18066 (print_thread_info_1): Switch thread before calling target methods.
18067 (scoped_restore_current_thread::restore): New, factored out from
18069 (scoped_restore_current_thread::~scoped_restore_current_thread):
18071 (scoped_restore_current_thread::scoped_restore_current_thread):
18073 (thread_apply_all_command, thread_select): Use
18074 switch_to_thread_if_alive.
18076 2020-01-10 George Barrett <bob@bob131.so>
18078 * stap-probe.c (stap_modify_semaphore): Don't check for null
18080 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
18081 for null semaphores.
18083 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18085 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
18086 all source windows, and maintain horizontal scroll status while
18089 2020-01-09 Tom Tromey <tom@tromey.com>
18092 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
18093 update_source_window, not print_source_lines.
18095 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18097 * tui/tui.c (tui_enable): Register tui hooks after calling
18100 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18102 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
18104 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
18106 * thread.c (print_thread_info_1): Fix indentation.
18108 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18110 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18111 unique_xmalloc_ptr outside the if to always free the demangled name.
18113 2020-01-08 Tom Tromey <tromey@adacore.com>
18115 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18116 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18117 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18118 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18120 (section_offsets): New typedef.
18121 * symtab.c (fixup_section, get_msymbol_address): Update.
18122 * symmisc.c (dump_msymbols): Update.
18123 * symfile.h (relative_addr_info_to_section_offsets)
18124 (symfile_map_offsets_to_segments): Update.
18125 * symfile.c (build_section_addr_info_from_objfile)
18126 (init_objfile_sect_indices): Update.
18127 (struct place_section_arg): Change type of "offsets".
18128 (place_section): Update.
18129 (relative_addr_info_to_section_offsets): Change type of
18130 "section_offsets". Remove "num_sections" parameter.
18131 (default_symfile_offsets, syms_from_objfile_1)
18132 (set_objfile_default_section_offset): Update.
18133 (reread_symbols): No need to preserve section offsets by hand.
18134 (symfile_map_offsets_to_segments): Change type of "offsets".
18135 * stap-probe.c (relocate_address): Update.
18136 * stabsread.h (process_one_symbol): Update.
18137 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18138 (solib_target_relocate_section_addresses): Update.
18139 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18141 * solib-frv.c (frv_relocate_main_executable): Update.
18142 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18143 * solib-aix.c (solib_aix_get_section_offsets): Change return
18145 (solib_aix_solib_create_inferior_hook): Update.
18146 * remote.c (remote_target::get_offsets): Update.
18147 * psymtab.c (find_pc_sect_psymtab): Update.
18148 * psympriv.h (struct partial_symbol) <address, text_low,
18149 text_high>: Update.
18150 * objfiles.h (obj_section_offset): Update.
18151 (struct objfile) <section_offsets>: Change type.
18152 <num_sections>: Remove.
18153 (objfile_relocate): Update.
18154 * objfiles.c (entry_point_address_query): Update
18155 (relocate_one_symbol): Change type of "section_offsets".
18156 (objfile_relocate1, objfile_relocate1): Change type of
18158 (objfile_rebase1): Update.
18159 * mipsread.c (mipscoff_symfile_read): Update.
18160 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18162 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18163 (parse_external, psymtab_to_symtab_1): Update.
18164 * machoread.c (macho_symfile_offsets): Update.
18165 * ia64-tdep.c (ia64_find_unwind_table): Update.
18166 * hppa-tdep.c (read_unwind_info): Update.
18167 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18168 * dwarf2read.c (create_addrmap_from_index)
18169 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18170 (process_psymtab_comp_unit_reader, add_partial_symbol)
18171 (add_partial_subprogram, process_full_comp_unit)
18172 (read_file_scope, read_func_scope, read_lexical_block_scope)
18173 (read_call_site_scope, dwarf2_rnglists_process)
18174 (dwarf2_ranges_process, dwarf2_ranges_read)
18175 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18176 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18178 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18180 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18181 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18182 (process_one_symbol): Change type of "section_offsets".
18183 * ctfread.c (get_objfile_text_range): Update.
18184 * coffread.c (coff_symtab_read, enter_linenos)
18185 (process_coff_symbol): Update.
18186 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18187 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18189 2020-01-08 Tom Tromey <tromey@adacore.com>
18191 * dwarf2read.c (parse_macro_definition): Use std::string.
18192 (parse_macro_definition): Likewise.
18194 2020-01-08 Tom Tromey <tromey@adacore.com>
18196 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18197 (ATTR_ALLOC_CHUNK): Remove.
18199 2020-01-08 Tom Tromey <tromey@adacore.com>
18201 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18203 2020-01-08 Tom Tromey <tromey@adacore.com>
18205 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18206 (dwarf2_compute_name, open_dwo_file): Likewise.
18207 (process_enumeration_scope): Use std::vector.
18208 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18209 (partial_die_info::fixup, dwarf2_start_subfile)
18210 (guess_full_die_structure_name, dwarf2_name): Likewise.
18211 (determine_prefix): Update.
18212 (guess_full_die_structure_name): Make return type const.
18213 (partial_die_full_name): Return unique_xmalloc_ptr.
18214 (DW_FIELD_ALLOC_CHUNK): Remove.
18216 2020-01-07 Tom Tromey <tromey@adacore.com>
18219 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18221 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18223 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18225 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18227 * stack.c (print_frame_info): Move disassemble_next_line code
18228 inside source_print block.
18230 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18232 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18233 gdb/signals.h, as we are now using native signal symbols.
18235 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18237 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18238 overflow by an early check of content vs threshold.
18239 * tui/tui-source.c (tui_source_window::line_is_displayed):
18242 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18244 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18246 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18248 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18249 export table if no section contains it's RVA.
18251 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18253 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18255 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
18257 * source.c (print_source_lines_base): Set last_line_listed.
18259 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18261 * tui/tui-disasm.c: Remove trailing spaces.
18263 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18264 Pedro Alves <palves@redhat.com>
18266 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18267 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18268 (windows_gdb_signal_to_target): New function, uses the above
18269 enumeration to convert GDB internal signal codes to equivalent
18271 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18272 * windows-nat.c: Include "gdb_wait.h".
18273 (get_windows_debug_event): Extract the fatal exception from the
18274 exit status and convert to the equivalent Posix signal number.
18275 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18276 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18277 * gdbsupport/gdb_wait.c: New file, implements
18278 windows_status_to_termsig.
18279 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18280 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18282 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18284 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18287 2020-01-05 Luis Machado <luis.machado@linaro.org>
18289 * aarch64-linux-nat.c
18290 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18291 and bfd_mach_aarch64.
18293 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18295 * ui-file.c (stdio_file::can_emit_style_escape)
18296 (tee_file::can_emit_style_escape): Ensure style is used also on
18297 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18299 * main.c (set_gdb_data_directory): Use file style to output the
18300 warning that the given pathname is not a directory.
18301 * top.c (show_history_filename, gdb_safe_append_history)
18302 (show_gdb_datadir): Use file style.
18304 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18306 * solib-target.c (struct lm_info_target):
18307 Change offsets to be a unique_xmalloc_ptr.
18308 (solib_target_relocate_section_addresses): Update.
18310 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18312 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18314 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18316 * MAINTAINERS (Write After Approval): Add myself.
18318 2020-01-02 Luis Machado <luis.machado@linaro.org>
18320 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18321 Cell BE architecture.
18322 * target.h (struct target_ops) <thread_architecture>: Likewise.
18324 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18326 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18328 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18330 * MAINTAINERS (Write After Approval): Add myself.
18332 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18334 * gdbarch.sh: Update copyright year range of generated files.
18336 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18338 Update copyright year range in all GDB files.
18340 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18342 * copyright.py: Convert to Python 3.
18344 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18346 * copyright.py: Adapt after move of gnulib directory from gdb
18347 directory to toplevel directory.
18349 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18351 * copyright.py (main): Exit if run from the wrong directory.
18353 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18355 * top.c (print_gdb_version): Change copyright year to 2020.
18357 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18359 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18361 For older changes see ChangeLog-2019.
18367 version-control: never