1 2020-12-18 Hannes Domani <ssbssa@yahoo.de>
3 * python/py-value.c (valpy_format_string): Implement address keyword.
5 2020-12-18 Hannes Domani <ssbssa@yahoo.de>
7 * python/py-type.c (typy_get_composite): Add TYPE_CODE_METHOD.
9 2020-12-18 Jameson Nash <vtjnash@gmail.com>
11 * coffread.c (linetab_offset): Change type to file_ptr.
12 (linetab_size): Likewise.
13 (enter_linenos): Change parameter type to file_ptr.
14 (init_lineno): Likewise.
15 (init_stringtab): Likewise.
16 (coff_symtab_read): Likewise.
17 (coff_symfile_read): Change variable types to file_ptr.
19 2020-12-17 Tom Tromey <tromey@adacore.com>
21 * printcmd.c (print_variable_and_value): Don't use n_spaces.
23 2020-12-17 Tom Tromey <tromey@adacore.com>
25 * gdbtypes.c (print_args, dump_fn_fieldlists, print_cplus_stuff)
26 (print_gnat_stuff, print_fixed_point_type_info)
27 (recursive_dump_type): Update.
28 * go32-nat.c (go32_sysinfo, display_descriptor): Update.
29 * c-typeprint.c (c_type_print_base_struct_union)
30 (c_type_print_base_1): Update.
31 * rust-lang.c (rust_internal_print_type): Update.
32 * f-typeprint.c (f_language::f_type_print_base): Update.
33 * utils.h (fprintfi_filtered, printfi_filtered): Remove.
34 * m2-typeprint.c (m2_record_fields): Update.
35 * p-typeprint.c (pascal_type_print_base): Update.
36 * compile/compile-loc2c.c (push, pushf, unary, binary)
37 (do_compile_dwarf_expr_to_c): Update.
38 * utils.c (fprintfi_filtered, printfi_filtered): Remove.
40 2020-12-16 Tom Tromey <tom@tromey.com>
42 * rust-exp.y (rust_lex_tests): Update.
43 * parser-defs.h (parser_state): Add void_p parameter.
44 <void_context_p>: New member.
45 * parse.c (parse_exp_in_context): Update.
46 * language.h (language_defn::post_parser): Remove void_context_p,
47 completing, tracker parameters. Add parser state.
48 * ada-lang.c (ada_language::post_parser): Update.
50 2020-12-16 Tom Tromey <tom@tromey.com>
52 * parse.c (parse_exp_1, parse_expression_for_completion): Update.
53 (parse_exp_in_context): Change void_context_p to bool.
54 * language.h (struct language_defn) <post_parser>: Change
55 void_context_p to bool.
56 * ada-lang.c (class ada_language) <post_parser>: Update.
58 2020-12-16 Tom Tromey <tom@tromey.com>
59 Tom Tromey <tromey@redhat.com>
60 Tom de Vries <tdevries@suse.de>
62 * utils.h (get_chars_per_line): Declare.
63 * utils.c (get_chars_per_line): New function.
64 (fputs_maybe_filtered): Handle '\r'.
65 * ui-out.h (ui_out::progress_meter): New class.
66 (ui_out::progress, ui_out::do_progress_start)
67 (ui_out::do_progress_notify, ui_out::do_progress_end): New
69 * ui-out.c (do_progress_end)
70 (make_cleanup_ui_out_progress_begin_end, ui_out_progress): New
72 * mi/mi-out.h (mi_ui_out::do_progress_start)
73 (mi_ui_out::do_progress_notify, mi_ui_out::do_progress_end): New
75 * cli-out.h (struct cli_ui_out) <do_progress_start,
76 do_progress_notify, do_progress_end>: New methods.
77 <enum meter_stat, struct cli_progress_info>: New.
78 <m_meters>: New member.
79 * cli-out.c (cli_ui_out::do_progress_start)
80 (cli_ui_out::do_progress_notify, cli_ui_out::do_progress_end): New
83 2020-12-16 Luis Machado <luis.machado@linaro.org>
85 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Record FPSR.
87 2020-12-16 Luis Machado <luis.machado@linaro.org>
90 (aarch64_linux_nat_target::stopped_data_address): Handle the TBI.
92 2020-12-15 Rae Kim <rae.kim@gmail.com>
94 * cli/cli-script.c (do_document_command): Rename from
95 document_command. Handle multi-line input.
96 (multi_line_command_p): Handle document_control.
97 (build_command_line): Likewise.
98 (execute_control_command_1): Likewise.
99 (process_next_line): Likewise.
100 (document_command): Call do_document_command.
101 * cli/cli-script.h (enum command_control_type): Add
104 2020-12-15 Tom Tromey <tom@tromey.com>
106 * stap-probe.c (stap_probe::evaluate_argument): Use
108 * dtrace-probe.c (dtrace_probe::evaluate_argument): Use
110 * value.h (evaluate_expression): Add expect_type parameter.
111 * objc-lang.c (print_object_command): Call evaluate_expression.
112 * eval.c (evaluate_expression): Add expect_type parameter.
114 2020-12-15 Tom Tromey <tom@tromey.com>
116 * varobj.c (varobj_create): Use first_opcode.
117 * value.c (init_if_undefined_command): Use first_opcode.
118 * typeprint.c (whatis_exp): Use first_opcode.
119 * tracepoint.c (validate_actionline): Use first_opcode.
120 (encode_actions_1): Use first_opcode.
121 * stack.c (return_command): Use first_opcode.
122 * expression.h (struct expression) <first_opcode>: New method.
123 * eval.c (parse_and_eval_type): Use first_opcode.
124 * dtrace-probe.c (dtrace_process_dof_probe): Use first_opcode.
126 2020-12-15 Tom Tromey <tom@tromey.com>
128 * f-lang.c (evaluate_subexp_f): Update.
129 * expression.h (evaluate_subexp_do_call): Update.
130 * eval.c (evaluate_subexp_do_call): Add callee parameter. Replace
131 nargs, argvec with array_view.
132 (evaluate_funcall): Update.
134 2020-12-15 Tom Tromey <tom@tromey.com>
136 * ada-lang.c (num_component_specs): Remove.
137 (assign_aggregate): Update.
138 (aggregate_assign_positional, aggregate_assign_from_choices)
139 (aggregate_assign_others, add_component_interval): Change
142 2020-12-15 Tom Tromey <tromey@adacore.com>
144 * cli/cli-decode.c (deprecated_cmd_warning): Use title style for
147 2020-12-14 Tom Tromey <tom@tromey.com>
149 * dtrace-probe.c (dtrace_process_dof_probe): Use value_type.
150 * typeprint.c (whatis_exp): Always use evaluate_type.
151 (maintenance_print_type): Likewise. Simplify.
153 2020-12-14 Tom Tromey <tromey@adacore.com>
155 * dictionary.c (language_defn::search_name_hash): Ignore "B".
156 * ada-lang.c (advance_wild_match): Ignore "B".
157 (full_match): Remove.
158 (do_full_match): Rewrite.
160 2020-12-14 Tom Tromey <tromey@adacore.com>
162 * ada-lang.c (get_var_value): Only consider exact matches.
164 2020-12-14 Tom Tromey <tromey@adacore.com>
166 * dwarf2/read.c (rewrite_array_type): New function.
167 (quirk_ada_thick_pointer_struct): Use rewrite_array_type.
169 2020-12-14 Tom Tromey <tromey@adacore.com>
171 * valarith.c (fixed_point_binop): Call error on division by zero.
173 2020-12-13 Tom Tromey <tom@tromey.com>
175 * gdbtypes.c (safe_parse_type): Make argument const.
176 * value.h (parse_and_eval_type): Make argument const.
177 * eval.c (parse_and_eval_type): Make argument const.
179 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
181 * NEWS: Mention new commands.
182 * target-dcache.c: Add 'cli/cli-cmds.h' include.
183 (maint_flush_dcache_command): New function.
184 (_initialize_target_dcache): Create new 'maint flush dcache'
187 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
189 * NEWS: Mention new commands, and that the old commands are now
191 * cli/cli-cmds.c (maintenanceflushlist): Define.
192 * cli/cli-cmds.h (maintenanceflushlist): Declare.
193 * maint.c (_initialize_maint_cmds): Initialise
194 maintenanceflushlist.
195 * regcache.c: Add 'cli/cli-cmds.h' include.
196 (reg_flush_command): Add header comment.
197 (_initialize_regcache): Create new 'maint flush register-cache'
198 command, make 'flushregs' an alias.
199 * symtab.c: Add 'cli/cli-cmds.h' include.
200 (_initialize_symtab): Create new 'maint flush symbol-cache'
201 command, make old command an alias.
203 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
205 * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix
206 result from lookup_cmd_composition_1, use the prefixes from both
207 the command and the alias instead.
208 (lookup_cmd_composition_1): Initial prefix command is the based on
209 the search list being passed in. Simplify the logic for tracking
210 the prefix command. Replace a use of alloca with a local
213 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
215 * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
216 of NULL. Don't print message piece by piece, but sentence at a
217 time to allow internationalisation. Some whitespace cleanup.
219 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
222 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
223 deprecated_cmd_warning.
224 (deprecated_cmd_warning): Take extra parameter, call
225 lookup_cmd_composition_1 and pass new parameter through.
226 (lookup_cmd_composition_1): New function, takes implementation of
227 lookup_cmd_composition but with extra parameter.
228 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
230 * command.h (deprecated_cmd_warning): Add extra parameter to
232 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
234 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
236 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
237 command.h, add extra parameter, and use this to guard giving a
239 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
240 include argument names in declaration, add new argument.
241 * completer.c (complete_line_internal_1): Remove unneeded
242 brackets, pass extra argument to lookup_cmd_1.
244 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
246 * infrun.h (debug_infrun): Make a bool.
247 * infrun.c (debug_infrun): Make a bool.
248 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
251 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
253 * displaced-stepping.h (displaced_debug_printf): Use
254 debug_prefixed_printf_cond.
255 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
256 (dwarf_read_debug_printf_v): Likewise.
257 * infrun.h (infrun_debug_printf): Likewise.
258 * linux-nat.c (linux_nat_debug_printf): Likewise.
260 2020-12-11 Tom Tromey <tom@tromey.com>
262 * p-exp.y (intvar): Remove global.
263 (DOLLAR_VARIABLE): Change type.
265 (exp): Call write_dollar_variable here...
266 (yylex): ... not here.
267 * m2-exp.y (DOLLAR_VARIABLE): Change type.
268 (variable): Call write_dollar_variable here...
269 (yylex): ... not here.
270 * f-exp.y (DOLLAR_VARIABLE): Change type.
271 (exp): Call write_dollar_variable here...
272 (yylex): ... not here.
274 2020-12-11 Tom Tromey <tom@tromey.com>
276 * varobj.c (varobj_create): Update.
277 (install_variable): Return void.
279 2020-12-11 Tom Tromey <tom@tromey.com>
281 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
283 2020-12-11 Tom Tromey <tom@tromey.com>
285 * varobj.c (varobj_clear_saved_item): Remove.
286 (update_dynamic_varobj_children): Update.
287 (varobj::~varobj): Don't call varobj_clear_saved_item.
289 2020-12-11 Tom Tromey <tom@tromey.com>
291 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
292 (update_dynamic_varobj_children, create_child)
293 (create_child_with_value): Update.
294 * varobj-iter.h (struct varobj_item) <value>: Now a
296 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
298 2020-12-11 Tom Tromey <tom@tromey.com>
300 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
301 (varobj_get_iterator): Return unique_ptr.
302 (update_dynamic_varobj_children, install_visualizer)
303 (varobj::~varobj): Update.
304 * python/python-internal.h (py_varobj_get_iterator): Return
306 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
308 2020-12-11 Tom Tromey <tom@tromey.com>
310 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
311 (varobj_clear_saved_item, update_dynamic_varobj_children):
314 2020-12-11 Tom Tromey <tom@tromey.com>
316 * varobj.c (update_dynamic_varobj_children): Update.
317 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
318 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
320 (py_varobj_iter::next): Likewise.
322 2020-12-11 Tom Tromey <tom@tromey.com>
324 * varobj.c (update_dynamic_varobj_children, install_visualizer)
325 (varobj::~varobj): Update.
326 * varobj-iter.h (struct varobj_iter): Change to interface class.
327 (struct varobj_iter_ops): Remove.
328 (varobj_iter_next, varobj_iter_delete): Remove.
329 * python/py-varobj.c (struct py_varobj_iter): Derive from
330 varobj_iter. Add constructor, destructor. Rename members.
331 (py_varobj_iter::~py_varobj_iter): Rename from
333 (py_varobj_iter::next): Rename from py_varobj_iter_next.
334 (py_varobj_iter_ops): Remove.
335 (py_varobj_iter): Rename from py_varobj_iter_ctor.
336 (py_varobj_iter_new): Remove.
337 (py_varobj_get_iterator): Update.
339 2020-12-11 Tom Tromey <tom@tromey.com>
341 * varobj.h (all_root_varobjs): Take a function_view.
342 * varobj.c (all_root_varobjs): Take a function_view.
343 (varobj_invalidate_iter): Remove unused parameter.
344 (varobj_invalidate): Update.
345 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
346 (mi_cmd_var_update_iter): Change parameters.
348 2020-12-11 Tom Tromey <tom@tromey.com>
350 * varobj.c (struct varobj_root) <next>: Remove.
351 (struct vlist): Remove.
352 (rootlist): Now a std::list.
353 (install_variable, uninstall_variable, all_root_varobjs): Update.
355 2020-12-11 Tom Tromey <tom@tromey.com>
357 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
358 (varobj_table): Now htab_t.
359 (varobj_get_handle, install_variable, uninstall_variable):
361 (hash_varobj, eq_varobj_and_string): New functions.
362 (hash_varobj): Update.
364 2020-12-11 Tom Tromey <tom@tromey.com>
366 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
367 * ada-lang.c (check_status_exception): Update.
368 * breakpoint.c (free_bp_location): Remove.
369 (decref_bp_location): Use bp_location_ref_policy.
370 (bpstats::bpstats): Don't call incref_bp_location.
371 (bpstats::~bpstats): Remove.
372 (bpstats::bpstats): Update.
373 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
374 (bp_location::bp_location): Update.
375 (incref_bp_location): Remove.
376 (bkpt_print_it): Update.
377 * breakpoint.h (class bp_location): Derive from
379 (struct bpstats): Remove destructor.
380 <bp_location_at>: Now a bp_location_ref_ptr.
382 (bp_location_ref_ptr): New typedef.
383 (struct bp_location_ref_policy): New.
385 2020-12-11 Tom Tromey <tom@tromey.com>
387 * thread.c (class scoped_inc_dec_ref): Remove.
388 (tp_array_compar_ascending, tp_array_compar_descending): Change
390 (thread_apply_all_command): Use thread_info_ref.
392 2020-12-11 Tom Tromey <tom@tromey.com>
394 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
395 (stop_context::stop_context): Update.
396 (stop_context::~stop_context): Remove.
398 2020-12-11 Tom Tromey <tom@tromey.com>
400 * inferior.c (current_inferior_): Change type.
401 (current_inferior, set_current_inferior, initialize_inferiors):
404 2020-12-11 Tom Tromey <tom@tromey.com>
406 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
409 2020-12-11 Tom Tromey <tromey@adacore.com>
411 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
413 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
414 (read_atcb): Use cpu_id_offset.
416 2020-12-10 Kevin Buettner <kevinb@redhat.com>
418 * ada-lang.c (ada_fold_name): Fix off-by-one error.
420 2020-12-10 Luis Machado <luis.machado@linaro.org>
422 * breakpoint.c (should_be_inserted): Don't output newline.
424 2020-12-10 Luis Machado <luis.machado@linaro.org>
426 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
427 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
428 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
429 * arch/aarch64.h: ... here.
430 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
431 (aarch64_maybe_swab128): New function.
432 (aarch64_sve_regs_copy_to_reg_buf)
433 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
434 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
436 (TF_REG_VALUE_BYTES): New enum value.
437 (trad_frame_value_bytes_p): New function.
438 (trad_frame_set_value_bytes): New function.
439 (trad_frame_set_reg_value_bytes): New function.
440 (trad_frame_get_prev_register): Handle register values saved as bytes.
441 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
442 (struct trad_frame_saved_reg) <data>: New field.
443 (trad_frame_set_value_bytes): New prototype.
444 (trad_frame_value_bytes_p): New prototype.
446 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
448 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
449 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
450 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
452 2020-12-09 Tom Tromey <tromey@adacore.com>
454 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
456 2020-12-09 Tom Tromey <tromey@adacore.com>
458 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
459 and "denominator" to gdb_mpz. Handle block forms.
460 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
461 "denominator" to gdb_mpz.
462 (finish_fixed_point_type): Update.
463 (has_zero_over_zero_small_attribute): Update.
465 2020-12-09 Tom Tromey <tromey@adacore.com>
467 * expprint.c (op_name): Update.
468 * expression.h (enum exp_opcode): Update.
469 * std-operator.def: Add more opcodes.
470 * ada-operator.def, fortran-operator.def: Remove, moving contents
471 into std-operator.def.
473 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
475 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
476 Return {} instead of false.
477 (get_discrete_bounds): Compute high bound only if low bound is
480 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
483 * gdbtypes.c (get_discrete_low_bound): Make non-static.
484 (get_discrete_high_bound): Make non-static.
485 * gdbtypes.h (get_discrete_low_bound): New declaration.
486 (get_discrete_high_bound): New declaration.
487 * valarith.c (value_subscript): Only fetch high bound if
490 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
492 * gdbtypes.c (get_discrete_bounds): Implement with
493 get_discrete_low_bound and get_discrete_high_bound.
494 (get_discrete_low_bound): New.
495 (get_discrete_high_bound): New.
497 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
499 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
501 * gdbtypes.c (get_discrete_bounds): Return bool.
503 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
505 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
506 (ada_value_slice): Adjust.
508 * gdbtypes.c (get_discrete_bounds): Adjust.
509 (discrete_position): Return optional.
510 * gdbtypes.h (discrete_position): Return optional.
512 2020-12-07 Tom Tromey <tromey@adacore.com>
514 * maint.c (_initialize_maint_cmds): Use expression command
515 completer for "maint print type".
517 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
519 * completer.c (complete_explicit_location): Also add keywords
520 that start with '-' to the completion list.
522 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
524 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
525 keyword may be followed by any keyword.
526 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
527 'toklen' in the case for "-force-condition".
529 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
531 * main.c (catch_command_errors): Add a flag parameter; invoke
532 `bpstat_do_actions` if the flag is set.
533 (execute_cmdargs): Update a call to `catch_command_errors`.
535 2020-12-07 Tom de Vries <tdevries@suse.de>
537 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
539 2020-12-06 Tom Tromey <tom@tromey.com>
542 * ada-lang.c (replace_operator_with_call): Rewrite.
544 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
547 * s390-tdep.h (op_bc): Correct BC opcode value.
549 2020-12-06 Joel Brobecker <brobecker@adacore.com>
551 * gmp-utils.h (gdb_mpz::safe_export): New private method.
552 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
553 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
554 (gdb_mpz::safe_export): New method.
555 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
556 Update function description.
557 (check_as_integer_raises_out_of_range_error): New function.
558 (gdb_mpz_as_integer_out_of_range): New function.
559 (_initialize_gmp_utils_selftests): Register
560 gdb_mpz_as_integer_out_of_range as a selftest.
562 2020-12-05 Joel Brobecker <brobecker@adacore.com>
564 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
566 (gdb_mpz::write): Likewise.
568 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
570 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
571 number of displaced step buffers.
573 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
575 * displaced-stepping.h (struct displaced_step_buffer): Rename
577 (struct displaced_step_buffers): ... this.
578 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
579 <struct displaced_step_buffer>: New inner class.
581 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
583 (displaced_step_buffers::prepare): ... this, adjust for multiple
585 (displaced_step_buffer::finish): Rename to...
586 (displaced_step_buffers::finish): ... this, adjust for multiple
588 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
589 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
590 adjust for multiple buffers.
591 (displaced_step_buffer::restore_in_ptid): Rename to...
592 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
594 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
595 for num_disp_step_buffers.
596 * linux-tdep.c (struct linux_gdbarch_data)
597 <num_disp_step_buffers>: New field.
598 (struct linux_info) <disp_step_buf>: Rename to...
599 <disp_step_bufs>: ... this, change type to
600 displaced_step_buffers.
601 (linux_displaced_step_prepare): Use
602 linux_gdbarch_data::num_disp_step_buffers to create that number
604 (linux_displaced_step_finish): Adjust.
605 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
606 (linux_displaced_step_restore_all_in_ptid): Adjust.
607 (linux_init_abi): Change supports_displaced_step parameter for
608 num_disp_step_buffers, save it in linux_gdbarch_data.
609 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
610 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
611 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
612 supports_displaced_step parameter for num_disp_step_buffers.
613 (amd64_linux_init_abi): Adjust.
614 (amd64_x32_linux_init_abi): Adjust.
615 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
616 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
617 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
618 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
619 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
620 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
621 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
622 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
623 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
624 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
625 * m68k-linux-tdep.c (m68k_linux_init_abi):
626 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
627 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
628 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
629 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
630 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
631 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
632 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
633 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
634 Change type to displaced_step_buffers.
635 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
636 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
637 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
638 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
639 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
640 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
641 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
643 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
645 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
647 (_initialize_linux_tdep): Register pre-init gdb data instead of
650 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
652 * displaced-stepping.h (struct
653 displaced_step_copy_insn_closure): Adjust comments.
654 (struct displaced_step_inferior_state) <step_thread,
655 step_gdbarch, step_closure, step_original, step_copy,
656 step_saved_copy>: Remove fields.
657 (struct displaced_step_thread_state): New.
658 (struct displaced_step_buffer): New.
659 * displaced-stepping.c (displaced_step_buffer::prepare): New.
660 (write_memory_ptid): Move from infrun.c.
661 (displaced_step_instruction_executed_successfully): New,
662 factored out of displaced_step_finish.
663 (displaced_step_buffer::finish): New.
664 (displaced_step_buffer::copy_insn_closure_by_addr): New.
665 (displaced_step_buffer::restore_in_ptid): New.
666 * gdbarch.sh (displaced_step_location): Remove.
667 (displaced_step_prepare, displaced_step_finish,
668 displaced_step_copy_insn_closure_by_addr,
669 displaced_step_restore_all_in_ptid): New.
670 * gdbarch.c: Re-generate.
671 * gdbarch.h: Re-generate.
672 * gdbthread.h (class thread_info) <displaced_step_state>: New
674 (thread_step_over_chain_remove): New declaration.
675 (thread_step_over_chain_next): New declaration.
676 (thread_step_over_chain_length): New declaration.
677 * thread.c (thread_step_over_chain_remove): Make non-static.
678 (thread_step_over_chain_next): New.
679 (global_thread_step_over_chain_next): Use
680 thread_step_over_chain_next.
681 (thread_step_over_chain_length): New.
682 (global_thread_step_over_chain_enqueue): Add debug print.
683 (global_thread_step_over_chain_remove): Add debug print.
684 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
686 * infrun.c (get_displaced_stepping_state): New.
687 (displaced_step_in_progress_any_inferior): Remove.
688 (displaced_step_in_progress_thread): Adjust.
689 (displaced_step_in_progress): Adjust.
690 (displaced_step_in_progress_any_thread): New.
691 (get_displaced_step_copy_insn_closure_by_addr): Remove.
692 (gdbarch_supports_displaced_stepping): Use
693 gdbarch_displaced_step_prepare_p.
694 (displaced_step_reset): Change parameter from inferior to
696 (displaced_step_prepare_throw): Implement using
697 gdbarch_displaced_step_prepare.
698 (write_memory_ptid): Move to displaced-step.c.
699 (displaced_step_restore): Remove.
700 (displaced_step_finish): Implement using
701 gdbarch_displaced_step_finish.
702 (start_step_over): Allow starting more than one displaced step.
703 (prepare_for_detach): Handle possibly multiple threads doing
705 (handle_inferior_event): Handle possibility that fork event
706 happens while another thread displaced steps.
707 * linux-tdep.h (linux_displaced_step_prepare): New.
708 (linux_displaced_step_finish): New.
709 (linux_displaced_step_copy_insn_closure_by_addr): New.
710 (linux_displaced_step_restore_all_in_ptid): New.
711 (linux_init_abi): Add supports_displaced_step parameter.
712 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
713 (linux_displaced_step_prepare): New.
714 (linux_displaced_step_finish): New.
715 (linux_displaced_step_copy_insn_closure_by_addr): New.
716 (linux_displaced_step_restore_all_in_ptid): New.
717 (linux_init_abi): Add supports_displaced_step parameter,
718 register displaced step methods if true.
719 (_initialize_linux_tdep): Register inferior_execd observer.
720 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
721 supports_displaced_step parameter, adjust call to
722 linux_init_abi. Remove call to
723 set_gdbarch_displaced_step_location.
724 (amd64_linux_init_abi): Adjust call to
725 amd64_linux_init_abi_common.
726 (amd64_x32_linux_init_abi): Likewise.
727 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
728 linux_init_abi. Remove call to
729 set_gdbarch_displaced_step_location.
730 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
731 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
732 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
734 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
735 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
736 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
737 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
738 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
739 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
740 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
741 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
742 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
743 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
744 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
745 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
746 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
747 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
748 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
749 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
750 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
751 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
752 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
753 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
754 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
755 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
756 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
757 linux_init_abi. Remove call to
758 set_gdbarch_displaced_step_location.
759 * arm-tdep.c (arm_pc_is_thumb): Call
760 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
761 get_displaced_step_copy_insn_closure_by_addr.
762 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
763 clear gdbarch methods.
764 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
765 (get_ppc_per_inferior): New function.
766 (ppc_displaced_step_prepare): New function.
767 (ppc_displaced_step_finish): New function.
768 (ppc_displaced_step_restore_all_in_ptid): New function.
769 (rs6000_gdbarch_init): Register new gdbarch methods.
770 * s390-tdep.c (s390_gdbarch_init): Don't call
771 set_gdbarch_displaced_step_location, set new gdbarch methods.
773 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
775 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
776 * aarch64-tdep.h: Include displaced-stepping.h.
777 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
779 (displaced_step_copy_insn_closure_up): Move here.
780 (struct buf_displaced_step_copy_insn_closure): Move here.
781 (struct displaced_step_inferior_state): Move here.
782 (debug_displaced): Move here.
783 (displaced_debug_printf_1): Move here.
784 (displaced_debug_printf): Move here.
785 * displaced-stepping.c: New file.
786 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
787 * gdbarch.h: Re-generate.
788 * inferior.h: Include displaced-stepping.h.
789 * infrun.h (debug_displaced): Move to displaced-stepping.h.
790 (displaced_debug_printf_1): Likewise.
791 (displaced_debug_printf): Likewise.
792 (struct displaced_step_copy_insn_closure): Likewise.
793 (displaced_step_copy_insn_closure_up): Likewise.
794 (struct buf_displaced_step_copy_insn_closure): Likewise.
795 (struct displaced_step_inferior_state): Likewise.
796 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
797 (displaced_debug_printf_1): Likewise.
798 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
800 (_initialize_infrun): Don't register "set/show debug displaced".
802 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
804 * linux-tdep.c (get_linux_inferior_data): Add inferior
806 (linux_vsyscall_range): Pass current inferior.
808 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
810 * infrun.c (displaced_step_prepare_throw): Change return type to
811 displaced_step_prepare_status.
812 (displaced_step_prepare): Likewise.
813 (displaced_step_finish): Change return type to
814 displaced_step_finish_status.
816 (stop_all_threads): Adjust.
817 * displaced-stepping.h: New file.
819 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
821 * infrun.c (displaced_step_fixup): Rename to...
822 (displaced_step_finish): ... this, update all callers.
824 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
826 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
827 (get_displaced_step_copy_insn_closure_by_addr): ... this.
829 (displaced_step_closure): Rename to...
830 (displaced_step_copy_insn_closure): ... this. Update all users.
831 (displaced_step_closure_up): Rename to...
832 (displaced_step_copy_insn_closure_up). ... this. Update all
834 (buf_displaced_step_closure): Rename to...
835 (buf_displaced_step_copy_insn_closure): ... this. Update all
837 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
838 (get_displaced_step_copy_insn_closure_by_addr): ... this.
840 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
841 (aarch64_displaced_step_copy_insn_closure): ... this. Update
843 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
844 (amd64_displaced_step_copy_insn_closure): ... this. Update all
846 * arm-tdep.h (arm_displaced_step_closure): Rename to...
847 (arm_displaced_step_copy_insn_closure): ... this. Update all
849 * i386-tdep.h (i386_displaced_step_closure): Rename to...
850 (i386_displaced_step_copy_insn_closure): ... this. Update all
852 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
853 (ppc_displaced_step_copy_insn_closure): ... this. Update all
855 * s390-tdep.c (s390_displaced_step_closure): Rename to...
856 (s390_displaced_step_copy_insn_closure): ... this. Update all
858 * gdbarch.h: Re-generate.
859 * gdbarch.c: Re-generate.
861 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
863 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
864 (global_thread_step_over_chain_enqueue): ... this. Update all
866 (thread_step_over_chain_remove): Rename to...
867 (global_thread_step_over_chain_remove): ... this. Update all
869 (thread_step_over_chain_next): Rename to...
870 (global_thread_step_over_chain_next): ... this. Update all
872 * infrun.h (step_over_queue_head): Rename to...
873 (global_thread_step_over_chain_head): ... this. Update all
875 * infrun.c (step_over_queue_head): Rename to...
876 (global_thread_step_over_chain_head): ... this. Update all
878 * thread.c (step_over_chain_remove): Rename to...
879 (thread_step_over_chain_remove): ... this. Update all users.
880 (thread_step_over_chain_next): Rename to...
881 (global_thread_step_over_chain_next): ... this. Update all
883 (thread_step_over_chain_enqueue): Rename to...
884 (global_thread_step_over_chain_enqueue): ... this. Update all
886 (thread_step_over_chain_remove): Rename to...
887 (global_thread_step_over_chain_remove): ... this. Update all
890 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
892 * infrun.c (get_displaced_stepping_state): Remove, change
893 callers to access the field directly.
895 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
897 * infrun.c (handle_inferior_event): Restore displaced step
898 buffer bytes in child process when handling fork, even if fork
899 happened in another thread than the displaced-stepping one.
901 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
903 * infrun.c (infrun_inferior_execd): New function.
904 (_initialize_infrun): Attach inferior_execd observer.
906 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
908 * observable.h (inferior_execd): Declare new observable.
909 * observable.c (inferior_execd): Declare new observable.
910 * infrun.c (follow_exec): Notify inferior_execd observer.
911 * jit.c (jit_inferior_created_hook): Make static.
912 (_initialize_jit): Register inferior_execd observer.
913 * jit.h (jit_inferior_created_hook): Remove declaration.
914 * solib.c (_initialize_solib): Register inferior_execd observer.
916 2020-12-04 Tom de Vries <tdevries@suse.de>
919 * completer.c (completion_tracker::build_completion_result): Don't
920 access match_list[0][-1].
922 2020-12-04 Tom Tromey <tromey@adacore.com>
924 * linespec.c (struct linespec_token): Rename; remove typedef.
925 * guile/scm-block.c (struct block_smob): Remove typedef.
926 (struct block_syms_progress_smob): Likewise.
927 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
928 * guile/scm-symtab.c (symtab_smob): Remove typedef.
929 (struct sal_smob): Remove typedef.
930 * guile/scm-param.c (struct param_smob): Remove typedef.
931 * guile/scm-progspace.c (struct pspace_smob): Rename.
932 * guile/scm-objfile.c (struct objfile_smob): Rename.
933 * guile/scm-iterator.c (struct iterator_smob): Rename.
934 * guile/scm-frame.c (struct frame_smob): Rename.
935 * guile/scm-arch.c (struct arch_smob): Rename.
936 * guile/scm-type.c (struct field_smob): Remove typedef.
937 (struct type_smob): Rename.
938 * guile/scm-cmd.c (struct command_smob): Remove typedef.
939 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
940 * guile/scm-value.c (struct value_smob): Remove typedef.
941 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
942 * guile/guile-internal.h (struct scheme_variable)
943 (struct scheme_function, struct scheme_integer_constant)
944 (struct gdb_smob, struct chained_gdb_smob)
945 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
946 (objfile_smob, pspace_smob, type_smob): Remove typedef.
947 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
948 (struct pretty_printer_worker_smob): Remove typedef.
949 * guile/scm-exception.c (struct exception_smob): Remove typedef.
950 * python/py-block.c (struct block_object): Remove typedef.
951 (block_syms_iterator_object): Update.
953 (block_syms_iterator_object): Remove typedef.
954 * python/py-inferior.c (struct membuf_object): Remove typedef.
955 * python/py-symtab.c (struct symtab_object): Remove typedef.
956 (set_symtab): Update.
957 (sal_object): Remove typedef.
959 * python/py-frame.c (frame_object): Remove typedef.
960 * python/py-record-btrace.c (struct btpy_list_object): Remove
962 * python/py-arch.c (struct arch_object): Remove typedef.
963 * python/py-linetable.c (struct linetable_entry_object)
964 (linetable_object, struct ltpy_iterator_object): Remove typedef.
965 * python/py-events.h (eventregistry_object): Remove typedef.
966 (struct events_object): Remove typedef.
967 * python/python-internal.h (gdbpy_breakpoint_object): Remove
969 (thread_object): Remove typedef.
970 * python/py-progspace.c (pspace_object): Remove typedef.
971 * python/py-value.c (struct value_object): Remove typedef.
972 * python/py-record.h (recpy_record_object): Remove typedef.
973 (struct recpy_element_object): Remove typedef.
974 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
975 * python/py-objfile.c (objfile_object): Remove typedef.
976 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
977 * python/py-type.c (type_object): Remove typedef.
978 (typy_iterator_object): Update.
980 (field_object): Remove typedef.
981 (typy_iterator_object): Remove typedef.
982 * python/py-registers.c (register_descriptor_iterator_object):
984 (struct register_descriptor_object)
985 (struct reggroup_iterator_object, struct reggroup_object): Remove
987 * python/py-record.c (recpy_gap_object): Remove typedef.
988 * python/py-symbol.c (symbol_object): Remove typedef.
989 (set_symbol): Update.
990 * python/py-event.h (event_object): Remove typedef.
991 * python/py-param.c (parmpy_object): Remove typedef.
992 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
993 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
994 (unwind_info_object, struct cached_frame_info): Likewise.
996 2020-12-04 Tom Tromey <tromey@adacore.com>
998 * value.c (value_internal_function_name): Make return type const.
999 * value.h (value_internal_function_name): Make return type const.
1001 2020-12-04 Luis Machado <luis.machado@linaro.org>
1003 * aarch64-tdep.c (submask, bit, bits): Remove.
1004 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
1005 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
1006 (aarch64_decode_cb, aarch64_decode_tb)
1007 (aarch64_decode_ldr_literal): Use sbits to extract a signed
1009 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
1011 2020-12-04 Tom de Vries <tdevries@suse.de>
1014 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
1016 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
1019 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
1020 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
1022 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1024 * arch/riscv.c: Include 'rv32e-xregs.c'.
1025 (riscv_create_target_description): Update to handle rv32e.
1026 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
1028 <operator==>: Update to account for new field.
1030 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
1031 * features/riscv/rv32e-xregs.c: Generated.
1032 * features/riscv/rv32e-xregs.xml: New file.
1033 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
1035 (riscv_debug_infcall): Likewise.
1036 (riscv_debug_unwinder): Likewise.
1037 (riscv_debug_gdbarch): Likewise.
1038 (enum riscv_register_required_status): Delete.
1039 (struct riscv_register_feature): Add constructor, delete default
1040 constructor, copy, and assign constructors.
1041 (struct riscv_register_feature::register_info) <required>: Delete.
1042 <check>: Update comment and arguments.
1043 (struct riscv_register_feature) <name>: Change to member function.
1044 <prefer_first_name>: Delete.
1045 <tdesc_feature>: New member function.
1046 <registers>: Rename to...
1047 <m_registers>: ...this.
1048 <m_feature_name>: New member variable.
1049 (riscv_register_feature::register_info::check): Update arguments.
1050 (riscv_xreg_feature): Rewrite as class, create a single static
1051 instance of the class.
1052 (riscv_freg_feature): Likewise.
1053 (riscv_virtual_feature): Likewise.
1054 (riscv_csr_feature): Likewise.
1055 (riscv_create_csr_aliases): Has become a member function inside
1056 riscv_csr_feature class.
1057 (riscv_abi_embedded): New function definition.
1058 (riscv_register_name): Adjust to use new feature objects.
1059 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
1060 and adjust available argument registers.
1061 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
1062 (riscv_check_tdesc_feature): Delete.
1063 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
1064 (riscv_gdbarch_init): Delete target description checking code, and
1065 instead call to the new feature objects to perform the checks.
1066 Reorder handling of no abi information case, allows small code
1068 (_initialize_riscv_tdep): Remove call, this is now done in the
1069 riscv_csr_feature constructor.
1070 * riscv-tdep.h (riscv_abi_embedded): Declare.
1072 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1074 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
1077 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1079 * riscv-tdep.c (riscv_is_unknown_csr): New function,
1080 implementation moved from riscv_register_reggroup_p.
1081 (riscv_register_reggroup_p): Update group handling for unknown
1084 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
1086 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
1087 (dwarf2_get_dwz_file): Convert 'filename' to a
1088 std::string. Use dwz_search_other_debugdirs to search for DWZ
1089 files in the debug-file-directories provided by the user as well.
1091 2020-12-01 Tom Tromey <tom@tromey.com>
1093 * parse.c (expr_builder::expr_builder): Initialize expout.
1094 (expr_builder::release): Use expression::resize.
1095 (expression::expression, expression::~expression)
1096 (expression::resize): New methods.
1097 (write_exp_elt): Use expression::resize.
1098 (prefixify_expression): Update.
1099 (increase_expout_size): Use expression::resize.
1100 * expression.h (struct expression): Add constructor, destructor.
1101 <resize>: New method.
1102 (expression_up): Change type.
1104 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1105 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
1106 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
1109 2020-11-30 Tom de Vries <tdevries@suse.de>
1112 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
1113 is_reference parameter.
1114 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
1116 2020-11-30 Tom Tromey <tom@tromey.com>
1118 * rust-lang.c (rust_op_name): Remove.
1119 (exp_descriptor_rust): Update.
1120 * parser-defs.h (op_name_standard): Don't declare.
1121 (struct exp_descriptor) <op_name>: Remove.
1122 * parse.c (exp_descriptor_standard): Update.
1123 * opencl-lang.c (exp_descriptor_opencl): Update.
1124 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
1125 * f-lang.c (op_name_f): Remove.
1126 (f_language::exp_descriptor_tab): Update.
1127 * expression.h (op_name): Update.
1128 * expprint.c (op_name): Rewrite.
1129 (op_name_standard): Remove.
1130 (dump_raw_expression, dump_subexp): Update.
1131 * c-lang.c (exp_descriptor_c): Update.
1132 * ax-gdb.c (gen_expr): Update.
1133 * ada-lang.c (ada_op_name): Remove.
1134 (ada_exp_descriptor): Update.
1136 2020-11-30 Tom Tromey <tom@tromey.com>
1138 * eval.c (init_array_element): Remove.
1139 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
1141 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
1144 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
1145 static locator win info.
1147 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
1149 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
1152 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1154 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
1155 is always initialized.
1157 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
1158 * MAINTAINERS (Write After Approval): Add myself.
1160 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1162 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1163 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
1165 2020-11-25 Tom Tromey <tom@tromey.com>
1167 * eval.c (evaluate_subexp_standard): Remove unnecessary
1170 2020-11-25 Tom Tromey <tom@tromey.com>
1172 * d-lang.c: Include parser-defs.h.
1173 * rust-lang.c: Include parser-defs.h.
1174 * c-lang.h: Do not include parser-defs.h.
1176 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1178 * regcache.h (struct cached_reg): Remove typedef.
1180 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1182 * README: Fix the URL of the MPFR library.
1184 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1186 * README: Document the --with-libgmp-prefix configure option.
1188 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1190 * NEWS: Add entry documenting support for DWARF-based fixed
1193 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1195 * NEWS: Document that building GDB now requires GMP.
1197 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1199 * typeprint.c (print_type_scalar): Add handling of
1200 TYPE_CODE_FIXED_POINT.
1202 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1204 * valarith.c (fixed_point_binop): Replace the
1205 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
1208 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1210 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
1211 replacing fixed_point_scaling_factor. All callers updated
1212 throughout this project.
1213 (fixed_point_scaling_factor): Delete declaration.
1214 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
1215 fixed_point_scaling_factor. Adjust implementation accordingly.
1217 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1219 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1220 replacing the fixed_point_type_base_type function. All callers
1221 updated throughout this project.
1222 (fixed_point_type_base_type): Remove declaration.
1223 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1224 fixed_point_type_base_type. Adjust implementation accordingly.
1226 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1228 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1230 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1231 (TYPE_FIXED_POINT_INFO): Delete macro.
1232 (allocate_fixed_point_type_info): Change return type to void.
1233 * gdbtypes.c (copy_type_recursive): Replace the use of
1234 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1235 (fixed_point_scaling_factor): Likewise.
1236 (allocate_fixed_point_type_info): Change return type to void.
1237 Adjust implementation accordingly.
1238 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1239 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1241 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1243 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1244 into one single gdb::array_view parameter.
1245 (gdb_mpz::write): Likewise.
1246 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1247 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1248 into one single gdb::array_view parameter.
1249 Adjust implementation accordingly.
1250 (gdb_mpz::write): Likewise.
1251 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1252 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1253 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1255 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1257 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1258 Change return type to std::string. Update all callers.
1259 * gmp-utils.c (gmp_string_printf): Likewise.
1261 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1263 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1264 instead of mpq_set_ui to initialize our GMP rational.
1266 2020-11-23 Tom de Vries <tdevries@suse.de>
1268 * debuginfod-support.c (debuginfod_source_query)
1269 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1271 2020-11-21 Tom Tromey <tom@tromey.com>
1273 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1275 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1277 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1279 (gdb_mpz_write_all_from_small): Likewise.
1281 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1283 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1286 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1288 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1289 ctf_arc_open_by_name.
1291 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1293 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1294 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1296 2020-11-20 Pedro Alves <pedro@palves.net>
1298 * language.c (language_arch_info::lookup_primitive_type): Use
1299 gdb::function_view instead of gdb::function.
1300 (template language_lookup_primitive_type): Rename to ...
1301 (language_lookup_primitive_type_1): ... this, and make static.
1302 (language_lookup_primitive_type(const struct language_defn *,
1303 struct gdbarch *, const char *): Make non-template.
1304 (language_lookup_primitive_type(const struct language_defn *,
1305 struct gdbarch *, std::function<bool (struct type *)>): Make
1306 non-template and use gdb::function_view.
1307 * language.h (language_arch_info::lookup_primitive_type): Use
1308 gdb::function_view instead of std::function.
1309 (language_lookup_primitive_type): No longer template.
1310 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1311 lambda instead of a std::function.
1313 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1316 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1319 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1321 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1323 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1325 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1326 in `loop_cb` parameter.
1327 * gdbarch.c: Re-generate.
1328 * gdbarch.h: Re-generate.
1329 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1331 * arch-utils.h (default_read_core_file_mappings): Likewise.
1332 * corelow.c (core_target::build_file_mappings): Likewise.
1333 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1334 (linux_core_info_proc_mappings): Likewise.
1336 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1338 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1339 * NEWS: Mention new options.
1340 * f-array-walker.h: New file.
1341 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1342 (repack_array_slices): New static global.
1343 (show_repack_array_slices): New function.
1344 (fortran_array_slicing_debug): New static global.
1345 (show_fortran_array_slicing_debug): New function.
1346 (value_f90_subarray): Delete.
1347 (skip_undetermined_arglist): Delete.
1348 (class fortran_array_repacker_base_impl): New class.
1349 (class fortran_lazy_array_repacker_impl): New class.
1350 (class fortran_array_repacker_impl): New class.
1351 (fortran_value_subarray): Complete rewrite.
1352 (set_fortran_list): New static global.
1353 (show_fortran_list): Likewise.
1354 (_initialize_f_language): Register new commands.
1355 (fortran_adjust_dynamic_array_base_address_hack): New function.
1356 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1358 * f-valprint.c: Include 'f-array-walker.h'.
1359 (class fortran_array_printer_impl): New class.
1360 (f77_print_array_1): Delete.
1361 (f77_print_array): Delete.
1362 (fortran_print_array): New.
1363 (f_value_print_inner): Update to call fortran_print_array.
1364 * gdbtypes.c: Include 'f-lang.h'.
1365 (resolve_dynamic_type_internal): Call
1366 fortran_adjust_dynamic_array_base_address_hack.
1368 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1370 * breakpoint.c (struct watch_options): New struct.
1371 (watch_option_defs): New static global.
1372 (make_watch_options_def_group): New function.
1373 (watch_maybe_just_location): Convert option parsing.
1374 (watch_command_completer): New function.
1375 (_initialize_breakpoint): Build help text using options mechanism.
1377 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1379 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1380 (watch_command_1): Update parameter types. Convert locals to
1382 (watch_command_wrapper): Change parameter type.
1383 (watch_maybe_just_location): Change locals to bool.
1384 (rwatch_command_wrapper): Update parameter type.
1385 (awatch_command_wrapper): Update parameter type.
1386 * breakpoint.h (watch_command_wrapper): Change parameter type.
1387 (rwatch_command_wrapper): Update parameter type.
1388 (awatch_command_wrapper): Update parameter type.
1389 * eval.c (fetch_subexp_value): Change parameter type.
1390 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1392 * value.h (fetch_subexp_value): Change parameter type in
1395 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1397 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1400 2020-11-18 Keith Seitz <keiths@redhat.com>
1402 * linux-tdep.c (dump_note_entry_p): Return true instead of
1403 checking `filename'.
1405 2020-11-18 Tom de Vries <tdevries@suse.de>
1407 * debuginfod-support.c (debuginfod_source_query)
1408 (debuginfod_debuginfo_query): Also do early exit if
1409 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1411 2020-11-18 Tom de Vries <tdevries@suse.de>
1413 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1416 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1418 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1419 callers. Move doc here.
1420 * gdbtypes.c (get_array_bounds): Return bool
1422 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1424 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1426 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1427 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1428 case to the default.
1430 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1432 * printcmd.c: Include 'safe-ctype.c'.
1433 (skip_over_slash_fmt): New function.
1434 (print_command_completer): Call skip_over_slash_fmt.
1435 (display_and_x_command_completer): New function.
1436 (_initialize_printcmd): Add command completion for 'x' and
1439 2020-11-16 Pedro Alves <pedro@palves.net>
1441 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1442 (get_prev_frame_always_1): ... to here.
1443 * inline-frame.c (inline_frame_this_id): Mention
1444 get_prev_frame_always_1 in comment.
1446 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1448 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1450 (value_less): Add fixed-point handling.
1452 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1454 * eval.c (binop_promote): Add fixed-point type handling.
1455 * valarith.c (fixed_point_binop): New function.
1456 (scalar_binop): Add fixed-point type handling.
1457 (value_neg): Add fixed-point type handling.
1458 * valops.c (value_cast_to_fixed_point): New function.
1459 (value_cast): Add fixed-point type handling.
1461 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1463 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1465 * c-typeprint.c (c_type_print_varspec_prefix)
1466 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1467 TYPE_CODE_FIXED_POINT handling.
1468 * p-typeprint.c (pascal_type_print_varspec_prefix)
1469 (pascal_type_print_varspec_suffix): Likewise.
1470 * typeprint.c (print_type_fixed_point): New function.
1471 * typeprint.h (print_type_fixed_point): Add declaration.
1473 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1475 * printcmd.c (print_scalar_formatted): Add fixed-point type
1476 handling when options->format is set.
1478 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1480 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1481 * dwarf2/read.c (get_dwarf2_rational_constant)
1482 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1483 (has_zero_over_zero_small_attribute): New functions.
1484 read_base_type, set_die_type): Add fixed-point type handling.
1485 * gdb-gdb.py.in: Add fixed-point type handling.
1486 * gdbtypes.c: #include "gmp-utils.h".
1487 (create_range_type, set_type_code): Add fixed-point type handling.
1488 (init_fixed_point_type): New function.
1489 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1490 (print_fixed_point_type_info): New function.
1491 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1493 (fixed_point_type_storage): New typedef.
1494 (fixed_point_objfile_key): New static global.
1495 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1496 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1498 * gdbtypes.h: #include "gmp-utils.h".
1499 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1500 (union type_specific) <fixed_point_info>: New field.
1501 (struct fixed_point_type_info): New struct.
1502 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1503 (init_fixed_point_type, is_fixed_point_type)
1504 (fixed_point_type_base_type, fixed_point_scaling_factor)
1505 (allocate_fixed_point_type_info): Add declarations.
1506 * valprint.c (generic_val_print_fixed_point): New function.
1507 (generic_value_print): Add fixed-point type handling.
1508 * value.c (value_as_address, unpack_long): Add fixed-point type
1511 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1513 * utils.h (uinteger_pow): Add declaration.
1514 * utils.c (uinteger_pow): Moved here (without changes)...
1515 * valarith.c (uinteger_pow): ... from here.
1517 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1519 * gmp-utils.h, gmp-utils.c: New file.
1520 * unittests/gmp-utils-selftests.c: New file.
1521 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1522 unittests/gmp-utils-selftests.c.
1523 (COMMON_SFILES) Add gmp-utils.c.
1524 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1526 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1528 * configure.ac: Generate an error if a usable GMP library
1530 * configure: Regenerate.
1532 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1534 * configure.ac: Add support for --with-libgmp-prefix.
1535 * Makefile.in (LIBGMP): New variable.
1536 (CLIBS): Include $(LIBGMP).
1537 * configure, config.in: Regenerate
1539 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1542 * f-exp.y (COMPLETE): New token.
1543 (exp): Two new rules for tab-completion.
1544 (saw_name_at_eof): New static global.
1545 (last_was_structop): Likewise.
1546 (yylex): Set new variables, and return COMPLETE token at the end
1547 of the input stream in some cases.
1549 2020-11-14 Tom Tromey <tom@tromey.com>
1551 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1553 2020-11-14 Tom Tromey <tom@tromey.com>
1555 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1557 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1559 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1561 2020-11-13 Tom Tromey <tom@tromey.com>
1563 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1564 (convert_escape, parse_one_string): Constify.
1566 2020-11-13 Keith Seitz <keiths@redhat.com>
1568 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1569 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1570 outside of ELF segments" warning for debugin
1572 2020-11-13 Keith Seitz <keiths@redhat.com>
1575 * elfread.c (elf_symfile_segments): Output a BFD file name
1576 for the "Loadable section ... outside of ELF segments" warning.
1578 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1581 * arm-tdep.c (class arm_instruction_reader): New.
1582 (target_arm_instruction_reader): New.
1583 (arm_analyze_prologue): Add instruction reader parameter and use
1584 it. Use arm_expand_immediate.
1585 (class target_arm_instruction_reader): Adjust.
1586 (arm_skip_prologue): Adjust.
1587 (arm_expand_immediate): New.
1588 (arm_scan_prologue): Adjust.
1589 (arm_analyze_prologue_test): New.
1590 (class test_arm_instruction_reader): New.
1592 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1594 * f-lang.c (fortran_argument_convert): Add declaration. Add
1595 header comment, taken from f-lang.h. Make static.
1596 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1597 (fortran_argument_convert): Delete declaration.
1599 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1601 * ada-exp.y (find_primitive_type): Make parameter const.
1602 * ada-lang.c (enum ada_primitive_types): Delete.
1603 (ada_language::language_arch_info): Update.
1604 * c-lang.c (enum c_primitive_types): Delete.
1605 (c_language_arch_info): Update.
1606 (enum cplus_primitive_types): Delete.
1607 (cplus_language::language_arch_info): Update.
1608 * d-lang.c (enum d_primitive_types): Delete.
1609 (d_language::language_arch_info): Update.
1610 * f-lang.c (enum f_primitive_types): Delete.
1611 (f_language::language_arch_info): Update.
1612 * go-lang.c (enum go_primitive_types): Delete.
1613 (go_language::language_arch_info): Update.
1614 * language.c (auto_or_unknown_language::language_arch_info):
1616 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1617 (language_string_char_type): Add header comment, call function in
1619 (language_bool_type): Likewise
1620 (language_arch_info::bool_type): Define.
1621 (language_lookup_primitive_type_1): Delete.
1622 (language_lookup_primitive_type): Rewrite as a templated function
1623 to call function in language_arch_info, then instantiate twice.
1624 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1625 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1626 (language_arch_info::lookup_primitive_type): Define twice with
1627 different signatures.
1628 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1629 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1630 member function in language_arch_info.
1631 * language.h (language_arch_info): Complete rewrite.
1632 (language_lookup_primitive_type): Make templated.
1633 * m2-lang.c (enum m2_primitive_types): Delete.
1634 (m2_language::language_arch_info): Update.
1635 * opencl-lang.c (OCL_P_TYPE): Delete.
1636 (enum opencl_primitive_types): Delete.
1637 (opencl_type_data): Delete.
1638 (builtin_opencl_type): Delete.
1639 (lookup_opencl_vector_type): Update.
1640 (opencl_language::language_arch_info): Update, lots of content
1642 (build_opencl_types): ...here. This function is now deleted.
1643 (_initialize_opencl_language): Delete.
1644 * p-lang.c (enum pascal_primitive_types): Delete.
1645 (pascal_language::language_arch_info): Update.
1646 * rust-lang.c (enum rust_primitive_types): Delete.
1647 (rust_language::language_arch_info): Update.
1649 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1651 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1654 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1656 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1659 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1661 * dwarf2/read.c (dwarf_read_debug_printf,
1662 dwarf_read_debug_printf_v): New macros, use throughout the file.
1664 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1667 * arc-linux-tdep.c (collect_register): Populate "eret" by
1668 "pc" value from the regcache when asked for "pc" value.
1670 2020-11-12 Tom Tromey <tom@tromey.com>
1673 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1676 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1678 * features/Makefile (XMLTOC): Add rx.xml.
1679 (FEATURE_XMLFILES): Remove rx.xml.
1680 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1681 * features/rx.c: Regenerate.
1682 * features/rx.xml: Wrap in `target` tags, and reindent.
1683 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1685 (maint_print_c_tdesc_opt_def): New typedef.
1686 (maint_print_c_tdesc_opt_defs): New static global.
1687 (make_maint_print_c_tdesc_options_def_group): New function.
1688 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1689 print single feature C file for target descriptions containing a
1691 (maint_print_c_tdesc_cmd_completer): New function.
1692 (_initialize_target_descriptions): Update call to register command
1693 completer, and include command line flag in help text.
1695 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1697 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1699 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1702 2020-11-10 Tom Tromey <tom@tromey.com>
1704 * value.h (internalvar_name): Update.
1705 * value.c (internalvar_name): Make return type const.
1707 2020-11-10 Tom Tromey <tom@tromey.com>
1709 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1710 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1713 2020-11-10 Tom Tromey <tom@tromey.com>
1715 * objc-lang.h (value_nsstring): Update.
1716 * objc-lang.c (value_nsstring): Make "ptr" const.
1718 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1720 * expprint.c (print_subexp_funcall): Increment expression position
1721 after reading argument count.
1722 * f-lang.c (print_subexp_f): Skip over opcode before calling
1724 (dump_subexp_body_f): Likewise.
1726 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1729 * configure: Regenerate.
1730 * configure.ac: Check for python modules ctypes instead of
1733 2020-11-06 Pedro Alves <pedro@palves.net>
1735 * macroexp.c (struct macro_buffer): Split in two classes. Add
1737 (struct shared_macro_buffer): New, factored out from struct
1739 (struct growable_macro_buffer): New, factored out from struct
1741 (set_token, get_comment, get_identifier, get_pp_number)
1742 (get_character_constant, get_string_literal, get_punctuator)
1743 (get_next_token_for_substitution): Constify parameters.
1744 (substitute_args): Constify locals.
1746 2020-11-05 Tom Tromey <tom@tromey.com>
1748 * dwarf2/read.c (read_cutu_die_from_dwo)
1749 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1750 (build_type_psymtabs_1): Update.
1751 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1753 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1754 Don't read section. Add assert.
1756 2020-11-04 Tom Tromey <tromey@adacore.com>
1758 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1760 2020-11-04 Tom Tromey <tromey@adacore.com>
1762 * ada-typeprint.c (ada_print_type): Handle __T types.
1764 2020-11-04 Tom Tromey <tromey@adacore.com>
1766 * dwarf2/read.c (add_partial_symbol, process_die):
1767 Handle DW_TAG_array_type.
1768 (is_type_tag_for_partial): Add "lang" parameter.
1769 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1771 2020-11-04 Tom Tromey <tromey@adacore.com>
1773 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1775 2020-11-04 Tom Tromey <tromey@adacore.com>
1777 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1780 2020-11-04 Tom Tromey <tromey@adacore.com>
1782 * gdbtypes.c (update_static_array_size): Handle bit stride.
1784 2020-11-04 Tom Tromey <tromey@adacore.com>
1786 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1788 2020-11-04 Tom Tromey <tromey@adacore.com>
1790 * ada-lang.c (ada_is_any_packed_array_type): New function.
1791 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1793 2020-11-04 Tom Tromey <tromey@adacore.com>
1795 * dwarf2/read.c (recognize_bound_expression)
1796 (quirk_ada_thick_pointer): New functions.
1797 (read_array_type): Call quirk_ada_thick_pointer.
1798 (set_die_type): Add "skip_data_location" parameter.
1799 (quirk_ada_thick_pointer): New function.
1800 (process_structure_scope): Call quirk_ada_thick_pointer.
1801 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1802 (decode_packed_array_bitsize): Handle thick pointers without
1804 (ada_is_gnat_encoded_packed_array_type): Rename from
1805 ada_is_packed_array_type.
1806 (ada_is_constrained_packed_array_type): Update.
1807 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1808 (ada_value_print_1): Use ada_get_decoded_value.
1810 2020-11-04 Tom Tromey <tromey@adacore.com>
1812 * ada-lang.c (recursively_update_array_bitsize): New function.
1813 (decode_constrained_packed_array_type): Call it.
1815 2020-11-04 Tom Tromey <tromey@adacore.com>
1817 * ada-lang.c (to_fixed_array_type): Error if
1818 decode_constrained_packed_array_type returns NULL.
1820 2020-11-04 Tom Tromey <tromey@adacore.com>
1822 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1824 2020-11-02 Tom Tromey <tromey@adacore.com>
1826 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1827 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1828 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1829 * amd64-ravenscar-thread.c: New file.
1830 * amd64-ravenscar-thread.h: New file.
1831 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1832 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1834 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1836 * main.c (execute_cmdargs): New function.
1837 (captured_main_1): Make use of execute_cmdargs.
1839 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1841 * NEWS: Mention changes to config file search path.
1844 2020-11-02 Tom Tromey <tromey@adacore.com>
1846 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1847 (python_GdbModuleDef): Move earlier. Now static.
1848 (do_start_initialization): Consolidate some IS_PY3K blocks.
1850 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1852 * aarch64-linux-tdep.c: Fix indentation.
1853 * aarch64-ravenscar-thread.c: Fix indentation.
1854 * aarch64-tdep.c: Fix indentation.
1855 * aarch64-tdep.h: Fix indentation.
1856 * ada-lang.c: Fix indentation.
1857 * ada-lang.h: Fix indentation.
1858 * ada-tasks.c: Fix indentation.
1859 * ada-typeprint.c: Fix indentation.
1860 * ada-valprint.c: Fix indentation.
1861 * ada-varobj.c: Fix indentation.
1862 * addrmap.c: Fix indentation.
1863 * addrmap.h: Fix indentation.
1864 * agent.c: Fix indentation.
1865 * aix-thread.c: Fix indentation.
1866 * alpha-bsd-nat.c: Fix indentation.
1867 * alpha-linux-tdep.c: Fix indentation.
1868 * alpha-mdebug-tdep.c: Fix indentation.
1869 * alpha-nbsd-tdep.c: Fix indentation.
1870 * alpha-obsd-tdep.c: Fix indentation.
1871 * alpha-tdep.c: Fix indentation.
1872 * amd64-bsd-nat.c: Fix indentation.
1873 * amd64-darwin-tdep.c: Fix indentation.
1874 * amd64-linux-nat.c: Fix indentation.
1875 * amd64-linux-tdep.c: Fix indentation.
1876 * amd64-nat.c: Fix indentation.
1877 * amd64-obsd-tdep.c: Fix indentation.
1878 * amd64-tdep.c: Fix indentation.
1879 * amd64-windows-tdep.c: Fix indentation.
1880 * annotate.c: Fix indentation.
1881 * arc-tdep.c: Fix indentation.
1882 * arch-utils.c: Fix indentation.
1883 * arch/arm-get-next-pcs.c: Fix indentation.
1884 * arch/arm.c: Fix indentation.
1885 * arm-linux-nat.c: Fix indentation.
1886 * arm-linux-tdep.c: Fix indentation.
1887 * arm-nbsd-tdep.c: Fix indentation.
1888 * arm-pikeos-tdep.c: Fix indentation.
1889 * arm-tdep.c: Fix indentation.
1890 * arm-tdep.h: Fix indentation.
1891 * arm-wince-tdep.c: Fix indentation.
1892 * auto-load.c: Fix indentation.
1893 * auxv.c: Fix indentation.
1894 * avr-tdep.c: Fix indentation.
1895 * ax-gdb.c: Fix indentation.
1896 * ax-general.c: Fix indentation.
1897 * bfin-linux-tdep.c: Fix indentation.
1898 * block.c: Fix indentation.
1899 * block.h: Fix indentation.
1900 * blockframe.c: Fix indentation.
1901 * bpf-tdep.c: Fix indentation.
1902 * break-catch-sig.c: Fix indentation.
1903 * break-catch-syscall.c: Fix indentation.
1904 * break-catch-throw.c: Fix indentation.
1905 * breakpoint.c: Fix indentation.
1906 * breakpoint.h: Fix indentation.
1907 * bsd-uthread.c: Fix indentation.
1908 * btrace.c: Fix indentation.
1909 * build-id.c: Fix indentation.
1910 * buildsym-legacy.h: Fix indentation.
1911 * buildsym.c: Fix indentation.
1912 * c-typeprint.c: Fix indentation.
1913 * c-valprint.c: Fix indentation.
1914 * c-varobj.c: Fix indentation.
1915 * charset.c: Fix indentation.
1916 * cli/cli-cmds.c: Fix indentation.
1917 * cli/cli-decode.c: Fix indentation.
1918 * cli/cli-decode.h: Fix indentation.
1919 * cli/cli-script.c: Fix indentation.
1920 * cli/cli-setshow.c: Fix indentation.
1921 * coff-pe-read.c: Fix indentation.
1922 * coffread.c: Fix indentation.
1923 * compile/compile-cplus-types.c: Fix indentation.
1924 * compile/compile-object-load.c: Fix indentation.
1925 * compile/compile-object-run.c: Fix indentation.
1926 * completer.c: Fix indentation.
1927 * corefile.c: Fix indentation.
1928 * corelow.c: Fix indentation.
1929 * cp-abi.h: Fix indentation.
1930 * cp-namespace.c: Fix indentation.
1931 * cp-support.c: Fix indentation.
1932 * cp-valprint.c: Fix indentation.
1933 * cris-linux-tdep.c: Fix indentation.
1934 * cris-tdep.c: Fix indentation.
1935 * darwin-nat-info.c: Fix indentation.
1936 * darwin-nat.c: Fix indentation.
1937 * darwin-nat.h: Fix indentation.
1938 * dbxread.c: Fix indentation.
1939 * dcache.c: Fix indentation.
1940 * disasm.c: Fix indentation.
1941 * dtrace-probe.c: Fix indentation.
1942 * dwarf2/abbrev.c: Fix indentation.
1943 * dwarf2/attribute.c: Fix indentation.
1944 * dwarf2/expr.c: Fix indentation.
1945 * dwarf2/frame.c: Fix indentation.
1946 * dwarf2/index-cache.c: Fix indentation.
1947 * dwarf2/index-write.c: Fix indentation.
1948 * dwarf2/line-header.c: Fix indentation.
1949 * dwarf2/loc.c: Fix indentation.
1950 * dwarf2/macro.c: Fix indentation.
1951 * dwarf2/read.c: Fix indentation.
1952 * dwarf2/read.h: Fix indentation.
1953 * elfread.c: Fix indentation.
1954 * eval.c: Fix indentation.
1955 * event-top.c: Fix indentation.
1956 * exec.c: Fix indentation.
1957 * exec.h: Fix indentation.
1958 * expprint.c: Fix indentation.
1959 * f-lang.c: Fix indentation.
1960 * f-typeprint.c: Fix indentation.
1961 * f-valprint.c: Fix indentation.
1962 * fbsd-nat.c: Fix indentation.
1963 * fbsd-tdep.c: Fix indentation.
1964 * findvar.c: Fix indentation.
1965 * fork-child.c: Fix indentation.
1966 * frame-unwind.c: Fix indentation.
1967 * frame-unwind.h: Fix indentation.
1968 * frame.c: Fix indentation.
1969 * frv-linux-tdep.c: Fix indentation.
1970 * frv-tdep.c: Fix indentation.
1971 * frv-tdep.h: Fix indentation.
1972 * ft32-tdep.c: Fix indentation.
1973 * gcore.c: Fix indentation.
1974 * gdb_bfd.c: Fix indentation.
1975 * gdbarch.sh: Fix indentation.
1976 * gdbarch.c: Re-generate
1977 * gdbarch.h: Re-generate.
1978 * gdbcore.h: Fix indentation.
1979 * gdbthread.h: Fix indentation.
1980 * gdbtypes.c: Fix indentation.
1981 * gdbtypes.h: Fix indentation.
1982 * glibc-tdep.c: Fix indentation.
1983 * gnu-nat.c: Fix indentation.
1984 * gnu-nat.h: Fix indentation.
1985 * gnu-v2-abi.c: Fix indentation.
1986 * gnu-v3-abi.c: Fix indentation.
1987 * go32-nat.c: Fix indentation.
1988 * guile/guile-internal.h: Fix indentation.
1989 * guile/scm-cmd.c: Fix indentation.
1990 * guile/scm-frame.c: Fix indentation.
1991 * guile/scm-iterator.c: Fix indentation.
1992 * guile/scm-math.c: Fix indentation.
1993 * guile/scm-ports.c: Fix indentation.
1994 * guile/scm-pretty-print.c: Fix indentation.
1995 * guile/scm-value.c: Fix indentation.
1996 * h8300-tdep.c: Fix indentation.
1997 * hppa-linux-nat.c: Fix indentation.
1998 * hppa-linux-tdep.c: Fix indentation.
1999 * hppa-nbsd-nat.c: Fix indentation.
2000 * hppa-nbsd-tdep.c: Fix indentation.
2001 * hppa-obsd-nat.c: Fix indentation.
2002 * hppa-tdep.c: Fix indentation.
2003 * hppa-tdep.h: Fix indentation.
2004 * i386-bsd-nat.c: Fix indentation.
2005 * i386-darwin-nat.c: Fix indentation.
2006 * i386-darwin-tdep.c: Fix indentation.
2007 * i386-dicos-tdep.c: Fix indentation.
2008 * i386-gnu-nat.c: Fix indentation.
2009 * i386-linux-nat.c: Fix indentation.
2010 * i386-linux-tdep.c: Fix indentation.
2011 * i386-nto-tdep.c: Fix indentation.
2012 * i386-obsd-tdep.c: Fix indentation.
2013 * i386-sol2-nat.c: Fix indentation.
2014 * i386-tdep.c: Fix indentation.
2015 * i386-tdep.h: Fix indentation.
2016 * i386-windows-tdep.c: Fix indentation.
2017 * i387-tdep.c: Fix indentation.
2018 * i387-tdep.h: Fix indentation.
2019 * ia64-libunwind-tdep.c: Fix indentation.
2020 * ia64-libunwind-tdep.h: Fix indentation.
2021 * ia64-linux-nat.c: Fix indentation.
2022 * ia64-linux-tdep.c: Fix indentation.
2023 * ia64-tdep.c: Fix indentation.
2024 * ia64-tdep.h: Fix indentation.
2025 * ia64-vms-tdep.c: Fix indentation.
2026 * infcall.c: Fix indentation.
2027 * infcmd.c: Fix indentation.
2028 * inferior.c: Fix indentation.
2029 * infrun.c: Fix indentation.
2030 * iq2000-tdep.c: Fix indentation.
2031 * language.c: Fix indentation.
2032 * linespec.c: Fix indentation.
2033 * linux-fork.c: Fix indentation.
2034 * linux-nat.c: Fix indentation.
2035 * linux-tdep.c: Fix indentation.
2036 * linux-thread-db.c: Fix indentation.
2037 * lm32-tdep.c: Fix indentation.
2038 * m2-lang.c: Fix indentation.
2039 * m2-typeprint.c: Fix indentation.
2040 * m2-valprint.c: Fix indentation.
2041 * m32c-tdep.c: Fix indentation.
2042 * m32r-linux-tdep.c: Fix indentation.
2043 * m32r-tdep.c: Fix indentation.
2044 * m68hc11-tdep.c: Fix indentation.
2045 * m68k-bsd-nat.c: Fix indentation.
2046 * m68k-linux-nat.c: Fix indentation.
2047 * m68k-linux-tdep.c: Fix indentation.
2048 * m68k-tdep.c: Fix indentation.
2049 * machoread.c: Fix indentation.
2050 * macrocmd.c: Fix indentation.
2051 * macroexp.c: Fix indentation.
2052 * macroscope.c: Fix indentation.
2053 * macrotab.c: Fix indentation.
2054 * macrotab.h: Fix indentation.
2055 * main.c: Fix indentation.
2056 * mdebugread.c: Fix indentation.
2057 * mep-tdep.c: Fix indentation.
2058 * mi/mi-cmd-catch.c: Fix indentation.
2059 * mi/mi-cmd-disas.c: Fix indentation.
2060 * mi/mi-cmd-env.c: Fix indentation.
2061 * mi/mi-cmd-stack.c: Fix indentation.
2062 * mi/mi-cmd-var.c: Fix indentation.
2063 * mi/mi-cmds.c: Fix indentation.
2064 * mi/mi-main.c: Fix indentation.
2065 * mi/mi-parse.c: Fix indentation.
2066 * microblaze-tdep.c: Fix indentation.
2067 * minidebug.c: Fix indentation.
2068 * minsyms.c: Fix indentation.
2069 * mips-linux-nat.c: Fix indentation.
2070 * mips-linux-tdep.c: Fix indentation.
2071 * mips-nbsd-tdep.c: Fix indentation.
2072 * mips-tdep.c: Fix indentation.
2073 * mn10300-linux-tdep.c: Fix indentation.
2074 * mn10300-tdep.c: Fix indentation.
2075 * moxie-tdep.c: Fix indentation.
2076 * msp430-tdep.c: Fix indentation.
2077 * namespace.h: Fix indentation.
2078 * nat/fork-inferior.c: Fix indentation.
2079 * nat/gdb_ptrace.h: Fix indentation.
2080 * nat/linux-namespaces.c: Fix indentation.
2081 * nat/linux-osdata.c: Fix indentation.
2082 * nat/netbsd-nat.c: Fix indentation.
2083 * nat/x86-dregs.c: Fix indentation.
2084 * nbsd-nat.c: Fix indentation.
2085 * nbsd-tdep.c: Fix indentation.
2086 * nios2-linux-tdep.c: Fix indentation.
2087 * nios2-tdep.c: Fix indentation.
2088 * nto-procfs.c: Fix indentation.
2089 * nto-tdep.c: Fix indentation.
2090 * objfiles.c: Fix indentation.
2091 * objfiles.h: Fix indentation.
2092 * opencl-lang.c: Fix indentation.
2093 * or1k-tdep.c: Fix indentation.
2094 * osabi.c: Fix indentation.
2095 * osabi.h: Fix indentation.
2096 * osdata.c: Fix indentation.
2097 * p-lang.c: Fix indentation.
2098 * p-typeprint.c: Fix indentation.
2099 * p-valprint.c: Fix indentation.
2100 * parse.c: Fix indentation.
2101 * ppc-linux-nat.c: Fix indentation.
2102 * ppc-linux-tdep.c: Fix indentation.
2103 * ppc-nbsd-nat.c: Fix indentation.
2104 * ppc-nbsd-tdep.c: Fix indentation.
2105 * ppc-obsd-nat.c: Fix indentation.
2106 * ppc-ravenscar-thread.c: Fix indentation.
2107 * ppc-sysv-tdep.c: Fix indentation.
2108 * ppc64-tdep.c: Fix indentation.
2109 * printcmd.c: Fix indentation.
2110 * proc-api.c: Fix indentation.
2111 * producer.c: Fix indentation.
2112 * producer.h: Fix indentation.
2113 * prologue-value.c: Fix indentation.
2114 * prologue-value.h: Fix indentation.
2115 * psymtab.c: Fix indentation.
2116 * python/py-arch.c: Fix indentation.
2117 * python/py-bpevent.c: Fix indentation.
2118 * python/py-event.c: Fix indentation.
2119 * python/py-event.h: Fix indentation.
2120 * python/py-finishbreakpoint.c: Fix indentation.
2121 * python/py-frame.c: Fix indentation.
2122 * python/py-framefilter.c: Fix indentation.
2123 * python/py-inferior.c: Fix indentation.
2124 * python/py-infthread.c: Fix indentation.
2125 * python/py-objfile.c: Fix indentation.
2126 * python/py-prettyprint.c: Fix indentation.
2127 * python/py-registers.c: Fix indentation.
2128 * python/py-signalevent.c: Fix indentation.
2129 * python/py-stopevent.c: Fix indentation.
2130 * python/py-stopevent.h: Fix indentation.
2131 * python/py-threadevent.c: Fix indentation.
2132 * python/py-tui.c: Fix indentation.
2133 * python/py-unwind.c: Fix indentation.
2134 * python/py-value.c: Fix indentation.
2135 * python/py-xmethods.c: Fix indentation.
2136 * python/python-internal.h: Fix indentation.
2137 * python/python.c: Fix indentation.
2138 * ravenscar-thread.c: Fix indentation.
2139 * record-btrace.c: Fix indentation.
2140 * record-full.c: Fix indentation.
2141 * record.c: Fix indentation.
2142 * reggroups.c: Fix indentation.
2143 * regset.h: Fix indentation.
2144 * remote-fileio.c: Fix indentation.
2145 * remote.c: Fix indentation.
2146 * reverse.c: Fix indentation.
2147 * riscv-linux-tdep.c: Fix indentation.
2148 * riscv-ravenscar-thread.c: Fix indentation.
2149 * riscv-tdep.c: Fix indentation.
2150 * rl78-tdep.c: Fix indentation.
2151 * rs6000-aix-tdep.c: Fix indentation.
2152 * rs6000-lynx178-tdep.c: Fix indentation.
2153 * rs6000-nat.c: Fix indentation.
2154 * rs6000-tdep.c: Fix indentation.
2155 * rust-lang.c: Fix indentation.
2156 * rx-tdep.c: Fix indentation.
2157 * s12z-tdep.c: Fix indentation.
2158 * s390-linux-tdep.c: Fix indentation.
2159 * score-tdep.c: Fix indentation.
2160 * ser-base.c: Fix indentation.
2161 * ser-mingw.c: Fix indentation.
2162 * ser-uds.c: Fix indentation.
2163 * ser-unix.c: Fix indentation.
2164 * serial.c: Fix indentation.
2165 * sh-linux-tdep.c: Fix indentation.
2166 * sh-nbsd-tdep.c: Fix indentation.
2167 * sh-tdep.c: Fix indentation.
2168 * skip.c: Fix indentation.
2169 * sol-thread.c: Fix indentation.
2170 * solib-aix.c: Fix indentation.
2171 * solib-darwin.c: Fix indentation.
2172 * solib-frv.c: Fix indentation.
2173 * solib-svr4.c: Fix indentation.
2174 * solib.c: Fix indentation.
2175 * source.c: Fix indentation.
2176 * sparc-linux-tdep.c: Fix indentation.
2177 * sparc-nbsd-tdep.c: Fix indentation.
2178 * sparc-obsd-tdep.c: Fix indentation.
2179 * sparc-ravenscar-thread.c: Fix indentation.
2180 * sparc-tdep.c: Fix indentation.
2181 * sparc64-linux-tdep.c: Fix indentation.
2182 * sparc64-nbsd-tdep.c: Fix indentation.
2183 * sparc64-obsd-tdep.c: Fix indentation.
2184 * sparc64-tdep.c: Fix indentation.
2185 * stabsread.c: Fix indentation.
2186 * stack.c: Fix indentation.
2187 * stap-probe.c: Fix indentation.
2188 * stubs/ia64vms-stub.c: Fix indentation.
2189 * stubs/m32r-stub.c: Fix indentation.
2190 * stubs/m68k-stub.c: Fix indentation.
2191 * stubs/sh-stub.c: Fix indentation.
2192 * stubs/sparc-stub.c: Fix indentation.
2193 * symfile-mem.c: Fix indentation.
2194 * symfile.c: Fix indentation.
2195 * symfile.h: Fix indentation.
2196 * symmisc.c: Fix indentation.
2197 * symtab.c: Fix indentation.
2198 * symtab.h: Fix indentation.
2199 * target-float.c: Fix indentation.
2200 * target.c: Fix indentation.
2201 * target.h: Fix indentation.
2202 * tic6x-tdep.c: Fix indentation.
2203 * tilegx-linux-tdep.c: Fix indentation.
2204 * tilegx-tdep.c: Fix indentation.
2205 * top.c: Fix indentation.
2206 * tracefile-tfile.c: Fix indentation.
2207 * tracepoint.c: Fix indentation.
2208 * tui/tui-disasm.c: Fix indentation.
2209 * tui/tui-io.c: Fix indentation.
2210 * tui/tui-regs.c: Fix indentation.
2211 * tui/tui-stack.c: Fix indentation.
2212 * tui/tui-win.c: Fix indentation.
2213 * tui/tui-winsource.c: Fix indentation.
2214 * tui/tui.c: Fix indentation.
2215 * typeprint.c: Fix indentation.
2216 * ui-out.h: Fix indentation.
2217 * unittests/copy_bitwise-selftests.c: Fix indentation.
2218 * unittests/memory-map-selftests.c: Fix indentation.
2219 * utils.c: Fix indentation.
2220 * v850-tdep.c: Fix indentation.
2221 * valarith.c: Fix indentation.
2222 * valops.c: Fix indentation.
2223 * valprint.c: Fix indentation.
2224 * valprint.h: Fix indentation.
2225 * value.c: Fix indentation.
2226 * value.h: Fix indentation.
2227 * varobj.c: Fix indentation.
2228 * vax-tdep.c: Fix indentation.
2229 * windows-nat.c: Fix indentation.
2230 * windows-tdep.c: Fix indentation.
2231 * xcoffread.c: Fix indentation.
2232 * xml-syscall.c: Fix indentation.
2233 * xml-tdesc.c: Fix indentation.
2234 * xstormy16-tdep.c: Fix indentation.
2235 * xtensa-config.c: Fix indentation.
2236 * xtensa-linux-nat.c: Fix indentation.
2237 * xtensa-linux-tdep.c: Fix indentation.
2238 * xtensa-tdep.c: Fix indentation.
2240 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2241 Craig Blackmore <craig.blackmore@embecosm.com>
2243 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2244 as an unsigned value.
2246 2020-11-01 Tom Tromey <tom@tromey.com>
2248 * dbxread.c (dbx_end_psymtab): Update.
2249 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2250 (build_type_psymtabs_reader): Update.
2251 * xcoffread.c (xcoff_end_psymtab): Update.
2252 * ctfread.c (scan_partial_symbols): Update.
2253 * psymtab.c (sort_pst_symbols): Remove.
2254 (partial_symtab::end): Rename from end_psymtab_common. Inline
2256 * psympriv.h (struct partial_symtab) <end>: New method.
2257 (end_psymtab_common): Don't declare.
2259 2020-11-01 Tom Tromey <tom@tromey.com>
2261 * symmisc.c (count_psyms): New function.
2262 (print_objfile_statistics): Use it.
2263 * psymtab.c (append_psymbol_to_list): Remove.
2264 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2265 * objfiles.h (struct objstats) <n_psyms>: Remove.
2267 2020-11-01 Tom Tromey <tom@tromey.com>
2269 * dbxread.c (dbx_end_psymtab): Update.
2270 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2271 (build_type_psymtabs_reader): Update.
2272 * xcoffread.c (xcoff_end_psymtab): Update.
2273 * ctfread.c (scan_partial_symbols): Update.
2274 * psympriv.h (end_psymtab_common): Update.
2275 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2276 (sort_pst_symbols): Likewise.
2278 2020-11-01 Tom Tromey <tom@tromey.com>
2280 * dbxread.c (dbx_symfile_read): Update.
2281 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2282 * xcoffread.c (xcoff_initial_scan): Update.
2283 * psympriv.h (init_psymbol_list): Don't declare.
2284 * psymtab.c (init_psymbol_list): Remove.
2286 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2288 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2289 gnat_encoded_fixed_type_info. Update all callers.
2291 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2293 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2296 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2298 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2299 cast_from_fixed. Update all callers.
2300 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2302 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2304 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2306 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2307 to print_gnat_encoded_fixed_point_type.
2308 * ada-valprint.c: Likewise.
2310 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2312 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2313 (debug_prefixed_printf): Add check of debug_displaced flag.
2314 * linux-nat.c (linux_nat_debug_printf): Add check of
2315 debug_linux_nat flag.
2317 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2319 * infrun.c (infrun_debug_printf_1): Remove.
2320 (displaced_debug_printf_1): Remove.
2321 (stop_all_threads): Use debug_prefixed_printf.
2322 * infrun.h (infrun_debug_printf_1): Remove.
2323 (infrun_debug_printf): Use debug_prefixed_printf.
2324 (displaced_debug_printf_1): Remove.
2325 (displaced_debug_printf): Use debug_prefixed_printf.
2326 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2327 (linux_nat_debug_printf): Use debug_prefixed_printf.
2329 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2331 * configure: Re-generate.
2332 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2335 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2337 * configure: Re-generate.
2339 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2341 * configure: Re-generate.
2343 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2345 * configure: Re-generate.
2347 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2349 * configure: Re-generate.
2351 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2353 * acinclude.m4: Modernize.
2354 * configure: Re-generate.
2356 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2358 * configure.ac: Modernize.
2359 * configure: Re-generate.
2361 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2363 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2364 * configure: Re-generate.
2365 * configure.ac: Remove AM_PROG_CC_STDC.
2367 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2369 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2370 AC_CANONICAL_SYSTEM.
2371 * configure: Re-generate.
2373 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
2375 * infrun.h (displaced_debug_printf): New macro. Replace
2376 displaced debug prints throughout to use it.
2377 (displaced_debug_printf_1): New declaration.
2378 (displaced_step_dump_bytes): Return string, remove ui_file
2379 parameter, update all callers.
2380 * infrun.c (displaced_debug_printf_1): New function.
2381 (displaced_step_dump_bytes): Return string, remove ui_file
2384 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2386 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2388 2020-10-30 Tom Tromey <tromey@adacore.com>
2390 * Makefile.in (stamp-init): Depend on config.status.
2392 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2394 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2396 2020-10-30 Pedro Alves <pedro@palves.net>
2398 * thread.c (lookup_selected_frame): Move ...
2399 * frame.c (lookup_selected_frame): ... here.
2401 2020-10-30 Pedro Alves <pedro@palves.net>
2403 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2405 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2406 Use save_selected_frame. Save language as well.
2407 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2408 Use restore_selected_frame, and restore language as well.
2409 (selected_frame_id, selected_frame_level): New.
2410 (selected_frame): Update comments.
2411 (save_selected_frame, restore_selected_frame): New.
2412 (get_selected_frame): Use lookup_selected_frame.
2413 (get_selected_frame_if_set): Delete.
2414 (select_frame): Record selected_frame_level and selected_frame_id.
2415 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2417 (get_selected_frame): Make 'message' parameter optional.
2418 (get_selected_frame_if_set): Delete declaration.
2419 (select_frame): Update comments.
2420 (save_selected_frame, restore_selected_frame)
2421 (lookup_selected_frame): Declare.
2422 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2423 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2425 (save_infcall_control_state): Use save_selected_frame.
2426 (restore_selected_frame): Delete.
2427 (restore_infcall_control_state): Use restore_selected_frame.
2428 * stack.c (select_frame_command_core, frame_command_core): Use
2430 * thread.c (restore_selected_frame): Rename to ...
2431 (lookup_selected_frame): ... this and make extern. Select the
2432 current frame if the frame level is -1.
2433 (scoped_restore_current_thread::restore): Also restore the
2435 (scoped_restore_current_thread::~scoped_restore_current_thread):
2437 (scoped_restore_current_thread::scoped_restore_current_thread):
2438 Save the language as well. Use save_selected_frame.
2440 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2442 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2444 * gdbarch.h: Re-generate.
2446 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2448 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2450 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2452 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2454 * arch-utils.c (default_displaced_step_hw_singlestep):
2456 * arch-utils.h (default_displaced_step_hw_singlestep):
2458 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2460 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2462 * gdbarch.c: Re-generate.
2463 * gdbarch.h: Re-generate.
2464 * infrun.c (resume_1): Adjust.
2466 2020-10-29 Tom Tromey <tom@tromey.com>
2468 * progspace.c (program_space::~program_space): Don't call
2471 2020-10-29 Tom Tromey <tom@tromey.com>
2473 * exec.c (exec_target::close): Don't change current program
2476 2020-10-29 Tom Tromey <tom@tromey.com>
2478 * symfile.c (add_symbol_file_command): Update.
2479 * exec.c (program_space::add_target_sections): Rename.
2480 * symfile-mem.c (symbol_file_add_from_memory): Update.
2481 * progspace.h (struct program_space) <add_target_sections>:
2482 Declare new overload.
2483 * exec.h (add_target_sections_of_objfile): Don't declare.
2485 2020-10-29 Tom Tromey <tom@tromey.com>
2487 * solib.c (solib_map_sections): Update.
2488 * exec.c (program_space::add_target_sections): Now a method.
2489 (exec_file_attach): Update.
2490 * exec.h (add_target_sections): Don't declare.
2491 * progspace.h (struct program_space) <add_target_sections>:
2494 2020-10-29 Tom Tromey <tom@tromey.com>
2496 * progspace.h (struct program_space) <remove_target_sections>:
2498 * exec.c (program_space::remove_target_sections): Now a method.
2499 * exec.h (remove_target_sections): Don't declare.
2501 2020-10-29 Tom Tromey <tom@tromey.com>
2503 * inferior.c (delete_inferior): Update.
2504 * progspace.c (program_space::empty): Rename from
2505 program_space_empty_p. Return bool.
2506 * progspace.h (struct program_space) <empty>: New method.
2507 (program_space_empty_p): Don't declare.
2509 2020-10-29 Tom Tromey <tom@tromey.com>
2511 * progspace.c (program_space::~program_space): Don't call
2512 clear_program_space_solib_cache.
2513 (program_space::clear_solib_cache): Rename from
2515 * solib.c (handle_solib_event): Update.
2516 * progspace.h (struct program_space) <clear_solib_cache>: New
2518 (clear_program_space_solib_cache): Don't declare.
2520 2020-10-29 Tom Tromey <tom@tromey.com>
2522 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2523 * target.c (info_target_command): Update.
2524 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2525 (symbol_file_clear, reread_symbols): Update.
2526 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2527 * stabsread.c (scan_file_globals): Update.
2528 * solib.c (update_solib_list): Update.
2529 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2530 (svr4_fetch_objfile_link_map, enable_break)
2531 (svr4_relocate_main_executable)
2532 (svr4_iterate_over_objfiles_in_search_order): Update.
2533 * solib-frv.c (lm_base, enable_break)
2534 (frv_relocate_main_executable): Update.
2535 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2536 (frv_fetch_objfile_link_map): Update.
2537 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2538 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2539 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2540 * remote.c (remote_target::get_offsets): Update.
2541 (remote_target::start_remote)
2542 (extended_remote_target::post_attach): Update.
2543 * objfiles.c (entry_point_address_query): Update.
2544 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2545 * minsyms.c (get_symbol_leading_char): Update.
2546 * frame.c (inside_main_func): Update.
2547 * progspace.h (symfile_objfile): Remove macro.
2549 2020-10-29 Tom Tromey <tom@tromey.com>
2551 * exec.c (exec_file_attach): Update.
2552 * progspace.c (program_space::exec_close): Update.
2553 * progspace.h (struct program_space) <ebfd>: Now a
2555 <set_exec_bfd>: Change argument type.
2558 2020-10-29 Tom Tromey <tom@tromey.com>
2560 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2561 * symfile.c (reread_symbols): Update.
2562 * symfile-mem.c (add_symbol_file_from_memory_command)
2563 (add_vsyscall_page): Update.
2564 * source-cache.c (source_cache::get_plain_source_lines): Update.
2565 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2566 (svr4_current_sos_direct, svr4_exec_displacement)
2567 (svr4_relocate_main_executable): Update.
2568 (svr4_iterate_over_objfiles_in_search_order): Update.
2569 * solib-frv.c (enable_break2, enable_break): Update.
2570 * solib-dsbt.c (lm_base, enable_break): Update.
2571 * solib-darwin.c (find_program_interpreter)
2572 (darwin_solib_create_inferior_hook): Update.
2573 * sol-thread.c (rw_common, ps_pdmodel): Update.
2574 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2575 * remote.c (compare_sections_command)
2576 (remote_target::trace_set_readonly_regions): Update.
2577 * remote-sim.c (get_sim_inferior_data)
2578 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2579 (gdbsim_target_open, gdbsim_target::files_info): Update.
2580 * exec.h (exec_bfd): Remove macro.
2581 * progspace.c (initialize_progspace): Update.
2582 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2584 * nto-procfs.c (nto_procfs_target::post_attach)
2585 (nto_procfs_target::create_inferior): Update.
2586 * maint.c (maintenance_info_sections): Update.
2587 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2589 * infcmd.c (post_create_inferior): Update.
2590 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2591 (objfile_find_memory_regions): Update.
2592 * exec.c (validate_exec_file, exec_file_attach)
2593 (exec_read_partial_read_only, print_section_info): Update.
2594 * corelow.c (core_target_open): Update.
2595 * corefile.c (reopen_exec_file, validate_files): Update.
2596 * arm-tdep.c (gdb_print_insn_arm): Update.
2597 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2598 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2601 2020-10-29 Tom Tromey <tom@tromey.com>
2603 * progspace.h (current_target_sections): Remove macro.
2604 * solib-svr4.c (scan_dyntag): Update.
2605 * solib-dsbt.c (scan_dyntag): Update.
2606 * exec.c (exec_target::close): Update.
2607 (add_target_sections, add_target_sections_of_objfile)
2608 (remove_target_sections, exec_target::get_section_table)
2609 (exec_target::files_info, set_section_command)
2610 (exec_set_section_address, exec_target::has_memory)
2611 (exec_target::has_memory): Update.
2613 2020-10-29 Tom Tromey <tom@tromey.com>
2615 * source-cache.c (source_cache::get_plain_source_lines): Use
2616 current_program_space.
2617 * corefile.c (reopen_exec_file): Use current_program_space.
2618 * exec.c (exec_file_attach): Use current_program_space.
2619 * exec.h (exec_bfd_mtime): Remove.
2621 2020-10-29 Tom Tromey <tom@tromey.com>
2623 * gcore.c (default_gcore_mach): Remove.
2624 (create_gcore_bfd): Update.
2626 2020-10-29 Tom Tromey <tom@tromey.com>
2628 * progspace.c (program_space::exec_close): New method, from
2629 exec_close in exec.c.
2630 * exec.c (exec_close): Move to progspace.c.
2631 (exec_target::close, exec_file_attach): Update.
2632 * progspace.h (struct program_space) <exec_close>: Declare
2635 2020-10-29 Tom Tromey <tom@tromey.com>
2637 * progspace.h (struct program_space) <exec_filename>: Rename from
2638 pspace_exec_filename. Now a unique_xmalloc_ptr.
2639 * inferior.c (print_selected_inferior): Update.
2640 (print_inferior): Update.
2641 * mi/mi-main.c (print_one_inferior): Update.
2642 * exec.h (exec_filename): Remove macro.
2643 * corefile.c (get_exec_file): Update.
2644 * exec.c (exec_close): Update.
2645 (exec_file_attach): Update.
2646 * progspace.c (clone_program_space): Update.
2647 (print_program_space): Update.
2649 2020-10-29 Tom Tromey <tom@tromey.com>
2651 * target-section.h (struct target_section): Add constructor.
2652 * exec.c (build_section_table, add_target_sections_of_objfile):
2654 * corelow.c (core_target::build_file_mappings): Update.
2656 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2659 * inferior.c (detach_inferior_command): Restore the current thread.
2660 (kill_inferior_command): Ditto.
2662 2020-10-28 Tom de Vries <tdevries@suse.de>
2665 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2666 map, check it in the "best match" loop.
2668 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2670 * m32c-tdep.c: Remove unused includes.
2672 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2674 * xtensa-tdep.c: Remove includes.
2676 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2678 * breakpoint.c (struct condition_command_opts): New struct.
2679 (condition_command_option_defs): New static global.
2680 (make_condition_command_options_def_group): New function.
2681 (condition_completer): Update to consider the '-force' flag.
2682 (condition_command): Use gdb::option for the '-force' flag.
2684 2020-10-27 Tom de Vries <tdevries@suse.de>
2686 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2687 symbols in section check.
2689 2020-10-27 Tom de Vries <tdevries@suse.de>
2691 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2693 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2695 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2696 * breakpoint.c: Update the help text of the 'condition' and 'break'
2698 (set_breakpoint_condition): Take a new bool parameter
2699 to control whether condition definition should be forced even when
2700 the condition expression is invalid in all of the current locations.
2701 (condition_command): Update the call to 'set_breakpoint_condition'.
2702 (find_condition_and_thread): Take the "-force-condition" flag into
2704 * linespec.c (linespec_keywords): Add "-force-condition" as an
2706 (FORCE_KEYWORD_INDEX): New #define.
2707 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2709 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2710 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2711 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2712 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2714 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2716 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2717 * breakpoint.c (set_breakpoint_location_condition): New function.
2718 (set_breakpoint_condition): Disable a breakpoint location if parsing
2719 the condition string gives an error.
2720 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2721 (build_target_condition_list): Ditto.
2722 (build_target_command_list): Ditto.
2723 (build_bpstat_chain): Ditto.
2724 (print_one_breakpoint_location): Ditto.
2725 (print_one_breakpoint): Ditto.
2726 (breakpoint_1): Ditto.
2727 (bp_location::bp_location): Ditto.
2728 (locations_are_equal): Ditto.
2729 (update_breakpoint_locations): Ditto.
2730 (enable_disable_bp_num_loc): Ditto.
2731 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2732 (find_condition_and_thread_for_sals): New static function.
2733 (create_breakpoint): Call find_condition_and_thread_for_sals.
2734 (location_to_sals): Call find_condition_and_thread_for_sals instead
2735 of find_condition_and_thread.
2737 2020-10-26 Tom de Vries <tdevries@suse.de>
2739 * dwarf2/read.c (process_full_comp_unit): Call
2740 dwarf2_find_base_address.
2742 2020-10-26 Tom Tromey <tromey@adacore.com>
2744 * gdbtypes.c (create_range_type): Revert previous patch. Add
2747 2020-10-26 Pedro Alves <pedro@palves.net>
2749 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2750 (my_waitpid): Use gdb::handle_eintr.
2752 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2754 * acinclude.m4: Update ptrace.m4 path.
2755 * ptrace.m4: Moved to gdbsupport.
2757 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2759 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2760 instead of target_gdbarch.
2762 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2764 * jit.c (jit_reader_load_command): Pass current inferior.
2765 (jit_inferior_init): Change parameter type to inferior, use it.
2766 (jit_inferior_created): Remove.
2767 (jit_inferior_created_hook): Pass inferior parameter down.
2768 (_initialize_jit): Use jit_inferior_created_hook instead of
2769 jit_inferior_created.
2770 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2771 * infrun.c (follow_exec): Pass inferior to
2772 jit_inferior_created_hook.
2774 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2776 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2777 parameter and use it.
2778 (thread_db_inferior_created): Pass inferior argument.
2780 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2782 * aix-thread.c (aix_thread_inferior_created): Add inferior
2784 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2785 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2786 * jit.c (jit_inferior_created): Likewise.
2787 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2788 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2789 * observable.h (inferior_created): Likewise.
2790 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2791 * symfile-mem.c (add_vsyscall_page): Likewise.
2792 * infcmd.c (post_create_inferior): Pass inferior argument.
2794 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2798 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2800 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2801 to ada_check_typedef.
2803 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2805 * f-exp.y (f_parse): Rename to...
2806 (f_language::parser): ...this.
2807 * f-lang.c (f_get_encoding): Rename to...
2808 (f_language::get_encoding): ...this.
2809 (f_op_print_tab): Rename to...
2810 (f_language::op_print_tab): ...this.
2811 (exp_descriptor_f): Rename to...
2812 (f_language::exp_descriptor_tab): ...this.
2813 (class f_language): Moved to f-lang.h.
2814 (f_language::language_arch_info): New function, moved out of class
2816 (f_language::search_name_hash): Likewise.
2817 (f_language::lookup_symbol_nonlocal): Likewise.
2818 (f_language::get_symbol_name_matcher_inner): Likewise.
2819 * f-lang.h: Add 'valprint.h' include.
2820 (class f_language): Moved here from f-lang.c.
2821 * f-typeprint.c (f_type_print_args): Delete commented out
2823 (f_print_typedef): Rename to...
2824 (f_language::print_typedef): ...this.
2825 (f_print_type): Rename to...
2826 (f_language::print_type): ...this.
2827 (f_type_print_varspec_prefix): Delete declaration and rename to...
2828 (f_language::f_type_print_varspec_prefix): ...this.
2829 (f_type_print_varspec_suffix): Delete declaration and rename to...
2830 (f_language::f_type_print_varspec_suffix): ...this.
2831 (f_type_print_base): Delete declaration and rename to...
2832 (f_language::f_type_print_base): ...this.
2833 * f-valprint.c (f_value_print_inner): Rename to...
2834 (f_language::value_print_inner): ...this.
2835 * parse.c: Delete 'f-lang.h' include.
2837 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2839 * language.h (language_defn::print_type): Add variable names in
2840 declaration, and update header comment.
2842 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2844 * ada-lang.c (ada_language::demangle): Rename to...
2845 (ada_language::demangle_symbol): ...this.
2846 * c-lang.c (cplus_language::demangle): Rename to...
2847 (cplus_language::demangle_symbol): ...this.
2848 * d-lang.c (d_language::demangle): Rename to...
2849 (d_language::demangle_symbol): ...this.
2850 * f-lang.c (f_language::demangle): Rename to...
2851 (f_language::demangle_symbol): ...this.
2852 * go-lang.c (go_language::demangle): Rename to...
2853 (go_language::demangle_symbol): ...this.
2854 * language.c (language_demangle): Update call to demangle_symbol.
2855 (auto_or_unknown_language::demangle): Rename to...
2856 (auto_or_unknown_language::demangle_symbol): ...this.
2857 * language.h (language_defn::demangle): Rename to...
2858 (language_defn::demangle_symbol): ...this.
2859 * objc-lang.c (objc_language::demangle): Rename to...
2860 (objc_language::demangle_symbol): ...this.
2861 * rust-lang.c (rust_language::demangle): Rename to...
2862 (rust_language::demangle_symbol): ...this.
2864 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2866 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2867 (iterate_over_file_blocks): Replace use of macro with the macros
2870 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2872 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2873 * valprint.c (maybe_print_array_index): Replace use of macro with
2874 the macros definition.
2876 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2878 * ada-lang.c (ada_language::print_array_index): Call value_print
2880 * language.c (language_defn::print_array_index): Likewise.
2881 * language.h (LA_VALUE_PRINT): Delete.
2882 * valprint.c (value_print): Call value_print on the
2883 current_language directly.
2885 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2887 * language.h (LA_PRINT_TYPEDEF): Delete.
2888 * typeprint.c (typedef_print): Call print_typedef directly on the
2889 current_language object.
2891 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2893 * m2-exp.y (m2_parse): Rename to...
2894 (m2_language::parser): ...this. Update function signature.
2895 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2896 (m2_op_print): Rename to...
2897 (m2_language::op_print_tab): ...this, and make const.
2898 (exp_descriptor_modula2): Rename to...
2899 (m2_language::exp_descriptor_modula2): ...this.
2900 (class m2_language): Move to m2-lang.h.
2901 (m2_language::language_arch_info): New function, moved out of
2903 (m2_language::printchar): New function, body from m2_printchar.
2904 (m2_language::printstr): New function, moved out of class
2906 (m2_language::emitchar): Likewise.
2907 * m2-lang.h (m2_parse): Delete declaration.
2908 (m2_print_typedef): Delete declaration.
2909 (m2_value_print_inner): Delete declaration.
2910 (class m2_language): Class declaration moved from m2-lang.c,
2911 larger functions are left in m2-lang.c.
2912 * m2-typeprint.c (m2_print_typedef): Rename to...
2913 (m2_language::print_typedef): ...this, and update function
2915 * m2-valprint.c (m2_value_print_inner): Rename to...
2916 (m2_language::value_print_inner): ...this, replace use of
2917 LA_PRINT_STRING with a direct call to printstr member function,
2918 and update recursive call.
2920 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2922 * language.c (default_is_string_type_p): Delete, implementation
2923 moved into auto_or_unknown_language::is_string_type_p.
2924 (unk_op_print_tab): Moved into
2925 auto_or_unknown_language::opcode_print_table.
2926 (unknown_language_arch_info): Delete, implementation moved into
2927 auto_or_unknown_language::language_arch_info.
2928 (class auto_or_unknown_language): New class, member functions
2929 copied from unknown_language class, with some updates.
2930 (class unknown_language): Most member functions moved into
2931 auto_or_unknown_language class. Inherit from
2932 auto_or_unknown_language class.
2933 (class auto_language): Inherit from auto_or_unknown_language.
2934 Delete most member functions.
2936 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2938 * stabsread.c (read_member_functions): Remove gdb_assert.
2940 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2942 * gdbtypes.c (init_complex_type): Check target type name.
2944 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2946 * target-debug.h (target_debug_print_struct_target_ops_p):
2948 (target_debug_print_async_callback_ftype_p): Remove.
2949 (target_debug_print_struct_trace_state_variable_p): Remove.
2950 (target_debug_print_struct_traceframe_info_p): Remove.
2951 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2952 (target_debug_print_enum_btrace_format): Remove.
2953 (target_debug_print_enum_info_proc_what): Remove.
2954 (target_debug_print_thread_info_pp): Remove.
2956 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2958 * target.h (struct target_ops) <make_corefile_notes>:
2959 Change return type to unique pointer.
2960 * target.c (dummy_make_corefile_notes): Likewise.
2961 * exec.c (struct exec_target) <make_corefile_notes>:
2963 (exec_target::make_corefile_notes): Likewise.
2964 * procfs.c (class procfs_target) <make_corefile_notes>:
2966 (procfs_do_thread_registers): Adjust to unique pointer.
2967 (struct procfs_corefile_thread_data): Add constructor.
2968 <note_data>: Change type to unique pointer.
2969 (procfs_corefile_thread_callback): Adjust to unique pointer.
2970 (procfs_target::make_corefile_notes): Change return type to
2972 * target-delegates.c: Re-generate.
2973 * gcore.c (write_gcore_file_1): Adjust.
2974 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2977 2020-10-22 Tom de Vries <tdevries@suse.de>
2979 * block.c (find_block_in_blockvector): Make sure the returned block
2982 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2985 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2987 (load_cu): Pass existing CU.
2988 (process_imported_unit_die): Likewise.
2989 (follow_die_offset): Likewise.
2991 2020-10-22 Luis Machado <luis.machado@linaro.org>
2993 * corelow.c (core_target::xfer_partial): Also check for an empty
2994 m_core_unavailable_mappings vector.
2996 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2998 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2999 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
3000 * f-exp.y (arglist): Allow for a series of subranges.
3001 (subrange): Add cases for subranges with strides.
3002 * f-lang.c (value_f90_subarray): Catch use of array strides and
3004 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
3006 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3008 * expprint.c (print_subexp_standard): Change enum range_type to
3009 range_flag and rename variables to match.
3010 (dump_subexp_body_standard): Likewise.
3011 * expression.h (enum range_type): Rename to...
3012 (enum range_flag): ...this.
3013 (range_types): Rename to...
3014 (range_flags): ...this.
3015 * f-lang.c (value_f90_subarray): Change enum range_type to
3016 range_flag and rename variables to match.
3017 * parse.c (operator_length_standard): Likewise.
3018 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
3019 range_type to range_flag.
3020 * rust-lang.c (rust_evaluate_funcall): Likewise.
3021 (rust_range): Likewise.
3022 (rust_compute_range): Likewise.
3023 (rust_subscript): Likewise.
3025 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3027 * expprint.c (print_subexp_standard): Update to reflect changes to
3029 (dump_subexp_body_standard): Likewise.
3030 * expression.h (enum range_type): Convert to a bit field enum, and
3031 make the enum unsigned.
3032 * f-exp.y (subrange): Update to reflect changes to enum
3034 * f-lang.c (value_f90_subarray): Likewise.
3035 * parse.c (operator_length_standard): Likewise.
3036 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
3037 * rust-lang.c (rust_range): Likewise.
3038 (rust_compute_range): Likewise.
3039 (rust_subscript): Likewise.
3041 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
3043 * infrun.c (displaced_step_in_progress_thread): Fix comment.
3044 (displaced_step_in_progress): Fix comment.
3046 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3048 * gdbarch.sh (make_corefile_notes): Return unique pointer.
3049 * gdbarch.c: Re-generate.
3050 * gdbarch.h: Re-generate.
3051 * gcore.c (write_gcore_file_1): Adjust.
3052 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
3054 <note_data>: Change type to unique pointer.
3055 <abort_iteration>: Change type to bool.
3056 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
3057 (fbsd_collect_thread_registers): Return void, adjust.
3058 (struct fbsd_corefile_thread_data): Add construtor.
3059 <note_data>: Change type to unique pointer.
3060 (fbsd_corefile_thread): Adjust.
3061 (fbsd_make_corefile_notes): Return unique pointer, adjust.
3062 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
3063 to unique pointer, adjust.
3064 (struct linux_collect_regset_section_cb_data): Add constructor.
3065 <note_data>: Change type to unique pointer.
3066 <abort_iteration>: Change type to bool.
3067 (linux_collect_thread_registers): Return void, adjust.
3068 (struct linux_corefile_thread_data): Add constructor.
3069 <note_data>: Change type to unique pointer.
3070 (linux_corefile_thread): Adjust.
3071 (linux_make_corefile_notes): Return unique pointer, adjust.
3073 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3075 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
3076 * gdbarch.c: Re-generate.
3077 * gdbarch.h: Re-generate.
3078 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
3080 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
3082 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
3083 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
3084 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
3085 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
3087 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3089 * gdbarch.sh: Make generated predicates return bool.
3090 * gdbarch.c: Re-generate.
3091 * gdbarch.h: Re-generate.
3093 2020-10-20 Tom Tromey <tom@tromey.com>
3095 * varobj-iter.h (struct varobj_item): Remove typedef.
3097 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3099 * infrun.c (currently_stepping): Change int to bool
3100 (maybe_software_singlestep): Likewise.
3101 (show_stop_on_solib_events): Likewise.
3102 (stepping_past_nonsteppable_watchpoint): Likewise.
3103 (displaced_step_in_progress_any_inferior): Likewise.
3104 (displaced_step_in_progress_thread): Likewise.
3105 (keep_going_stepped_thread): Likewise.
3106 (thread_still_needs_step_over): Likewise.
3107 (start_step_over): Likewise.
3108 (do_target_resume): Likewise.
3109 (resume_1): Likewise.
3110 (clear_proceed_status): Likewise.
3111 (thread_still_needs_step_over_bp): Likewise.
3112 (proceed): Likewise.
3113 (switch_back_to_stepped_thread): Likewise.
3114 (adjust_pc_after_break): Likewise.
3115 (stepped_in_from): Likewise.
3116 (handle_stop_requested): Likewise.
3117 (handle_syscall_event): Likewise.
3118 (handle_no_resumed): Likewise.
3119 (handle_inferior_event): Likewise.
3120 (finish_step_over): Likewise.
3121 (handle_signal_stop): Likewise.
3122 (process_event_stop_test): Likewise.
3124 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3126 * infrun.c (get_displaced_stepping_state): Fix comment.
3128 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
3130 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
3132 2020-10-19 Tom Tromey <tromey@adacore.com>
3135 * tui/tui-winsource.h (struct tui_source_window_base)
3136 <refresh_window>: Rename from refresh_pad.
3137 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3138 Rename from refresh_pad.
3139 (tui_source_window_base::show_source_content)
3140 (tui_source_window_base::do_scroll_horizontal): Update.
3142 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3144 * thread.c (_initialize_thread): Fine-tune the help text of
3147 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3149 * frame.c: Remove the unused 'uinteger_option_def' type alias.
3151 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
3153 * breakpoint.c (handle_jit_event): Add an argument, change how
3154 `jit_event_handler` is called.
3156 2020-10-17 Tom Tromey <tom@tromey.com>
3158 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
3159 (scan_xcoff_symtab): Update.
3160 * psymtab.h (class psymtab_storage) <global_psymbols,
3161 static_psymbols, current_global_psymbols,
3162 current_static_psymbols>: Remove.
3163 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
3164 (match_partial_symbol, lookup_partial_symbol): Update.
3165 (print_partial_symbols): Change parameters.
3166 (dump_psymtab, recursively_search_psymtabs)
3167 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
3168 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
3170 (end_psymtab_common): Simplify.
3171 (append_psymbol_to_list): Change parameters.
3172 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
3173 (init_psymbol_list): Simplify.
3174 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3175 * psympriv.h (struct partial_symtab) <empty>: New method.
3176 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
3178 <global_psymbols, static_psymbols>: New members.
3179 <add_psymbol>: New methods.
3180 (add_psymbol_to_list): Don't declare.
3181 (psymbol_placement): Move earlier.
3182 * mdebugread.c (parse_partial_symbols): Update.
3183 (handle_psymbol_enumerators): Change parameters.
3184 (mdebug_expand_psymtab): Update.
3185 * dwarf2/read.c (process_psymtab_comp_unit_reader)
3186 (add_partial_symbol): Update.
3187 * dwarf2/index-write.c (write_psymbols): Change parameters.
3188 (write_one_signatured_type): Update.
3189 (recursively_count_psymbols): Update.
3190 (recursively_write_psymbols): Update.
3191 (class debug_names) <recursively_write_psymbols>: Update.
3192 <write_psymbols>: Change parameters.
3193 <write_one_signatured_type>: Update.
3194 * dbxread.c (read_dbx_symtab): Update.
3195 (dbx_end_psymtab): Use partial_symtab::empty.
3196 * ctfread.c (struct ctf_context) <pst>: New member.
3197 (create_partial_symtab): Set it.
3198 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
3199 (scan_partial_symbols): Use the psymtab's context. Update.
3201 2020-10-17 Tom Tromey <tom@tromey.com>
3203 * valprint.c (generic_value_print): Remove comment.
3204 * m2-valprint.c (m2_value_print_inner): Remove comment.
3205 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
3208 2020-10-17 Tom de Vries <tdevries@suse.de>
3211 * source.c (select_source_symtab): Handling sal.symtab == NULL for
3214 2020-10-14 Tom de Vries <tdevries@suse.de>
3217 * solib.c (solib_contains_address_p): Handle
3218 'solib->sections == nullptr'.
3220 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3223 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3224 target can't do async.
3225 * target.c (target_wait): Assert that we don't pass
3226 TARGET_WNOHANG to a target that can't async.
3228 2020-10-13 Kamil Rytarowski <n54@gmx.com>
3230 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3231 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3232 * alpha-bsd-nat.c: Adjust include.
3233 * alpha-bsd-tdep.h: Adjust comment.
3234 * alpha-nbsd-tdep.c: Rename to ...
3235 * alpha-netbsd-tdep.c: ... this, adjust include.
3236 * amd64-nbsd-nat.c: Rename to ...
3237 * amd64-netbsd-nat.c: ... this, adjust include.
3238 * amd64-nbsd-tdep.c: Rename to ...
3239 * amd64-netbsd-tdep.c: ... this, adjust include.
3240 * amd64-tdep.h: Adjust include.
3241 * arm-nbsd-nat.c: Rename to ...
3242 * arm-netbsd-nat.c: ... this, adjust include.
3243 * arm-nbsd-tdep.c: Rename to ...
3244 * arm-netbsd-tdep.c: ... this, adjust include.
3245 * arm-nbsd-tdep.h: Rename to ...
3246 * arm-netbsd-tdep.h: ... this, adjust include.
3247 * configure.nat: Adjust file lists.
3248 * configure.tgt: Likewise.
3249 * hppa-nbsd-nat.c: Rename to ...
3250 * hppa-netbsd-nat.c: ... this, adjust include.
3251 * hppa-nbsd-tdep.c: Rename to ...
3252 * hppa-netbsd-tdep.c: ... this, adjust include.
3253 * i386-nbsd-nat.c: Rename to ...
3254 * i386-netbsd-nat.c: ... this, adjust include.
3255 * i386-nbsd-tdep.c: Rename to ...
3256 * i386-netbsd-tdep.c: ... this, adjust include.
3257 * m68k-bsd-nat.c: Adjust include.
3258 * mips-nbsd-nat.c: Rename to ...
3259 * mips-netbsd-nat.c: ... this, adjust include.
3260 * mips-nbsd-tdep.c: Rename to ...
3261 * mips-netbsd-tdep.c: ... this, adjust include.
3262 * mips-nbsd-tdep.h: Rename to ...
3263 * mips-netbsd-tdep.h: ... this.
3264 * nbsd-nat.c: Rename to ...
3265 * netbsd-nat.c: ... this, adjust include.
3266 * nbsd-nat.h: Rename to ...
3267 * netbsd-nat.h: ... this, adjust include.
3268 * nbsd-tdep.c: Rename to ...
3269 * netbsd-tdep.c: ... this, adjust include.
3270 * nbsd-tdep.h: Rename to ...
3271 * netbsd-tdep.h: ... this.
3272 * ppc-nbsd-nat.c: Rename to ...
3273 * ppc-netbsd-nat.c: ... this, adjust include.
3274 * ppc-nbsd-tdep.c: Rename to ...
3275 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3276 * ppc-nbsd-tdep.h: Rename to ...
3277 * ppc-netbsd-tdep.h: ... this.
3278 * sh-nbsd-nat.c: Rename to ...
3279 * sh-netbsd-nat.c: ... this, adjust include.
3280 * sh-nbsd-tdep.c: Rename to ...
3281 * sh-netbsd-tdep.c: ... this, adjust include.
3282 * sparc-nbsd-nat.c: Rename to ...
3283 * sparc-netbsd-nat.c: ... this.
3284 * sparc-nbsd-tdep.c: Rename to ...
3285 * sparc-netbsd-tdep.c: ... this, adjust include.
3286 * sparc64-nbsd-nat.c: Rename to ...
3287 * sparc64-netbsd-nat.c: ... this.
3288 * sparc64-nbsd-tdep.c: Rename to ...
3289 * sparc64-netbsd-tdep.c: ... this, adjust include.
3290 * sparc64-tdep.h: Adjust comment.
3291 * vax-bsd-nat.c: Adjust include.
3292 * vax-nbsd-tdep.c: Rename to ...
3293 * vax-netbsd-tdep.c: ... this, adjust include.
3295 2020-10-12 Tom Tromey <tom@tromey.com>
3297 * target.h (struct target_ops) <get_section_table>: Update.
3298 (target_get_section_table): Update.
3299 * target.c (target_get_section_table, target_section_by_addr)
3300 (memory_xfer_partial_1): Update.
3301 * target-section.h (target_section_table): Now an alias.
3302 * target-delegates.c: Rebuild.
3303 * target-debug.h (target_debug_print_target_section_table_p):
3304 Rename from target_debug_print_struct_target_section_table_p.
3305 * symfile.c (build_section_addr_info_from_section_table): Update.
3306 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3307 * solib-svr4.c (scan_dyntag): Update.
3308 * solib-dsbt.c (scan_dyntag): Update.
3309 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3311 * record-full.c (record_full_core_target::xfer_partial): Update.
3312 * progspace.h (struct program_space) <target_sections>: Update.
3313 * exec.h (print_section_info): Update.
3314 * exec.c (exec_target::close, build_section_table)
3315 (add_target_sections, add_target_sections_of_objfile)
3316 (remove_target_sections, exec_on_vfork)
3317 (section_table_available_memory)
3318 (section_table_xfer_memory_partial)
3319 (exec_target::get_section_table, exec_target::xfer_partial)
3320 (print_section_info, set_section_command)
3321 (exec_set_section_address, exec_target::has_memory): Update.
3322 * corelow.c (core_target::build_file_mappings)
3323 (core_target::xfer_partial, core_target::info_proc_mappings)
3324 (core_target::info_proc_mappings): Update.
3325 * bfd-target.c (class target_bfd): Update
3327 2020-10-12 Tom Tromey <tom@tromey.com>
3329 * progspace.c (program_space::~program_space): Don't call
3330 clear_section_table.
3331 * exec.h (clear_section_table): Don't declare.
3332 * exec.c (exec_target::close): Update.
3333 (clear_section_table): Remove.
3335 2020-10-12 Tom Tromey <tom@tromey.com>
3337 * exec.c (add_target_sections_of_objfile): Simplify.
3339 2020-10-12 Tom Tromey <tom@tromey.com>
3341 * solib.c (solib_map_sections): Update.
3342 * record-full.c (record_full_core_open_1): Update.
3343 * exec.h (build_section_table): Return a target_section_table.
3344 * exec.c (exec_file_attach): Update.
3345 (build_section_table): Return a target_section_table.
3346 * corelow.c (core_target::core_target): Update.
3347 * bfd-target.c (target_bfd::target_bfd): Update.
3349 2020-10-12 Tom Tromey <tom@tromey.com>
3351 * target.c (target_section_by_addr, memory_xfer_partial_1):
3353 * target-section.h (struct target_section_table): Use
3355 * symfile.h (build_section_addr_info_from_section_table): Take a
3356 target_section_table.
3357 * symfile.c (build_section_addr_info_from_section_table): Take a
3358 target_section_table.
3359 * solist.h (struct so_list) <sections>: Change type.
3360 <sections_end>: Remove.
3361 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3362 (solib_contains_address_p): Update.
3363 * solib-svr4.c (scan_dyntag): Update.
3364 * solib-dsbt.c (scan_dyntag): Update.
3365 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3367 * record-full.c (record_full_core_start, record_full_core_end):
3369 (record_full_core_sections): New global.
3370 (record_full_core_open_1, record_full_core_target::xfer_partial):
3372 * exec.h (build_section_table, section_table_xfer_memory_partial)
3373 (add_target_sections): Take a target_section_table.
3374 * exec.c (exec_file_attach, clear_section_table): Update.
3375 (resize_section_table): Remove.
3376 (build_section_table, add_target_sections): Take a
3377 target_section_table.
3378 (add_target_sections_of_objfile, remove_target_sections)
3379 (exec_on_vfork): Update.
3380 (section_table_available_memory): Take a target_section_table.
3381 (section_table_read_available_memory): Update.
3382 (section_table_xfer_memory_partial): Take a target_section_table.
3383 (print_section_info, set_section_command)
3384 (exec_set_section_address, exec_target::has_memory): Update.
3385 * corelow.c (class core_target) <m_core_section_table,
3386 m_core_file_mappings>: Remove braces.
3387 <~core_target>: Remove.
3388 (core_target::core_target): Update.
3389 (core_target::~core_target): Remove.
3390 (core_target::build_file_mappings)
3391 (core_target::xfer_memory_via_mappings)
3392 (core_target::xfer_partial, core_target::info_proc_mappings):
3394 * bfd-target.c (target_bfd::xfer_partial): Update.
3395 (target_bfd::target_bfd): Update.
3396 (target_bfd::~target_bfd): Remove.
3398 2020-10-12 Tom Tromey <tom@tromey.com>
3400 * target.h (struct target_section, struct target_section_table):
3401 Move to target-section.h.
3402 * target-section.h: New file.
3404 2020-10-12 Pedro Alves <pedro@palves.net>
3407 * valops.c (struct struct_field_searcher): New.
3408 (update_search_result): Rename to ...
3409 (struct_field_searcher::update_result): ... this. Simplify
3410 prototype. Record all found fields.
3411 (do_search_struct_field): Rename to ...
3412 (struct_field_searcher::search): ... this. Simplify prototype.
3413 Maintain stack of visited baseclass path. Call update_result for
3414 fields too. Keep searching fields in baseclasses instead of
3415 stopping at the first found field.
3416 (search_struct_field): Use struct_field_searcher. When looking
3417 for fields, report ambiguous access attempts.
3419 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3421 * frame.c (inside_main_func): Check full symbols as well as
3424 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3426 * ada-lang.c (advance_wild_match): Rewrite the function's
3427 description. Change the type of target0, t0 and t1 to char.
3429 2020-10-09 Tom Tromey <tromey@adacore.com>
3431 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3433 2020-10-09 Tom Tromey <tromey@adacore.com>
3435 * ada-lang.h (ada_encode): Return std::string.
3436 * ada-lang.c (ada_encode_1): Return std::string.
3437 (ada_encode): Likewise.
3438 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3440 * ada-exp.y (block_lookup, write_var_or_type): Update.
3442 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3445 * printcmd.c (print_formatted): Handle void results as
3448 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3450 * arch/aarch32.c (aarch32_create_target_description): Release the
3451 target_desc_up as late as possible.
3452 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3453 * arch/amd64.c (amd64_create_target_description): Likewise.
3454 * arch/arc.c (arc_create_target_description): Return a
3455 target_desc_up, don't release it.
3456 * arch/arc.h (arc_create_target_description): Update declaration.
3457 (arc_lookup_target_description): Move target_desc_up into the
3458 cache, and return a borrowed pointer.
3459 * arch/arm.c (arm_create_target_description): Release the
3460 target_desc_up as late as possible.
3461 * arch/i386.c (i386_create_target_description): Likewise.
3462 * arch/riscv.h (riscv_create_target_description): Update
3463 declaration to match definition.
3464 * arch/tic6x.c (tic6x_create_target_description): Release the
3465 target_desc_up as late as possible.
3467 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3469 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3470 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3472 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3474 * source.c (directory_command): Notify observers that "directories"
3475 parameter has changed.
3477 2020-10-08 Tom Tromey <tom@tromey.com>
3479 * cli/cli-cmds.c (print_disassembly): Style function name and
3480 addresses. Add _() wrappers.
3482 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3484 * NEWS: Mention ARC support in GDBserver.
3486 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3488 * arch/aarch32.c (aarch32_create_target_description): Release
3489 unique_ptr returned from allocate_target_description.
3490 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3491 * arch/amd64.c (amd64_create_target_description): Likewise.
3492 * arch/arc.c (arc_create_target_description): Likewise.
3493 * arch/arm.c (arm_create_target_description): Likewise.
3494 * arch/i386.c (i386_create_target_description): Likewise.
3495 * arch/riscv.c (riscv_create_target_description): Update return
3496 type. Handle allocate_target_description returning a unique_ptr.
3497 (riscv_lookup_target_description): Update to handle unique_ptr.
3498 * arch/tic6x.c (tic6x_create_target_description): Release
3499 unique_ptr returned from allocate_target_description.
3500 * features/microblaze-with-stack-protect.c: Regenerate.
3501 * features/microblaze.c: Regenerate.
3502 * features/mips-dsp-linux.c: Regenerate.
3503 * features/mips-linux.c: Regenerate.
3504 * features/mips64-dsp-linux.c: Regenerate.
3505 * features/mips64-linux.c: Regenerate.
3506 * features/nds32.c: Regenerate.
3507 * features/nios2.c: Regenerate.
3508 * features/or1k.c: Regenerate.
3509 * features/rs6000/powerpc-32.c: Regenerate.
3510 * features/rs6000/powerpc-32l.c: Regenerate.
3511 * features/rs6000/powerpc-403.c: Regenerate.
3512 * features/rs6000/powerpc-403gc.c: Regenerate.
3513 * features/rs6000/powerpc-405.c: Regenerate.
3514 * features/rs6000/powerpc-505.c: Regenerate.
3515 * features/rs6000/powerpc-601.c: Regenerate.
3516 * features/rs6000/powerpc-602.c: Regenerate.
3517 * features/rs6000/powerpc-603.c: Regenerate.
3518 * features/rs6000/powerpc-604.c: Regenerate.
3519 * features/rs6000/powerpc-64.c: Regenerate.
3520 * features/rs6000/powerpc-64l.c: Regenerate.
3521 * features/rs6000/powerpc-7400.c: Regenerate.
3522 * features/rs6000/powerpc-750.c: Regenerate.
3523 * features/rs6000/powerpc-860.c: Regenerate.
3524 * features/rs6000/powerpc-altivec32.c: Regenerate.
3525 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3526 * features/rs6000/powerpc-altivec64.c: Regenerate.
3527 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3528 * features/rs6000/powerpc-e500.c: Regenerate.
3529 * features/rs6000/powerpc-e500l.c: Regenerate.
3530 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3531 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3532 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3533 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3534 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3535 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3536 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3537 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3538 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3539 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3540 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3541 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3542 * features/rs6000/powerpc-vsx32.c: Regenerate.
3543 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3544 * features/rs6000/powerpc-vsx64.c: Regenerate.
3545 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3546 * features/rs6000/rs6000.c: Regenerate.
3547 * features/rx.c: Regenerate.
3548 * features/s390-gs-linux64.c: Regenerate.
3549 * features/s390-linux32.c: Regenerate.
3550 * features/s390-linux32v1.c: Regenerate.
3551 * features/s390-linux32v2.c: Regenerate.
3552 * features/s390-linux64.c: Regenerate.
3553 * features/s390-linux64v1.c: Regenerate.
3554 * features/s390-linux64v2.c: Regenerate.
3555 * features/s390-te-linux64.c: Regenerate.
3556 * features/s390-tevx-linux64.c: Regenerate.
3557 * features/s390-vx-linux64.c: Regenerate.
3558 * features/s390x-gs-linux64.c: Regenerate.
3559 * features/s390x-linux64.c: Regenerate.
3560 * features/s390x-linux64v1.c: Regenerate.
3561 * features/s390x-linux64v2.c: Regenerate.
3562 * features/s390x-te-linux64.c: Regenerate.
3563 * features/s390x-tevx-linux64.c: Regenerate.
3564 * features/s390x-vx-linux64.c: Regenerate.
3565 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3566 from allocate_target_description.
3567 * target-descriptions.c (allocate_target_description): Update
3569 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3570 allocate_target_description.
3572 2020-10-07 Tom Tromey <tromey@adacore.com>
3574 * unittests/search-memory-selftests.c: New file.
3575 * Makefile.in (SELFTESTS_SRCS): Add
3576 unittests/search-memory-selftests.c.
3578 2020-10-07 Tom Tromey <tromey@adacore.com>
3581 * findcmd.c (_initialize_mem_search): Mention that the range is
3584 2020-10-07 Tom Tromey <tromey@adacore.com>
3586 * target.h (simple_search_memory): Don't declare.
3587 * target.c (simple_search_memory): Move to gdbsupport.
3588 (default_search_memory): Update.
3589 * remote.c (remote_target::search_memory): Update.
3591 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3593 * Makefile.in (COMPILE): Add CXXFLAGS.
3594 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3595 (check-headers): Add CXXFLAGS.
3597 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3599 * arc-linux-tdep.h: New file.
3600 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3601 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3602 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3603 arc_linux_gregset, arc_linux_v2_regset,
3604 arc_linux_iterate_over_regset_sections,
3605 arc_linux_core_read_description): Implement.
3606 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3607 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3608 (arc_gdbarch_features_create): Add.
3609 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3611 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3613 * arch/arc.h: Rename "arc_gdbarch_features" to
3614 "arc_arch_features".
3615 * arc-tdep.h: Likewise.
3616 * arc-tdep.c: Likewise.
3618 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3620 * infcmd.c (attach_command): Remove the redundant call to
3621 `clear_proceed_status`.
3623 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3625 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3627 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3629 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3630 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3631 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3633 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3635 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3636 (_initialize_break_catch_sig): Don't allocate array.
3638 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3640 * symtab.c (find_pc_line): Return unmapped addresses when the
3641 requested address is also unmapped.
3643 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3645 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3648 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3650 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3651 type::is_vector instead of TYPE_VECTOR.
3653 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3655 * auto-load.c (auto_load_objfile_script_1): Don't use
3656 debugfile_holder as temporary variable when stripping drive
3659 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3661 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3662 Add TYPE_CODE_COMPLEX.
3663 (amd64_windows_return_value): Fix types returned via XMM0.
3665 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3667 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3668 AArch64/ARM maintainers.
3670 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3672 * NEWS: Mention set/show debug event-loop.
3674 2020-10-02 Tom Tromey <tromey@adacore.com>
3676 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3679 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3681 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3682 * procfs.c (procfs_inferior_created): Remove.
3683 (_initialize_procfs): Don't register procfs_inferior_created.
3685 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3687 * async-event.c (invoke_async_signal_handlers): Add debug
3689 (check_async_event_handlers): Likewise.
3690 * event-top.c (show_debug_event_loop): New function.
3691 (_initialize_event_top): Register "set debug event-loop"
3694 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3696 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3698 * infrun.c: Include gdbsupport/common-debug.h.
3699 * linux-nat.c: Likewise.
3701 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3703 * async-event.h (create_async_signal_handler): Add name
3705 (create_async_event_handler): Likewise.
3706 * async-event.c (struct async_signal_handler) <name>: New field.
3707 (struct async_event_handler) <name>: New field.
3708 (create_async_signal_handler): Assign name.
3709 (create_async_event_handler): Assign name.
3710 * event-top.c (async_init_signals): Pass name when creating
3712 * infrun.c (_initialize_infrun): Likewise.
3713 * record-btrace.c (record_btrace_push_target): Likewise.
3714 * record-full.c (record_full_open): Likewise.
3715 * remote-notif.c (remote_notif_state_allocate): Likewise.
3716 * remote.c (remote_target::open_1): Likewise.
3717 * tui/tui-win.c (tui_initialize_win): Likewise.
3719 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3721 * async-event.c (initialize_async_signal_handlers): Pass name to
3723 * event-top.c (ui_register_input_event_handler): Likewise.
3724 * linux-nat.c (linux_nat_target::async): Likewise.
3725 * run-on-main-thread.c (_initialize_run_on_main_thread):
3727 * ser-base.c (reschedule): Likewise.
3728 (ser_base_async): Likewise.
3729 * tui/tui-io.c: Likewise.
3730 * top.h (struct ui) <num>: New field.
3731 * top.c (highest_ui_num): New variable.
3732 (ui::ui): Initialize num.
3734 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3736 * observable.h <inferior_created>: Remove parameters. Update all
3738 * inferior.h (post_create_inferior): Remove target parameter.
3741 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3743 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3744 and DW_MACRO_undef_strx.
3745 (dwarf_decode_macros): Likewise
3746 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3747 which is the value of DW_AT_str_offsets_base.
3748 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3751 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3753 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3755 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3757 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3758 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3760 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3762 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3764 2020-09-30 Tom de Vries <tdevries@suse.de>
3767 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3769 2020-09-30 Tom Tromey <tromey@adacore.com>
3771 * dwarf2/read.c (handle_variant): Use constant_value.
3773 2020-09-29 Tom Tromey <tom@tromey.com>
3775 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3776 (read_file_scope, dwarf2_get_pc_bounds)
3777 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3778 (read_structure_type, handle_struct_member_die)
3779 (read_enumeration_type, read_array_type, read_set_type)
3780 (read_tag_pointer_type, read_tag_reference_type)
3781 (read_subroutine_type, read_base_type, read_subrange_type)
3782 (read_full_die_1, partial_die_info::read)
3783 (partial_die_info::read, by, new_symbol)
3784 (dwarf2_const_value_data, dwarf2_const_value_attr)
3785 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3786 (prepare_one_comp_unit): Update.
3787 * dwarf2/attribute.h (DW_UNSND): Remove.
3789 2020-09-29 Tom Tromey <tom@tromey.com>
3791 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3792 (read_subroutine_type, partial_die_info::read)
3793 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3794 (dwarf2_add_member_fn): Update.
3795 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3796 * dwarf2/attribute.c (attribute::as_boolean): New method.
3798 2020-09-29 Tom Tromey <tom@tromey.com>
3800 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3801 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3803 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3805 2020-09-29 Tom Tromey <tom@tromey.com>
3807 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3808 the attribute's form.
3810 2020-09-29 Tom Tromey <tom@tromey.com>
3812 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3813 (dwarf2_add_member_fn): Update.
3814 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3815 * dwarf2/attribute.c (attribute::defaulted): New method, from
3816 is_valid_DW_AT_defaulted.
3818 2020-09-29 Tom Tromey <tom@tromey.com>
3820 * dwarf2/read.c (dw2_get_file_names_reader)
3821 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3822 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3823 (dwarf2_symbol_mark_computed): Use as_unsigned.
3824 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3826 <form_is_section_offset>: Update comment.
3828 2020-09-29 Tom Tromey <tom@tromey.com>
3830 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3831 dwarf2_default_access_attribute. Look up attribute.
3832 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3835 2020-09-29 Tom Tromey <tom@tromey.com>
3837 * dwarf2/read.c (skip_one_die): Update.
3838 (read_full_die_1): Change how reprocessing is done.
3839 (partial_die_info::read): Update.
3840 (read_attribute_value): Remove need_reprocess parameter.
3841 (read_attribute): Likewise.
3842 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3845 2020-09-29 Tom Tromey <tom@tromey.com>
3847 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3848 (dwarf2_const_value_attr, dump_die_shallow)
3849 (dwarf2_fetch_constant_bytes): Update.
3850 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3852 <set_address>: New method.
3854 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3855 (attribute::as_string, attribute::as_address): Add assert.
3857 2020-09-29 Tom Tromey <tom@tromey.com>
3859 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3860 (read_attribute_reprocess, read_attribute_value): Update.
3861 (read_attribute): Clear requires_reprocessing.
3862 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3863 form_requires_reprocessing>: New methods.
3864 <string_init>: Clear requires_reprocessing.
3865 <set_unsigned_reprocess>: New method.
3866 <name>: Shrink by one bit.
3867 <requires_reprocessing>: New member.
3868 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3871 2020-09-29 Tom Tromey <tom@tromey.com>
3873 * dwarf2/read.c (read_attribute_value): Update.
3874 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3875 set_unsigned>: New methods.
3876 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3878 2020-09-29 Tom Tromey <tom@tromey.com>
3880 * dwarf2/read.c (get_alignment, read_array_order)
3881 (read_attribute_value, dwarf2_const_value_attr)
3882 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3883 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3887 2020-09-29 Tom Tromey <tom@tromey.com>
3889 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3890 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3892 * dwarf2/attribute.h (struct attribute) <as_signature,
3893 set_signature>: New methods.
3894 (DW_SIGNATURE): Remove.
3896 2020-09-29 Tom Tromey <tom@tromey.com>
3898 * dwarf2/read.c (read_call_site_scope)
3899 (handle_data_member_location, dwarf2_add_member_fn)
3900 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3901 (partial_die_info::read, read_attribute_value)
3902 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3903 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3904 (dwarf2_symbol_mark_computed): Update.
3905 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3908 * dwarf2/attribute.c (attribute::form_is_block): Add
3911 2020-09-29 Tom Tromey <tom@tromey.com>
3913 * dwarf2/read.c (read_cutu_die_from_dwo)
3914 (read_attribute_reprocess, read_attribute_value, read_attribute)
3915 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3916 (dwarf2_fetch_constant_bytes): Update.
3917 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3918 <set_string_noncanonical, set_string_canonical>: New methods.
3919 <string_is_canonical>: Update comment.
3920 <canonical_string_p>: Add assert.
3921 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3922 * dwarf2/attribute.c (attribute::form_is_string): New method.
3923 (attribute::string): Use it.
3925 2020-09-29 Tom Tromey <tom@tromey.com>
3927 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3928 (dump_die_shallow): Use canonical_string_p.
3929 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3932 2020-09-29 Tom Tromey <tom@tromey.com>
3934 * dwarf2/read.c (partial_die_info::read)
3935 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3936 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3937 attribute::as_string.
3939 2020-09-29 Tom Tromey <tom@tromey.com>
3941 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3943 (attribute::string): Don't use DW_STRING.
3944 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3945 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3947 2020-09-29 Tom Tromey <tom@tromey.com>
3949 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3950 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3951 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3952 * dwarf2/attribute.h (struct attribute): Rename methods.
3953 * dwarf2/attribute.c (attribute::as_address): Rename from
3955 (attribute::as_string): Rename from value_as_string.
3957 2020-09-29 Tom Tromey <tom@tromey.com>
3959 * dwarf2/read.c (partial_die_info::read) <case
3960 DW_AT_linkage_name>: Use value_as_string.
3961 (dwarf2_string_attr): Use value_as_string.
3962 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3964 * dwarf2/attribute.c (attribute::value_as_string): New method.
3966 2020-09-29 Pedro Alves <pedro@palves.net>
3968 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3969 defined before using '#pragma GCC diagnostic' instead of checking
3972 2020-09-28 Tom Tromey <tom@tromey.com>
3974 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3975 (handle_signal_stop): Update.
3976 * procfs.c (procfs_target::insert_watchpoint): Update.
3977 * target.h (target_have_steppable_watchpoint): Now a function.
3979 2020-09-28 Tom Tromey <tom@tromey.com>
3981 * infrun.c (set_schedlock_func): Update.
3982 * target.h (target_can_lock_scheduler): Now a function.
3984 2020-09-28 Tom Tromey <tom@tromey.com>
3986 * inferior.h (class inferior) <has_execution>: Update.
3987 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3988 * valops.c (find_function_in_inferior)
3989 (value_allocate_space_in_inferior): Update.
3990 * top.c (kill_or_detach): Update.
3991 * target.c (target_preopen, set_target_permissions): Update.
3992 (target_has_execution_current): Remove.
3993 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3995 * solib.c (update_solib_list, reload_shared_libraries): Update.
3996 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3997 * solib-dsbt.c (enable_break): Update.
3998 * score-tdep.c (score7_fetch_inst): Update.
3999 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
4001 * remote.c (remote_target::start_remote)
4002 (remote_target::remote_check_symbols, remote_target::open_1)
4003 (remote_target::remote_detach_1, remote_target::verify_memory)
4004 (remote_target::xfer_partial, remote_target::read_description)
4005 (remote_target::get_min_fast_tracepoint_insn_len): Update.
4006 * record-full.c (record_full_open_1): Update.
4007 * record-btrace.c (record_btrace_target_open): Update.
4008 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4009 (value_nsstring): Update.
4010 * linux-thread-db.c (add_thread_db_info)
4011 (thread_db_find_new_threads_silently, check_thread_db_callback)
4012 (try_thread_db_load_1, record_thread): Update.
4013 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
4015 * linux-fork.c (checkpoint_command): Update.
4016 * infrun.c (set_non_stop, set_observer_mode)
4017 (check_multi_target_resumption, for_each_just_stopped_thread)
4018 (maybe_remove_breakpoints, normal_stop)
4019 (class infcall_suspend_state): Update.
4020 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
4021 (info_program_command, attach_command): Update.
4022 * infcall.c (call_function_by_hand_dummy): Update.
4023 * inf-loop.c (inferior_event_handler): Update.
4024 * gcore.c (gcore_command, derive_heap_segment): Update.
4025 * exec.c (exec_file_command): Update.
4026 * eval.c (evaluate_subexp): Update.
4027 * compile/compile.c (compile_to_object): Update.
4028 * cli/cli-dump.c (restore_command): Update.
4029 * breakpoint.c (update_watchpoint)
4030 (update_inserted_breakpoint_locations)
4031 (insert_breakpoint_locations, get_bpstat_thread): Update.
4032 * target.h (target_has_execution): Remove macro.
4033 (target_has_execution_current): Don't declare.
4034 (target_has_execution): Rename from target_has_execution_1. Add
4037 2020-09-28 Tom Tromey <tom@tromey.com>
4039 * mi/mi-main.c (exec_reverse_continue)
4040 (mi_cmd_list_target_features): Update.
4041 * infrun.c (set_exec_direction_func): Update.
4042 * target.c (default_execution_direction): Update.
4043 * reverse.c (exec_reverse_once): Update.
4044 * target.h (target_can_execute_reverse): Now a function.
4046 2020-09-28 Tom Tromey <tom@tromey.com>
4048 * tui/tui-regs.c (tui_get_register)
4049 (tui_data_window::show_registers): Update.
4050 * thread.c (scoped_restore_current_thread::restore)
4051 (scoped_restore_current_thread::scoped_restore_current_thread):
4053 * regcache-dump.c (regcache_print): Update.
4054 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
4056 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
4057 * mep-tdep.c (current_me_module, current_options): Update.
4058 * linux-thread-db.c (thread_db_load): Update.
4059 * infcmd.c (registers_info, info_vector_command)
4060 (info_float_command): Update.
4061 * ia64-tdep.c (ia64_frame_prev_register)
4062 (ia64_sigtramp_frame_prev_register): Update.
4063 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
4064 * gcore.c (derive_stack_segment): Update.
4065 * frame.c (get_current_frame, has_stack_frames): Update.
4066 * findvar.c (language_defn::read_var_value): Update.
4067 * arm-tdep.c (arm_pc_is_thumb): Update.
4068 * target.c (target_has_registers): Rename from
4069 target_has_registers_1.
4070 * target.h (target_has_registers): Remove macro.
4071 (target_has_registers): Rename from target_has_registers_1.
4073 2020-09-28 Tom Tromey <tom@tromey.com>
4075 * windows-tdep.c (tlb_make_value): Update.
4076 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4077 * thread.c (scoped_restore_current_thread::restore)
4078 (scoped_restore_current_thread::scoped_restore_current_thread)
4079 (thread_command): Update.
4080 * stack.c (backtrace_command_1, frame_apply_level_command)
4081 (frame_apply_all_command, frame_apply_command): Update.
4082 * infrun.c (siginfo_make_value, restore_infcall_control_state):
4084 * gcore.c (derive_stack_segment): Update.
4085 * frame.c (get_current_frame, has_stack_frames): Update.
4086 * auxv.c (info_auxv_command): Update.
4087 * ada-tasks.c (ada_build_task_list): Update.
4088 * target.c (target_has_stack): Rename from target_has_stack_1.
4089 * target.h (target_has_stack): Remove macro.
4090 (target_has_stack): Rename from target_has_stack_1.
4092 2020-09-28 Tom Tromey <tom@tromey.com>
4094 * target.c (target_has_memory): Rename from target_has_memory_1.
4095 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4096 * thread.c (scoped_restore_current_thread::restore)
4097 (scoped_restore_current_thread::scoped_restore_current_thread):
4099 * frame.c (get_current_frame, has_stack_frames): Update.
4100 * target.h (target_has_memory): Remove macro.
4101 (target_has_memory): Rename from target_has_memory_1.
4103 2020-09-28 Tom Tromey <tom@tromey.com>
4105 * target.c (target_has_all_memory_1): Remove.
4106 * target.h (target_has_all_memory): Remove define.
4107 (target_has_all_memory_1): Don't declare.
4109 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
4111 * ser-base.c: Adjust comments formatting.
4113 2020-09-27 Tom Tromey <tom@tromey.com>
4116 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
4118 2020-09-27 Tom Tromey <tom@tromey.com>
4121 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
4123 2020-09-27 Tom Tromey <tom@tromey.com>
4125 * unittests/tui-selftests.c: Update.
4126 * tui/tui-winsource.h (struct tui_source_window_base)
4127 <extra_margin, show_line_number, refresh_pad>: New methods.
4128 <m_max_length, m_pad>: New members.
4129 (tui_copy_source_line): Update.
4130 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
4131 first_col, line_width, ndigits parameters. Add length.
4132 (tui_source_window_base::show_source_line): Write to pad. Line
4134 (tui_source_window_base::refresh_pad): New method.
4135 (tui_source_window_base::show_source_content): Write to pad. Call
4137 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
4139 (tui_source_window_base::update_exec_info): Call
4141 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
4143 <m_digits>: New member.
4144 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
4146 (tui_source_window::show_line_number): New method.
4147 * tui/tui-io.h (tui_puts): Fix comment.
4148 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
4151 2020-09-27 Tom Tromey <tom@tromey.com>
4153 * tui/tui-winsource.c
4154 (tui_source_window_base::set_is_exec_point_at): Don't call
4157 2020-09-27 Tom Tromey <tom@tromey.com>
4159 * python/py-tui.c (class tui_py_window) <refresh_window>: New
4162 <cursor_x, cursor_y>: Remove.
4163 <m_inner_window>: New member.
4164 (tui_py_window::rerender): Create inner window.
4165 (tui_py_window::output): Write to inner window.
4167 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
4170 * cli/cli-script.c (execute_control_commands): don't set
4171 instream to nullptr here as this breaks the from_tty argument
4172 to gdb.execute in Python.
4173 (execute_user_command): set instream to nullptr here instead.
4175 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
4177 * infrun.h (infrun_debug_printf): Fix formatting.
4178 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
4180 2020-09-25 Saagar Jha <saagar@saagarjha.com>
4182 * compile/compile-object-load.h (struct munmap_list): Add
4183 explicitly-defined move constructor.
4185 2020-09-24 Tom Tromey <tromey@adacore.com>
4188 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
4190 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
4191 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
4192 (tui_prev_win): Rewrite.
4194 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
4196 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
4197 in WOW64 processes as SIGINT.
4198 * nat/windows-nat.h: Make wow64_process a shared variable.
4199 * windows-nat.c: Remove static wow64_process variable.
4201 2020-09-23 Tom Tromey <tom@tromey.com>
4204 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
4205 offset and bit size.
4206 * printcmd.c (print_scalar_formatted): Handle zero-length
4208 (print_scalar_formatted): Use bit_size_differs_p.
4209 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
4211 (union type_specific): <int_stuff>: New member.
4212 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
4214 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
4215 TYPE_SPECIFIC_FIELD.
4216 (recursive_dump_type, copy_type_recursive): Update.
4217 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4218 DW_AT_data_bit_offset.
4220 2020-09-23 Tom Tromey <tom@tromey.com>
4222 * utils.h (class gdb_argv): Add move operators.
4223 <append>: New methods.
4224 * compile/compile.c (build_argc_argv): Remove.
4225 (compile_args_argc): Remove.
4226 (compile_args_argv): Change type.
4227 (set_compile_args): Simplify.
4228 (append_args): Remove.
4229 (filter_args): Remove argcp parameter.
4230 (get_args): Return gdb_argv. Simplify.
4231 (compile_to_object): Update.
4233 2020-09-23 Tom Tromey <tom@tromey.com>
4235 * compile/compile-object-run.c (do_module_cleanup)
4236 <~do_module_cleanup> :Remove.
4237 (do_module_cleanup): Update.
4238 * compile/compile-object-load.h (struct munmap_list): Add move
4239 assignment operator.
4240 <source_file>: Now a std::string.
4241 <munmap_list>: Rename. No longer a pointer.
4242 * compile/compile-object-load.c (struct setup_sections_data): Add
4244 <setup_one_section>: Declare.
4245 <munmap_list>: Move earlier.
4246 <m_bfd>: New member.
4247 <m_last_size, m_last_section_first, m_last_prot,
4248 m_last_max_alignment>: Rename, add initializers where needed.
4249 (setup_sections_data::setup_one_section): Rename from
4250 setup_sections. Update.
4251 (compile_object_load): Update. Don't use bfd_map_over_sections.
4253 2020-09-23 Tom Tromey <tom@tromey.com>
4255 * compile/compile-object-run.c (struct do_module_cleanup): Add
4256 parameters to constructor. Update destructor.
4257 <source_file, scope, scope_data, out_value_type, out_value_addr,
4258 munmap_list_head, objfile_name_string>: Remove.
4259 <module>: New member.
4260 (do_module_cleanup): Update.
4261 (compile_object_run): Update.
4263 2020-09-23 Tom Tromey <tom@tromey.com>
4265 * compile/compile.c (eval_compile_command): Update.
4266 * compile/compile-object-run.h (compile_object_run): Take a
4268 * compile/compile-object-run.c (compile_object_run): Take a
4270 * compile/compile-object-load.h (struct compile_module): Add
4271 constructor, destructor.
4272 (compile_module_up): New typedef.
4273 (compile_object_load): Return compile_object_up.
4274 * compile/compile-object-load.c (compile_object_load): Return
4277 2020-09-23 Tom Tromey <tom@tromey.com>
4279 * compile/compile-object-run.c (struct do_module_cleanup): Add
4280 constructor, destructor.
4281 <objfile_name_string>: Don't use struct hack.
4282 (do_module_cleanup): Use delete.
4283 (compile_object_run): Use new.
4285 2020-09-23 Tom Tromey <tom@tromey.com>
4287 * compile/compile-cplus-types.c
4288 (compile_cplus_convert_struct_or_union): Use std::vector.
4289 (compile_cplus_convert_func): Likewise.
4290 * compile/compile-c-types.c (convert_func): Use std::vector.
4292 2020-09-21 Tom Tromey <tromey@adacore.com>
4294 * sparc-tdep.c (sparc32_skip_prologue): Use
4295 skip_prologue_using_sal.
4297 2020-09-19 Tom Tromey <tom@tromey.com>
4299 * symfile.c (add_section_size_callback): Remove.
4300 (load_one_section): Rename from load_section_callback. Change
4302 (generic_load): Use foreach.
4304 2020-09-19 Tom Tromey <tom@tromey.com>
4306 * exec.c (add_to_section_table): Remove.
4307 (build_section_table): Use foreach.
4309 2020-09-19 Tom Tromey <tom@tromey.com>
4311 * elfread.c (elf_locate_sections): Change parameters.
4312 (elf_symfile_read): Use foreach.
4314 2020-09-19 Tom Tromey <tom@tromey.com>
4316 * cli/cli-dump.c (struct callback_data): Remove.
4317 (restore_one_section): Rename from restore_section_callback.
4319 (restore_binary_file): Change parameters.
4320 (restore_command): Use foreach.
4322 2020-09-19 Tom Tromey <tom@tromey.com>
4324 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4325 (gcore_copy_callback): Likewise.
4326 (gcore_memory_sections): Use foreach.
4328 2020-09-19 Tom Tromey <tom@tromey.com>
4330 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4331 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4333 (generic_elf_osabi_sniffer): Use foreach.
4334 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4335 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4337 2020-09-19 Tom Tromey <tom@tromey.com>
4339 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4340 (dwarf2_get_dwz_file): Use foreach.
4341 (dwarf2_locate_dwo_sections): Change parameters.
4342 (open_and_init_dwo_file): Use foreach.
4343 (dwarf2_locate_common_dwp_sections): Change parameters.
4344 (open_and_init_dwp_file): Use foreach.
4346 2020-09-19 Tom Tromey <tom@tromey.com>
4348 * symfile.h: (find_lowest_section): Don't declare.
4349 * symfile.c (find_lowest_section): Now static. Change
4351 (struct place_section_arg): Remove.
4352 (place_section): Change parameters.
4353 (addr_info_make_relative): Use foreach.
4354 (symfile_dummy_outputs): Remove.
4355 (default_symfile_relocate): Use foreach.
4357 2020-09-19 Tom Tromey <tom@tromey.com>
4359 * objfiles.c (add_to_objfile_sections): Rename from
4360 add_to_objfile_sections_full.
4361 (add_to_objfile_sections): Remove.
4362 (build_objfile_section_table): Use foreach.
4364 2020-09-19 Tom Tromey <tom@tromey.com>
4366 * stap-probe.c (get_stap_base_address_1): Remove.
4367 (get_stap_base_address): Use foreach.
4369 2020-09-19 Tom Tromey <tom@tromey.com>
4371 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4373 (gdb_bfd_close_or_warn): Use foreach.
4375 2020-09-19 Tom Tromey <tom@tromey.com>
4377 * corelow.c (add_to_thread_list): Change parameters.
4378 (core_target_open): Use foreach.
4380 2020-09-19 Tom Tromey <tom@tromey.com>
4382 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4385 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4387 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4390 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4392 * eval.c: Remove 'f-lang.h' include.
4393 (value_f90_subarray): Moved to f-lang.c.
4394 (eval_call): Renamed to...
4395 (evaluate_subexp_do_call): ...this, is no longer static, header
4396 comment moved into header file.
4397 (evaluate_funcall): Update call to eval_call.
4398 (skip_undetermined_arglist): Moved to f-lang.c.
4399 (fortran_value_subarray): Likewise.
4400 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4401 moved to evaluate_subexp_f.
4402 (calc_f77_array_dims): Moved to f-lang.c
4403 * expprint.c (print_subexp_funcall): New function.
4404 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4405 moved to print_subexp_f, OP_FUNCALL uses new function.
4406 (dump_subexp_body_funcall): New function.
4407 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4408 moved to dump_subexp_f, OP_FUNCALL uses new function.
4409 * expression.h (evaluate_subexp_do_call): Declare.
4410 * f-lang.c (value_f90_subarray): Moved from eval.c.
4411 (skip_undetermined_arglist): Likewise.
4412 (calc_f77_array_dims): Likewise.
4413 (fortran_value_subarray): Likewise.
4414 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4415 (operator_length_f): Likewise.
4416 (print_subexp_f): Likewise.
4417 (dump_subexp_body_f): Likewise.
4418 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4419 declaration of this operation to here.
4420 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4421 support moved to operator_length_f.
4422 * parser-defs.h (dump_subexp_body_funcall): Declare.
4423 (print_subexp_funcall): Declare.
4424 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4425 fortran-operator.def.
4427 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4429 * eval.c (fortran_value_subarray): New function, content is taken
4431 (evaluate_subexp_standard): ...here, in two places. Now arrays
4432 and strings both call the new function.
4433 (calc_f77_array_dims): Add header comment, handle strings.
4435 2020-09-18 Victor Collod <vcollod@nvidia.com>
4438 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4439 (i386_analyze_prologue): Call i386_skip_endbr.
4441 2020-09-18 Tom Tromey <tromey@adacore.com>
4443 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4444 (windows_nat_target::wait): Update.
4445 * target/wait.h (enum target_wait_flag): New. Use
4446 DEF_ENUM_FLAGS_TYPE.
4447 * target/target.h (target_wait): Change type of options.
4448 * target.h (target_options_to_string, default_target_wait):
4450 (struct target_ops) <wait>: Change type of options.
4451 * target.c (target_wait, default_target_wait, do_option): Change
4453 (target_options_to_string): Likewise.
4454 * target-delegates.c: Rebuild.
4455 * target-debug.h (target_debug_print_target_wait_flags): Rename
4456 from target_debug_print_options.
4457 * sol-thread.c (class sol_thread_target) <wait>: Update.
4458 (sol_thread_target::wait): Update.
4459 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4460 (rs6000_nat_target::wait): Update.
4461 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4463 (remote_target::wait_ns, remote_target::wait_as): Change type of
4465 (remote_target::wait): Update.
4466 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4467 (gdbsim_target::wait): Update.
4468 * record-full.c (class record_full_base_target) <wait>: Update.
4469 (record_full_wait_1): Change type of "options".
4470 (record_full_base_target::wait): Update.
4471 * record-btrace.c (class record_btrace_target) <wait>: Update.
4472 (record_btrace_target::wait): Update.
4473 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4475 (ravenscar_thread_target::wait): Update.
4476 * procfs.c (class procfs_target) <wait>: Update.
4477 (procfs_target::wait): Update.
4478 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4479 * obsd-nat.c (obsd_nat_target::wait): Update.
4480 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4481 (nto_procfs_target::wait): Update.
4482 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4483 * nbsd-nat.c (nbsd_wait): Change type of "options".
4484 (nbsd_nat_target::wait): Update.
4485 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4486 (thread_db_target::wait): Update.
4487 * linux-nat.h (class linux_nat_target) <wait>: Update.
4488 * linux-nat.c (linux_nat_target::wait): Update.
4489 (linux_nat_wait_1): Update.
4490 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4492 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4493 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4494 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4495 (go32_nat_target::wait): Update.
4496 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4497 * gnu-nat.c (gnu_nat_target::wait): Update.
4498 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4499 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4500 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4501 * darwin-nat.c (darwin_nat_target::wait): Update.
4502 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4503 (bsd_uthread_target::wait): Update.
4504 * aix-thread.c (class aix_thread_target) <wait>: Update.
4505 (aix_thread_target::wait): Update.
4507 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4509 * compile/compile-object-run.c (create_copied_type_recursive): New
4511 (compile_object_run): Use new function.
4513 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4515 * NEWS: Mention x86_64 Cygwin core file support.
4517 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4519 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4520 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4522 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4524 * windows-tdep.h: Add prototypes.
4525 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4526 (i386_windows_core_pid_to_str): Move and rename ...
4527 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4528 (windows_core_pid_to_str): ... and here.
4529 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4531 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4532 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4533 (amd64_windows_init_abi_common): ... and register.
4535 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4537 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4538 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4540 2020-09-18 Pedro Alves <pedro@palves.net>
4543 * thread.c (thread_find_command): Switch inferior before calling
4546 2020-09-17 Tom Tromey <tromey@adacore.com>
4548 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4549 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4550 (tdesc_arch_data_up): New typedef.
4551 (tdesc_use_registers, tdesc_data_alloc): Update.
4552 (tdesc_data_cleanup): Don't declare.
4553 * target-descriptions.c (tdesc_data_alloc): Return a
4555 (tdesc_arch_data_deleter::operator()): Rename from
4556 tdesc_data_cleanup. Change argument type.
4557 (tdesc_use_registers): Change early_data to an rvalue reference.
4558 (tdesc_use_registers): Don't use delete.
4559 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4560 * s390-tdep.c (s390_gdbarch_init): Update.
4561 * rx-tdep.c (rx_gdbarch_init): Update.
4562 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4563 * riscv-tdep.c (riscv_gdbarch_init): Update.
4564 * or1k-tdep.c (or1k_gdbarch_init): Update.
4565 * nios2-tdep.c (nios2_gdbarch_init): Update.
4566 * nds32-tdep.c (nds32_gdbarch_init): Update.
4567 * mips-tdep.c (mips_gdbarch_init): Update.
4568 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4569 * m68k-tdep.c (m68k_gdbarch_init): Update.
4570 * i386-tdep.c (i386_gdbarch_init): Update.
4571 * arm-tdep.c (arm_gdbarch_init): Update.
4572 * arc-tdep.c (arc_tdesc_init): Update.
4573 (arc_gdbarch_init): Update.
4574 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4576 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4578 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4579 for WOW64 processes.
4581 2020-09-17 Tom Tromey <tom@tromey.com>
4583 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4585 2020-09-17 Tom Tromey <tom@tromey.com>
4587 * value.c (preserve_values): Update.
4588 * python/py-type.c (save_objfile_types): Update.
4589 * guile/scm-type.c (save_objfile_types): Update.
4590 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4591 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4592 * compile/compile-object-run.c (compile_object_run): Update.
4594 2020-09-17 Tom Tromey <tom@tromey.com>
4596 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4598 <m_table>: Now htab_up.
4599 * typeprint.c (typedef_hash_table::recursively_update)
4600 (typedef_hash_table::add_template_parameters)
4601 (typedef_hash_table::typedef_hash_table): Update.
4602 (typedef_hash_table::~typedef_hash_table): Remove.
4603 (typedef_hash_table::typedef_hash_table)
4604 (typedef_hash_table::find_global_typedef)
4605 (typedef_hash_table::find_typedef): Update.
4607 2020-09-17 Tom Tromey <tom@tromey.com>
4609 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4611 2020-09-17 Tom Tromey <tom@tromey.com>
4613 * linespec.c (class decode_compound_collector)
4614 <~decode_compound_collector>: Remove.
4615 <m_unique_syms>: Now htab_up.
4616 (decode_compound_collector::operator ()): Update.
4617 (class symtab_collector) <~symtab_collector>: Remove.
4618 <m_symtab_table>: Now htab_up.
4619 (symtab_collector::operator ()): Update.
4621 2020-09-17 Tom Tromey <tom@tromey.com>
4623 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4624 (filename_seen_cache::clear): Update.
4625 (~filename_seen_cache): Remove.
4626 (filename_seen_cache::seen): Update.
4627 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4629 <~filename_seen_cache>: Remove.
4632 2020-09-17 Tom Tromey <tom@tromey.com>
4634 * completer.c (completion_tracker::discard_completions)
4635 (completion_tracker::~completion_tracker)
4636 (completion_tracker::maybe_add_completion)
4637 (completion_tracker::remove_completion)
4638 (completion_tracker::recompute_lowest_common_denominator)
4639 (completion_tracker::build_completion_result): Update.
4640 * completer.h (class completion_tracker) <have_completions>:
4642 <m_entries_hash>: Now htab_up.
4644 2020-09-17 Tom Tromey <tom@tromey.com>
4646 * breakpoint.c (ambiguous_names_p): Use htab_up.
4648 2020-09-17 Tom Tromey <tom@tromey.com>
4650 * auto-load.c (struct auto_load_pspace_info)
4651 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4652 <loaded_script_files, loaded_script_texts>: Change type to
4654 (~auto_load_pspace_info) Remove.
4655 (init_loaded_scripts_info, maybe_add_script_file)
4656 (maybe_add_script_text, auto_load_info_scripts): Update.
4658 2020-09-17 Tom Tromey <tromey@adacore.com>
4660 * c-exp.y (name_obstack): Now static.
4662 2020-09-17 Chungyi Chi <demonic@csie.io>
4664 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4666 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4668 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4669 (add_solib_catchpoint): Likewise.
4670 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4672 (add_solib_catchpoint): Change int parameter/variable to bool.
4673 (catch_load_or_unload): Likewise.
4674 (init_catchpoint): Likewise.
4675 (create_fork_vfork_event_catchpoint): Likewise.
4676 (catch_fork_command_1): Likewise.
4677 (catch_exec_command_1): Likewise.
4679 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4681 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4682 Change instance_flags to m_instance_flags.
4684 2020-09-16 Tom Tromey <tromey@adacore.com>
4687 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4689 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4691 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4693 (fbsd_nat_target::insert_exec_catchpoint)
4694 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4695 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4696 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4698 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4700 * configure.ac: Remove check for kinfo_getvmmap().
4701 * configure, config.in: Regenerate.
4702 * fbsd-nat.c (fbsd_read_mapping): Remove
4703 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4704 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4705 kinfo_get_vmmap() are always present.
4707 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4709 * fbsd-nat.c: Always include support for
4710 TARGET_OBJECT_SIGNAL_INFO.
4712 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4714 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4715 sysctl and remove procfs fallback.
4717 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4719 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4720 * fbsd-nat.h: Likewise.
4722 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4724 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4727 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4729 * ada-lang.c (ada_language_data): Delete.
4730 (ada_language): Remove references to ada_language_data.
4731 * c-lang.c (c_language_data): Delete.
4732 (c_language): Remove references to c_language_data.
4733 (cplus_language_data): Delete.
4734 (cplus_language): Remove references to cplus_language_data.
4735 (asm_language_data): Delete.
4736 (asm_language): Remove references to asm_language_data.
4737 (minimal_language_data): Delete.
4738 (minimal_language): Remove references to minimal_language_data.
4739 * d-lang.c (d_language_data): Delete.
4740 (d_language): Remove references to d_language_data.
4741 * f-lang.c (f_language_data): Delete.
4742 (f_language): Remove references to f_language_data.
4743 * go-lang.c (go_language_data): Delete.
4744 (go_language): Remove references to go_language_data.
4745 * language.c (unknown_language_data): Delete.
4746 (unknown_language): Remove references to unknown_language_data.
4747 (auto_language_data): Delete.
4748 (auto_language): Remove references to auto_language_data.
4749 * language.h (language_data): Delete struct.
4750 (language_defn): No longer inherit from language_data.
4751 * m2-lang.c (m2_language_data): Delete.
4752 (m2_language): Remove references to m2_language_data.
4753 * objc-lang.c (objc_language_data): Delete.
4754 (objc_language): Remove references to objc_language_data.
4755 * opencl-lang.c (opencl_language_data): Delete.
4756 (opencl_language): Remove references to opencl_language_data.
4757 * p-lang.c (pascal_language_data): Delete.
4758 (pascal_language): Remove references to pascal_language_data.
4759 * rust-lang.c (rust_language_data): Delete.
4760 (rust_language): Remove references to rust_language_data.
4762 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4764 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4766 (ada_language::opcode_print_table): New member function.
4767 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4768 (c_language::opcode_print_table): New member function.
4769 (cplus_language_data): Remove la_op_print_tab initializer.
4770 (cplus_language::opcode_print_table): New member function.
4771 (asm_language_data): Remove la_op_print_tab initializer.
4772 (asm_language::opcode_print_table): New member function.
4773 (minimal_language_data): Remove la_op_print_tab initializer.
4774 (minimal_language::opcode_print_table): New member function.
4775 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4776 (d_language::opcode_print_table): New member function.
4777 * expprint.c (print_subexp_standard): Update call to
4779 (op_string): Likewise.
4780 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4781 (f_language::opcode_print_table): New member function.
4782 * go-lang.c (go_language_data): Remove la_op_print_tab
4784 (go_language::opcode_print_table): New member function.
4785 * language.c (unknown_language_data): Remove la_op_print_tab
4787 (unknown_language::opcode_print_table): New member function.
4788 (auto_language_data): Remove la_op_print_tab initializer.
4789 (auto_language::opcode_print_table): New member function.
4790 * language.h (language_data): Remove la_op_print_tab field.
4791 (language_defn::opcode_print_table): Declare new member function.
4792 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4794 (m2_language::opcode_print_table): New member function.
4795 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4797 (objc_language::opcode_print_table): New member function.
4798 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4800 (opencl_language::opcode_print_table): New member function.
4801 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4803 (pascal_language::opcode_print_table): New member function.
4804 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4806 (rust_language::opcode_print_table): New member function.
4808 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4810 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4811 (ada_language::expression_ops): New member function.
4812 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4813 (c_language::expression_ops): New member function.
4814 (cplus_language_data): Remove la_exp_desc initializer.
4815 (cplus_language::expression_ops): New member function.
4816 (asm_language_data): Remove la_exp_desc initializer.
4817 (asm_language::expression_ops): New member function.
4818 (minimal_language_data): Remove la_exp_desc initializer.
4819 (minimal_language::expression_ops): New member function.
4820 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4821 (d_language::expression_ops): New member function.
4822 * eval.c (evaluate_subexp): Update call to expression_ops.
4823 * expprint.c (print_subexp): Likewise.
4824 (op_name): Likewise.
4825 (dump_subexp_body): Likewise.
4826 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4827 (f_language::expression_ops): New member function.
4828 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4829 (go_language::expression_ops): New member function.
4830 * language.c (language_defn::expression_ops): New function.
4831 (unknown_language_data): Remove la_exp_desc initializer.
4832 (auto_language_data): Likewise.
4833 * language.h (language_data): Remove la_exp_desc field.
4834 (language_defn::expression_ops): Declare new member function.
4835 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4836 (m2_language::expression_ops): New member function.
4837 * objc-lang.c (objc_language_data): Remove la_exp_desc
4839 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4841 (opencl_language::expression_ops): New member function.
4842 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4843 * parse.c (operator_length): Update call to expression_ops.
4844 (exp_iterate): Likewise.
4845 * rust-lang.c (rust_language_data): Remove la_exp_desc
4847 (ruse_language::expression_ops): New member function.
4849 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4851 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4853 (ada_language::varobj_ops): New member function.
4854 * c-lang.c (c_language_data): Remove la_varobj_ops
4856 (cplus_language_data): Likewise.
4857 (cplus_language::varobj_ops): New member function.
4858 (asm_language_data): Remove la_varobj_ops initializer.
4859 (minimal_language_data): Likewise.
4860 * d-lang.c (d_language_data): Likewise.
4861 * f-lang.c (f_language_data): Likewise.
4862 * go-lang.c (go_language_data): Likewise.
4863 * language.c (language_defn::varobj_ops): New function.
4864 (unknown_language_data): Remove la_varobj_ops
4866 (auto_language_data): Likewise.
4867 * language.h (language_data): Remove la_varobj_ops field.
4868 (language_defn::varobj_ops): Declare new member function.
4869 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4870 * objc-lang.c (objc_language_data): Likewise.
4871 * opencl-lang.c (opencl_language_data): Likewise.
4872 * p-lang.c (pascal_language_data): Likewise.
4873 * rust-lang.c (rust_language_data): Likewise.
4874 * varobj.c (varobj_create): Update call to varobj_ops.
4875 * varobj.h (default_varobj_ops): Delete define.
4877 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4879 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4881 * c-lang.c (c_language_data): Likewise.
4882 (c_language::macro_expansion): New member function.
4883 (cplus_language_data): Likewise.
4884 (cplus_language::macro_expansion): New member function.
4885 (asm_language_data): Likewise.
4886 (asm_language::macro_expansion): New member function.
4887 (minimal_language_data): Likewise.
4888 (minimal_language::macro_expansion): New member function.
4889 * d-lang.c (d_language_data): Remove la_macro_expansion
4891 * f-lang.c (f_language_data): Likewise.
4892 * go-lang.c (go_language_data): Likewise.
4893 * language.c (unknown_language_data): Likewise.
4894 (auto_language_data): Likewise.
4895 * language.h (language_data): Remove la_macro_expansion field.
4896 (language_defn::macro_expansion): New member function.
4897 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4899 * objc-lang.c (objc_language_data): Likewise.
4900 (objc_language::macro_expansion): New member function.
4901 * opencl-lang.c (opencl_language_data): Likewise.
4902 (opencl_language::macro_expansion): New member function.
4903 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4905 * rust-lang.c (rust_language_data): Likewise.
4906 * symtab.c (default_collect_symbol_completion_matches_break_on):
4907 Update call to macro_expansion.
4909 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4911 * ada-lang.c (ada_language_data): Remove la_array_ordering
4913 * c-lang.c (c_language_data): Likewise.
4914 (cplus_language_data): Likewise.
4915 (asm_language_data): Likewise.
4916 (minimal_language_data): Likewise.
4917 * d-lang.c (d_language_data): Likewise.
4918 * dwarf2/read.c (read_array_order): Update for call to
4920 * f-lang.c (f_language_data): Remove la_array_ordering
4922 (f_language::array_ordering): New member function.
4923 * go-lang.c (go_language_data): Remove la_array_ordering
4925 * language.c (unknown_language_data): Likewise.
4926 (auto_language_data): Likewise.
4927 * language.h (language_data): Delete la_array_ordering field.
4928 (language_defn::array_ordering): New member function.
4929 * m2-lang.c (m2_language_data): Remove la_array_ordering
4931 * objc-lang.c (objc_language_data): Likewise.
4932 * opencl-lang.c (opencl_language_data): Likewise.
4933 * p-lang.c (pascal_language_data): Likewise.
4934 * rust-lang.c (rust_language_data): Likewise.
4936 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4938 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4940 * c-lang.c (c_language_data): Likewise.
4941 (cplus_language_data): Likewise.
4942 (asm_language_data): Likewise.
4943 (minimal_language_data): Likewise.
4944 * d-lang.c (d_language_data): Likewise.
4945 * f-lang.c (f_language_data): Likewise.
4946 (f_language::case_sensitivity): New member function.
4947 * go-lang.c (go_language_data): Remove la_case_sensitivity
4949 * language.c (enum case_mode): Moved here from language.h.
4950 (case_mode): Make static.
4951 (show_case_command): Update for case_sensitivity being a method.
4952 (set_case_command): Likewise.
4953 (set_range_case): Likewise.
4954 (unknown_language_data): Remove la_case_sensitivity initializer.
4955 (auto_language_data): Likewise.
4956 * language.h (case_mode): Delete, move enum declaration to
4958 (language_data): Delete la_case_sensitivity field.
4959 (language_defn::case_sensitivity): New member function.
4960 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4962 * objc-lang.c (objc_language_data): Likewise.
4963 * opencl-lang.c (opencl_language_data): Likewise.
4964 * p-lang.c (pascal_language_data): Likewise.
4965 * rust-lang.c (rust_language_data): Likewise.
4967 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4969 * ada-lang.c (ada_language_data): Remove la_range_check
4971 * c-lang.c (c_language_data): Likewise.
4972 (cplus_language_data): Likewise.
4973 (asm_language_data): Likewise.
4974 (minimal_language_data): Likewise.
4975 * d-lang.c (d_language_data): Likewise.
4976 * f-lang.c (f_language_data): Likewise.
4977 (f_language::range_checking_on_by_default): New member function.
4978 * go-lang.c (go_language_data): Remove la_range_check initializer.
4979 * language.c (enum range_mode): Moved here from language.h.
4980 (range_mode): Made static.
4981 (show_range_command): Update to use
4982 range_checking_on_by_default.
4983 (set_range_command): Likewise.
4984 (set_range_case): Likewise.
4985 (unknown_language_data): Remove la_range_check initializer.
4986 (auto_language_data): Likewise.
4987 * language.h (range_mode): Delete. Enum definition moved to
4989 (language_data): Remove la_range_check field.
4990 (language_defn::range_checking_on_by_default): New member
4992 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4993 (m2_language::range_checking_on_by_default): New member function.
4994 * objc-lang.c (objc_language_data): Remove la_range_check
4996 * opencl-lang.c (opencl_language_data): Likewise.
4997 * p-lang.c (pascal_language_data): Likewise.
4998 (pascal_language::range_checking_on_by_default): New member
5000 * rust-lang.c (rust_language_data): Remove la_range_check
5002 (rust_language::range_checking_on_by_default): New member
5005 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5007 * dwarf2/read.c (dwarf2_physname): Remove special case for
5009 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
5012 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5014 * ada-lang.c (ada_language_data): Remove
5015 la_store_sym_names_in_linkage_form_p initializer.
5016 (ada_language::store_sym_names_in_linkage_form_p): New member
5018 * c-lang.c (c_language_data): Remove
5019 la_store_sym_names_in_linkage_form_p initializer.
5020 (c_language::store_sym_names_in_linkage_form_p): New member
5022 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
5024 (asm_language_data): Likewise.
5025 (asm_language::store_sym_names_in_linkage_form_p): New member
5027 (minimal_language_data): Remove
5028 la_store_sym_names_in_linkage_form_p initializer.
5029 (minimal_language::store_sym_names_in_linkage_form_p): New member
5031 * d-lang.c (d_language_data): Remove
5032 la_store_sym_names_in_linkage_form_p initializer.
5033 * dwarf2/read.c (dwarf2_physname): Update call to
5034 store_sym_names_in_linkage_form_p.
5035 * f-lang.c (f_language_data): Remove
5036 la_store_sym_names_in_linkage_form_p initializer.
5037 * go-lang.c (go_language_data): Remove
5038 la_store_sym_names_in_linkage_form_p initializer.
5039 * language.c (unknown_language_data): Remove
5040 la_store_sym_names_in_linkage_form_p initializer.
5041 (unknown_language::store_sym_names_in_linkage_form_p): New member
5043 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
5045 (auto_language::store_sym_names_in_linkage_form_p): New member
5047 * language.h (language_data): Remove
5048 la_store_sym_names_in_linkage_form_p member variable.
5049 (language_defn::store_sym_names_in_linkage_form_p): New member
5051 * m2-lang.c (m2_language_data): Remove
5052 la_store_sym_names_in_linkage_form_p initializer.
5053 * objc-lang.c (objc_language_data): Likewise.
5054 * opencl-lang.c (opencl_language_data): Likewise.
5055 * p-lang.c (pascal_language_data): Likewise.
5056 * rust-lang.c (rust_language_data): Likewise.
5058 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5060 * ada-lang.c (ada_language_data): Remove string_lower_bound
5062 * c-lang.c (c_language_data): Likewise.
5063 (cplus_language_data): Likewise.
5064 (asm_language_data): Likewise.
5065 (minimal_language_data): Likewise.
5066 * d-lang.c (d_language_data): Likewise.
5067 * f-lang.c (f_language_data): Likewise.
5068 * go-lang.c (go_language_data): Likewise.
5069 * language.c (unknown_language_data): Likewise.
5070 (auto_language_data): Likewise.
5071 * language.h (language_data): Remove string_lower_bound field.
5072 (language_defn::string_lower_bound): New member function.
5073 * m2-lang.c (m2_language_data): Remove string_lower_bound
5075 (m2_language::string_lower_bound): New member function.
5076 * objc-lang.c (objc_language_data): Remove string_lower_bound
5078 * opencl-lang.c (opencl_language_data): Likewise.
5079 * p-lang.c (pascal_language_data): Likewise.
5080 * rust-lang.c (rust_language_data): Likewise.
5081 * valops.c (value_cstring): Update call to string_lower_bound.
5082 (value_string): Likewise.
5083 * value.c (allocate_repeated_value): Likewise.
5085 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5087 * valops.c (value_repeat): Fix incorrect argument name in comment.
5089 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5091 * ada-lang.c (ada_language_data): Remove c_style_arrays
5093 (ada_language::c_style_arrays_p): New member fuction.
5094 * c-lang.c (c_language_data): Remove c_style_arrays
5096 (cplus_language_data): Likewise.
5097 (asm_language_data): Likewise.
5098 (minimal_language_data): Likewise.
5099 * d-lang.c (d_language_data): Likewise.
5100 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
5101 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
5102 (f_language::c_style_arrays_p): New member function.
5103 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
5104 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
5105 * language.c (unknown_language_data): Remove c_style_arrays
5107 (auto_language_data): Likewise.
5108 * language.h (language_data): Remove c_style_arrays field.
5109 (language_defn::c_style_arrays_p): New member function.
5110 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
5111 (m2_language::c_style_arrays_p): New member function.
5112 * objc-lang.c (objc_language_data): Remove c_style_arrays
5114 * opencl-lang.c (opencl_language_data): Likewise.
5115 * p-lang.c (pascal_language_data): Likewise.
5116 * rust-lang.c (rust_language_data): Likewise.
5117 * valarith.c (value_subscript): Update call to c_style_arrays_p,
5118 and update local variable to a bool.
5119 * valops.c (value_cast): Update call to c_style_arrays_p.
5120 (value_array): Likewise.
5121 * value.c (coerce_array): Likewise.
5123 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5125 * ada-lang.c (ada_language_data): Remove la_language initializer.
5126 * c-lang.c (c_language_data): Likewise.
5127 (cplus_language_data): Likewise.
5128 (asm_language_data): Likewise.
5129 (minimal_language_data): Likewise.
5130 * d-lang.c (d_language_data): Likewise.
5131 * f-lang.c (f_language_data): Likewise.
5132 * go-lang.c (go_language_data): Likewise.
5133 * language.c (unknown_language_data): Likewise.
5134 (auto_language_data): Likewise.
5135 * language.h (language_data): Remove la_language field.
5136 (language_defn::language_defn): Initialise la_language field.
5137 (language_defn::la_language): New member variable.
5138 * m2-lang.c (m2_language_data): Remove la_language field.
5139 * objc-lang.c (objc_language_data): Likewise.
5140 * opencl-lang.c (opencl_language_data): Likewise.
5141 * p-lang.c (pascal_language_data): Likewise.
5142 * rust-lang.c (rust_language_data): Likewise.
5144 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5146 * ada-lang.c (ada_extensions): Delete, moved into
5147 ada_language::filename_extensions.
5148 (ada_language_data): Remove la_filename_extensions initializer.
5149 (ada_language::filename_extensions): New member function.
5150 * c-lang.c (c_extensions): Delete, moved into
5151 c_language::filename_extensions.
5152 (c_language_data): Remove la_filename_extensions initializer.
5153 (c_language::filename_extensions): New member function.
5154 (cplus_extensions): Delete, moved into
5155 cplus_language::filename_extensions.
5156 (cplus_language_data): Remove la_filename_extensions initializer.
5157 (cplus_language::filename_extensions): New member function.
5158 (asm_extensions): Delete, moved into
5159 asm_language::filename_extensions.
5160 (asm_language_data): Remove la_filename_extensions initializer.
5161 (asm_language::filename_extensions): New member function.
5162 (minimal_language_data): Remove la_filename_extensions
5164 * d-lang.c (d_extensions): Delete, moved into
5165 d_language::filename_extensions.
5166 (d_language_data): Remove la_filename_extensions initializer.
5167 (d_language::filename_extensions): New member function.
5168 * f-lang.c (f_extensions): Delete, moved into
5169 f_language::filename_extensions.
5170 (f_language_data): Remove la_filename_extensions initializer.
5171 (f_language::filename_extensions): New member function.
5172 * go-lang.c (go_language_data): Remove la_filename_extensions
5174 * language.c (add_set_language_command): Update now that
5175 filename_extensions returns a vector.
5176 (unknown_language_data): Remove la_filename_extensions
5178 (auto_language_data): Likewise.
5179 * language.h (language_data): Remove la_filename_extensions field.
5180 (language_defn::filename_extensions): New member function.
5181 * m2-lang.c (m2_language_data): Remove la_filename_extensions
5183 * objc-lang.c (objc_extensions): Delete, moved into
5184 objc_language::filename_extensions.
5185 (objc_language_data): Remove la_filename_extensions initializer.
5186 (objc_language::filename_extensions): New member function.
5187 * opencl-lang.c (opencl_language_data): Remove
5188 la_filename_extensions initializer.
5189 * p-lang.c (pascal_extensions): Delete, moved into
5190 pascal_language::filename_extensions.
5191 (pascal_language_data): Remove la_filename_extensions initializer.
5192 (pascal_language::filename_extensions): New member function.
5193 * rust-lang.c (rust_extensions): Delete, moved into
5194 rust_language::filename_extensions.
5195 (rust_language_data): Remove la_filename_extensions initializer.
5196 (rust_language::filename_extensions): New member function.
5197 * symfile.c (add_filename_language): Add new assert.
5199 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5201 * ada-lang.c (ada_language_data): Remove la_name and
5202 la_natural_name initializers.
5203 (ada_language::name): New member function.
5204 (ada_language::natural_name): New member function.
5205 * c-lang.c (c_language_data): Remove la_name and
5206 la_natural_name initializers.
5207 (c_language::name): New member function.
5208 (c_language::natural_name): New member function.
5209 (cplus_language_data): Remove la_name and
5210 la_natural_name initializers.
5211 (cplus_language::name): New member function.
5212 (cplus_language::natural_name): New member function.
5213 (asm_language_data): Remove la_name and
5214 la_natural_name initializers.
5215 (asm_language::name): New member function.
5216 (asm_language::natural_name): New member function.
5217 (minimal_language_data): Remove la_name and
5218 la_natural_name initializers.
5219 (minimal_language::name): New member function.
5220 (minimal_language::natural_name): New member function.
5221 * compile/compile.c (compile_to_object): Update call to
5222 lanugage_defn::name.
5223 * d-lang.c (d_language_data): Remove la_name and
5224 la_natural_name initializers.
5225 (d_language::name): New member function.
5226 (d_language::natural_name): New member function.
5227 * expprint.c (print_subexp_standard): Update call to
5228 language_defn::name.
5229 (dump_raw_expression): Likewise
5230 (dump_prefix_expression): Likewise.
5231 * f-lang.c (f_language_data): Remove la_name and
5232 la_natural_name initializers.
5233 (f_language::name): New member function.
5234 (f_language::natural_name): New member function.
5235 * go-lang.c (go_language_data): Remove la_name and
5236 la_natural_name initializers.
5237 (go_language::name): New member function.
5238 (go_language::natural_name): New member function.
5239 * language.c (show_language_command): Update call to
5240 language_defn::name.
5241 (set_language_command): Likewise.
5242 (language_enum): Likewise.
5243 (language_str): Likewise.
5244 (add_set_language_command): Likewise, use
5245 language_defn::natural_name in the doc string.
5246 (unknown_language_data): Remove la_name and
5247 la_natural_name initializers.
5248 (unknown_language::name): New member function.
5249 (unknown_language::natural_name): New member function.
5250 (auto_language_data): Remove la_name and
5251 la_natural_name initializers.
5252 (auto_language::name): New member function.
5253 (auto_language::natural_name): New member function.
5254 (language_lookup_primitive_type_as_symbol): Update call to
5255 language_defn::name.
5256 * language.h (language_data): Remove la_name and la_natural_name
5258 (language_defn::name): New member function.
5259 (language_defn::natural_name): New member function.
5260 * m2-lang.c (m2_language_data): Remove la_name and
5261 la_natural_name initializers.
5262 (m2_language::name): New member function.
5263 (m2_language::natural_name): New member function.
5264 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5265 language_defn::natural_name.
5266 * objc-lang.c (objc_language_data): Remove la_name and
5267 la_natural_name initializers.
5268 (objc_language::name): New member function.
5269 (objc_language::natural_name): New member function.
5270 * opencl-lang.c (opencl_language_data): Remove la_name and
5271 la_natural_name initializers.
5272 (opencl_language::name): New member function.
5273 (opencl_language::natural_name): New member function.
5274 * p-lang.c (pascal_language_data): Remove la_name and
5275 la_natural_name initializers.
5276 (pascal_language::name): New member function.
5277 (pascal_language::natural_name): New member function.
5278 * rust-lang.c (rust_language_data): Remove la_name and
5279 la_natural_name initializers.
5280 (rust_language::name): New member function.
5281 (rust_language::natural_name): New member function.
5282 * symtab.c (lookup_language_this): Update call to
5283 language_defn::name.
5285 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5287 * ada-lang.c (ada_language_data): Remove la_name_of_this
5289 * ax-gdb.c (gen_expr): Update call to name_of_this.
5290 * c-exp.y (classify_name): Likewise.
5291 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5292 (cplus_language_data): Likewise.
5293 (cplus_language::name_of_this): New member function.
5294 (asm_language_data): Remove la_name_of_this initializer.
5295 (minimal_language_data): Likewise.
5296 * d-lang.c (d_language_data): Likewise.
5297 (d_language::name_of_this): New member function.
5298 * expprint.c (print_subexp_standard): Update call to name_of_this.
5299 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5300 * go-lang.c (go_language_data): Likewise.
5301 * language.c (unknown_language_data): Likewise.
5302 (unknown_language::name_of_this): New member function.
5303 (auto_language_data): Remove la_name_of_this initializer.
5304 (auto_language::name_of_this): New member function.
5305 * language.h (language_data): Delete la_name_of_this member
5307 (language_defn::name_of_this): New member function.
5308 * m2-lang.c (m2_language_data): Remove la_name_of_this
5310 * objc-lang.c (objc_language_data): Likewise.
5311 (objc_language::name_of_this): New member function.
5312 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5314 * p-lang.c (pascal_language_data): Likewise.
5315 (pascal_language::name_of_this): New member function.
5316 * rust-lang.c (rust_language_data): Remove la_name_of_this
5318 * symtab.c (lookup_language_this): Update call to name_of_this.
5319 (lookup_symbol_aux): Likewise.
5320 * valops.c (value_of_this): Likewise.
5322 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5324 * ada-lang.c (ada_language_data): Remove
5325 la_struct_too_deep_ellipsis initializer.
5326 (ada_language::struct_too_deep_ellipsis): New member function.
5327 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5329 (cplus_language_data): Likewise.
5330 (asm_language_data): Likewise.
5331 (minimal_language_data): Likewise.
5332 * cp-valprint.c (cp_print_value): Update call to
5333 struct_too_deep_ellipsis.
5334 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5336 * f-lang.c (f_language_data): Likewise.
5337 (f_language::struct_too_deep_ellipsis): New member function.
5338 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5340 * language.c (unknown_language_data): Likewise.
5341 (auto_language_data): Likewise.
5342 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5344 (language_defn::struct_too_deep_ellipsis): New member function.
5345 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5347 * objc-lang.c (objc_language_data): Likewise.
5348 * opencl-lang.c (opencl_language_data): Likewise.
5349 * p-lang.c (pascal_language_data): Likewise.
5350 * rust-lang.c (rust_language_data): Likewise.
5351 * valprint.c (val_print_check_max_depth): Update call to
5352 struct_too_deep_ellipsis.
5354 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5356 * MAINTAINERS (Write After Approval): Add myself.
5358 2020-09-15 Tom Tromey <tom@tromey.com>
5360 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5363 2020-09-15 Tom Tromey <tom@tromey.com>
5365 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5366 and TYPE_CODE_METHODPTR cases.
5367 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5368 (c_value_print_inner): Update.
5369 * valprint.c (generic_value_print_memberptr): New function, from
5370 c_value_print_memberptr.
5371 (generic_value_print): Use it. Call cplus_print_method_ptr.
5373 2020-09-15 Tom Tromey <tromey@adacore.com>
5375 * python/python-internal.h (PyInt_FromLong): Remove define.
5376 * python/py-value.c (convert_value_from_python): Use
5377 gdb_py_object_from_longest.
5378 * python/py-type.c (typy_get_code): Use
5379 gdb_py_object_from_longest.
5380 * python/py-symtab.c (salpy_get_line): Use
5381 gdb_py_object_from_longest.
5382 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5383 gdb_py_object_from_longest.
5384 * python/py-record.c (recpy_gap_reason_code): Use
5385 gdb_py_object_from_longest.
5386 * python/py-record-btrace.c (recpy_bt_insn_size)
5387 (recpy_bt_func_level, btpy_list_count): Use
5388 gdb_py_object_from_longest.
5389 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5390 gdb_py_object_from_longest. Fix error handling.
5391 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5392 gdb_py_object_from_longest.
5393 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5394 gdb_py_object_from_longest.
5395 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5396 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5397 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5399 2020-09-15 Tom Tromey <tromey@adacore.com>
5401 * python/python.c (gdbpy_parameter_value): Use
5402 gdb_py_object_from_ulongest.
5404 2020-09-15 Tom Tromey <tromey@adacore.com>
5406 * python/py-infevents.c (create_register_changed_event_object):
5407 Use gdb_py_object_from_longest.
5408 * python/py-exitedevent.c (create_exited_event_object): Use
5409 gdb_py_object_from_longest.
5411 2020-09-15 Tom Tromey <tromey@adacore.com>
5413 * python/python.c (gdbpy_parameter_value): Use
5414 gdb_py_object_from_longest.
5415 * python/py-type.c (convert_field, typy_range): Use
5416 gdb_py_object_from_longest.
5417 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5418 gdb_py_object_from_longest.
5419 * python/py-lazy-string.c (stpy_get_length): Use
5420 gdb_py_object_from_longest.
5421 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5422 gdb_py_object_from_longest.
5423 * python/py-infevents.c (create_memory_changed_event_object): Use
5424 gdb_py_object_from_longest.
5425 * python/py-inferior.c (infpy_get_num): Use
5426 gdb_py_object_from_longest.
5427 (infpy_get_pid): Likewise.
5429 2020-09-15 Tom Tromey <tromey@adacore.com>
5431 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5433 * python/py-value.c (valpy_long): Use
5434 gdb_py_object_from_ulongest.
5435 * python/py-symtab.c (salpy_get_pc): Use
5436 gdb_py_object_from_ulongest.
5437 (salpy_get_last): Likewise.
5438 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5439 gdb_py_object_from_ulongest.
5440 * python/py-lazy-string.c (stpy_get_address): Use
5441 gdb_py_object_from_ulongest.
5442 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5443 * python/py-arch.c (archpy_disassemble): Use
5444 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5447 2020-09-15 Tom Tromey <tromey@adacore.com>
5449 * python/python-internal.h (gdb_py_long_from_longest): Remove
5451 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5452 * python/py-type.c (convert_field, typy_get_sizeof): Use
5453 gdb_py_object_from_longest.
5454 * python/py-record-btrace.c (btpy_list_index): Use
5455 gdb_py_object_from_longest.
5457 2020-09-15 Tom Tromey <tromey@adacore.com>
5459 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5460 * python/py-record.c (recpy_element_number): Use
5461 gdb_py_object_from_longest.
5462 (recpy_gap_number): Likewise.
5464 2020-09-15 Tom Tromey <tromey@adacore.com>
5466 * top.c (ui::ui): Update.
5467 (highest_ui_num): Remove.
5468 * top.h (struct ui) <num>: Remove.
5470 2020-09-15 Tom Tromey <tromey@adacore.com>
5472 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5473 * ui-style.c (ansi_regex_text): Now array.
5474 * rust-exp.y (number_regex_text): Now array.
5475 * linespec.c (linespec_quote_characters): Now array.
5476 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5479 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5481 * debuginfod-support.c (debuginfod_client_deleter): New.
5482 (debuginfod_client_up): New.
5483 (debuginfod_init): Return debuginfod_client_up.
5484 (debuginfod_source_query): Adjust.
5485 (debuginfod_debuginfo_query): Adjust.
5487 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5489 * debuginfod-support.c (debuginfod_source_query): Use
5490 make_unique_xstrdup.
5492 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5494 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5495 with `type::instance_flags`.
5497 2020-09-14 Michael Mullin <masmullin@gmail.com>
5499 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5500 Remove baton parameter.
5502 2020-09-14 Pedro Alves <pedro@palves.net>
5504 * Makefile.in (SELFTESTS_SRCS): Add
5505 unittests/enum-flags-selftests.c.
5506 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5507 btrace_function_flags instead of enum btrace_function_flag.
5508 * compile/compile-c-types.c (convert_qualified): Use
5510 * compile/compile-cplus-symbols.c (convert_one_symbol)
5511 (convert_symbol_bmsym):
5512 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5513 (compile_cplus_convert_struct_or_union_methods)
5514 (compile_cplus_instance::convert_qualified_base):
5515 * go-exp.y (parse_string_or_char): Add cast to int.
5516 * unittests/enum-flags-selftests.c: New file.
5517 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5518 type to btrace_thread_flags from btrace_thread_flag.
5519 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5520 local's type to btrace_thread_flags from btrace_thread_flag. Add
5523 2020-09-14 Pedro Alves <pedro@palves.net>
5525 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5526 * gdbtypes.c (address_space_name_to_int): Rename to ...
5527 (address_space_name_to_type_instance_flags): ... this.
5528 (address_space_int_to_name): Rename to ...
5529 (address_space_type_instance_flags_to_name): ... this.
5530 * gdbtypes.h (address_space_name_to_int): Rename to ...
5531 (address_space_name_to_type_instance_flags): ... this.
5532 (address_space_int_to_name): Rename to ...
5533 (address_space_type_instance_flags_to_name): ... this.
5534 * type-stack.c (type_stack::insert): Adjust to rename.
5535 * type-stack.h (type_stack::insert): Likewise.
5537 2020-09-14 Pedro Alves <pedro@palves.net>
5538 Andrew Burgess <andrew.burgess@embecosm.com>
5540 * avr-tdep.c (avr_address_class_type_flags): Return
5541 type_instance_flags.
5542 (avr_address_class_type_flags_to_name): Take a
5543 type_instance_flags.
5544 (avr_address_class_name_to_type_flags): Return bool and take a
5545 type_instance_flags.
5546 * d-lang.c (build_d_types): Use type::set_instance_flags.
5547 * ft32-tdep.c (ft32_address_class_type_flags): Return
5548 type_instance_flags.
5549 (ft32_address_class_type_flags_to_name): Take a
5550 type_instance_flags.
5551 (ft32_address_class_name_to_type_flags): Return bool and take a
5552 type_instance_flags.
5553 (ft32_gdbarch_init): Use type::set_instance_flags.
5554 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5555 * gdbarch.h, gdbarch.c: Regenerate.
5556 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5557 (address_class_name_to_type_flags): Use type_instance_flags and
5559 * gdbtypes.c (address_space_name_to_int)
5560 (address_space_int_to_name, make_qualified_type): Use
5561 type_instance_flags.
5562 (make_qualified_type): Use type_instance_flags and
5563 type::set_instance_flags.
5564 (make_type_with_address_space, make_cv_type, make_vector_type)
5565 (check_typedef): Use type_instance_flags.
5566 (recursive_dump_type): Cast type_instance_flags to unsigned for
5568 (copy_type_recursive): Use type::set_instance_flags.
5569 (gdbtypes_post_init): Use type::set_instance_flags.
5570 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5571 <m_instance_flags>: ... this.
5572 <instance_flags, set_instance_flags>: New methods.
5573 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5574 (SET_TYPE_INSTANCE_FLAGS): New.
5575 (address_space_name_to_int, address_space_int_to_name)
5576 (make_type_with_address_space): Pass flags using
5577 type_instance_flags instead of int.
5578 * stabsread.c (cleanup_undefined_types_noname): Use
5579 type::set_instance_flags.
5580 * s390-tdep.c (s390_address_class_type_flags): Return
5581 type_instance_flags.
5582 (s390_address_class_type_flags_to_name): Take a
5583 type_instance_flags.
5584 (s390_address_class_name_to_type_flags): Return bool and take a
5585 type_instance_flags.
5586 * type-stack.c (type_stack::follow_types): Use
5587 type_instance_flags.
5588 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5590 2020-09-14 Tom Tromey <tromey@adacore.com>
5592 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5593 * x86-tdep.c (x86_is_thunk_register_name)
5594 (x86_in_indirect_branch_thunk): Update.
5595 * sparc64-tdep.c (sparc64_fpu_register_names)
5596 (sparc64_cp0_register_names, sparc64_register_names)
5597 (sparc64_pseudo_register_names): Now const.
5598 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5599 cp0_registers_num>: Now const.
5600 * sparc-tdep.c (sparc_core_register_names)
5601 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5602 (sparc32_pseudo_register_names): Now const.
5603 (validate_tdesc_registers): Update.
5604 * rust-lang.c (rust_extensions): Now const.
5605 * p-lang.c (p_extensions): Now const.
5606 * objc-lang.c (objc_extensions): Now const.
5607 * nto-tdep.c (nto_thread_state_str): Now const.
5608 * moxie-tdep.c (moxie_register_names): Now const.
5609 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5611 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5612 (mips_linux_reg_names): Now const.
5613 (mips_gdbarch_init): Update.
5614 * microblaze-tdep.c (microblaze_register_names): Now const.
5615 * m68k-tdep.c (m68k_register_names): Now const.
5616 * m32r-tdep.c (m32r_register_names): Now const.
5617 * ia64-tdep.c (ia64_register_names): Now const.
5618 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5619 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5620 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5621 ymm_avx512_register_names, pkeys_register_names>: Now const.
5622 * i386-tdep.c (i386_register_names, i386_zmm_names)
5623 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5624 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5625 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5626 * f-lang.c (f_extensions): Now const.
5627 * d-lang.c (d_extensions): Now const.
5628 * csky-tdep.c (csky_register_names): Now const.
5629 * charset.c (default_charset_names, charset_enum): Now const.
5630 (_initialize_charset): Update.
5631 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5633 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5634 (bsd_uthread_solib_loaded): Update.
5635 (bsd_uthread_state): Now const.
5636 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5637 (amd64_ymm_avx512_names, amd64_ymmh_names)
5638 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5639 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5640 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5641 (amd64_dword_names): Now const.
5642 * agent.c (can_use_agent_enum): Now const.
5643 * ada-tasks.c (task_states, long_task_states): Now const.
5644 * ada-lang.c (known_runtime_file_name_patterns)
5645 (known_auxiliary_function_name_patterns, attribute_names)
5646 (standard_exc, ada_extensions): Now const.
5648 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5650 * bcache.h (struct bcache) <bcache>: Remove constructor.
5651 <m_hash_function, m_compare_function>: Remove.
5652 <~bcache>: Make virtual.
5653 <compare>: Remove static method, introduce virtual method.
5654 <default_hash>: Remove.
5655 <hash>: New virtual method.
5656 * bcache.c (bcache::expand_hash_table): Update.
5657 (bcache::insert): Update.
5658 (bcache::hash): New.
5659 (bcache::compare): Update comment and parameter names.
5660 * gdbtypes.c (types_deeply_equal): Update.
5661 * psymtab.h (struct psymbol_bcache): New struct.
5662 (class psymtab_storage) <psymtab_storage>: Make default.
5663 <psymbol_cache>: Change type to psymbol_bcache.
5664 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5665 (psymbol_hash): Change to...
5666 (psymbol_bcache::hash): ... this.
5667 (psymbol_compare): Change to...
5668 (psymbol_bcache::compare): ... this.
5670 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5672 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5673 checking for initial lwp.
5675 2020-09-14 Tom Tromey <tromey@adacore.com>
5677 * m68k-tdep.c (m68k_extract_return_value): Use
5678 pointer_result_regnum.
5679 (m68k_store_return_value): Likewise.
5680 (m68k_reg_struct_return_p): Handle vectors and arrays.
5681 (m68k_return_value): Handle arrays.
5682 (m68k_svr4_return_value): Fix single-element aggregate handling.
5683 Handle long double. Adjust for embedded ABI.
5684 (m68k_svr4_init_abi): Set pointer_result_regnum.
5685 (m68k_embedded_init_abi): New function.
5686 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5687 (m68k_osabi_sniffer): New function.
5688 (_initialize_m68k_tdep): Register osabi sniffer.
5689 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5692 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5694 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5695 with gdb::unique_xmalloc_ptr<char>.
5697 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5699 * xml-support.h (xml_fetch_another): Change type to be a
5701 (xml_process_xincludes): Remove baton parameter.
5702 (xml_fetch_content_from_file): Change baton parameter to
5704 * xml-support.c (struct xinclude_parsing_data)
5705 <xinclude_parsing_data>: Remove baton parameter.
5706 <fetcher_baton>: Remove.
5707 (xinclude_start_include): Adjust.
5708 (xml_process_xincludes): Adjust.
5709 (xml_fetch_content_from_file): Replace baton parameter with
5711 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5712 (xml_init_syscalls_info): Use a lambda.
5713 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5714 (file_read_description_xml): Use a lambda.
5715 (fetch_available_features_from_target): Change baton parameter
5717 (target_read_description_xml): Use a lambda.
5718 (target_fetch_description_xml): Use a lambda.
5719 (string_read_description_xml): Update.
5721 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5723 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5724 uses with type::endianity_is_not_default.
5726 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5728 * gdbtypes.h (struct type) <endianity_is_not_default,
5729 set_endianity_is_not_default>: New methods.
5730 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5731 type::endianity_is_not_default, change all write call sites to
5732 use type::set_endianity_is_not_default.
5734 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5736 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5737 uses with type::is_fixed_instance.
5739 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5741 * gdbtypes.h (struct type) <is_fixed_instance,
5742 set_is_fixed_instance>: New methods.
5743 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5744 write call sites to use type::set_is_fixed_instance.
5746 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5748 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5749 uses with type::is_gnu_ifunc.
5751 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5753 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5754 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5755 use type::set_is_gnu_ifunc.
5757 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5759 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5760 uses with type::stub_is_supported.
5762 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5764 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5765 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5766 use type::set_stub_is_supported.
5768 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5770 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5771 uses with type::is_vector.
5773 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5775 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5776 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5777 use type::set_is_vector.
5779 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5781 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5782 uses with type::has_varargs.
5784 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5786 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5787 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5788 use type::set_has_varargs.
5790 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5792 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5793 uses with type::is_prototyped.
5795 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5797 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5799 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5800 call sites to use type::set_is_prototyped.
5802 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5804 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5805 uses with type::target_is_stub.
5807 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5809 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5811 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5812 sites to use type::set_target_is_stub.
5814 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5816 * gdbtypes.h (TYPE_STUB): Remove, replace all
5817 uses with type::is_stub.
5819 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5821 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5822 (TYPE_STUB): Use type::is_stub, change all write call sites to
5823 use type::set_is_stub.
5825 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5827 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5828 type::has_no_signedness.
5830 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5832 * gdbtypes.h (struct type) <has_no_signedness,
5833 set_has_no_signedness>: New methods.
5834 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5835 call sites to use type::set_has_no_signedness.
5837 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5839 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5842 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5844 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5846 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5847 sites to use type::set_is_unsigned.
5849 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5850 Adam Renquinha <arenquinha@cimeq.qc.ca>
5852 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5853 pointer and stack frame offset when unwinding.
5855 2020-09-13 Pedro Alves <pedro@palves.net>
5857 * NEWS: Document "-break-insert --qualified".
5858 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5860 2020-09-13 Pedro Alves <pedro@palves.net>
5862 * linespec.c (classify_mtype, compare_msyms): Delete.
5863 (search_minsyms_for_name): Remove classification logic. Instead
5864 filter out trampoline symbols if we also found an external
5865 function of the same name.
5867 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5869 * NEWS: Create a new section for the next release branch.
5870 Rename the section of the current branch, now that it has
5873 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5875 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5876 * version.in: Bump version to 11.0.50.DATE-git.
5878 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5880 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5882 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5883 Felix Willgerodt <Felix.Willgerodt@intel.com>
5885 * gdbarch.sh: Added bfloat16 type.
5886 * gdbarch.c: Regenerated.
5887 * gdbarch.h: Regenerated.
5888 * gdbtypes.c (floatformats_bfloat16): New struct.
5889 (gdbtypes_post_init): Add builtin_bfloat16.
5890 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5891 (floatformats_bfloat16): New struct.
5892 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5893 (i386_ymm_type): Add field "v16_bfloat16"
5894 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5895 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5896 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5897 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5898 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5899 * features/i386/64bit-avx512.c: Regenerated.
5900 * features/i386/64bit-sse.xml: Add bfloat16 type.
5901 * features/i386/64bit-sse.c: Regenerated.
5903 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5905 * i386-tdep.c (i386_zmm_type): Fix field names.
5906 (i386_ymm_type): Fix field names.
5908 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5910 * breakpoint.c: Fix typo in the help message of the
5911 "set breakpoint condition-evaluation" command.
5913 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5915 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5916 * (nbsd_nat_target::pid_to_exec_file)
5917 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5918 (nbsd_nat_target::post_startup_inferior)
5919 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5920 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5921 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5922 * (nbsd_thread_lister): Remove.
5924 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5926 * fork-inferior.c (startup_inferior): Avoid double free.
5928 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5930 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5931 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5933 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5935 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5936 * netbsd-nat.c: Include <sys/ptrace.h>.
5937 * (netbsd_nat::enable_proc_events): Add.
5939 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5941 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5942 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5943 (netbsd_nat::for_each_thread): Add.
5944 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5945 "gdbsupport/common-debug.h".
5946 * (netbsd_nat::netbsd_thread_lister)
5947 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5948 (netbsd_nat::for_each_thread): Add.
5950 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5952 * netbsd-nat.h: Include <unistd.h>.
5953 * (netbsd_nat::pid_to_exec_file): Add.
5954 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5955 * (netbsd_nat::pid_to_exec_file) Add.
5957 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5959 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5961 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5963 * netbsd-nat.h: New file.
5964 * netbsd-nat.c: Likewise.
5966 2020-09-09 Tom Tromey <tromey@adacore.com>
5968 * ada-lang.c (remove_extra_symbols): Do not increment when
5971 2020-09-08 Tom Tromey <tromey@adacore.com>
5973 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5975 2020-09-08 Tom Tromey <tromey@adacore.com>
5978 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5979 (gdb_bfd_init_data): New function.
5980 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5982 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5984 * infrun.c (fetch_inferior_event): Use
5985 `switch_to_target_no_thread` to switch the target.
5987 2020-09-06 Tom Tromey <tom@tromey.com>
5989 * symfile.h (dwarf2_free_objfile): Don't declare.
5991 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5993 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5994 to match 16 byte real/complex type generated by Flang compiler.
5996 2020-09-03 Tom de Vries <tdevries@suse.de>
5999 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
6000 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
6002 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
6004 * maint.c (index_digits): New function.
6005 (struct maint_print_section_data): Remove.
6006 (print_bfd_section_info): Remove print_data parameter, add arg
6008 (print_objfile_section_info): Likewise.
6009 (print_bfd_section_info_maybe_relocated): Likewise (plus
6011 (maintenance_info_sections): Adjust calls.
6013 2020-09-02 Tom Tromey <tromey@adacore.com>
6015 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
6017 (ada_varobj_adjust_for_child_access): Special-case null pointers.
6019 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
6021 * bcache.h (struct bcache) <insert>: Change type of `added` to
6023 * bcache.c (bcache::insert): Likewise.
6024 * gdbtypes.c (check_types_worklist): Adjust.
6025 * psymtab.c (add_psymbol_to_bcache): Adjust.
6027 2020-08-31 Kevin Buettner <kevinb@redhat.com>
6029 * corelow.c (unordered_set): Include.
6030 (class core_target): Add field 'm_core_unavailable_mappings'.
6031 (core_target::build_file_mappings): Print only one warning
6032 per inaccessible file. Add unavailable/broken mappings
6033 to m_core_unavailable_mappings.
6034 (core_target::xfer_partial): Call...
6035 (core_target::xfer_memory_via_mappings): New method.
6037 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
6039 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
6042 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
6044 * dwarf2/read.c (struct field_info): Fix indentation.
6046 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6048 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
6049 ordering in comment.
6050 * frame.c (frame_id_eq): Fix indentation.
6052 2020-08-31 Scott Linder <scott@scottlinder.com>
6053 Simon Marchi <simon.marchi@efficios.com>
6055 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
6056 inline frame ids in outer frame.
6058 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6060 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
6061 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
6062 (outer_frame_id): Use FID_STACK_OUTER instead of
6064 (frame_id_p): Don't check for outer_frame_id.
6066 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6068 * frame-unwind.c (frame_unwind_got_optimized): Don't set
6069 regnum/frame in value. Call allocate_value_lazy.
6070 * frame.c (frame_unwind_register_value): Use
6071 val_print_not_saved.
6073 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6075 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
6077 2020-08-29 Pedro Alves <pedro@palves.net>
6079 * progspace.c (print_program_space): Use all_inferiors. Switch to
6080 the inferior before calling target_pid_to_str.
6082 2020-08-28 Tom Tromey <tom@tromey.com>
6084 * xcoffread.c (xcoff_end_psymtab): Update comment.
6085 * dbxread.c (dbx_end_psymtab): Update comment.
6087 2020-08-28 Tom de Vries <tdevries@suse.de>
6090 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
6092 (create_breakpoint): Same.
6093 (base_breakpoint_decode_location): Same.
6094 (bkpt_create_sals_from_location): Same.
6095 (bkpt_decode_location): Same.
6096 (bkpt_probe_create_sals_from_location): Same.
6097 (bkpt_probe_decode_location): Same.
6098 (tracepoint_create_sals_from_location): Same.
6099 (tracepoint_decode_location): Same.
6100 (tracepoint_probe_decode_location): Same.
6101 (strace_marker_create_sals_from_location): Same.
6102 (strace_marker_decode_location): Same.
6103 (create_sals_from_location_default): Same.
6104 (decode_location_default): Same.
6105 * breakpoint.h (struct breakpoint_ops): Same.
6106 (create_breakpoint): Same.
6107 * linespec.h (decode_line_full): Same.
6108 * linespec.c (decode_line_full): Same. Throw error if
6109 result.size () == 0.
6111 2020-08-27 Pedro Alves <pedro@palves.net>
6114 * breakpoint.c (until_break_fsm) <location_breakpoint,
6115 caller_breakpoint>: Delete fields.
6116 <breakpoints>: New field.
6117 <until_break_fsm>: Adjust to save a breakpoint vector instead of
6118 two individual breakpoints.
6119 (until_break_fsm::should_stop): Loop over breakpoints in the
6121 (until_break_fsm::clean_up): Adjust to clear the breakpoints
6123 (until_break_command): Handle location expanding into multiple
6126 2020-08-27 Pedro Alves <pedro@palves.net>
6129 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
6130 bp_until breakpoints user-specified locations. Update intro
6133 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
6135 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
6136 gdb_bfd_sections): New.
6137 * maint.c (print_bfd_section_info): Change param type to
6138 maint_print_section_data.
6139 (print_objfile_section_info): Likewise.
6140 (print_bfd_section_info_maybe_relocated): Likewise.
6141 (maintenance_info_sections): Use gdb_bfd_sections.
6143 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6145 * MAINTAINERS: Add ARC target and maintainer.
6147 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
6149 * configure.tgt: ARC support for GNU/Linux.
6150 * Makefile.in (ALL_TARGET_OBJS): Likewise.
6151 * arc-linux-tdep.c: New file.
6152 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
6153 * arc-tdep.c (arc_write_pc): Use it.
6155 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6157 * arc-tdep.c (arc_check_for_hardware_loop): New.
6158 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
6160 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6162 * arc-tdep.h: Include "gdbarch.h".
6164 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6167 (arc_gdbarch_features): New class to stir the selection of target XML.
6168 (arc_create_target_description): Use FEATURES to choose XML target.
6169 (arc_lookup_target_description): Use arc_create_target_description
6170 to create _new_ target descriptions or return the already created
6171 ones if the FEATURES is the same.
6172 * arch/arc.c: Implementation of prototypes described above.
6173 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
6174 (arc_gdbarch_features_init): Initialize the FEATURES struct.
6175 * arc-tdep.c (*_feature_name): Make feature names consistent.
6176 (arc_register_feature): A new struct to hold information about
6177 registers of a particular target/feature.
6178 (arc_check_tdesc_feature): Check if XML provides registers in
6179 compliance with ARC_REGISTER_FEATURE structs.
6180 (arc_update_acc_reg_names): Add aliases for r58 and r59.
6181 (determine_*_reg_feature_set): Which feature name to look for.
6182 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
6183 (mach_type_to_arc_isa): Convert from a set of binutils machine types
6184 to expected ISA enums to be used in arc_gdbarch_features structs.
6185 * features/Makefile (FEATURE_XMLFILES): Add new files.
6186 * gdb/features/arc/v1-aux.c: New file.
6187 * gdb/features/arc/v1-aux.xml: Likewise.
6188 * gdb/features/arc/v1-core.c: Likewise.
6189 * gdb/features/arc/v1-core.xml: Likewise.
6190 * gdb/features/arc/v2-aux.c: Likewise.
6191 * gdb/features/arc/v2-aux.xml: Likewise.
6192 * gdb/features/arc/v2-core.c: Likewise.
6193 * gdb/features/arc/v2-core.xml: Likewise.
6194 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
6196 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
6197 Andrew Burgess <andrew.burgess@embecosm.com>
6200 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
6201 an assert. Remove single element array indexing pattern as the
6202 MULTI_SUBSCRIPT support will handle this case too.
6204 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
6206 * value.h (valprint_check_validity): Move declaration from
6208 * valprint.h (valprint_check_validity): ... to here.
6210 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6212 * debug.h: New file.
6213 * debug.c (debug_prefixed_vprintf): New function.
6214 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6215 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
6217 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6219 * infrun.h (infrun_debug_printf_1): New function declaration.
6220 (infrun_debug_printf): New macro.
6221 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6223 (infrun_debug_printf): New function.
6224 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6225 (handle_jit_event): Likewise.
6227 2020-08-21 Mark Wielaard <mark@klomp.org>
6229 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6231 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
6233 * frame.c (enum class frame_id_status): New.
6234 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6235 (fprintf_frame): Update.
6236 (compute_frame_id): Set frame id status to "computing" on entry.
6237 Set it back to "not_computed" on failure and to "computed" on
6239 (get_frame_id): Assert the frame id is not being computed.
6240 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6241 (create_new_frame): Likewise.
6242 (frame_cleanup_after_sniffer): Update assert.
6244 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6246 * regcache.c (pid_ptid_regcache_map): New type.
6247 (target_ptid_regcache_map): Remove.
6248 (target_pid_ptid_regcache_map): New type.
6249 (regcaches): Change type to target_pid_ptid_regcache_map.
6250 (get_thread_arch_aspace_regcache): Update.
6251 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6253 (regcaches_size): Update.
6254 (regcache_count): Update.
6255 (registers_changed_ptid_target_pid_test): New.
6256 (_initialize_regcache): Register new test.
6258 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6260 * regcache.c (regcache_count): New.
6261 (struct regcache_test_data): New.
6262 (regcache_test_data_up): New.
6263 (populate_regcaches_for_test): New.
6264 (regcaches_test): Remove.
6265 (get_thread_arch_aspace_regcache_test): New.
6266 (registers_changed_ptid_all_test): New.
6267 (registers_changed_ptid_target_test): New.
6268 (registers_changed_ptid_target_ptid_test): New.
6269 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6270 (_initialize_regcache): Register new tests.
6272 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6274 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6275 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6276 gdbarch and aspace parameter. Use current inferior's aspace.
6277 Validate regcache's arch value.
6278 (regcaches_test): Update.
6280 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6282 * regcache.c (regcaches_test): Call registers_changed.
6284 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6286 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6288 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6290 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6291 to find the end of prologue for flang compiled binaries.
6292 * arm-tdep.c (arm_skip_prologue): Likewise.
6293 * i386-tdep.c (i386_skip_prologue): Likewise.
6294 * producer.c (producer_is_llvm): New function.
6295 (producer_parsing_tests): Added new tests for clang/flang.
6296 * producer.h (producer_is_llvm): New declaration.
6298 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
6300 * linux-nat.c (linux_nat_debug_printf): New function.
6301 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6303 2020-08-18 Aaron Merey <amerey@redhat.com>
6305 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6306 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6307 (CLIBS): Add DEBUGINFOD_LIBS.
6309 2020-08-17 Sergei Trofimovich <siarheit@google.com>
6311 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6314 2020-08-17 Tom Tromey <tromey@adacore.com>
6316 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6317 ada_get_decoded_value returns NULL.
6319 2020-08-17 Tom Tromey <tromey@adacore.com>
6321 * python/py-inferior.c (infpy_search_memory): Use
6322 gdb_py_object_from_ulongest.
6323 * python/py-infevents.c (create_inferior_call_event_object)
6324 (create_memory_changed_event_object): Use
6325 gdb_py_object_from_ulongest.
6326 * python/py-linetable.c (ltpy_entry_get_pc): Use
6327 gdb_py_object_from_ulongest.
6329 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6331 * loc.c (class symbol_needs_eval_context): Fix indentation.
6333 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6335 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6338 2020-08-17 Tom de Vries <tdevries@suse.de>
6341 * gdbtypes.c (dump_dynamic_prop): New function.
6342 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6344 2020-08-15 Tom de Vries <tdevries@suse.de>
6347 * stack.c (print_frame_args): Temporarily set the selected
6348 frame to FRAME while printing the frame's arguments.
6350 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6352 PR breakpoints/26385
6353 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6354 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6356 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6358 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6359 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6360 and >= to check return value instead of == -1 and != -1.
6362 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6364 * utils.h (class gdb_argv) <as_array_view>: New method.
6365 * utils.c (gdb_argv_as_array_view_test): New.
6366 (_initialize_utils): Register selftest.
6367 * maint.c (maintenance_selftest): Use the new method.
6369 2020-08-13 Kamil Rytarowski <n54@gmx.com>
6371 * target.h (supports_dumpcore, dumpcore): New
6372 function declarations.
6373 * target.c (supports_dumpcore, dumpcore): New
6375 * target-delegates.c: Rebuild.
6376 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6377 and target_dumpcore ().
6379 2020-08-13 Aaron Merey <amerey@redhat.com>
6381 * debuginfod-support.c: Replace global variables with user_data.
6383 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6385 * maint.c (maintenance_selftest): Split args and pass array_view
6388 2020-08-12 Luis Machado <luis.machado@linaro.org>
6390 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6392 Use %s and pulongest to print the length.
6394 2020-08-12 Pedro Alves <palves@redhat.com>
6396 * NEWS: Move "Multi-target debugging support" item to the
6397 "Changes since GDB 9" section.
6399 2020-08-12 Pedro Alves <palves@redhat.com>
6402 * progspace.c (program_space::remove_objfile): Invalidate the
6405 2020-08-11 Tom de Vries <tdevries@suse.de>
6407 * MAINTAINERS: Mark ms1 as deleted.
6409 2020-08-10 Luis Machado <luis.machado@linaro.org>
6413 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6415 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6416 movz/str/stur/stp skipping behavior.
6418 2020-08-10 Luis Machado <luis.machado@linaro.org>
6420 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6421 struct user_sve_header instead of struct sve_context.
6423 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6425 * read.h (dwarf2_fetch_die_loc_sect_off,
6426 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6427 `void *` parameter with function_view.
6428 * read.c (dwarf2_fetch_die_loc_sect_off,
6429 dwarf2_fetch_die_loc_cu_off): Likewise.
6430 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6431 (per_cu_dwarf_call): Adjust.
6432 (get_frame_address_in_block_wrapper): Remove.
6433 (indirect_synthetic_pointer): Adjust.
6434 (get_ax_pc): Remove.
6435 (dwarf2_compile_expr_to_ax): Adjust.
6437 2020-08-08 Tom de Vries <tdevries@suse.de>
6440 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6442 * regcache.c (get_thread_arch_aspace_regcache): Same.
6444 2020-08-07 Tom Tromey <tromey@adacore.com>
6446 * ravenscar-thread.c
6447 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6449 (ravenscar_thread_target::wait): Check
6450 runtime_initialized.
6451 (ravenscar_thread_target::prepare_to_store)
6452 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6453 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6454 (ravenscar_thread_target::stopped_by_watchpoint)
6455 (ravenscar_thread_target::stopped_data_address)
6456 (ravenscar_thread_target::core_of_thread): Use
6457 scoped_restore_current_thread and
6458 set_base_thread_from_ravenscar_task.
6460 2020-08-07 Tom Tromey <tromey@adacore.com>
6462 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6464 2020-08-07 Tom Tromey <tromey@adacore.com>
6466 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6467 update_inferior_ptid before update_thread_list.
6468 (temporarily_change_regcache_ptid): New class.
6469 (ravenscar_thread_target::fetch_registers)
6470 (ravenscar_thread_target::store_registers)
6471 (ravenscar_thread_target::prepare_to_store): Use base thread when
6472 forwarding operation.
6474 2020-08-07 Tom Tromey <tromey@adacore.com>
6476 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6479 2020-08-07 Tom Tromey <tromey@adacore.com>
6481 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6483 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6485 (ravenscar_thread_target::add_thread): Rename from
6486 ravenscar_add_thread.
6487 (ravenscar_thread_target::update_thread_list): Use a lambda.
6488 (ravenscar_thread_target::xfer_partial): New method.
6490 2020-08-07 Tom Tromey <tromey@adacore.com>
6492 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6494 (iterate_over_live_ada_tasks): Change type of argument.
6495 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6498 2020-08-07 Tom Tromey <tromey@adacore.com>
6500 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6502 (ravenscar_thread_target::extra_thread_info): Remove.
6503 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6504 defer to target beneath for non-Ravenscar threads.
6506 2020-08-07 Tom Tromey <tromey@adacore.com>
6508 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6509 get_base_thread_from_ravenscar_task>: Now methods.
6510 <m_cpu_map>: New member.
6511 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6512 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6513 (ravenscar_thread_target::task_is_currently_active): Update.
6514 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6516 (ravenscar_thread_target::add_active_thread): Put initial thread
6519 2020-08-07 Tom Tromey <tromey@adacore.com>
6521 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6524 2020-08-07 Tom Tromey <tromey@adacore.com>
6526 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6527 runtime_initialized.
6529 2020-08-07 Tom Tromey <tromey@adacore.com>
6531 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6533 (ravenscar_thread_target::add_active_thread): Now public.
6534 (ravenscar_inferior_created): Call add_active_thread after pushing
6537 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6539 * regcache.c (ptid_regcache_map): New type.
6540 (target_ptid_regcache_map): New type.
6541 (regcaches): Change type to target_ptid_regcache_map.
6542 (get_thread_arch_aspace_regcache): Update to regcaches' new
6544 (regcache_thread_ptid_changed): Likewise.
6545 (registers_changed_ptid): Likewise.
6546 (regcaches_size): Likewise.
6547 (regcaches_test): Update.
6548 (regcache_thread_ptid_changed): Update.
6549 * regcache.h (regcache_up): New type.
6550 * gdbsupport/ptid.h (hash_ptid): New struct.
6552 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6554 * observable.h (thread_ptid_changed): Add parameter
6555 `process_stratum_target *`.
6556 * infrun.c (infrun_thread_ptid_changed): Add parameter
6557 `process_stratum_target *` and use it.
6558 (selftests): New namespace.
6559 (infrun_thread_ptid_changed): New function.
6560 (_initialize_infrun): Register selftest.
6561 * regcache.c (regcache_thread_ptid_changed): Add parameter
6562 `process_stratum_target *` and use it.
6563 (regcache_thread_ptid_changed): New function.
6564 (_initialize_regcache): Register selftest.
6565 * thread.c (thread_change_ptid): Pass target to
6566 thread_ptid_changed observable.
6568 2020-08-06 Caroline Tice <cmtice@google.com>
6570 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6571 (struct dwp_sections): Update field comments. Add loclists and
6573 (struct virtual_v2_dwo_sections): Rename struct to
6574 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6575 size & offset fields for loclists and rnglists.
6576 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6577 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6578 skipping dummy type units.
6579 (create_dwp_hash_table): Update the large comment above the function to
6580 discuss Version 5 DWP files as well, with references. Update all the
6581 version checks in the function to check for version 5 as well. Add new
6582 section at the end to create dwp hash table for version 5.
6583 (create_dwp_v2_section): Rename function to
6584 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6585 Add V5 to error message text.
6586 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6587 into calls to create_dwp_v2_or_v5_section.
6588 (create_dwo_unit_in_dwp_v5): New function.
6589 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6590 check for version2; add else clause to handle version 5.
6591 (open_and_init_dwo_file): Add code to check dwarf version & only call
6592 create_debug_types_hash_table (with sections.types) if version is not 5;
6593 else call create_debug_type_hash_table, with sections.info.
6594 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6596 (dwarf2_locate_v5_dwp_sections): New function.
6597 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6598 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6600 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6602 * regcache.h (class regcache): Remove friend
6603 registers_changed_ptid.
6604 <regcache_thread_ptid_changed>: Remove.
6605 <regcaches>: Remove.
6606 * regcache.c (regcache::regcaches): Rename to...
6607 (regcaches): ... this. Make static.
6608 (get_thread_arch_aspace_regcache): Update.
6609 (regcache::regcache_thread_ptid_changed): Rename to...
6610 (regcache_thread_ptid_changed): ... this. Update.
6611 (class regcache_access): Remove.
6612 (regcaches_test): Update.
6613 (_initialize_regcache): Update.
6614 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6617 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6619 * regcache.h (class regcache) <current_regcache>: Rename to...
6620 <regcaches>: ... this. Move doc here.
6621 * regcache.c (regcache::current_regcache) Rename to...
6622 (regcache::regcaches): ... this. Move doc to header.
6623 (get_thread_arch_aspace_regcache): Update.
6624 (regcache::regcache_thread_ptid_changed): Update.
6625 (registers_changed_ptid): Update.
6626 (class regcache_access) <current_regcache_size>: Rename to...
6627 <regcaches_size>: ... this.
6628 (current_regcache_test): Rename to...
6629 (regcaches_test): ... this.
6630 (_initialize_regcache): Update.
6632 2020-08-06 Victor Collod <vcollod@nvidia.com>
6634 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6636 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6638 * corelow.c (core_target::build_file_mappings): Don't output
6639 null pathname in warning.
6641 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6643 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6644 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6645 gdb.dwarf2/dw2-single-line-discriminators.exp,
6646 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6648 2020-08-05 Tom Tromey <tromey@adacore.com>
6651 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6652 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6653 Fix off-by-one and type size errors in ordinary case.
6655 2020-08-05 Tom de Vries <tdevries@suse.de>
6657 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6658 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6660 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6662 * frame.h (frame_id_p): Return bool.
6663 (frame_id_artificial_p): Return bool.
6664 (frame_id_eq): Return bool.
6665 (has_stack_frames): Return bool.
6666 (get_selected_frame): Fix typo in comment.
6667 (get_frame_pc_if_available): Return bool.
6668 (get_frame_address_in_block_if_available): Return bool.
6669 (get_frame_func_if_available): Return bool.
6670 (read_frame_register_unsigned): Return bool.
6671 (get_frame_register_bytes): Return bool.
6672 (safe_frame_unwind_memory): Return bool.
6673 (deprecated_frame_register_read): Return bool.
6674 (frame_unwinder_is): Return bool.
6675 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6677 <this_id::p>: Likewise.
6679 (frame_stash_add): Return bool.
6680 (get_frame_id): Use bool.
6681 (frame_id_build_special) Use bool.
6682 (frame_id_build_unavailable_stack): Use bool.
6683 (frame_id_build): Use bool.
6684 (frame_id_p): Return bool, use true/false instead of 1/0.
6685 (frame_id_artificial_p): Likewise.
6686 (frame_id_eq): Likewise.
6687 (frame_id_inner): Likewise.
6688 (get_frame_func_if_available): Likewise.
6689 (read_frame_register_unsigned): Likewise.
6690 (deprecated_frame_register_read): Likewise.
6691 (get_frame_register_bytes): Likewise.
6692 (has_stack_frames): Likewise.
6693 (inside_main_func): Likewise.
6694 (inside_entry_func): Likewise.
6695 (get_frame_pc_if_available): Likewise.
6696 (get_frame_address_in_block_if_available): Likewise.
6697 (frame_unwinder_is): Likewise.
6698 (safe_frame_unwind_memory): Likewise.
6699 (frame_unwind_arch): Likewise.
6701 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6703 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6704 type to cached_copy_status.
6705 (fprintf_frame): Adjust.
6706 (get_frame_func_if_available): Adjust.
6707 (frame_cleanup_after_sniffer): Adjust.
6709 2020-08-04 Mark Wielaard <mark@klomp.org>
6711 * MAINTAINERS (Write After Approval): Update email address.
6713 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6715 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6716 dynamic_prop::const_val.
6718 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6720 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6723 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6725 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6727 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6729 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6731 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6732 Jose E. Marchesi <jose.marchesi@oracle.com>
6734 * configure.tgt: Add entry for bpf-*-*.
6735 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6736 (ALLDEPFILES): Add bpf-tdep.c.
6737 * bpf-tdep.c: New file.
6738 * MAINTAINERS: Add bpf target and maintainer.
6739 * NEWS: Mention the support for the new target.
6741 2020-08-04 Tom de Vries <tdevries@suse.de>
6744 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6747 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6749 * syscalls/freebsd.xml: Regenerate.
6751 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6753 * syscalls/update-freebsd.sh: Fix usage and year range.
6755 2020-08-03 Tom de Vries <tdevries@suse.de>
6758 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6759 DW_LNE_lo_user/DW_LNE_hi_user range.
6761 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6764 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6767 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6769 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6771 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6773 * breakpoint.c (set_breakpoint_condition): Update the condition
6774 expressions after checking that the input condition string parses
6775 successfully and does not contain junk at the end.
6777 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6779 * breakpoint.c (set_breakpoint_condition): Update the
6780 condition string after parsing the new condition successfully.
6782 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6784 * proc-api.c (_STRUCTURED_PROC): Don't define.
6785 * proc-events.c: Likewise.
6786 * proc-flags.c: Likewise.
6787 * proc-why.c: Likewise.
6788 * procfs.c: Likewise.
6790 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6791 * configure, config.in: Regenerate.
6793 2020-07-30 Tom de Vries <tdevries@suse.de>
6796 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6797 m_red/m_green/m_blue in a union.
6799 2020-07-29 Tom de Vries <tdevries@suse.de>
6802 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6804 2020-07-28 Tom Tromey <tromey@adacore.com>
6807 * symtab.h (find_pc_partial_function_sym): Declare.
6808 * cli/cli-cmds.c (disassemble_command): Use
6809 find_pc_partial_function_sym. Check asm_demangle.
6810 * blockframe.c (cache_pc_function_sym): New global.
6811 (cache_pc_function_name): Remove.
6812 (clear_pc_function_cache): Update.
6813 (find_pc_partial_function_sym): New function, from
6814 find_pc_partial_function.
6815 (find_pc_partial_function): Rewrite using
6816 find_pc_partial_function_sym.
6818 2020-07-28 Tom Tromey <tromey@adacore.com>
6820 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6823 2020-07-28 Tom Tromey <tromey@adacore.com>
6825 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6826 <DW_OP_GNU_variable_value>: Cast to address type.
6828 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6830 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6831 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6832 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6833 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6834 (nbsd_get_siginfo_type): New.
6835 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6836 (_initialize_nbsd_tdep): New.
6838 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6841 * configure: Regenerated.
6843 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6846 * configure: Regenerated.
6848 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6850 * python/py-frame.c: Remove 'user-regs.h' include.
6851 (frapy_read_register): Rewrite to make use of
6852 gdbpy_parse_register_id.
6853 * python/py-registers.c (gdbpy_parse_register_id): New function,
6854 moved here from python/py-unwind.c. Updated the return type, and
6855 also accepts register descriptor objects.
6856 * python/py-unwind.c: Remove 'user-regs.h' include.
6857 (pyuw_parse_register_id): Moved to python/py-registers.c.
6858 (unwind_infopy_add_saved_register): Update to use
6859 gdbpy_parse_register_id.
6860 (pending_framepy_read_register): Likewise.
6861 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6863 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6865 * python/py-registers.c: Add 'user-regs.h' include.
6866 (register_descriptor_iter_find): New function.
6867 (register_descriptor_iterator_object_methods): New static global
6869 (register_descriptor_iterator_object_type): Add pointer to methods
6872 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6874 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6875 for all architectures on FreeBSD 11.3 and later.
6877 2020-07-27 Tom Tromey <tromey@adacore.com>
6879 * gcore.h (load_corefile): Don't declare.
6881 2020-07-27 Tom de Vries <tdevries@suse.de>
6883 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6884 * config.in: Regenerate.
6885 * configure: Regenerate.
6887 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6889 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6890 ws2tcpip.h. When checking whether socklen_t type is defined, use
6891 ws2tcpip.h if it is available and sys/socket.h isn't.
6892 * configure: Regenerate.
6893 * config.in: Regenerate.
6895 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6899 * valops.c (value_ind): Pass address to
6900 readjust_indirect_value_type.
6901 * value.c (readjust_indirect_value_type): Make parameter
6902 non-const, and add extra address parameter. Resolve original type
6904 * value.h (readjust_indirect_value_type): Update function
6905 signature and comment.
6907 2020-07-25 Tom de Vries <tdevries@suse.de>
6910 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6913 2020-07-24 Aaron Merey <amerey@redhat.com>
6915 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6916 * configure: Rebuild.
6918 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6921 * corelow.c (_initialize_corelow): Add period to help text
6922 for "maintenance print core-file-backed-mappings".
6924 2020-07-23 Pedro Alves <pedro@palves.net>
6926 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6927 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6929 * frame.c (frame_cache_generation, get_frame_cache_generation):
6931 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6932 (get_prev_frame_if_no_cycle): On exception, don't touch
6933 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6934 * frame.h (get_frame_cache_generation): Declare.
6936 2020-07-23 Tom de Vries <tdevries@suse.de>
6939 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6940 New default constructor.
6942 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6944 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6945 exclude non-statement entries.
6947 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6949 * NEWS (New commands): Mention new command
6950 "maintenance print core-file-backed-mappings".
6952 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6954 * corelow.c (gdbcmd.h): Include.
6955 (core_target::info_proc_mappings): New method.
6956 (get_current_core_target): New function.
6957 (maintenance_print_core_file_backed_mappings): New function.
6958 (_initialize_corelow): Add core-file-backed-mappings to
6959 "maint print" commands.
6961 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6963 * linux-tdep.c (dump_note_entry_p): New function.
6964 (linux_dump_mapping_p_ftype): New typedef.
6965 (linux_find_memory_regions_full): Add new parameter,
6966 should_dump_mapping_p.
6967 (linux_find_memory_regions): Adjust call to
6968 linux_find_memory_regions_full.
6969 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6970 call to linux_find_memory_regions_full.
6972 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6974 * corelow.c (solist.h, unordered_map): Include.
6975 (class core_target): Add field m_core_file_mappings and
6976 method build_file_mappings.
6977 (core_target::core_target): Call build_file_mappings.
6978 (core_target::~core_target): Free memory associated with
6979 m_core_file_mappings.
6980 (core_target::build_file_mappings): New method.
6981 (core_target::xfer_partial): Use m_core_file_mappings
6982 for memory transfers.
6983 * linux-tdep.c (linux_read_core_file_mappings): New
6985 (linux_core_info_proc_mappings): Rewrite to use
6986 linux_read_core_file_mappings.
6987 (linux_init_abi): Register linux_read_core_file_mappings.
6989 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6991 * arch-utils.c (default_read_core_file_mappings): New function.
6992 * arch-utils.c (default_read_core_file_mappings): Declare.
6993 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6994 * gdbarch.h, gdbarch.c: Regenerate.
6996 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6999 * corelow.c (core_target:xfer_partial): Revise
7000 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
7001 case after first checking the stratum beneath the core
7003 (has_all_memory): Return true.
7004 * target.c (raw_memory_xfer_partial): Revise comment
7005 regarding use of has_all_memory.
7007 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7009 * exec.h (section_table_xfer_memory): Revise declaration,
7010 replacing section name parameter with an optional callback
7012 * exec.c (section_table_xfer_memory): Likewise.
7013 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
7014 of section_table_xfer_memory.
7016 2020-07-22 Tom Tromey <tromey@adacore.com>
7018 * mi/mi-cmd-stack.c (list_args_or_locals): Use
7019 lookup_symbol_search_name.
7021 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
7023 * python/py-registers.c (gdbpy_register_object_data_init): Remove
7024 redundant local variable.
7025 (gdbpy_get_register_descriptor): Extract descriptor vector as a
7026 reference, not pointer, update code accordingly.
7028 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7029 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7031 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
7032 * jit.c (jit_breakpoint_re_set_internal): Use the
7033 `skip_jit_symbol_lookup` field.
7035 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7036 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7038 * jit.c (jit_read_descriptor): Define the descriptor address once,
7040 (jit_breakpoint_deleted): Move the declaration of the loop variable
7041 `iter` into the loop header.
7042 (jit_breakpoint_re_set_internal): Move the declaration of the local
7043 variable `objf_data` to the first point of definition.
7044 (jit_event_handler): Move the declaration of local variables
7045 `code_entry`, `entry_addr`, and `objf` to their first point of use.
7046 Rename `objf` to `jited`.
7048 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7050 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
7052 * jit.c (get_jiter_objfile_data): Update.
7054 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7055 Simon Marchi <simon.marchi@polymtl.ca>
7057 * jit.c (struct jit_program_space_data): Remove.
7058 (jit_program_space_key): Remove.
7059 (jiter_objfile_data::~jiter_objfile_data): Remove program space
7061 (get_jit_program_space_data): Remove.
7062 (jit_breakpoint_deleted): Iterate on all of the program space's
7064 (jit_inferior_init): Likewise.
7065 (jit_breakpoint_re_set_internal): Likewise. Also change return
7067 (jit_breakpoint_re_set): Pass current_program_space to
7068 jit_breakpoint_re_set_internal.
7070 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7072 * jit.h (struct jiter_objfile_data) <cached_code_address,
7073 jit_breakpoint>: Move to here from ...
7074 * jit.c (jit_program_space_data): ... here.
7075 (jiter_objfile_data::~jiter_objfile_data): Update.
7076 (jit_breakpoint_deleted): Update.
7077 (jit_breakpoint_re_set_internal): Update.
7079 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7081 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
7083 (jit_read_descriptor): Remove NULL check.
7084 (jit_event_handler): Add an assertion.
7086 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7088 * jit.h (struct jit_objfile_data): Split into...
7089 (struct jiter_objfile_data): ... this ...
7090 (struct jited_objfile_data): ... and this.
7091 * objfiles.h (struct objfile) <jit_data>: Remove.
7092 <jiter_data, jited_data>: New fields.
7093 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
7094 (jiter_objfile_data::~jiter_objfile_data): ... this.
7095 (get_jit_objfile_data): Rename to ...
7096 (get_jiter_objfile_data): ... this.
7097 (add_objfile_entry): Update.
7098 (jit_read_descriptor): Use get_jiter_objfile_data.
7099 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
7100 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
7101 (jit_inferior_exit_hook): Use objfile's jited_data field.
7103 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7105 * jit.h: Forward-declare `struct minimal_symbol`.
7106 (struct jit_objfile_data): Migrate to here from jit.c; also add a
7107 constructor, destructor, and an objfile* field.
7108 * jit.c (jit_objfile_data): Remove.
7109 (struct jit_objfile_data): Migrate from here to jit.h.
7110 (jit_objfile_data::~jit_objfile_data): New destructor
7111 implementation with code moved from free_objfile_data.
7112 (free_objfile_data): Delete.
7113 (get_jit_objfile_data): Update to use the jit_data field of objfile.
7114 (jit_find_objf_with_entry_addr): Ditto.
7115 (jit_inferior_exit_hook): Ditto.
7116 (_initialize_jit): Remove the call to
7117 register_objfile_data_with_cleanup.
7118 * objfiles.h (struct objfile) <jit_data>: New field.
7120 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7122 * jit.h: Forward-declare `struct objfile`.
7123 (jit_event_handler): Add a second parameter, the JITer objfile.
7124 * jit.c (jit_read_descriptor): Change the signature to take the
7125 JITer objfile as an argument instead of the jit_program_space_data.
7126 (jit_inferior_init): Update the call to jit_read_descriptor.
7127 (jit_event_handler): Use the new JITer objfile argument when calling
7128 jit_read_descriptor.
7129 * breakpoint.c (handle_jit_event): Update the call to
7130 jit_event_handler to pass the JITer objfile.
7132 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7134 * gdbarch.c: Regenerate.
7135 * gdbarch.h: Regenerate.
7136 * gdbarch.sh (handle_segmentation_fault): Remove method.
7137 * infrun.c (handle_segmentation_fault): Remove.
7138 (print_signal_received_reason): Remove call to
7139 handle_segmentation_fault.
7141 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7143 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7144 Rename to sparc64_linux_report_signal_info and add siggnal
7146 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
7147 instead of sparc64_linux_handle_segmentation_fault.
7149 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7151 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
7152 i386_linux_report_signal_info instead of
7153 i386_linux_handle_segmentation_fault.
7154 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
7155 to i386_linux_report_signal_info and add siggnal argument.
7156 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
7157 of i386_linux_handle_segmentation_fault.
7158 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
7159 to i386_linux_report_signal_info and add siggnal argument.
7161 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7163 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
7166 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7168 * gdbarch.c: Regenerate.
7169 * gdbarch.h: Regenerate.
7170 * gdbarch.sh (report_signal_info): New method.
7171 * infrun.c (print_signal_received_reason): Invoke gdbarch
7172 report_signal_info hook if present.
7174 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7176 * python/py-registers.c : Add 'unordered_map' include.
7177 (gdbpy_new_reggroup): Renamed to...
7178 (gdbpy_get_reggroup): ...this. Update to only create register
7179 group descriptors when needed.
7180 (gdbpy_reggroup_iter_next): Update.
7182 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7184 * python/py-registers.c (gdbpy_register_object_data): New static
7186 (gdbpy_register_object_data_init): New function.
7187 (gdbpy_new_register_descriptor): Renamed to...
7188 (gdbpy_get_register_descriptor): ...this, and update to reuse
7189 existing register descriptors where possible.
7190 (gdbpy_register_descriptor_iter_next): Update.
7191 (gdbpy_initialize_registers): Register new gdbarch data.
7193 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
7195 * linux-nat.c (stopped_pids): Make static.
7197 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
7200 * gdbtypes.c (ada_discrete_type_low_bound,
7201 ada_discrete_type_high_bound): Handle undefined bounds.
7203 2020-07-21 Kamil Rytarowski <n54@gmx.com>
7205 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
7207 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
7210 2020-07-20 John Baldwin <jhb@FreeBSD.org>
7212 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
7213 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
7214 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
7215 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7216 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7219 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7221 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7222 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7223 which are deprecated in Guile 3.0.
7224 * configure.ac (try_guile_versions): Add "guile-3.0".
7225 * configure (try_guile_versions): Regenerate.
7226 * NEWS: Update entry.
7228 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7229 Doug Evans <dje@google.com>
7232 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7233 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7234 USING_GUILE_BEFORE_2_2.
7235 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7236 Change type to 'scm_t_port_type *'.
7237 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7238 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7239 parameter and honor it. Update callers.
7240 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7241 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7243 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7244 USING_GUILE_BEFORE_2_2.
7245 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7246 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7247 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7248 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7249 and 'SCM_PORT_TYPE'.
7250 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7251 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7252 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7253 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7254 [!USING_GUILE_BEFORE_2_2]: New functions.
7255 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7256 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7257 'gdbscm_memory_port_read'.
7258 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7259 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7260 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7262 (ioscm_init_memory_port): Remove.
7263 (ioscm_init_memory_port_stream): New function
7264 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7266 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7267 Return scm_from_uint (0).
7268 (gdbscm_set_memory_port_read_buffer_size_x)
7269 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7270 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7271 Return scm_from_uint (0).
7272 (gdbscm_set_memory_port_write_buffer_size_x)
7273 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7274 * configure.ac (try_guile_versions): Add "guile-2.2".
7275 * configure: Regenerate.
7278 2020-07-18 Tom Tromey <tom@tromey.com>
7280 * linux-nat.c (linux_multi_process): Remove.
7281 (linux_nat_target::supports_multi_process): Return true.
7283 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7285 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7286 (riscv_lookup_target_description): Return pointer out of
7288 * target-descriptions.c (allocate_target_description): Add
7290 (target_desc_deleter::operator()): Likewise.
7291 * target-descriptions.h (struct target_desc_deleter): Moved to
7293 (target_desc_up): Likewise.
7295 2020-07-17 Tom Tromey <tromey@adacore.com>
7297 * linux-nat.c (linux_nat_target::supports_non_stop)
7298 (linux_nat_target::always_non_stop_p): Use "true".
7299 (linux_nat_target::supports_disable_randomization): Use "true" and
7302 2020-07-16 Caroline Tice <cmtice@google.com>
7304 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7305 (RNGLIST_HEADER_SIZE64): New constant definition.
7306 (struct dwop_section_names): Add rnglists_dwo.
7307 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7308 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7309 (struct dwo_sections): Add rnglists field.
7310 (read_attribut_reprocess): Add tag parameter.
7311 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7312 (cu_debug_rnglists_section): New function (decl & definition).
7313 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7314 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7315 die whose range is being checked; get rnglist section from
7316 cu_debug_rnglists_section, to get from either objfile or dwo file as
7317 appropriate. Add cases for DW_RLE_base_addressx,
7318 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7319 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7320 test inside if-condition and updating complaint message.
7321 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7322 dwarf2_rnglists_process.
7323 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7324 dwarf2_ranges_process.
7325 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7326 need_ranges_base and update comment appropriately. Also pass die tag
7327 to dwarf2_ranges_read.
7328 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7329 need_ranges_base and update comment appropriately. Also pass die tag
7330 to dwarf2_ranges_process.
7331 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7332 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7333 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7334 need_ranges_base and update comment appropriately. Also pass die tag
7335 to read_attribute_reprocess and dwarf2_ranges_read.
7336 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7337 and update function comment appropriately.
7338 (read_loclist_index): Call read_loclists_rnglists_header instead of
7339 read_loclist_header.
7340 (read_rnglist_index): New function.
7341 (read_attribute_reprocess): Add tag parameter. Add code for
7342 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7343 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7345 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7347 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7350 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7352 * arch-utils.c (show_architecture): Update formatting of messages.
7354 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7356 * gdbtypes.h (struct type) <bounds>: Handle array and string
7358 * ada-lang.c (assign_aggregate): Use type::bounds on
7360 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7361 * c-varobj.c (c_number_of_children): Likewise.
7362 (c_describe_child): Likewise.
7363 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7364 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7365 (f_type_print_base): Likewise.
7366 * f-valprint.c (f77_array_offset_tbl): Likewise.
7367 (f77_get_upperbound): Likewise.
7368 (f77_print_array_1): Likewise.
7369 * guile/scm-type.c (gdbscm_type_range): Likewise.
7370 * m2-typeprint.c (m2_array): Likewise.
7371 (m2_is_long_set_of_type): Likewise.
7372 * m2-valprint.c (get_long_set_bounds): Likewise.
7373 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7374 * python/py-type.c (typy_range): Likewise.
7375 * rust-lang.c (rust_internal_print_type): Likewise.
7376 * type-stack.c (type_stack::follow_types): Likewise.
7377 * valarith.c (value_subscripted_rvalue): Likewise.
7378 * valops.c (value_cast): Likewise.
7380 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7382 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7383 callers to use the equivalent accessor methods.
7385 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7387 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7388 (struct type) <bit_stride>: New method.
7389 (TYPE_BIT_STRIDE): Remove.
7390 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7392 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7394 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7395 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7396 callers to use the equivalent accessor methods instead.
7398 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7400 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7401 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7402 callers to use the equivalent accessor methods instead.
7404 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7406 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7407 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7408 to use dynamic_prop::kind.
7410 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7412 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7413 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7414 to get the bound property's kind and check against
7417 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7419 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7420 all callers to use type::range_bounds followed by
7421 dynamic_prop::{low,high}.
7423 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7425 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7426 const_val, set_const_val, baton, set_locexpr, set_loclist,
7427 set_addr_offset, variant_parts, set_variant_parts,
7428 original_type, set_original_type>: New methods.
7429 <kind>: Rename to...
7430 <m_kind>: ... this. Update all users to use the new methods
7432 <data>: Rename to...
7433 <m_data>: ... this. Update all users to use the new methods
7436 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7438 * gdbtypes.c (get_discrete_bounds): Return failure if
7439 the range type's bounds are not both defined and constant
7441 (get_array_bounds): Update comment. Remove undefined bound check.
7443 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7445 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7446 the type::bounds method directly.
7448 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7450 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7451 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7452 are used to set the range type's bounds to use set_bounds.
7454 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7456 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7458 2020-07-10 Pedro Alves <pedro@palves.net>
7460 * gdbthread.h (inferior_ref): Define.
7461 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7462 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7464 (scoped_restore_current_thread::restore):
7465 Adjust to gdb::ref_ptr.
7466 (scoped_restore_current_thread::~scoped_restore_current_thread):
7467 Remove manual decref handling.
7468 (scoped_restore_current_thread::scoped_restore_current_thread):
7470 inferior_ref::new_reference/thread_info_ref::new_reference.
7471 Incref the thread before calling get_frame_id instead of after.
7472 Let TARGET_CLOSE_ERROR propagate.
7474 2020-07-10 Pedro Alves <pedro@palves.net>
7476 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7477 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7478 NOT_AVAILABLE_ERROR.
7479 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7480 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7482 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7483 Pedro Alves <pedro@palves.net>
7486 * infrun.c (threads_are_resumed_pending_p): Delete.
7487 (do_target_wait): Remove threads_are_executing and
7488 threads_are_resumed_pending_p checks from the inferior_matches
7489 lambda. Update comments.
7491 2020-07-10 Pedro Alves <pedro@palves.net>
7494 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7497 2020-07-10 Pedro Alves <pedro@palves.net>
7500 * infrun.c (handle_no_resumed): Handle multiple targets.
7502 2020-07-10 Pedro Alves <pedro@palves.net>
7505 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7508 2020-07-10 Pedro Alves <pedro@palves.net>
7511 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7512 threads, not all threads.
7514 2020-07-10 Pedro Alves <pedro@palves.net>
7517 * remote.c (remote_target::open_1): Pass remote target pointer as
7518 data to create_async_event_handler.
7519 (remote_async_inferior_event_handler): Mark async event handler
7520 before returning if the remote target still has either pending
7521 events or unacknowledged notifications.
7523 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7525 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7527 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7530 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7532 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7535 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7537 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7538 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7539 AT_FREEBSD_PS_STRINGS.
7541 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7543 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7544 of debugfile path on Windows.
7546 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7548 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7551 2020-07-08 Tom Tromey <tromey@adacore.com>
7553 * ada-lang.c (ada_exception_message_1): Use read_memory.
7555 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7558 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7559 special handling for inline frames.
7560 * findvar.c (value_of_register_lazy): Skip inline frames when
7561 creating lazy register values.
7562 * frame.c (frame_id_computed_p): Delete definition.
7563 * frame.h (frame_id_computed_p): Delete declaration.
7565 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7567 * NEWS: Mention additions to Python API.
7568 * python/py-arch.c (archpy_register_groups): New function.
7569 (arch_object_methods): Add 'register_groups' method.
7570 * python/py-registers.c (reggroup_iterator_object): New struct.
7571 (reggroup_object): New struct.
7572 (gdbpy_new_reggroup): New function.
7573 (gdbpy_reggroup_to_string): New function.
7574 (gdbpy_reggroup_name): New function.
7575 (gdbpy_reggroup_iter): New function.
7576 (gdbpy_reggroup_iter_next): New function.
7577 (gdbpy_new_reggroup_iterator): New function
7578 (gdbpy_initialize_registers): Register new types.
7579 (reggroup_iterator_object_type): Define new Python type.
7580 (gdbpy_reggroup_getset): New static global.
7581 (reggroup_object_type): Define new Python type.
7582 * python/python-internal.h
7584 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7586 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7587 * python/py-arch.c (archpy_registers): New function.
7588 (arch_object_methods): Add 'registers' method.
7589 * python/py-registers.c: New file.
7590 * python/python-internal.h
7591 (gdbpy_new_register_descriptor_iterator): Declare.
7592 (gdbpy_initialize_registers): Declare.
7593 * python/python.c (do_start_initialization): Call
7594 gdbpy_initialize_registers.
7595 * NEWS: Mention additions to the Python API.
7597 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7599 * NEWS: Mention new Python API method.
7600 * python/py-unwind.c (pending_framepy_architecture): New function.
7601 (pending_frame_object_methods): Add architecture method.
7603 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7605 * gdbarch.c: Regenerate.
7606 * gdbarch.h: Regenerate.
7607 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7608 (gdbarch_data): Use internal_error for the case where
7609 deprecated_set_gdbarch_data was originally needed.
7610 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7611 and use passed in obstack.
7612 (libunwind_frame_set_descr): Should no longer get back NULL from
7614 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7616 * user-regs.c (user_regs_init): Update parameters, and use passed
7618 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7619 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7621 2020-07-06 Tom de Vries <tdevries@suse.de>
7623 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7624 End-Of-Sequence in lte_is_less_than.
7625 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7626 "gdb: Don't reorder line table entries too much when sorting".
7628 2020-07-06 Tom de Vries <tdevries@suse.de>
7631 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7633 2020-07-05 Tom de Vries <tdevries@suse.de>
7636 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7637 std::uncaught_exceptions instead of deprecated
7638 std::uncaught_exception.
7640 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7642 * macroexp.h (macro_stringify): Return
7643 gdb::unique_xmalloc_ptr<char>.
7644 * macroexp.c (macro_stringify): Likewise.
7645 * macrotab.c (fixup_definition): Update.
7647 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7649 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7650 (lex_one_token): Update.
7651 * macroexp.c (struct macro_buffer) <release>: Return
7652 gdb::unique_xmalloc_ptr<char>.
7653 (macro_stringify): Update.
7654 (macro_expand): Update.
7655 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7656 * macroexp.h (macro_expand_next): Likewise.
7658 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7660 * macroexp.h (macro_lookup_ftype): Remove.
7661 (macro_expand, macro_expand_once, macro_expand_next): Remove
7662 lookup function parameters, add scope parameter.
7663 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7664 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7665 * macroscope.h (standard_macro_lookup): Change parameter type
7667 * macroscope.c (standard_macro_lookup): Likewise.
7668 * c-exp.y (lex_one_token): Update.
7669 * macrocmd.c (macro_expand_command): Likewise.
7670 (macro_expand_once_command): Likewise.
7672 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7674 * inf-loop.c (inferior_event_handler): Remove client_data param.
7675 * inf-loop.h (inferior_event_handler): Likewise.
7676 * infcmd.c (step_1): Adjust.
7677 * infrun.c (proceed): Adjust.
7678 (fetch_inferior_event): Remove client_data param.
7679 (infrun_async_inferior_event_handler): Adjust.
7680 * infrun.h (fetch_inferior_event): Remove `void *` param.
7681 * linux-nat.c (handle_target_event): Adjust.
7682 * record-btrace.c (record_btrace_handle_async_inferior_event):
7684 * record-full.c (record_full_async_inferior_event_handler):
7686 * remote.c (remote_async_inferior_event_handler): Adjust.
7688 2020-07-01 Tom Tromey <tom@tromey.com>
7690 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7691 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7693 2020-07-01 Tom Tromey <tom@tromey.com>
7695 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7697 (tui_win_info::make_window): Merge with
7698 tui_gen_win_info::make_window.
7699 (tui_win_info::make_visible): Move from tui_gen_win_info.
7700 * tui/tui-win.c (tui_win_info::max_width): Move from
7702 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7704 <window_factory>: Likewise.
7705 * tui/tui-layout.c (tui_win_info::resize): Move from
7707 (make_standard_window): Change return type.
7708 (get_locator_window, tui_get_window_by_name): Likewise.
7709 (tui_layout_window::apply): Remove a cast.
7710 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7711 (struct tui_win_info): Merge with tui_gen_win_info.
7712 (struct tui_gen_win_info): Remove.
7714 2020-07-01 Tom Tromey <tom@tromey.com>
7716 * tui/tui-stack.h (struct tui_locator_window): Derive from
7718 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7719 <can_box>: New method.
7721 2020-07-01 Tom Tromey <tom@tromey.com>
7723 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7725 2020-07-01 Tom Tromey <tom@tromey.com>
7727 * tui/tui-regs.c (tui_data_window::display_registers_from)
7728 (tui_data_window::display_registers_from)
7729 (tui_data_window::first_data_item_displayed)
7730 (tui_data_window::delete_data_content_windows): Update.
7731 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7733 (tui_data_window::check_register_values): Update.
7734 (tui_data_item_window::rerender): Add parameters. Update.
7735 (tui_data_item_window::refresh_window): Remove.
7736 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7738 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7740 <refresh_window, max_height, min_height>: Remove.
7741 <rerender>: Add parameters.
7742 <x, y, visible>: New members.
7743 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7744 <m_item_width>: New member.
7746 2020-07-01 Tom Tromey <tom@tromey.com>
7748 * tui/tui-regs.c (tui_data_window::show_register_group)
7749 (tui_data_window::check_register_values): Update.
7750 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7753 2020-07-01 Tom Tromey <tom@tromey.com>
7755 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7758 2020-07-01 Tom Tromey <tom@tromey.com>
7760 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7761 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7763 2020-07-01 Tom Tromey <tom@tromey.com>
7765 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7766 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7767 (struct tui_line_or_address): Move from tui-data.h.
7768 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7769 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7770 (tui_cmd_window, tui_source_window_base, tui_source_window)
7771 (tui_disasm_window): Don't declare.
7772 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7774 (SINGLE_KEY): Move to tui-stack.c.
7776 2020-07-01 Tom Tromey <tom@tromey.com>
7778 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7780 * tui/tui-regs.c (class tab_expansion_file): New.
7781 (tab_expansion_file::write): New method.
7782 (tui_register_format): Change return type. Use
7784 (tui_get_register, tui_data_window::display_registers_from)
7785 (tui_data_item_window::rerender): Update.
7786 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7787 * tui/tui-io.c (tui_expand_tabs): Remove.
7789 2020-07-01 Tom Tromey <tom@tromey.com>
7791 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7793 2020-07-01 Fangrui Song <maskray@google.com>
7795 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7797 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7799 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7800 forms for DW_AT_associated and DW_AT_allocated attributes,
7801 which is already checked in function attr_to_dynamic_prop.
7803 2020-06-30 Tom Tromey <tromey@adacore.com>
7805 * dwarf2/read.c (quirk_rust_enum): Correctly call
7806 alloc_rust_variant for default-less enum.
7808 2020-06-30 Tom Tromey <tromey@adacore.com>
7811 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7814 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7816 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7817 * gdbarch.h: Re-generate.
7819 2020-06-28 Tom Tromey <tom@tromey.com>
7821 * command.h (cmd_types): Remove.
7822 (cmd_type): Don't declare.
7823 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7825 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7826 * cli/cli-decode.c (cmd_type): Remove.
7828 2020-06-27 Pedro Alves <palves@redhat.com>
7830 * fork-child.c (prefork_hook): Adjust.
7831 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7833 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7834 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7835 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7836 Remove declarations.
7837 (struct inferior) <set_tty, tty>: New methods.
7838 (struct inferior) <terminal>: Rename to ...
7839 (struct inferior) <m_terminal>: ... this and make private.
7840 * main.c (captured_main_1): Adjust.
7841 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7842 (mi_cmd_inferior_tty_show): Adjust.
7843 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7844 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7846 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7848 * configure.ac: Add --enable-libctf: handle --disable-static
7850 * acinclude.m4: sinclude ../config/enable.m4.
7851 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7852 (LIBCTF): Substitute in.
7853 (CTF_DEPS): New, likewise.
7854 (CLIBS): libctf needs symbols from libbfd: move earlier.
7855 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7857 * ctfread.c: Surround in ENABLE_LIBCTF.
7858 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7859 * configure: Regenerate.
7860 * config.in: Likewise.
7862 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7864 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7866 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7868 * inferior.h (struct inferior) <terminal>: Change type to
7869 gdb::unique_xmalloc_ptr<char>.
7870 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7871 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7872 field, adjust to unique pointer.
7873 (get_inferior_io_terminal): Adjust to unique pointer.
7875 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7877 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7878 registers, not just the known core set of registers.
7880 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7882 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7883 fflags, frm, and fcsr registers.
7884 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7886 (riscv_tdesc_unknown_reg): New function.
7887 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7888 tdesc_use_registers.
7889 * riscv-tdep.h (struct gdbarch_tdep): Add
7890 unknown_csrs_first_regnum, unknown_csrs_count,
7891 duplicate_fflags_regnum, duplicate_frm_regnum, and
7892 duplicate_fcsr_regnum fields.
7894 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7896 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7897 callback, use the callback (when not null) to help number unknown
7899 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7900 (tdesc_use_registers): Add extra parameter to declaration.
7902 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7904 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7906 (class riscv_pending_register_alias): Likewise.
7907 (riscv_register_feature::register_info): Change 'required_p' field
7908 to 'required', and change its type. Add 'check' member function.
7909 (riscv_register_feature::register_info::check): Define new member
7911 (riscv_xreg_feature): Change initialisation of 'required' field.
7912 (riscv_freg_feature): Likewise.
7913 (riscv_virtual_feature): Likewise.
7914 (riscv_csr_feature): Likewise.
7915 (riscv_check_tdesc_feature): Take extra parameter, the csr
7916 tdesc_feature, rewrite the function to use the new
7917 riscv_register_feature::register_info::check function.
7918 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7920 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7922 * features/Makefile: Remove all references to the deleted files
7924 * features/riscv/32bit-csr.c: Deleted.
7925 * features/riscv/32bit-csr.xml: Deleted.
7926 * features/riscv/64bit-csr.c: Deleted.
7927 * features/riscv/64bit-csr.xml: Deleted.
7928 * features/riscv/rebuild-csr-xml.sh: Deleted.
7930 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7932 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7933 whitespace error for declaration of names member variable.
7934 (struct riscv_register_feature): Add new prefer_first_name member
7935 variable, and fix whitespace error in declaration of registers.
7936 (riscv_xreg_feature): Initialize prefer_first_name field.
7937 (riscv_freg_feature): Likewise.
7938 (riscv_virtual_feature): Likewise.
7939 (riscv_csr_feature): Likewise.
7940 (riscv_register_name): Expand on comments. Remove register name
7941 modifications for CSR and virtual registers.
7943 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7945 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7948 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7950 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7952 (class riscv_pending_register_alias): New class.
7953 (riscv_check_tdesc_feature): Take vector of pending aliases and
7954 populate it as appropriate.
7955 (riscv_setup_register_aliases): Delete.
7956 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7957 to riscv_check_tdesc_feature in all cases. Use the vector to
7958 create the register aliases.
7960 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7962 * sol2-tdep.c (sol2_static_transform_name): Remove.
7963 (sol2_init_abi): Don't register it.
7964 * gdbarch.sh (static_transform_name): Remove.
7965 * gdbarch.c, gdbarch.h: Regenerate.
7967 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7968 gdbarch_static_transform_name.
7969 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7970 * stabsread.c (define_symbol) <'X'>: Remove.
7971 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7974 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7975 <'S'>: Remove call to gdbarch_static_transform_name.
7977 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7979 * procfs.c (procfs_pre_trace): New function.
7980 (procfs_target::create_inferior): Pass it to fork_inferior.
7982 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7984 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7985 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7986 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7987 sol2-tdep.o, sparc-sol2-tdep.o.
7988 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7989 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7990 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7991 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7993 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7995 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7996 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7998 Remove calls to set_gdbarch_skip_solib_resolver,
7999 set_gdbarch_core_pid_to_str.
8000 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
8001 (i386_sol2_static_transform_name): Remove.
8002 (i386_sol2_init_abi): Call sol2_init_abi.
8003 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8004 set_gdbarch_static_transform_name,
8005 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
8006 Use sol2_sigtramp_p.
8007 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
8008 (sol2_sigtramp_p): New function.
8009 (sol2_static_transform_name): New function.
8010 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
8011 (sol2_init_abi): New function.
8012 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
8013 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
8014 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
8015 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
8016 (sparc_sol2_static_transform_name): Remove.
8017 (sparc32_sol2_init_abi): Call sol2_init_abi.
8018 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8019 set_gdbarch_static_transform_name,
8020 set_gdbarch_skip_solib_resolver,
8021 set_gdbarch_core_pid_to_str.
8022 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
8023 (sparc_sol2_static_transform_name): Remove
8024 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
8025 call sol2_sigtramp_p.
8026 (sparc64_sol2_init_abi): Call sol2_init_abi.
8027 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8028 set_gdbarch_static_transform_name,
8029 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
8031 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8033 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
8034 * exec.c (validate_exec_file): If from_tty, set both
8035 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
8036 * symfile.c (symbol_file_add_with_addrs): if always_confirm
8037 and from_tty, unconditionally ask a confirmation.
8039 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8041 * target-descriptions.c (tdesc_architecture_name): Protect against
8042 NULL pointer dereference.
8043 (maint_print_xml_tdesc_cmd): New function.
8044 (_initialize_target_descriptions): Register new 'maint print
8045 xml-tdesc' command and give it the filename completer.
8046 * NEWS: Mention new 'maint print xml-tdesc' command.
8048 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8050 * target-descriptions.c (class tdesc_compatible_info): New class.
8051 (struct target_desc): Change type of compatible vector.
8052 (tdesc_compatible_p): Update for change in type of
8053 target_desc::compatible.
8054 (tdesc_compatible_info_list): New function.
8055 (tdesc_compatible_info_arch_name): New function.
8056 (tdesc_add_compatible): Update for change in type of
8057 target_desc::compatible.
8058 (print_c_tdesc::visit_pre): Likewise.
8060 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8062 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
8063 whitespace to underscore.
8064 (maint_print_c_tdesc_cmd): Use fake filename for target
8065 descriptions that came from the target.
8066 (_initialize_target_descriptions): Add filename command completion
8067 for 'maint print c-tdesc'.
8069 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
8071 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
8074 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
8076 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
8078 (dwarf2_find_location_expression): Likewise.
8079 (call_site_parameter_matches): Likewise.
8080 (dwarf2_compile_expr_to_ax): Likewise.
8081 (disassemble_dwarf_expression): Likewise.
8082 (loclist_describe_location): Likewise.
8084 2020-06-23 Pedro Alves <palves@redhat.com>
8086 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
8087 progspace-and-thread.h. Include scoped-mock-context.h instead.
8088 (register_to_value_test): Use scoped_mock_context.
8089 * regcache.c: Include "scoped-mock-context.h".
8090 (cooked_read_test): Don't error out if a target is already pushed.
8091 Use scoped_mock_context. Adjust.
8092 * scoped-mock-context.h: New file.
8094 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8096 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
8098 (ada_language::is_string_type_p): New member function.
8099 * c-lang.c (c_language_data): Delete la_is_string_type_p
8101 (cplus_language_data): Likewise.
8102 (asm_language_data): Likewise.
8103 (minimal_language_data): Likewise.
8104 * d-lang.c (d_language_data): Likewise.
8105 * f-lang.c (f_is_string_type_p): Delete function, implementation
8106 moved to f_language::is_string_type_p.
8107 (f_language_data): Delete la_is_string_type_p initializer.
8108 (f_language::is_string_type_p): New member function,
8109 implementation from f_is_string_type_p.
8110 * go-lang.c (go_is_string_type_p): Delete function, implementation
8111 moved to go_language::is_string_type_p.
8112 (go_language_data): Delete la_is_string_type_p initializer.
8113 (go_language::is_string_type_p): New member function,
8114 implementation from go_is_string_type_p.
8115 * language.c (language_defn::is_string_type_p): Define new member
8117 (default_is_string_type_p): Make static, add comment copied from
8119 (unknown_language_data): Delete la_is_string_type_p initializer.
8120 (unknown_language::is_string_type_p): New member function.
8121 (auto_language_data): Delete la_is_string_type_p initializer.
8122 (auto_language::is_string_type_p): New member function.
8123 * language.h (language_data): Delete la_is_string_type_p field.
8124 (language_defn::is_string_type_p): Declare new function.
8125 (default_is_string_type_p): Delete desclaration, move comment to
8127 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
8128 moved to m2_language::is_string_type_p.
8129 (m2_language_data): Delete la_is_string_type_p initializer.
8130 (m2_language::is_string_type_p): New member function,
8131 implementation from m2_is_string_type_p.
8132 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
8134 * opencl-lang.c (opencl_language_data): Likewise.
8135 * p-lang.c (pascal_is_string_type_p): Delete function,
8136 implementation moved to pascal_language::is_string_type_p.
8137 (pascal_language_data): Delete la_is_string_type_p initializer.
8138 (pascal_language::is_string_type_p): New member function,
8139 implementation from pascal_is_string_type_p.
8140 * rust-lang.c (rust_is_string_type_p): Delete function,
8141 implementation moved to rust_language::is_string_type_p.
8142 (rust_language_data): Delete la_is_string_type_p initializer.
8143 (rust_language::is_string_type_p): New member function,
8144 implementation from rust_is_string_type_p.
8145 * valprint.c (val_print_scalar_or_string_type_p): Update call to
8148 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8150 * ada-lang.c (ada_language_data): Delete la_print_typedef
8152 (ada_language::print_typedef): New member function.
8153 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
8154 (cplus_language_data): Likewise.
8155 (asm_language_data): Likewise.
8156 (minimal_language_data): Likewise.
8157 * d-lang.c (d_language_data): Likewise.
8158 * f-lang.c (f_language_data): Likewise.
8159 (f_language::print_typedef): New member function.
8160 * go-lang.c (go_language_data): Delete la_print_typedef
8162 * language.c (language_defn::print_typedef): Define member
8164 (unknown_language_data): Delete la_print_typedef initializer.
8165 (unknown_language::print_typedef): New member function.
8166 (auto_language_data): Delete la_print_typedef initializer.
8167 (auto_language::print_typedef): New member function.
8168 * language.h (language_data): Delete la_print_typedef field.
8169 (language_defn::print_typedef): Declare new member function.
8170 (LA_PRINT_TYPEDEF): Update call to print_typedef.
8171 (default_print_typedef): Delete declaration.
8172 * m2-lang.c (m2_language_data): Delete la_print_typedef
8174 (m2_language::print_typedef): New member function.
8175 * objc-lang.c (objc_language_data): Delete la_print_typedef
8177 * opencl-lang.c (opencl_language_data): Likewise.
8178 * p-lang.c (pascal_language_data): Likewise.
8179 (pascal_language::print_typedef): New member function.
8180 * rust-lang.c (rust_print_typedef): Delete function,
8181 implementation moved to rust_language::print_typedef.
8182 (rust_language): Delete la_print_typedef initializer.
8183 (rust_language::print_typedef): New member function,
8184 implementation from rust_print_typedef.
8185 * typeprint.c (default_print_typedef): Delete.
8187 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8189 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
8190 (ada_language::printstr): New member function.
8191 * c-lang.c (c_language_data): Delete la_printstr initializer.
8192 (cplus_language_data): Likewise.
8193 (asm_language_data): Likewise.
8194 (minimal_language_data): Likewise.
8195 * d-lang.c (d_language_data): Likewise.
8196 * f-lang.c (f_printstr): Rename to f_language::printstr.
8197 (f_language_data): Delete la_printstr initializer.
8198 (f_language::printstr): New member function, implementation from
8200 * go-lang.c (go_language_data): Delete la_printstr initializer.
8201 * language.c (language_defn::printstr): Define new member
8203 (unk_lang_printstr): Delete.
8204 (unknown_language_data): Delete la_printstr initializer.
8205 (unknown_language::printstr): New member function.
8206 (auto_language_data): Delete la_printstr initializer.
8207 (auto_language::printstr): New member function.
8208 * language.h (language_data): Delete la_printstr field.
8209 (language_defn::printstr): Declare new member function.
8210 (LA_PRINT_STRING): Update call to printstr.
8211 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
8212 (m2_language_data): Delete la_printstr initializer.
8213 (m2_language::printstr): New member function, implementation from
8215 * objc-lang.c (objc_language_data): Delete la_printstr
8217 * opencl-lang.c (opencl_language_data): Likewise.
8218 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8219 (pascal_language_data): Delete la_printstr initializer.
8220 (pascal_language::printstr): New member function, implementation
8221 from pascal_printstr.
8222 * p-lang.h (pascal_printstr): Delete declaration.
8223 * rust-lang.c (rust_printstr): Update header comment.
8224 (rust_language_data): Delete la_printstr initializer.
8225 (rust_language::printstr): New member function.
8227 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8229 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8230 (ada_language::printchar): New member function.
8231 * c-lang.c (c_language_data): Delete la_printchar initializer.
8232 (cplus_language_data): Likewise.
8233 (asm_language_data): Likewise.
8234 (minimal_language_data): Likewise.
8235 * d-lang.c (d_language_data): Likewise.
8236 * f-lang.c (f_printchar): Rename to f_language::printchar.
8237 (f_language_data): Delete la_printchar initializer.
8238 (f_language::printchar): New member function, implementation from
8240 * go-lang.c (go_language_data): Delete la_printchar initializer.
8241 * language.c (unk_lang_printchar): Delete.
8242 (language_defn::printchar): Define new member function.
8243 (unknown_language_data): Delete la_printchar initializer.
8244 (unknown_language::printchar): New member function.
8245 (auto_language_data): Delete la_printchar initializer.
8246 (auto_language::printchar): New member function.
8247 * language.h (language_data): Delete la_printchar field.
8248 (language_defn::printchar): Declare new member function.
8249 (LA_PRINT_CHAR): Update call to printchar.
8250 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8251 (m2_language::printchar): New member function.
8252 * objc-lang.c (objc_language_data): Delete la_printchar
8254 * opencl-lang.c (opencl_language_data): Likewise.
8255 * p-lang.c (pascal_language_data): Delete la_printchar
8257 (pascal_language::printchar): New member function.
8258 * rust-lang.c (rust_printchar): Rename to
8259 rust_language::printchar.
8260 (rust_language_data): Delete la_printchar initializer.
8261 (rust_language::printchar): New member function, implementation
8262 from rust_printchar.
8264 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8266 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8267 (ada_language_data): Delete la_emitchar initializer.
8268 (ada_language::emitchar): New member function, implementation from
8270 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8271 (cplus_language_data): Likewise.
8272 (asm_language_data): Likewise.
8273 (minimal_language_data): Likewise.
8274 * d-lang.c (d_language_data): Likewise.
8275 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8276 (f_language_data): Delete la_emitchar initializer.
8277 (f_language::emitchar): New member function, implementation from
8279 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8280 * language.c (unk_lang_emit_char): Delete.
8281 (language_defn::emitchar): New member function definition.
8282 (unknown_language_data): Delete la_emitchar initializer.
8283 (unknown_language::emitchar): New member function.
8284 (auto_language_data): Delete la_emitchar initializer.
8285 (auto_language::emitchar): New member function.
8286 * language.h (language_data): Delete la_emitchar field.
8287 (language_defn::emitchar): New member field declaration.
8288 (LA_EMIT_CHAR): Update call to emitchar.
8289 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8290 (m2_language_data): Delete la_emitchar initializer.
8291 (m2_language::emitchar): New member function, implementation from
8293 * objc-lang.c (objc_language_data): Delete la_emitchar
8295 * opencl-lang.c (opencl_language_data): Likewise.
8296 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8297 (pascal_language_data): Delete la_emitchar initializer.
8298 (pascal_language::emitchar): New member function, implementation
8299 from pascal_emit_char.
8300 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8301 (rust_language_data): Delete la_emitchar initializer.
8302 (rust_language::emitchar): New member function, implementation
8305 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8307 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8308 (ada_language_data): Delete la_post_parser initializer.
8309 (ada_language::post_parser): New member function.
8310 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8311 (cplus_language_data): Likewise.
8312 (asm_language_data): Likewise.
8313 (minimal_language_data): Likewise.
8314 * d-lang.c (d_language_data): Likewise.
8315 * f-lang.c (f_language_data): Likewise.
8316 * go-lang.c (go_language_data): Likewise.
8317 * language.c (unknown_language_data): Likewise.
8318 (auto_language_data): Likewise.
8319 * language.h (language_data): Delete la_post_parser field.
8320 (language_defn::post_parser): New member function.
8321 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8322 * objc-lang.c (objc_language_data): Likewise.
8323 * opencl-lang.c (opencl_language_data): Likewise.
8324 * p-lang.c (pascal_language_data): Likewise.
8325 * parse.c (parse_exp_in_context): Update call to post_parser.
8326 (null_post_parser): Delete definition.
8327 * parser-defs.h (null_post_parser): Delete declaration.
8328 * rust-lang.c (rust_language_data): Delete la_post_parser
8331 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8333 * ada-lang.c (parse): Rename to ada_language::parser.
8334 (ada_language_data): Delete la_parser initializer.
8335 (ada_language::parser): New member function, implementation from
8337 * c-lang.c (c_language_data): Delete la_parser initializer.
8338 (cplus_language_data): Likewise.
8339 (asm_language_data): Likewise.
8340 (minimal_language_data): Likewise.
8341 * d-lang.c (d_language_data): Likewise.
8342 (d_language::parser): New member function.
8343 * f-lang.c (f_language_data): Delete la_parser initializer.
8344 (f_language::parser): New member function.
8345 * go-lang.c (go_language_data): Delete la_parser initializer.
8346 (go_language::parser): New member function.
8347 * language.c (unk_lang_parser): Delete.
8348 (language_defn::parser): Define new member function.
8349 (unknown_language_data): Delete la_parser initializer.
8350 (unknown_language::parser): New member function.
8351 (auto_language_data): Delete la_parser initializer.
8352 (auto_language::parser): New member function.
8353 * language.h (language_data): Delete la_parser field.
8354 (language_defn::parser): Declare new member function.
8355 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8356 (m2_language::parser): New member function.
8357 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8358 * opencl-lang.c (opencl_language_data): Likewise.
8359 * p-lang.c (pascal_language_data): Likewise.
8360 (pascal_language::parser): New member function.
8361 * parse.c (parse_exp_in_context): Update call to parser.
8362 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8363 (rust_language::parser): New member function.
8365 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8367 * top.c (print_gdb_configuration): Print --with-python-libdir
8368 configuration value.
8370 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8372 * NEWS: Mention change to the alias command.
8374 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8376 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8377 (alias_command_completer)
8378 (make_alias_options_def_group): New functions.
8379 (alias_opts, alias_option_defs): New struct and array.
8380 (alias_usage_error): Update usage.
8381 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8382 Use option framework.
8383 (_initialize_cli_cmds): Update alias command help.
8384 Update aliases command help.
8386 Add NULL for new default_args lookup_cmd argument.
8387 (valid_command_p): Rename to validate_aliased_command.
8388 Add NULL for new default_args lookup_cmd argument. Verify that the
8389 aliased_command has no default args.
8390 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8391 (lookup_cmd_1, lookup_cmd): New argument default_args.
8393 Add NULL for new default_args lookup_cmd argument.
8394 (print_help_for_command): Show default args under the layout
8395 alias some_alias = some_aliased_cmd some_alias_default_arg.
8396 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8397 xfree default_args in destructor.
8398 * cli/cli-script.c (process_next_line, do_define_command):
8399 Add NULL for new default_args lookup_cmd argument.
8400 * command.h: Declare new default_args argument in lookup_cmd
8402 * completer.c (complete_line_internal_1):
8403 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8404 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8405 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8407 * infcmd.c (_initialize_infcmd): Likewise.
8408 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8409 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8410 * python/py-param.c (add_setshow_generic): Likewise.
8411 * remote.c (_initialize_remote): Likewise.
8412 * top.c (execute_command): Prepend default_args if command has some.
8414 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8415 * tracepoint.c (validate_actionline, encode_actions_1):
8416 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8418 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8420 * jit.c (jit_read_descriptor): Use bool as the return type.
8421 (jit_breakpoint_re_set_internal): Use bool as the return type.
8422 Invert the return value logic; return true if the jit breakpoint
8423 has been successfully initialized.
8424 (jit_inferior_init): Update the call to
8425 jit_breakpoint_re_set_internal.
8427 2020-06-22 Pedro Alves <palves@redhat.com>
8430 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8431 Use the current inferior instead. Don't return
8432 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8434 * sol-thread.c (sol_thread_target::wait): Don't reference
8436 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8437 (sol_update_thread_list_callback): Use the current inferior's pid
8438 instead of inferior_ptid.
8440 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8442 * procfs.c: Cleanup many comments.
8444 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8445 (AFTER_WATCHFLAG): Replace by value.
8447 (MAIN_PROC_NAME_FORMAT): Inline ...
8448 (create_procinfo): ... here.
8450 (procfs_debug_inferior): Remove SYS_exec handling.
8451 (syscall_is_exec): Likewise.
8452 (procfs_set_exec_trap): Likewise.
8454 (syscall_is_lwp_exit): Inline in callers.
8455 (syscall_is_exit): Likewise.
8456 (syscall_is_exec): Likewise.
8457 (syscall_is_lwp_create): Likewise.
8459 (invalidate_cache): Remove #if 0 code.
8461 (make_signal_thread_runnable): Remove.
8462 (procfs_target::resume): Remove #if 0 code.
8464 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8467 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8469 (procfs_target::create_inferior): ... here.
8471 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8473 * exec.c (validate_exec_file): Ensure the build-id is up to
8474 date by calling reopen_exec_file (that checks file timestamp
8475 to decide to re-read the file).
8477 2020-06-18 Pedro Alves <palves@redhat.com>
8480 * gdbthread.h (delete_thread, delete_thread_silent)
8481 (find_thread_ptid): Update comments.
8482 * thread.c (current_thread_): New global.
8483 (is_current_thread): Move higher, and reimplement.
8484 (inferior_thread): Reimplement.
8485 (set_thread_exited): Use bool. Add assertions.
8486 (add_thread_silent): Simplify thread-reuse handling by always
8487 calling delete_thread.
8488 (delete_thread): Remove intro comment.
8489 (find_thread_ptid): Skip exited threads.
8490 (switch_to_thread_no_regs): Write to current_thread_.
8491 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8492 INFERIOR_PTID. Clear current_thread_.
8494 2020-06-18 Pedro Alves <palves@redhat.com>
8496 * aix-thread.c (pd_update): Use switch_to_thread.
8498 2020-06-18 Pedro Alves <palves@redhat.com>
8500 * ravenscar-thread.c (ravenscar_thread_target): Update.
8501 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8502 (ravenscar_thread_target::add_active_thread): ... this. Don't
8503 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8504 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8506 2020-06-18 Pedro Alves <palves@redhat.com>
8508 * nat/windows-nat.c (current_windows_thread): Remove.
8509 * nat/windows-nat.h (current_windows_thread): Remove.
8510 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8512 (display_selectors): Adjust to fetch the current
8513 windows_thread_info based on inferior_ptid.
8514 (fake_create_process): No longer write to current_windows_thread.
8515 (windows_nat_target::get_windows_debug_event):
8516 Don't set inferior_ptid or current_windows_thread.
8517 (windows_nat_target::wait): Adjust to not rely on
8518 current_windows_thread.
8519 (do_initial_windows_stuff): Now a method of windows_nat_target.
8520 Switch to the last_ptid thread.
8521 (windows_nat_target::attach): Adjust.
8522 (windows_nat_target::detach): Use switch_to_no_thread instead of
8523 writing to inferior_ptid directly.
8524 (windows_nat_target::create_inferior): Adjust.
8526 2020-06-18 Pedro Alves <palves@redhat.com>
8528 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8530 2020-06-18 Pedro Alves <palves@redhat.com>
8532 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8533 after creating it, instead of writing to inferior_ptid. Don't
8534 write to inferior_ptid.
8536 2020-06-18 Pedro Alves <palves@redhat.com>
8538 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8540 2020-06-18 Pedro Alves <palves@redhat.com>
8542 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8543 it, instead of writing to inferior_ptid.
8545 2020-06-18 Pedro Alves <palves@redhat.com>
8547 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8550 2020-06-18 Pedro Alves <palves@redhat.com>
8552 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8553 instead of writing to inferior_ptid directly.
8555 2020-06-18 Pedro Alves <palves@redhat.com>
8557 * corelow.c (core_target::close): Use switch_to_no_thread instead
8558 of writing to inferior_ptid directly.
8559 (add_to_thread_list, core_target_open): Use switch_to_thread
8560 instead of writing to inferior_ptid directly.
8562 2020-06-18 Pedro Alves <palves@redhat.com>
8564 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8566 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8568 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8569 inferior_ptid directly.
8570 (darwin_nat_target::init_thread_list): Switch to thread, instead
8571 of writing to inferior_ptid.
8572 (darwin_nat_target::attach): Don't write to inferior_ptid.
8573 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8575 2020-06-18 Pedro Alves <palves@redhat.com>
8577 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8579 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8580 Instead use switch_to_thread.
8581 (gnu_nat_target::detach): Use switch_to_no_thread
8582 instead of writing to inferior_ptid directly. Used passed-in
8583 inferior instead of looking up the inferior by pid.
8585 2020-06-18 Pedro Alves <palves@redhat.com>
8587 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8590 2020-06-18 Pedro Alves <palves@redhat.com>
8592 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8594 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8596 (nto_procfs_target::detach): Avoid referencing
8597 inferior_ptid. Use switch_to_no_thread instead of writing to
8598 inferior_ptid directly.
8599 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8600 instead of writing to inferior_ptid directly.
8601 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8604 2020-06-18 Pedro Alves <palves@redhat.com>
8606 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8607 after creating it, instead of writing to inferior_ptid.
8608 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8609 to inferior_ptid directly.
8610 (gdbsim_target::wait): Don't write to inferior_ptid.
8612 2020-06-18 Pedro Alves <palves@redhat.com>
8614 * remote.c (remote_target::remote_notice_new_inferior): Use
8615 switch_to_thread instead of writing to inferior_ptid directly.
8616 (remote_target::add_current_inferior_and_thread): Use
8617 switch_to_no_thread instead of writing to inferior_ptid directly.
8618 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8619 and switch_to_thread instead of using set_current_inferior or
8620 writing to inferior_ptid directly.
8622 2020-06-18 Pedro Alves <palves@redhat.com>
8624 * tracectf.c (ctf_target_open): Switch to added thread instead of
8625 writing to inferior_ptid directly.
8626 (ctf_target::close): Use switch_to_no_thread instead of writing to
8627 inferior_ptid directly.
8629 2020-06-18 Pedro Alves <palves@redhat.com>
8631 * tracefile-tfile.c (tfile_target_open): Don't write to
8632 inferior_ptid directly, instead switch to added thread.
8633 (tfile_target::close): Use switch_to_no_thread instead of writing
8634 to inferior_ptid directly.
8636 2020-06-18 Pedro Alves <palves@redhat.com>
8638 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8639 (procfs_target::detach): Use switch_to_no_thread
8640 instead of writing to inferior_ptid directly.
8641 (do_attach): Change return type to void. Switch to the added
8643 (procfs_target::create_inferior): Switch to the added thread.
8644 (procfs_do_thread_registers): Don't write to inferior_ptid.
8646 2020-06-18 Pedro Alves <palves@redhat.com>
8648 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8649 of writing to inferior_ptid.
8650 (scoped_restore_exited_inferior): Delete.
8651 (handle_vfork_child_exec_or_exit): Simplify using
8652 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8653 instead of writing to inferior_ptid.
8654 (THREAD_STOPPED_BY): Delete.
8655 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8656 (thread_stopped_by_hw_breakpoint): Delete.
8657 (save_waitstatus): Use
8658 scoped_restore_current_thread+switch_to_thread, and call
8659 target_stopped_by_watchpoint instead of
8660 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8661 instead of thread_stopped_by_sw_breakpoint, and
8662 target_stopped_by_hw_breakpoint instead of
8663 thread_stopped_by_hw_breakpoint.
8664 (handle_inferior_event)
8665 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8666 inferior_ptid directly, nor
8667 set_current_inferior/set_current_program_space. Use
8668 switch_to_thread / switch_to_inferior_no_thread instead.
8670 2020-06-18 Pedro Alves <palves@redhat.com>
8672 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8673 instead of writing to inferior_ptid.
8675 2020-06-18 Pedro Alves <palves@redhat.com>
8677 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8679 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8680 to the added thread.
8681 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8682 instead of writing to inferior_ptid.
8684 2020-06-18 Pedro Alves <palves@redhat.com>
8686 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8687 (register_to_value_test): Mock a program_space too. Heap-allocate
8688 the address space. Don't write to inferior_ptid. Use
8689 switch_to_thread instead.
8691 2020-06-18 Pedro Alves <palves@redhat.com>
8693 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8695 (find_signalled_thread()): New, factored out from
8696 linux_make_corefile_notes and adjusted to handle exited threads.
8697 (linux_make_corefile_notes): Adjust to use the new
8698 find_signalled_thread.
8700 2020-06-18 Pedro Alves <palves@redhat.com>
8702 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8703 of saving/restoring inferior_ptid.
8705 2020-06-17 Tom Tromey <tom@tromey.com>
8707 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8708 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8710 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8712 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8714 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8717 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8719 * regformats/reg-arm.dat: Remove.
8720 * regformats/reg-bfin.dat: Remove.
8721 * regformats/reg-cris.dat: Remove.
8722 * regformats/reg-crisv32.dat: Remove.
8723 * regformats/reg-m32r.dat: Remove.
8724 * regformats/reg-tilegx.dat: Remove.
8725 * regformats/reg-tilegx32.dat: Remove.
8727 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8729 * features/Makefile (WHICH): Remove arm files.
8730 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8731 * regformats/arm/arm-with-neon.dat: Remove.
8732 * regformats/arm/arm-with-vfpv2.dat: Remove.
8733 * regformats/arm/arm-with-vfpv3.dat: Remove.
8735 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8737 * features/Makefile (XMLTOC): Remove rx.xml.
8739 2020-06-17 Pedro Alves <palves@redhat.com>
8741 * gdbthread.h (thread_control_state) <trap_expected> Update
8744 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8746 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8747 ada_language::lookup_symbol_nonlocal.
8748 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8749 (ada_language::lookup_symbol_nonlocal): New member function,
8750 implementation from ada_lookup_symbol_nonlocal.
8751 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8753 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8755 (cplus_language::lookup_symbol_nonlocal): New member function.
8756 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8757 (minimal_language_data) Likewise.
8758 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8759 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8761 (d_language::lookup_symbol_nonlocal): New member function.
8762 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8764 (f_language::lookup_symbol_nonlocal): New member function.
8765 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8767 * language.c (unknown_language_data): Likewise.
8768 (auto_language_data): Likewise.
8769 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8771 (language_defn::lookup_symbol_nonlocal): New member function.
8772 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8774 * objc-lang.c (objc_language_data): Likewise.
8775 * opencl-lang.c (opencl_language_data): Likewise.
8776 * p-lang.c (pascal_language_data): Likewise.
8777 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8778 rust_language::lookup_symbol_nonlocal.
8779 (rust_language_data): Delete la_lookup_symbol_nonlocal
8781 (rust_language::lookup_symbol_nonlocal): New member function,
8782 implementation from rust_lookup_symbol_nonlocal.
8783 * symtab.c (lookup_symbol_aux): Update call to
8784 lookup_symbol_nonlocal.
8785 (basic_lookup_symbol_nonlocal): Rename to...
8786 (language_defn::lookup_symbol_nonlocal): ...this, and update
8787 header comment. Remove language_defn parameter, and replace with
8789 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8791 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8793 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8795 (ada_language::value_print_inner): New member function.
8796 * c-lang.c (c_language_data): Delete la_value_print_inner
8798 (cplus_language_data): Likewise.
8799 (asm_language_data): Likewise.
8800 (minimal_language_data): Likewise.
8801 * d-lang.c (d_language_data): Likewise.
8802 (d_language::value_print_inner): New member function.
8803 * f-lang.c (f_language_data): Delete la_value_print_inner
8805 (f_language::value_print_inner): New member function.
8806 * f-lang.h (f_value_print_innner): Rename to...
8807 (f_value_print_inner): ...this (note spelling of 'inner').
8808 * f-valprint.c (f_value_print_innner): Rename to...
8809 (f_value_print_inner): ...this (note spelling of 'inner').
8810 * go-lang.c (go_language_data): Delete la_value_print_inner
8812 (go_language::value_print_inner): New member function.
8813 * language.c (language_defn::value_print_inner): Define new member
8815 (unk_lang_value_print_inner): Delete.
8816 (unknown_language_data): Delete la_value_print_inner initializer.
8817 (unknown_language::value_print_inner): New member function.
8818 (auto_language_data): Delete la_value_print_inner initializer.
8819 (auto_language::value_print_inner): New member function.
8820 * language.h (language_data): Delete la_value_print_inner field.
8821 (language_defn::value_print_inner): Delcare new member function.
8822 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8824 (m2_language::value_print_inner): New member function.
8825 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8827 * opencl-lang.c (opencl_language_data): Likewise.
8828 * p-lang.c (pascal_language_data): Likewise.
8829 (pascal_language::value_print_inner): New member function.
8830 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8832 (rust_language::value_print_inner): New member function.
8833 * valprint.c (do_val_print): Update call to value_print_inner.
8835 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8837 * ada-lang.c (ada_language_data): Delete la_value_print
8839 (ada_language::value_print): New member function.
8840 * c-lang.c (c_language_data): Delete la_value_print initializer.
8841 (cplus_language_data): Likewise.
8842 (asm_language_data): Likewise.
8843 (minimal_language_data): Likewise.
8844 * d-lang.c (d_language_data): Likewise.
8845 * f-lang.c (f_language_data): Likewise.
8846 * go-lang.c (go_language_data): Likewise.
8847 * language.c (unk_lang_value_print): Delete.
8848 (language_defn::value_print): Define new member function.
8849 (unknown_language_data): Delete la_value_print initializer.
8850 (unknown_language::value_print): New member function.
8851 (auto_language_data): Delete la_value_print initializer.
8852 (auto_language::value_print): New member function.
8853 * language.h (language_data): Delete la_value_print field.
8854 (language_defn::value_print): Declare new member function.
8855 (LA_VALUE_PRINT): Update call to value_print.
8856 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8857 * objc-lang.c (objc_language_data): Likewise.
8858 * opencl-lang.c (opencl_language_data): Likewise.
8859 * p-lang.c (pascal_language_data): Likewise.
8860 (pascal_language::value_print): New member function.
8861 * rust-lang.c (rust_language_data): Delete la_value_print
8864 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8866 * ada-lang.c (ada_watch_location_expression): Rename to
8867 ada_language::watch_location_expression.
8868 (ada_language_data): Delete la_watch_location_expression
8870 (ada_language::watch_location_expression): New member function,
8871 implementation from ada_watch_location_expression.
8872 * breakpoint.c (watch_command_1): Update call to
8873 watch_location_expression.
8874 * c-lang.c (c_watch_location_expression): Rename to
8875 language_defn::watch_location_expression.
8876 (c_language_data): Delete la_watch_location_expression
8878 (cplus_language_data): Likewise.
8879 (asm_language_data): Likewise.
8880 (minimal_language_data): Likewise.
8881 * c-lang.h (c_watch_location_expression): Delete declaration.
8882 * d-lang.c (d_language_data): Delete la_watch_location_expression
8884 * f-lang.c (f_language_data): Likewise.
8885 * go-lang.c (go_language_data): Likewise.
8886 * language.c (language_defn::watch_location_expression): Member
8887 function implementation from c_watch_location_expression.
8888 (unknown_language_data): Delete la_watch_location_expression
8890 (auto_language_data): Likewise.
8891 * language.h (language_data): Delete la_watch_location_expression
8893 (language_defn::watch_location_expression): Declare new member
8895 * m2-lang.c (m2_language_data): Delete
8896 la_watch_location_expression initializer.
8897 * objc-lang.c (objc_language_data): Likewise.
8898 * opencl-lang.c (opencl_language_data): Likewise.
8899 * p-lang.c (pascal_language_data): Likewise.
8900 * rust-lang.c (rust_watch_location_expression): Rename to
8901 rust_language::watch_location_expression.
8902 (rust_language_data): Delete la_watch_location_expression
8904 (rust_language::watch_location_expression): New member function,
8905 implementation from rust_watch_location_expression.
8907 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8909 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8910 ada_language::collect_symbol_completion_matches.
8911 (ada_language_data): Delete la_collect_symbol_completion_matches
8913 (ada_language::collect_symbol_completion_matches): New member
8914 function, implementation from
8915 ada_collect_symbol_completion_matches.
8916 * c-lang.c (c_language_data): Delete
8917 la_collect_symbol_completion_matches initializer.
8918 (cplus_language_data): Likewise.
8919 (asm_language_data): Likewise.
8920 (minimal_language_data): Likewise.
8921 * d-lang.c (d_language_data): Likewise.
8922 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8923 f_language::collect_symbol_completion_matches.
8924 (f_language_data): Delete la_collect_symbol_completion_matches
8926 (f_language::collect_symbol_completion_matches) New member
8927 function, implementation from f_collect_symbol_completion_matches.
8928 * go-lang.c (go_language_data): Delete
8929 la_collect_symbol_completion_matches initializer.
8930 * language.c (unknown_language_data): Likewise.
8931 (auto_language_data): Likewise.
8932 * language.h (language_data): Delete
8933 la_collect_symbol_completion_matches field.
8934 (language_defn::collect_symbol_completion_matches): New member
8936 * m2-lang.c (m2_language_data): Delete
8937 la_collect_symbol_completion_matches initializer.
8938 * objc-lang.c (objc_language_data): Likewise.
8939 * opencl-lang.c (opencl_language_data): Likewise.
8940 * p-lang.c (pascal_language_data): Likewise.
8941 * rust-lang.c (rust_language_data): Likewise.
8942 * symtab.c (default_collect_symbol_completion_matches): Delete.
8943 (collect_symbol_completion_matches): Update call to
8944 collect_symbol_completion_matches.
8945 (collect_symbol_completion_matches_type): Likewise.
8946 * symtab.h (default_collect_symbol_completion_matches): Delete
8949 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8951 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8952 (ada_language_data): Delete la_word_break_characters initializer.
8953 (ada_language::word_break_characters): New member function.
8954 * c-lang.c (c_language_data): Delete la_word_break_characters
8956 (cplus_language_data): Likewise.
8957 (asm_language_data): Likewise.
8958 (minimal_language_data): Likewise.
8959 * completer.c: Update global comment.
8960 (advance_to_expression_complete_word_point): Update call to
8961 word_break_characters.
8962 (complete_files_symbols): Likewise.
8963 (complete_line_internal_1): Likewise.
8964 (default_completer_handle_brkchars): Likewise.
8965 (skip_quoted_chars): Likewise.
8966 * d-lang.c (d_language_data): Delete la_word_break_characters
8968 * f-lang.c (f_word_break_characters): Delete.
8969 (f_language_data): Delete la_word_break_characters initializer.
8970 (f_language::word_break_characters): New member function.
8971 * go-lang.c (go_language_data): Delete la_word_break_characters
8973 * language.c (unknown_language_data): Likewise.
8974 (auto_language_data): Likewise.
8975 * language.h (default_word_break_characters): Move declaration to
8976 earlier in the file.
8977 (language_data): Delete la_word_break_characters field.
8978 (language_defn::word_break_characters): New member function.
8979 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8981 * objc-lang.c (objc_language_data): Likewise.
8982 * opencl-lang.c (opencl_language_data): Likewise.
8983 * p-lang.c (pascal_language_data): Likewise.
8984 * rust-lang.c (rust_language_data): Likewise.
8986 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8988 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8989 (ada_language_data): Delete la_get_symbol_name_matcher
8991 (language_defn::get_symbol_name_matcher_inner): New member
8993 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8995 (cplus_language_data): Likewise.
8996 (cplus_language::get_symbol_name_matcher_inner): New member
8998 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8999 (minimal_language_data): Likewise.
9000 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
9001 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
9003 * dictionary.c (iter_match_first_hashed): Update call to
9004 get_symbol_name_matcher.
9005 (iter_match_next_hashed): Likewise.
9006 (iter_match_next_linear): Likewise.
9007 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
9008 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
9010 (f_language::get_symbol_name_matcher_inner): New member function.
9011 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
9013 * language.c (default_symbol_name_matcher): Update header comment,
9015 (language_defn::get_symbol_name_matcher): New definition.
9016 (language_defn::get_symbol_name_matcher_inner): Likewise.
9017 (get_symbol_name_matcher): Delete.
9018 (unknown_language_data): Delete la_get_symbol_name_matcher
9020 (auto_language_data): Likewise.
9021 * language.h (language_data): Delete la_get_symbol_name_matcher
9023 (language_defn::get_symbol_name_matcher): New member function.
9024 (language_defn::get_symbol_name_matcher_inner): Likewise.
9025 (default_symbol_name_matcher): Delete declaration.
9026 * linespec.c (find_methods): Update call to
9027 get_symbol_name_matcher.
9028 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
9030 * minsyms.c (lookup_minimal_symbol): Update call to
9031 get_symbol_name_matcher.
9032 (iterate_over_minimal_symbols): Likewise.
9033 * objc-lang.c (objc_language_data): Delete
9034 la_get_symbol_name_matcher initializer.
9035 * opencl-lang.c (opencl_language_data): Likewise.
9036 * p-lang.c (pascal_language_data): Likewise.
9037 * psymtab.c (psymbol_name_matches): Update call to
9038 get_symbol_name_matcher.
9039 * rust-lang.c (rust_language_data): Delete
9040 la_get_symbol_name_matcher initializer.
9041 * symtab.c (symbol_matches_search_name): Update call to
9042 get_symbol_name_matcher.
9043 (compare_symbol_name): Likewise.
9045 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9047 * ada-lang.c (ada_language_data): Delete la_compute_program
9049 * c-lang.c (c_language_data): Likewise.
9050 (c_language::compute_program): New member function.
9051 (cplus_language_data): Delete la_compute_program initializer.
9052 (cplus_language::compute_program): New member function.
9053 (asm_language_data): Delete la_compute_program initializer.
9054 (minimal_language_data): Likewise.
9055 * c-lang.h (c_compute_program): Update comment.
9056 (cplus_compute_program): Likewise.
9057 * compile/compile-c-support.c (c_compute_program): Likewise.
9058 (cplus_compute_program): Likewise.
9059 * compile/compile.c (compile_to_object): Update call to
9061 * d-lang.c (d_language_data): Delete la_compute_program
9063 * f-lang.c (f_language_data): Likewise.
9064 * go-lang.c (go_language_data): Likewise.
9065 * language.c (unknown_language_data): Likewise.
9066 (auto_language_data): Likewise.
9067 * language.h (language_data): Delete la_compute_program field.
9068 (language_defn::compute_program): New member function.
9069 * m2-lang.c (m2_language_data): Delete la_compute_program
9071 * objc-lang.c (objc_language_data): Likewise.
9072 * opencl-lang.c (opencl_language_data): Likewise.
9073 * p-lang.c (pascal_language_data): Likewise.
9074 * rust-lang.c (rust_language_data): Likewise.
9076 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9078 * ada-lang.c (ada_language_data) Delete
9079 la_class_name_from_physname initializer.
9080 * c-lang.c (c_language_data): Likewise.
9081 (cplus_language_data): Likewise.
9082 (cplus_language::class_name_from_physname): New member function.
9083 (asm_language_data): Delete la_class_name_from_physname
9085 (minimal_language_data): Likewise.
9086 * d-lang.c (d_language_data): Likewise.
9087 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
9088 method on language_defn class.
9089 (guess_full_die_structure_name): Likewise.
9090 * f-lang.c (f_language_data): Delete la_class_name_from_physname
9092 * go-lang.c (go_language_data): Likewise.
9093 * language.c (language_class_name_from_physname): Delete.
9094 (unk_lang_class_name): Delete.
9095 (unknown_language_data): Delete la_class_name_from_physname
9097 (auto_language_data): Likewise.
9098 * language.h (language_data): Delete la_class_name_from_physname
9100 (language_defn::class_name_from_physname): New function.
9101 (language_class_name_from_physname): Delete declaration.
9102 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
9104 * objc-lang.c (objc_language_data): Likewise.
9105 * opencl-lang.c (opencl_language_data): Likewise.
9106 * p-lang.c (pascal_language_data): Likewise.
9107 * rust-lang.c (rust_language_data): Likewise.
9109 2020-06-16 Tom Tromey <tom@tromey.com>
9111 * tui/tui-data.h (STATUS_NAME): New macro.
9112 * tui/tui-layout.c (tui_remove_some_windows)
9113 (initialize_known_windows, tui_register_window)
9114 (tui_layout_split::remove_windows, initialize_layouts)
9115 (tui_new_layout_command): Don't use hard-coded window names.
9117 2020-06-16 Tom Tromey <tom@tromey.com>
9120 * tui/tui.c (tui_ensure_readline_initialized): Rename from
9121 tui_initialize_readline. Only run once. Call rl_initialize.
9122 * tui/tui.h (tui_ensure_readline_initialized): Rename from
9123 tui_initialize_readline.
9124 * tui/tui-io.c (tui_setup_io): Call
9125 tui_ensure_readline_initialized.
9126 * tui/tui-interp.c (tui_interp::init): Update.
9128 2020-06-16 Tom Tromey <tom@tromey.com>
9130 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
9131 Also preserve the status window.
9133 2020-06-16 Tom Tromey <tom@tromey.com>
9135 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
9136 where m_window==nullptr.
9138 2020-06-15 Tom Tromey <tromey@adacore.com>
9140 * windows-nat.c (windows_nat::handle_output_debug_string):
9142 (windows_nat::handle_ms_vc_exception): Update.
9143 * target.h (target_read_string): Change API.
9144 * target.c (target_read_string): Change API.
9145 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9147 * solib-frv.c (frv_current_sos): Update.
9148 * solib-dsbt.c (dsbt_current_sos): Update.
9149 * solib-darwin.c (darwin_current_sos): Update.
9150 * linux-thread-db.c (inferior_has_bug): Update.
9151 * expprint.c (print_subexp_standard): Update.
9152 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
9153 (ada_exception_message_1): Update.
9155 2020-06-15 Tom Tromey <tromey@adacore.com>
9157 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
9159 2020-06-15 Tom Tromey <tromey@adacore.com>
9161 * valprint.c (read_string): Update comment.
9162 * target.c (MIN): Remove.
9163 (target_read_string): Rewrite.
9165 2020-06-15 Tom Tromey <tromey@adacore.com>
9167 * corefile.c (read_memory_string): Remove.
9168 * ada-valprint.c (ada_value_print_ptr): Update.
9169 * ada-lang.h (ada_tag_name): Change return type.
9170 * ada-lang.c (type_from_tag): Update.
9171 (ada_tag_name_from_tsd): Change return type. Use
9173 (ada_tag_name): Likewise.
9174 * gdbcore.h (read_memory_string): Don't declare.
9176 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
9178 * symtab.c (rbreak_command): Ignore Windows drive colon.
9180 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
9182 * NEWS: Mention removed GDBserver host support.
9184 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
9186 * features/riscv/rebuild-csr-xml.sh: Updated.
9188 2020-06-11 Tom Tromey <tom@tromey.com>
9191 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
9193 2020-06-09 Jonny Grant <jg@jguk.org>
9194 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
9196 * main.c (captured_main_1): Don't print new line after help.
9197 (print_gdb_help): add mailing list and IRC channel information
9198 to --help. Add new lines between items in the footer. Remove
9199 quotes around bug url.
9201 2020-06-11 Keith Seitz <keiths@redhat.com>
9204 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
9205 Resolve typedefs for type length calculations.
9207 2020-06-10 Tom de Vries <tdevries@suse.de>
9210 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
9211 (write_psymbols): Enable .gdb_index for ada.
9212 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
9215 2020-06-10 Tom de Vries <tdevries@suse.de>
9217 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9218 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9219 namei" instead of "const char *name" argument.
9220 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9221 dw2_symtab_iter_init.
9223 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9225 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9226 to use type::field and field::type instead.
9228 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9230 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9231 to use field::type instead.
9233 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9235 * gdbtypes.h (struct field) <type, set_type>: New methods.
9236 Rename `type` field to...
9237 <m_type>: ... this. Change references throughout to use type or
9239 (FIELD_TYPE): Use field::type. Change call sites that modify
9240 the field's type to use field::set_type instead.
9242 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9244 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9245 to use type::index_type instead.
9247 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9249 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9251 (TYPE_INDEX_TYPE): Use type::index_type.
9252 * gdbtypes.c (create_array_type_with_stride): Likewise.
9254 2020-06-07 Tom Tromey <tom@tromey.com>
9256 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9258 (generic_value_print): Update.
9260 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9262 Revert commit 982a38f60b0.
9263 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9265 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9267 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9268 avoid use after free.
9270 2020-06-05 Tom de Vries <tdevries@suse.de>
9274 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
9276 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9278 (dwarf2_read_debug_names): Likewise.
9279 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9280 object when re-using a per_bfd object with an index.
9282 2020-06-03 Tom de Vries <tdevries@suse.de>
9285 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9287 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9290 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9292 * ada-lang.c (ada_language_data): Delete skip_trampoline
9294 * c-lang.c (c_language_data): Likewise.
9295 (cplus_language_data): Likewise.
9296 (cplus_language::skip_trampoline): New member function.
9297 (asm_language_data): Delete skip_trampoline initializer.
9298 (minimal_language_data): Likewise.
9299 * d-lang.c (d_language_data): Likewise.
9300 * f-lang.c (f_language_data): Likewise.
9301 * go-lang.c (go_language_data): Likewise.
9302 * language.c (unk_lang_trampoline): Delete function.
9303 (skip_language_trampoline): Update.
9304 (unknown_language_data): Delete skip_trampoline initializer.
9305 (auto_language_data): Likewise.
9306 * language.h (language_data): Delete skip_trampoline field.
9307 (language_defn::skip_trampoline): New function.
9308 * m2-lang.c (m2_language_data): Delete skip_trampoline
9310 * objc-lang.c (objc_skip_trampoline): Delete function, move
9311 implementation to objc_language::skip_trampoline.
9312 (objc_language_data): Delete skip_trampoline initializer.
9313 (objc_language::skip_trampoline): New member function with
9314 implementation from objc_skip_trampoline.
9315 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9317 * p-lang.c (pascal_language_data): Likewise.
9318 * rust-lang.c (rust_language_data): Likewise.
9320 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9322 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9323 (ada_language::demangle): New member function.
9324 * c-lang.c (c_language_data): Delete la_demangle initializer.
9325 (cplus_language_data): Delete la_demangle initializer.
9326 (cplus_language::demangle): New member function.
9327 (asm_language_data): Delete la_demangle initializer.
9328 (minimal_language_data): Delete la_demangle initializer.
9329 * d-lang.c (d_language_data): Delete la_demangle initializer.
9330 (d_language::demangle): New member function.
9331 * f-lang.c (f_language_data): Delete la_demangle initializer.
9332 (f_language::demangle): New member function.
9333 * go-lang.c (go_language_data): Delete la_demangle initializer.
9334 (go_language::demangle): New member function.
9335 * language.c (language_demangle): Update.
9336 (unk_lang_demangle): Delete.
9337 (unknown_language_data): Delete la_demangle initializer.
9338 (unknown_language::demangle): New member function.
9339 (auto_language_data): Delete la_demangle initializer.
9340 (auto_language::demangle): New member function.
9341 * language.h (language_data): Delete la_demangle field.
9342 (language_defn::demangle): New function.
9343 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9344 * objc-lang.c (objc_language_data): Delete la_demangle
9346 (objc_language::demangle): New member function.
9347 * opencl-lang.c (opencl_language_data): Delete la_demangle
9349 * p-lang.c (pascal_language_data): Likewise.
9350 * rust-lang.c (rust_language_data): Likewise.
9351 (rust_language::demangle): New member function.
9353 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9355 * ada-lang.c (ada_language_data): Delete la_print_type
9357 (ada_language::print_type): New member function.
9358 * c-lang.c (c_language_data): Delete la_print_type initializer.
9359 (c_language::print_type): New member function.
9360 (cplus_language_data): Delete la_print_type initializer.
9361 (cplus_language::print_type): New member function.
9362 (asm_language_data): Delete la_print_type initializer.
9363 (asm_language::print_type): New member function.
9364 (minimal_language_data): Delete la_print_type initializer.
9365 (minimal_language::print_type): New member function.
9366 * d-lang.c (d_language_data): Delete la_print_type initializer.
9367 (d_language::print_type): New member function.
9368 * f-lang.c (f_language_data): Delete la_print_type initializer.
9369 (f_language::print_type): New member function.
9370 * go-lang.c (go_language_data): Delete la_print_type initializer.
9371 (go_language::print_type): New member function.
9372 * language.c (unk_lang_print_type): Delete.
9373 (unknown_language_data): Delete la_print_type initializer.
9374 (unknown_language::print_type): New member function.
9375 (auto_language_data): Delete la_print_type initializer.
9376 (auto_language::print_type): New member function.
9377 * language.h (language_data): Delete la_print_type field.
9378 (language_defn::print_type): New function.
9379 (LA_PRINT_TYPE): Update.
9380 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9381 (m2_language::print_type): New member function.
9382 * objc-lang.c (objc_language_data): Delete la_print_type
9384 (objc_language::print_type): New member function.
9385 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9386 to opencl_language::print_type.
9387 (opencl_language_data): Delete la_print_type initializer.
9388 (opencl_language::print_type): New member function, implementation
9389 from opencl_print_type.
9390 * p-lang.c (pascal_language_data): Delete la_print_type
9392 (pascal_language::print_type): New member function.
9393 * rust-lang.c (rust_print_type): Delete, implementation moved to
9394 rust_language::print_type.
9395 (rust_language_data): Delete la_print_type initializer.
9396 (rust_language::print_type): New member function, implementation
9397 from rust_print_type.
9399 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9401 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9402 implementation moves to...
9403 (ada_language::sniff_from_mangled_name): ...here. Update return
9405 (ada_language_data): Delete la_sniff_from_mangled_name
9407 * c-lang.c (c_language_data): Likewise.
9408 (cplus_language_data): Likewise.
9409 (cplus_language::sniff_from_mangled_name): New member function,
9410 implementation taken from gdb_sniff_from_mangled_name.
9411 (asm_language_data): Delete la_sniff_from_mangled_name
9413 (minimal_language_data): Likewise.
9414 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9415 implementation moves to cplus_language::sniff_from_mangled_name.
9416 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9417 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9419 (d_language::sniff_from_mangled_name): ...here.
9420 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9421 * f-lang.c (f_language_data): Likewise.
9422 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9424 (go_language::sniff_from_mangled_name): ...here.
9425 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9426 * language.c (language_sniff_from_mangled_name): Delete.
9427 (unknown_language_data): Delete la_sniff_from_mangled_name
9429 (auto_language_data): Likewise.
9430 * language.h (language_data): Delete la_sniff_from_mangled_name
9432 (language_defn::sniff_from_mangled_name): New function.
9433 (language_sniff_from_mangled_name): Delete declaration.
9434 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9436 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9437 implementation moves to...
9438 (objc_language::sniff_from_mangled_name): ...here.
9439 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9440 * opencl-lang.c (opencl_language_data): Likewise.
9441 * p-lang.c (pascal_language_data): Likewise.
9442 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9443 implementation moves to...
9444 (rust_language::sniff_from_mangled_name): ...here.
9445 (rust_language_data): Delete la_sniff_from_mangled_name
9447 * symtab.c (symbol_find_demangled_name): Call
9448 sniff_from_mangled_name member function.
9450 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9452 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9454 * c-lang.c (c_language_data): Likewise.
9455 (cplus_language_data): Likewise.
9456 (cplus_language::search_name_hash): New member function.
9457 (asm_language_data): Delete la_search_name_hash initializer.
9458 (minimal_language_data): Likewise.
9459 * d-lang.c (d_language_data): Likewise.
9460 * dictionary.c (default_search_name_hash): Rename to...
9461 (language_defn::search_name_hash): ...this.
9462 * f-lang.c (f_language_data): Likewise.
9463 (f_language::search_name_hash): New member function.
9464 * go-lang.c (go_language_data): Delete la_search_name_hash
9466 * language.c (unknown_language_data): Likewise.
9467 (auto_language_data): Likewise.
9468 * language.h (struct language_data): Delete la_search_name_hash
9470 (language_defn::search_name_hash): Declare new member function.
9471 (default_search_name_hash): Delete declaration.
9472 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9474 * objc-lang.c (objc_language_data): Likewise.
9475 * opencl-lang.c (opencl_language_data): Likewise.
9476 * p-lang.c (pascal_language_data): Likewise.
9477 * rust-lang.c (rust_language_data): Likewise.
9478 * symtab.c (search_name_hash): Update call.
9480 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9482 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9484 * c-lang.c (class compile_instance): Declare.
9485 (c_language_data): Delete la_get_compile_instance initializer.
9486 (c_language::get_compile_instance): New member function.
9487 (cplus_language_data): Delete la_get_compile_instance initializer.
9488 (cplus_language::get_compile_instance): New member function.
9489 (asm_language_data): Delete la_get_compile_instance initializer.
9490 (minimal_language_data): Likewise.
9491 * c-lang.h (c_get_compile_context): Update comment.
9492 (cplus_get_compile_context): Update comment.
9493 * compile/compile.c (compile_to_object): Update calls, don't rely
9494 on function pointer being NULL.
9495 * d-lang.c (d_language_data): Delete la_get_compile_instance
9497 * f-lang.c (f_language_data): Likewise.
9498 * go-lang.c (go_language_data): Likewise.
9499 * language.c (unknown_language_data): Likewise.
9500 (auto_language_data): Likewise.
9501 * language.h (language_data): Delete la_get_compile_instance field.
9502 (language_defn::get_compile_instance): New member function.
9503 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9505 * objc-lang.c (objc_language_data): Likewise.
9506 * opencl-lang.c (opencl_language_data): Likewise.
9507 * p-lang.c (pascal_language_data): Likewise.
9508 * rust-lang.c (rust_language_data): Likewise.
9510 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9512 * ada-lang.c (ada_add_all_symbols): Update comment.
9513 (ada_iterate_over_symbols): Delete, move implementation to...
9514 (ada_language::iterate_over_symbols): ...here, a new member
9515 function, rewrite to use range based for loop.
9516 (ada_language_data): Delete la_iterate_over_symbols initializer.
9517 * c-lang.c (c_language_data): Likewise.
9518 (cplus_language_data): Likewise.
9519 (asm_language_data): Likewise.
9520 (minimal_language_data): Likewise.
9521 * d-lang.c (d_language_data): Likewise.
9522 * f-lang.c (f_language_data): Likewise.
9523 * go-lang.c (go_language_data): Likewise.
9524 * language.c (unknown_language_data): Likewise.
9525 (auto_language_data): Likewise.
9526 * language.h (language_data): Delete la_iterate_over_symbols field.
9527 (language_defn::iterate_over_symbols): New member function.
9528 (LA_ITERATE_OVER_SYMBOLS): Update.
9529 * linespec.c (iterate_over_all_matching_symtabs): Update.
9530 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9532 * objc-lang.c (objc_language_data): Likewise.
9533 * opencl-lang.c (opencl_language_data): Likewise.
9534 * p-lang.c (pascal_language_data): Likewise.
9535 * rust-lang.c (rust_language_data): Likewise.
9537 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9539 * ada-lang.c (ada_language_data): Delete
9540 la_lookup_transparent_type initializer.
9541 * c-lang.c (c_language_data): Likewise.
9542 (cplus_language_data): Likewise.
9543 (cplus_language::lookup_transparent_type): New member function.
9544 (asm_language_data): Delete la_lookup_transparent_type
9546 (minimal_language_data): Likewise.
9547 * d-lang.c (d_language_data): Likewise.
9548 * f-lang.c (f_language_data): Likewise.
9549 * go-lang.c (go_language_data): Likewise.
9550 * language.c (unknown_language_data): Likewise.
9551 (auto_language_data): Likewise.
9552 * language.h (struct language_data): Delete
9553 la_lookup_transparent_type field.
9554 (language_defn::lookup_transparent_type): New member function.
9555 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9557 * objc-lang.c (objc_language_data): Likewise.
9558 * opencl-lang.c (opencl_language_data): Likewise.
9559 * p-lang.c (pascal_language_data): Likewise.
9560 * rust-lang.c (rust_language_data): Likewise.
9561 * symtab.c (symbol_matches_domain): Update call.
9563 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9565 * ada-lang.c (ada_language_arch_info): Delete function, move
9566 implementation to...
9567 (ada_language::language_arch_info): ...here, a new member
9569 (ada_language_data): Delete la_language_arch_info.
9570 * c-lang.c (c_language_data): Likewise.
9571 (c_language::language_arch_info): New member function.
9572 (cplus_language_arch_info): Delete function, move
9573 implementation to...
9574 (cplus_language::language_arch_info): ...here, a new member
9576 (cplus_language_data): Delete la_language_arch_info.
9577 (asm_language_data): Likewise.
9578 (asm_language::language_arch_info): New member function.
9579 (minimal_language_data): Delete la_language_arch_info.
9580 (minimal_language::language_arch_info): New member function.
9581 * d-lang.c (d_language_arch_info): Delete function, move
9582 implementation to...
9583 (d_language::language_arch_info): ...here, a new member
9585 (d_language_data): Delete la_language_arch_info.
9586 * f-lang.c (f_language_arch_info): Delete function, move
9587 implementation to...
9588 (f_language::language_arch_info): ...here, a new member
9590 (f_language_data): Delete la_language_arch_info.
9591 * go-lang.c (go_language_arch_info): Delete function, move
9592 implementation to...
9593 (go_language::language_arch_info): ...here, a new member
9595 (go_language_data): Delete la_language_arch_info.
9596 * language.c (unknown_language_data): Likewise.
9597 (unknown_language::language_arch_info): New member function.
9598 (auto_language_data): Delete la_language_arch_info.
9599 (auto_language::language_arch_info): New member function.
9600 (language_gdbarch_post_init): Update call to
9601 la_language_arch_info.
9602 * language.h (language_data): Delete la_language_arch_info
9604 (language_defn::language_arch_info): New function.
9605 * m2-lang.c (m2_language_arch_info): Delete function, move
9606 implementation to...
9607 (m2_language::language_arch_info): ...here, a new member
9609 (m2_language_data): Delete la_language_arch_info.
9610 * objc-lang.c (objc_language_arch_info): Delete function, move
9611 implementation to...
9612 (objc_language::language_arch_info): ...here, a new member
9614 (objc_language_data): Delete la_language_arch_info.
9615 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9616 implementation to...
9617 (opencl_language::language_arch_info): ...here, a new member
9619 (opencl_language_data): Delete la_language_arch_info.
9620 * p-lang.c (pascal_language_arch_info): Delete function, move
9621 implementation to...
9622 (pascal_language::language_arch_info): ...here, a new member
9624 (pascal_language_data): Delete la_language_arch_info.
9625 * rust-lang.c (rust_language_arch_info): Delete function, move
9626 implementation to...
9627 (rust_language::language_arch_info): ...here, a new member
9629 (rust_language_data): Delete la_language_arch_info.
9631 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9633 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9635 * c-lang.c (c_language_data): Likewise.
9636 (cplus_language_data): Likewise.
9637 (cplus_language::pass_by_reference_info): New method.
9638 (asm_language_data): Delete la_pass_by_reference initializer.
9639 (minimal_language_data): Likewise.
9640 * cp-abi.c (cp_pass_by_reference): Remove use of
9641 default_pass_by_reference.
9642 * d-lang.c (d_language_data): Likewise.
9643 * f-lang.c (f_language_data): Likewise.
9644 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9645 default_pass_by_reference.
9646 * go-lang.c (go_language_data): Likewise.
9647 * language.c (language_pass_by_reference): Update.
9648 (default_pass_by_reference): Delete.
9649 (unknown_language_data): Delete la_pass_by_reference
9651 (auto_language_data): Likewise.
9652 * language.h (struct language_data): Delete la_pass_by_reference
9654 (language_defn::pass_by_reference_info): New member function.
9655 (default_pass_by_reference): Delete declaration.
9656 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9658 * objc-lang.c (objc_language_data): Likewise.
9659 * opencl-lang.c (opencl_language_data): Likewise.
9660 * p-lang.c (pascal_language_data): Likewise.
9661 * rust-lang.c (rust_language_data): Likewise.
9663 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9665 * ada-lang.c (ada_read_var_value): Delete function, move
9666 implementation to...
9667 (ada_language::read_var_value): ...here.
9668 (ada_language_data): Delete la_read_var_value initializer.
9669 * c-lang.c (c_language_data): Likewise.
9670 (cplus_language_data): Likewise.
9671 (minimal_language_data): Likewise.
9672 * d-lang.c (d_language_data): Likewise.
9673 * f-lang.c (f_language_data): Likewise.
9674 * findvar.c (default_read_var_value): Rename to...
9675 (language_defn::read_var_value): ...this.
9676 * findvar.c (read_var_value): Update header comment, and change to
9677 call member function instead of function pointer.
9678 * go-lang.c (go_language_data): Likewise.
9679 * language.c (unknown_language_data): Delete la_read_var_value
9681 (auto_language_data): Likewise.
9682 * language.h (struct language_data): Delete la_read_var_value
9684 (language_defn::read_var_value): New member function.
9685 (default_read_var_value): Delete declaration.
9686 * m2-lang.c (m2_language_data): Delete la_read_var_value
9688 * objc-lang.c (objc_language_data): Likewise.
9689 * opencl-lang.c (opencl_language_data): Likewise.
9690 * p-lang.c (pascal_language_data): Likewise.
9691 * rust-lang.c (rust_language_data): Likewise.
9692 * value.h (default_read_var_value): Delete declaration.
9694 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9696 * ada-lang.c (ada_print_array_index): Delete function, move
9697 implementation to...
9698 (ada_language::print_array_index): ...here.
9699 (ada_language_data): Delete la_print_array_index initializer.
9700 * c-lang.c (c_language_data): Likewise.
9701 (cplus_language_data): Likewise.
9702 (minimal_language_data): Likewise.
9703 * d-lang.c (d_language_data): Likewise.
9704 * f-lang.c (f_language_data): Likewise.
9705 * go-lang.c (go_language_data): Likewise.
9706 * language.c (default_print_array_index): Delete function, move
9707 implementation to...
9708 (language_defn::print_array_index): ...here.
9709 (unknown_language_data): Delete la_print_array_index initializer.
9710 (auto_language_data): Likewise.
9711 * language.h (struct language_data): Delete la_print_array_index
9713 (language_defn::print_array_index): New member function.
9714 (LA_PRINT_ARRAY_INDEX): Update.
9715 (default_print_array_index): Delete declaration.
9716 * m2-lang.c (m2_language_data): Delete la_print_array_index
9718 * objc-lang.c (objc_language_data): Likewise.
9719 * opencl-lang.c (opencl_language_data): Likewise.
9720 * p-lang.c (pascal_language_data): Likewise.
9721 * rust-lang.c (rust_language_data): Likewise.
9723 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9725 * gdb/ada-lang.c (ada_language_defn): Convert to...
9726 (ada_language_data): ...this.
9727 (class ada_language): New class.
9728 (ada_language_defn): New static global.
9729 * gdb/c-lang.c (c_language_defn): Convert to...
9730 (c_language_data): ...this.
9731 (class c_language): New class.
9732 (c_language_defn): New static global.
9733 (cplus_language_defn): Convert to...
9734 (cplus_language_data): ...this.
9735 (class cplus_language): New class.
9736 (cplus_language_defn): New static global.
9737 (asm_language_defn): Convert to...
9738 (asm_language_data): ...this.
9739 (class asm_language): New class.
9740 (asm_language_defn): New static global.
9741 (minimal_language_defn): Convert to...
9742 (minimal_language_data): ...this.
9743 (class minimal_language): New class.
9744 (minimal_language_defn): New static global.
9745 * gdb/d-lang.c (d_language_defn): Convert to...
9746 (d_language_data): ...this.
9747 (class d_language): New class.
9748 (d_language_defn): New static global.
9749 * gdb/f-lang.c (f_language_defn): Convert to...
9750 (f_language_data): ...this.
9751 (class f_language): New class.
9752 (f_language_defn): New static global.
9753 * gdb/go-lang.c (go_language_defn): Convert to...
9754 (go_language_data): ...this.
9755 (class go_language): New class.
9756 (go_language_defn): New static global.
9757 * gdb/language.c (unknown_language_defn): Remove declaration.
9758 (current_language): Initialize to nullptr, real initialization is
9759 moved to _initialize_language.
9760 (languages): Delete global.
9761 (language_defn::languages): Define.
9762 (set_language_command): Use language_defn::languages.
9763 (set_language): Likewise.
9764 (range_error): Likewise.
9765 (language_enum): Likewise.
9766 (language_def): Likewise.
9767 (add_set_language_command): Use language_def::languages for the
9768 language list, and language_def to lookup language pointers.
9769 (skip_language_trampoline): Use language_defn::languages.
9770 (unknown_language_defn): Convert to...
9771 (unknown_language_data): ...this.
9772 (class unknown_language): New class.
9773 (unknown_language_defn): New static global.
9774 (auto_language_defn): Convert to...
9775 (auto_language_data): ...this.
9776 (class auto_language): New class.
9777 (auto_language_defn): New static global.
9778 (language_gdbarch_post_init): Use language_defn::languages.
9779 (_initialize_language): Initialize current_language.
9780 * gdb/language.h (struct language_defn): Rename to...
9781 (struct language_data): ...this.
9782 (struct language_defn): New.
9783 (auto_language_defn): Delete.
9784 (unknown_language_defn): Delete.
9785 (minimal_language_defn): Delete.
9786 (ada_language_defn): Delete.
9787 (asm_language_defn): Delete.
9788 (c_language_defn): Delete.
9789 (cplus_language_defn): Delete.
9790 (d_language_defn): Delete.
9791 (f_language_defn): Delete.
9792 (go_language_defn): Delete.
9793 (m2_language_defn): Delete.
9794 (objc_language_defn): Delete.
9795 (opencl_language_defn): Delete.
9796 (pascal_language_defn): Delete.
9797 (rust_language_defn): Delete.
9798 * gdb/m2-lang.c (m2_language_defn): Convert to...
9799 (m2_language_data): ...this.
9800 (class m2_language): New class.
9801 (m2_language_defn): New static global.
9802 * gdb/objc-lang.c (objc_language_defn): Convert to...
9803 (objc_language_data): ...this.
9804 (class objc_language): New class.
9805 (objc_language_defn): New static global.
9806 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9807 (opencl_language_data): ...this.
9808 (class opencl_language): New class.
9809 (opencl_language_defn): New static global.
9810 * gdb/p-lang.c (pascal_language_defn): Convert to...
9811 (pascal_language_data): ...this.
9812 (class pascal_language): New class.
9813 (pascal_language_defn): New static global.
9814 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9815 language pointer, update comment format.
9816 * gdb/rust-lang.c (rust_language_defn): Convert to...
9817 (rust_language_data): ...this.
9818 (class rust_language): New class.
9819 (rust_language_defn): New static global.
9821 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9823 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9825 <m_stmt_at_address>: New member variable.
9826 (lnp_state_machine::record_line): Don't record some lines, update
9827 tracking of is_stmt at the same address.
9828 (lnp_state_machine::lnp_state_machine): Initialise new member
9831 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9833 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9834 "-include gnu-nat-mig.h".
9835 * gnu-nat-mig.h: New file.
9836 * gnu-nat.c: Include "gnu-nat-mig.h".
9837 (exc_server, msg_reply_server, notify_server,
9838 process_reply_server): Remove declarations.
9840 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9842 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9843 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9844 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9845 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9846 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9847 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9848 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9849 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9850 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9851 to gnu_nat_target class.
9852 * gnu-nat.c: Likewise.
9853 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9854 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9855 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9857 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9858 instead of `gnu_target'.
9860 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9862 * i386-gnu-tdep.c: Include "gdbcore.h"
9863 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9864 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9865 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9866 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9867 i386_gnu_sigcontext_addr): New functions
9868 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9869 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9872 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9874 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9875 before fork_inferior call. Avoid calling it if target_is_pushed returns
9878 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9880 * gnu-nat.h (gnu_target): New variable declaration.
9881 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9883 * gnu-nat.c (gnu_target): New variable.
9884 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9885 add_thread_silent, and add_thread calls.
9886 (gnu_nat_target::create_inferior): Pass gnu_target to
9887 add_thread_silent, thread_change_ptid call.
9888 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9891 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9893 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9894 (gnu_nat_target::find_memory_regions): Remove unused
9895 `old_address' variable.
9897 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9899 * gnu-nat.c: Include "gdbarch.h".
9901 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9903 * reply_mig_hack.awk (Error return): Cast function through
9904 void *, to bypass compiler function call check.
9906 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9908 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9909 $(srcdir)/reply_mig_hack.awk.
9911 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9913 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9915 2020-05-30 Jonny Grant <jg@jguk.org>
9917 * configure.ac (ACX_BUGURL): change bug URL to https.
9919 2020-05-30 Pedro Alves <palves@redhat.com>
9921 * cp-support.c (replace_typedefs_template): New.
9922 (replace_typedefs_qualified_name): Handle
9923 DEMANGLE_COMPONENT_TEMPLATE.
9925 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9927 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9928 dwarf2/index-cache.h, dwarf2/index-write.c,
9929 dwarf2/index-write.h, dwarf2/line-header.c,
9930 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9931 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9932 variables and fields from `dwarf2_per_objfile` to just
9933 `per_objfile` throughout.
9935 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9937 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9938 <push_dwarf_reg_entry_value>: Add comment.
9940 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9941 Keith Seitz <keiths@redhat.com>
9943 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9944 instead of PyEval_ReleaseLock.
9945 (class gdbpy_gil): Move to earlier in file.
9946 (finalize_python): Set gdb_python_initialized.
9947 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9948 when not initialized.
9950 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9952 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9953 <push_dwarf_reg_entry_value>: Remove assert. Override
9954 per_objfile with caller_per_objfile.
9956 2020-05-28 Tom de Vries <tdevries@suse.de>
9958 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9959 PR gold/15646 workaround to symbol kind "type".
9961 2020-05-27 Tom Tromey <tromey@adacore.com>
9963 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9965 2020-05-27 Tom Tromey <tromey@adacore.com>
9967 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9968 Use htab_find_with_hash.
9969 <add_abbrev>: Remove "abbrev_number" parameter.
9970 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9971 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9972 (hash_abbrev): Add comment.
9973 (abbrev_table::lookup_abbrev): Move to header file.
9974 (abbrev_table::read): Update.
9976 2020-05-27 Tom Tromey <tromey@adacore.com>
9978 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9980 <canonical_name>: New member.
9981 <raw_name>: Rename from "name".
9982 (partial_die_info): Initialize canonical_name.
9983 (scan_partial_symbols): Check raw_name.
9984 (partial_die_parent_scope, partial_die_full_name)
9985 (add_partial_symbol, add_partial_subprogram)
9986 (add_partial_enumeration, load_partial_dies): Use "name" method.
9987 (partial_die_info::name): New method.
9988 (partial_die_info::read, guess_partial_die_structure_name)
9989 (partial_die_info::fixup): Update.
9991 2020-05-27 Tom Tromey <tromey@adacore.com>
9993 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9994 <get_ref_die_offset>: Inline.
9995 <get_ref_die_offset_complaint>: New method.
9996 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9997 (attribute::get_ref_die_offset_complaint): Rename from
9998 get_ref_die_offset. Just issue complaint.
10000 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
10002 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
10004 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
10006 * exec.c (exec_file_attach): Use errno value of first openp failure.
10008 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
10010 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
10011 Don't close thread handle.
10013 2020-05-27 Tom Tromey <tom@tromey.com>
10014 Simon Marchi <simon.marchi@efficios.com>
10016 * objfiles.h (struct objfile) <partial_symtabs>: Now a
10018 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
10020 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
10021 dwarf2_per_bfd_objfile_data_key>: New globals.
10022 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
10023 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
10024 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
10026 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
10027 short-circuit when sharing.
10028 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
10029 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
10031 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10033 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
10035 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
10036 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
10038 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10040 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
10041 build_name_components, find_name_components_bounds>:
10042 Add per_objfile parameter.
10043 (struct mapped_index) <symbol_name_at>: Likewise.
10044 (struct mapped_debug_names): Remove constructor.
10045 <dwarf2_per_objfile>: Remove field.
10046 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
10047 (mapped_index_base::find_name_components_bounds,
10048 mapped_index_base::build_name_components,
10049 dw2_expand_symtabs_matching_symbol): Likewise.
10050 (class mock_mapped_index) <symbol_name_at>: Likewise.
10051 (check_match): Likewise.
10052 (check_find_bounds_finds): Likewise.
10053 (test_mapped_index_find_name_component_bounds): Update.
10054 (CHECK_MATCH): Update.
10055 (dw2_expand_symtabs_matching): Update.
10056 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
10057 per_objfile parameter.
10058 <find_vec_in_debug_names>: Likewise.
10059 <m_per_objfile>: New field.
10060 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
10062 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
10063 (dw2_debug_names_iterator::next): Update.
10064 (dw2_debug_names_lookup_symbol): Update.
10065 (dw2_debug_names_expand_symtabs_for_function): Update.
10066 (dw2_debug_names_map_matching_symbols): Update.
10067 (dw2_debug_names_expand_symtabs_matching): Update.
10068 (dwarf2_read_debug_names): Update.
10070 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10072 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
10073 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
10074 move to dwarf2_per_objfile.
10075 <read_in_chain>: Remove.
10076 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
10077 remove_all_cus, age_comp_units>: New methods.
10078 <m_dwarf2_cus>: New member.
10079 (struct dwarf2_per_cu_data) <cu>: Remove.
10080 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
10081 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
10082 moved to methods of dwarf2_per_objfile.
10083 (dwarf2_clear_marks): Remove.
10084 (dwarf2_queue_item::~dwarf2_queue_item): Update.
10085 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
10086 (dwarf2_per_bfd::free_cached_comp_units): Remove.
10087 (dwarf2_per_objfile::remove_all_cus): New.
10088 (class free_cached_comp_units) <~free_cached_comp_units>:
10091 (dw2_do_instantiate_symtab): Adjust.
10092 (fill_in_sig_entry_from_dwo_entry): Adjust.
10093 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10094 (cutu_reader::cutu_reader): Likewise.
10095 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
10096 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
10097 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
10098 and dwarf2_per_objfile::age_comp_units.
10099 (load_partial_comp_unit): Update.
10100 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
10101 (process_queue): Likewise.
10102 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
10104 (dwarf2_read_addr_index): Likewise.
10105 (follow_die_offset): Likewise.
10106 (dwarf2_fetch_die_loc_sect_off): Likewise.
10107 (dwarf2_fetch_constant_bytes): Likewise.
10108 (dwarf2_fetch_die_type_sect_off): Likewise.
10109 (follow_die_sig_1): Likewise.
10110 (load_full_type_unit): Likewise.
10111 (read_signatured_type): Likewise.
10112 (dwarf2_cu::dwarf2_cu): Don't set cu field.
10113 (dwarf2_cu::~dwarf2_cu): Remove.
10114 (dwarf2_per_objfile::get_cu): New.
10115 (dwarf2_per_objfile::set_cu): New.
10116 (age_cached_comp_units): Rename to...
10117 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
10118 to std::unordered_map.
10119 (free_one_cached_comp_unit): Rename to...
10120 (dwarf2_per_objfile::remove_cu): ... this. Adjust
10121 to std::unordered_map.
10122 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
10123 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
10124 a dwarf2_per_objfile in data.
10125 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
10126 (dwarf2_clear_marks): Remove.
10128 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10130 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
10131 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
10132 (init_tu_and_read_dwo_dies): Likewise.
10133 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
10134 (cutu_reader::cutu_reader): Likewise.
10135 (load_partial_comp_unit): Likewise.
10136 (process_psymtab_comp_unit): Update.
10137 (build_type_psymtabs_1): Update.
10138 (process_skeletonless_type_unit): Update.
10139 (load_full_comp_unit): Update.
10140 (find_partial_die): Update.
10141 (dwarf2_read_addr_index): Update.
10142 (read_signatured_type): Update.
10144 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10146 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
10147 m_header_read_in>: New fields.
10148 <get_header>: New method.
10149 * dwarf2/read.c (per_cu_header_read_in): Remove.
10150 (dwarf2_per_cu_data::get_header): New.
10151 (dwarf2_per_cu_data::addr_size): Update.
10152 (dwarf2_per_cu_data::offset_size): Update.
10153 (dwarf2_per_cu_data::ref_addr_size): Update.
10155 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10157 * dwarf2/read.c (load_cu): Return dwarf2_cu.
10158 (dw2_do_instantiate_symtab): Update.
10159 (queue_and_load_all_dwo_tus): Change parameter from
10160 dwarf2_per_cu_data to dwarf2_cu.
10161 (dwarf2_fetch_die_loc_sect_off): Update.
10162 (dwarf2_fetch_constant_bytes): Update.
10163 (dwarf2_fetch_die_type_sect_off): Update.
10165 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10167 * dwarf2/read.c (process_full_comp_unit,
10168 process_full_type_unit): Remove per_cu, per_objfile paramters.
10169 Add dwarf2_cu parameter.
10170 (process_queue): Update.
10172 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10174 * dwarf2/read.c (create_cu_from_index_list): Replace
10175 dwarf2_per_objfile parameter with dwarf2_per_bfd.
10176 (create_cus_from_index_list): Likewise.
10177 (create_cus_from_index): Likewise.
10178 (create_signatured_type_table_from_index): Likewise.
10179 (create_cus_from_debug_names_list): Likewise.
10180 (create_cus_from_debug_names): Likewise.
10181 (dwarf2_read_gdb_index): Update.
10182 (dwarf2_read_debug_names): Update.
10184 2020-05-27 Tom Tromey <tom@tromey.com>
10185 Simon Marchi <simon.marchi@efficios.com>
10187 * dwarf2/read.h (struct dwarf2_per_objfile)
10188 <get_type_for_signatured_type, set_type_for_signatured_type>:
10190 <m_type_map>: New member.
10191 (struct signatured_type) <type>: Remove.
10193 (dwarf2_per_objfile::get_type_for_signatured_type,
10194 dwarf2_per_objfile::set_type_for_signatured_type): New.
10195 (get_signatured_type): Use new methods.
10197 2020-05-27 Tom Tromey <tom@tromey.com>
10198 Simon Marchi <simon.marchi@efficios.com>
10200 * dwarf2/read.h (struct type_unit_group_unshareable): New.
10201 (struct dwarf2_per_objfile) <type_units>: New member.
10202 <get_type_unit_group_unshareable>: New method.
10203 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
10204 num_symtabs, symtabs>: Remove; move to
10205 type_unit_group_unshareable.
10206 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
10207 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
10208 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
10210 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10212 * dwarf2/read.h (struct dwarf2_per_cu_data):
10213 <dwarf2_per_objfile>: Remove.
10214 * dwarf2/read.c (create_cu_from_index_list): Don't assign
10215 dwarf2_per_objfile.
10216 (create_signatured_type_table_from_index): Likewise.
10217 (create_signatured_type_table_from_debug_names): Likewise.
10218 (create_debug_type_hash_table): Likewise.
10219 (fill_in_sig_entry_from_dwo_entry): Likewise.
10220 (create_type_unit_group): Likewise.
10221 (read_comp_units_from_section): Likewise.
10222 (create_cus_hash_table): Likewise.
10224 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10226 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10227 dwarf2_per_cu_data::dwarf2_per_objfile.
10228 (compute_compunit_symtab_includes): Likewise.
10229 (dwarf2_cu::start_symtab): Likewise.
10231 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10233 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10235 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10236 (read_namespace_alias): Update.
10237 (lookup_die_type): Update.
10238 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10239 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10241 (disassemble_dwarf_expression): Update.
10243 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10245 * dwarf2/read.h (struct dwarf2_queue_item): Add
10246 dwarf2_per_objfile parameter, assign new parameter.
10247 <per_objfile>: New field.
10248 * dwarf2/read.c (free_one_cached_comp_unit): Add
10249 dwarf2_per_objfile parameter.
10250 (queue_comp_unit): Likewise.
10251 (dw2_do_instantiate_symtab): Update.
10252 (process_psymtab_comp_unit): Update.
10253 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10254 (process_imported_unit_die): Update.
10255 (queue_and_load_dwo_tu): Update.
10256 (follow_die_offset): Update.
10257 (follow_die_sig_1): Update.
10259 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10261 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10262 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10263 (read_call_site_scope): Assign per_objfile.
10264 (dwarf2_per_cu_data::objfile): Remove.
10265 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10266 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10267 dwarf2_per_objfile parameter.
10268 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10269 dwarf2_per_objfile parameter.
10270 (dwarf_expr_reg_to_entry_parameter): Add output
10271 dwarf2_per_objfile parameter.
10272 (locexpr_get_frame_base): Update.
10273 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10274 <push_dwarf_reg_entry_value>: Update.
10275 <call_site_to_target_addr>: Update.
10276 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10278 (value_of_dwarf_reg_entry): Update.
10279 (rw_pieced_value): Update.
10280 (indirect_synthetic_pointer): Update.
10281 (dwarf2_evaluate_property): Update.
10282 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10284 (locexpr_read_variable): Update.
10285 (locexpr_get_symbol_read_needs): Update.
10286 (loclist_read_variable): Update.
10288 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10290 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10291 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10292 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10294 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10295 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10296 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10298 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10299 sect_variable_value): Add dwarf2_per_objfile parameter.
10300 (class dwarf_evaluate_loc_desc) <dwarf_call,
10301 dwarf_variable_value>: Update.
10302 (fetch_const_value_from_synthetic_pointer): Add
10303 dwarf2_per_objfile parameter.
10304 (fetch_const_value_from_synthetic_pointer): Update.
10305 (coerced_pieced_ref): Update.
10306 (class symbol_needs_eval_context) <dwarf_call,
10307 dwarf_variable_value>: Update.
10308 (dwarf2_compile_expr_to_ax): Update.
10310 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10312 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10314 (dwarf2_evaluate_loc_desc_full): Update.
10316 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10318 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10320 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10321 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10322 dwarf2_per_objfile parameter.
10323 (decode_debug_loc_dwo_addresses): Likewise.
10324 (dwarf2_find_location_expression): Update.
10325 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10326 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10328 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10330 (locexpr_describe_location_1): Likewise.
10331 (locexpr_describe_location): Update.
10333 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10335 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10337 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10338 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10339 (dwarf2_compile_property_to_c): Update.
10340 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10341 use text offset from objfile.
10342 (locexpr_tracepoint_var_ref): Update.
10343 (locexpr_generate_c_location): Update.
10344 (loclist_describe_location): Update.
10345 (loclist_tracepoint_var_ref): Update.
10346 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10347 dwarf2_per_objfile parameter.
10348 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10349 use text offset from objfile.
10350 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10352 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10354 * dwarf2/expr.h (struct dwarf_expr_context)
10355 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10357 <per_objfile>: New member.
10358 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10359 dwarf2_per_objfile parameter. Don't set offset, set
10361 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10362 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10363 a dwarf2_per_objfile object instead of an offset.
10364 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10366 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10367 to dwarf2_expr_executor constructor. Don't set offset.
10368 (dwarf2_fetch_cfa_info): Update.
10369 (struct dwarf2_frame_cache) <text_offset>: Remove.
10370 <per_objfile>: New field.
10371 (dwarf2_frame_cache): Update.
10372 (dwarf2_frame_prev_register): Update.
10373 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10374 <dwarf_evaluate_loc_desc>: Add constructor.
10375 (dwarf2_evaluate_loc_desc_full): Update.
10376 (dwarf2_locexpr_baton_eval): Update.
10377 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10379 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10381 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10383 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10384 addr_sized_int_type>: Move to dwarf2_cu.
10385 <int_type>: Move to dwarf2_per_objfile.
10386 (struct dwarf2_per_objfile) <int_type>: Move here.
10387 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10388 addr_sized_int_type>: Move here.
10389 (read_func_scope): Update.
10390 (read_array_type): Update.
10391 (read_tag_string_type): Update.
10392 (attr_to_dynamic_prop): Update.
10393 (dwarf2_per_cu_data::int_type): Rename to...
10394 (dwarf2_per_objfile::int_type): ... this.
10395 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10396 (dwarf2_cu::addr_sized_int_type): ... this.
10397 (read_subrange_type): Update.
10398 (dwarf2_per_cu_data::addr_type): Rename to...
10399 (dwarf2_cu::addr_type): ... this.
10400 (set_die_type): Update.
10402 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10404 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10405 data through per_cu->cu.
10407 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10409 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10410 dwarf2_per_cu_data parameter fo dwarf2_cu.
10411 (lookup_dwo_type_unit): Likewise.
10412 (read_cutu_die_from_dwo): Likewise.
10413 (lookup_dwo_unit): Likewise.
10414 (open_and_init_dwo_file): Likewise.
10415 (lookup_dwo_cutu): Likewise.
10416 (lookup_dwo_comp_unit): Likewise.
10417 (lookup_dwo_type_unit): Likewise.
10418 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10419 (cutu_reader::cutu_reader): Update.
10421 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10423 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10425 (process_full_type_unit): Likewise.
10426 (process_queue): Update.
10428 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10430 * dwarf2/read.c (recursively_compute_inclusions): Add
10431 dwarf2_per_objfile parameter.
10432 (compute_compunit_symtab_includes): Likewise.
10433 (process_cu_includes): Update.
10435 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10437 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10439 (create_type_unit_group): Update.
10440 (process_psymtab_comp_unit_reader): Update.
10441 (build_type_psymtabs_reader): Update.
10443 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10445 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10446 object through m_this_cu->cu.
10448 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10450 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10451 the info parameter.
10452 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10454 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10456 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10457 per_objfile parameter.
10458 (load_full_type_unit): Add per_objfile parameter.
10459 (read_signatured_type): Likewise.
10460 (load_full_comp_unit): Likewise.
10461 (load_cu): Likewise.
10462 (dw2_do_instantiate_symtab): Likewise.
10463 (dw2_get_file_names): Likewise.
10464 (dw2_map_symtabs_matching_filename): Update.
10465 (dw_expand_symtabs_matching_file_matcher): Update.
10466 (dw2_map_symbol_filenames): Update.
10467 (process_psymtab_comp_unit): Add per_objfile parameter.
10468 (build_type_psymtabs_1): Update.
10469 (process_skeletonless_type_unit): Update.
10470 (dwarf2_build_psymtabs_hard): Update.
10471 (load_partial_comp_unit): Add per_objfile parameter.
10472 (scan_partial_symbols): Update.
10473 (load_full_comp_unit): Add per_objfile parameter.
10474 (process_imported_unit_die): Update.
10475 (create_cus_hash_table): Update.
10476 (find_partial_die): Update.
10477 (dwarf2_read_addr_index): Update.
10478 (follow_die_offset): Update.
10479 (dwarf2_fetch_die_loc_sect_off): Update.
10480 (dwarf2_fetch_constant_bytes): Update.
10481 (dwarf2_fetch_die_type_sect_off): Update.
10482 (follow_die_sig_1): Update.
10483 (load_full_type_unit): Add per_objfile parameter.
10484 (read_signatured_type): Likewise.
10486 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10488 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10491 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10493 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10494 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10495 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10497 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10498 (create_cus_from_index): Update.
10499 (dwarf2_read_gdb_index): Update.
10500 (create_cus_from_debug_names): Update.
10501 (dwarf2_read_debug_names): Update.
10502 (get_abbrev_section_for_cu): Update.
10503 (create_all_comp_units): Update.
10504 (read_attribute_value): Update.
10505 (get_debug_line_section): Update.
10506 * dwarf2/index-cache.c (index_cache::store): Update.
10507 * dwarf2/index-write.c (save_gdb_index_command): Update.
10508 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10510 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10512 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10514 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10515 dwarf2_per_cu_data::per_bfd.
10516 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10517 (create_type_unit_group): Likewise.
10518 (queue_comp_unit): Remove reference to
10519 per_cu->dwarf2_per_objfile.
10520 (maybe_queue_comp_unit): Likewise.
10521 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10522 (create_cus_hash_table): Assign new field.
10524 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10526 * dwarf2/read.c: Replace
10527 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10528 dwarf2_cu->per_objfile throughout.
10530 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10532 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10533 parameter, don't use per_cu->dwarf2_per_objfile.
10534 (dw2_instantiate_symtab): Likewise.
10535 (dw2_find_last_source_symtab): Update.
10536 (dw2_map_expand_apply): Update.
10537 (dw2_lookup_symbol): Update.
10538 (dw2_expand_symtabs_for_function): Update.
10539 (dw2_expand_all_symtabs): Update.
10540 (dw2_expand_symtabs_with_fullname): Update.
10541 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10542 don't use per_cu->dwarf2_per_objfile.
10543 (dw2_expand_marked_cus): Update.
10544 (dw2_find_pc_sect_compunit_symtab): Update.
10545 (dw2_debug_names_lookup_symbol): Update.
10546 (dw2_debug_names_expand_symtabs_for_function): Update.
10547 (dw2_debug_names_map_matching_symbols): Update.
10548 (dwarf2_psymtab::expand_psymtab): Update.
10550 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10552 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10553 <per_objfile>: New member.
10554 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10555 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10557 (cutu_reader::cutu_reader): Update.
10558 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10560 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10562 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10563 struct dwarf2_per_objfile.
10564 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10566 * dwarf2/read.c (set_die_type): Update.
10567 (get_die_type_at_offset): Update.
10569 2020-05-27 Tom Tromey <tom@tromey.com>
10570 Simon Marchi <simon.marchi@efficios.com>
10572 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10574 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10575 get_symtab, set_symtab>: New methods.
10576 <m_symtabs>: New field.
10577 (struct dwarf2_psymtab): Derive from partial_symtab.
10578 <readin_p, get_compunit_symtab>: Declare methods.
10579 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10580 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10582 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10583 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10584 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10585 (dw2_symtab_iter_next, dw2_print_stats)
10586 (dw2_expand_symtabs_with_fullname)
10587 (dw2_expand_symtabs_matching_one)
10588 (dw_expand_symtabs_matching_file_matcher)
10589 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10590 (dw2_debug_names_iterator::next)
10591 (dw2_debug_names_map_matching_symbols)
10592 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10593 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10594 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10596 (get_compunit_symtab, process_full_comp_unit)
10597 (process_full_type_unit): Update.
10598 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10600 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10602 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10603 then introduce a new dwarf2_per_objfile type.
10604 <read_line_string>: Move to the new dwarf2_per_objfile type.
10605 <objfile>: Likewise.
10606 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10607 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10608 dwarf2_per_objfile->per_bfd.
10609 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10610 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10611 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10612 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10613 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10614 (dwarf2_per_objfile::locate_sections): Rename to...
10615 (dwarf2_per_bfd::locate_sections): ... this.
10616 (dwarf2_per_objfile::get_cutu): Rename to...
10617 (dwarf2_per_bfd::get_cutu): ... this.
10618 (dwarf2_per_objfile::get_cu): Rename to...
10619 (dwarf2_per_bfd::get_cu): ... this.
10620 (dwarf2_per_objfile::get_tu): Rename to...
10621 (dwarf2_per_bfd::get_tu): ... this.
10622 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10623 (dwarf2_per_bfd::allocate_per_cu): ... this.
10624 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10625 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10626 (get_gdb_index_contents_ftype): Change parameter from
10627 dwarf2_per_objfile to dwarf2_per_bfd.
10628 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10629 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10631 2020-05-27 Tom Tromey <tom@tromey.com>
10632 Simon Marchi <simon.marchi@efficios.com>
10634 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10635 (allocate_piece_closure): Set "per_objfile" member.
10636 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10637 (locexpr_describe_location, loclist_describe_location): Use new
10639 * dwarf2/read.c (read_call_site_scope)
10640 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10641 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10642 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10643 handle_data_member_location): Set per_objfile member.
10644 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10646 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10648 2020-05-27 Tom Tromey <tom@tromey.com>
10650 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10651 allocate_signatured_type>: Declare new methods.
10652 <m_num_psymtabs>: New member.
10653 (struct dwarf2_per_cu_data) <index>: New member.
10654 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10655 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10656 (create_cu_from_index_list): Use allocate_per_cu.
10657 (create_signatured_type_table_from_index)
10658 (create_signatured_type_table_from_debug_names)
10659 (create_debug_type_hash_table, add_type_unit)
10660 (read_comp_units_from_section): Use allocate_signatured_type.
10662 2020-05-27 Tom Tromey <tom@tromey.com>
10664 * psymtab.c (partial_map_expand_apply)
10665 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10666 (psym_lookup_global_symbol_language)
10667 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10668 (psym_print_stats, psym_expand_symtabs_for_function)
10669 (psym_map_symbol_filenames, psym_map_matching_symbols)
10670 (psym_expand_symtabs_matching)
10671 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10672 (maintenance_check_psymtabs): Update.
10673 * psympriv.h (struct partial_symtab) <readin_p,
10674 get_compunit_symtab>: Add objfile parameter.
10675 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10677 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10678 get_compunit_symtab>: Likewise.
10679 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10681 2020-05-27 Tom Tromey <tom@tromey.com>
10683 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10685 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10686 (create_cu_from_index_list)
10687 (create_signatured_type_table_from_index)
10688 (create_signatured_type_table_from_debug_names)
10689 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10690 (dwarf2_create_include_psymtab)
10691 (create_debug_type_hash_table, add_type_unit)
10692 (create_type_unit_group, read_comp_units_from_section)
10693 (dwarf2_compute_name, create_cus_hash_table)
10694 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10695 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10697 (dw2_get_real_path): Likewise. Change argument to
10698 dwarf2_per_objfile.
10700 2020-05-27 Luis Machado <luis.machado@linaro.org>
10703 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10704 for ldrd (immediate).
10706 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10708 * command.h: Add comment giving the name of class_tui.
10709 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10710 create the fake command for the help for class_tui.
10712 2020-05-26 Tom Tromey <tromey@adacore.com>
10714 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10715 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10716 (val_atr): New function.
10717 (value_val_atr): Use it.
10718 * ada-valprint.c (print_optional_low_bound): Change low bound
10719 handling for enums.
10720 (val_print_packed_array_elements): Don't call discrete_position.
10721 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10722 discrete_position for enum types.
10723 * language.c (default_print_array_index): Change type.
10724 * language.h (struct language_defn) <la_print_array_index>: Add
10725 index_type parameter, change type of index_value.
10726 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10727 (default_print_array_index): Update.
10728 * valprint.c (maybe_print_array_index): Don't call
10729 value_from_longest. Update.
10730 (value_print_array_elements): Don't call discrete_position.
10732 2020-05-26 Tom Tromey <tromey@adacore.com>
10734 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10735 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10737 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10740 * avr-tdep.c (avr_integer_to_address): Return data or code
10741 address accordingly to the second 'type' argument of the
10744 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10746 * infcmd.c, inferior.h: (construct_inferior_arguments):
10747 Moved function from here to gdbsupport/common-inferior.{h,cc}
10749 2020-05-23 Tom Tromey <tom@tromey.com>
10751 Revert commit eca1f90c:
10752 * NEWS: Remove entry for completion styling.
10753 * completer.c (_rl_completion_prefix_display_length): Move
10755 (gdb_fnprint): Revert.
10756 (gdb_display_match_list_1): Likewise.
10757 * cli/cli-style.c (completion_prefix_style)
10758 (completion_difference_style, completion_suffix_style): Remove.
10759 (_initialize_cli_style): Revert.
10760 * cli/cli-style.h (completion_prefix_style)
10761 (completion_difference_style, completion_suffix_style): Don't
10764 2020-05-24 Pedro Alves <palves@redhat.com>
10766 * symtab.c (completion_list_add_name): Return boolean indication
10767 of whether the symbol matched.
10768 (completion_list_add_symbol): Don't try to remove C++ aliases if
10769 the symbol didn't match in the first place.
10770 * symtab.h (completion_list_add_name): Return bool.
10772 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10774 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10777 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10781 2020-05-23 Tom Tromey <tom@tromey.com>
10783 * NEWS: Add entry for completion styling.
10784 * completer.c (_rl_completion_prefix_display_length): Move
10785 declaration earlier.
10786 (gdb_fnprint): Use completion_style.
10787 (gdb_display_match_list_1): Likewise.
10788 * cli/cli-style.c (completion_prefix_style)
10789 (completion_difference_style, completion_suffix_style): New
10791 (_initialize_cli_style): Register new globals.
10792 * cli/cli-style.h (completion_prefix_style)
10793 (completion_difference_style, completion_suffix_style): Declare.
10795 2020-05-23 Pedro Alves <palves@redhat.com>
10797 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10798 (parse_escape): Use ISDIGIT instead of isdigit.
10799 (puts_debug): Use gdb_isprint instead of isprint.
10800 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10801 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10802 ISSPACE instead of isspace.
10803 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10804 instead of isspace.
10805 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10806 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10807 instead of isxdigit and ISDIGIT instead of isdigit.
10809 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10811 * gdbtypes.h (struct type) <field>: New method.
10812 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10815 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10817 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10818 (TYPE_FIELDS): Use type::fields. Change all call sites that
10819 modify the propery to use type::set_fields instead.
10821 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10823 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10824 type::num_fields instead.
10826 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10828 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10830 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10831 that modify the number of fields to use type::set_num_fields
10834 2020-05-22 Tom Tromey <tromey@adacore.com>
10836 * compile/compile-object-load.h (munmap_list_free): Don't
10839 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10841 * annotate.c (annotate_source_line): Update return type, add call
10842 to update current symtab and line.
10843 * annotate.h (annotate_source_line): Update return type, and
10844 extend header comment.
10845 * source.c (info_line_command): Check annotation_level before
10846 calling annotate_source_line.
10847 * stack.c (print_frame_info): If calling annotate_source_line
10848 returns true, then don't print any other source line information.
10850 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10852 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10854 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10856 * coffread.c (patch_type): Remove NULL check before xfree.
10857 * corefile.c (set_gnutarget): Likewise.
10858 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10859 * exec.c (build_section_table): Likewise.
10860 * remote.c (remote_target::pass_signals): Likewise.
10861 * utils.c (n_spaces): Likewise.
10862 * cli/cli-script.c (document_command): Likewise.
10863 * i386-windows-tdep.c (core_process_module_section): Likewise.
10864 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10866 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10868 * symfile.c (reread_symbols): Clear objfile's section_offsets
10869 vector and section indices, re-compute them by calling
10872 2020-05-20 Tom Tromey <tromey@adacore.com>
10874 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10875 (desc_one_bound, desc_index_type): Compute field name.
10877 2020-05-20 Tom de Vries <tdevries@suse.de>
10880 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10882 2020-05-20 Alan Modra <amodra@gmail.com>
10885 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10887 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10888 passed to bfd_set_filename.
10889 * symfile-mem.c (add_vsyscall_page): Likewise for string
10890 passed to symbol_file_add_from_memory.
10891 (symbol_file_add_from_memory): Make name param a const char* and
10894 2020-05-20 Alan Modra <amodra@gmail.com>
10896 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10897 rather than accessing bfd->filename directly.
10898 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10899 and use bfd_section_name.
10900 * dwarf2/frame.c (decode_frame_entry): Likewise.
10901 * exec.c (exec_set_section_address): Likewise.
10902 * solib-aix.c (solib_aix_bfd_open): Likewise.
10903 * stap-probe.c (get_stap_base_address): Likewise.
10904 * symfile.c (reread_symbols): Likewise.
10906 2020-05-19 Tom Tromey <tromey@adacore.com>
10908 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10910 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10912 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10914 2020-05-19 Pedro Alves <palves@redhat.com>
10916 * NEWS (set exec-file-mismatch): Adjust entry.
10917 * exec.c: Include "build-id.h".
10918 (validate_exec_file): Try to match build IDs instead of filenames.
10919 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10920 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10921 and pass down 'warn_if_slow'.
10922 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10923 gdb_bfd_open_closure to pass it down.
10924 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10926 2020-05-19 Pedro Alves <palves@redhat.com>
10928 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10929 * target.c (target_fileio_open_1): Rename to target_fileio_open
10930 and make extern. Use bool.
10931 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10932 (target_fileio_read_alloc_1): Adjust.
10933 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10934 (target_fileio_open_warn_if_slow): Delete declaration.
10936 2020-05-19 Pedro Alves <palves@redhat.com>
10938 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10939 Adjust all callers.
10941 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10943 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10944 whether disp is negative.
10946 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10948 * symfile.h (struct symfile_segment_data)
10949 <~symfile_segment_data>: Remove.
10950 <segment_info>: Change to std::vector.
10951 * symfile.c (default_symfile_segments): Update.
10952 * elfread.c (elf_symfile_segments): Update.
10954 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10956 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10958 <segment_bases, segment_sizes>: Remove.
10959 * symfile.c (default_symfile_segments): Update.
10960 * elfread.c (elf_symfile_segments): Update.
10961 * remote.c (remote_target::get_offsets): Update.
10962 * solib-target.c (solib_target_relocate_section_addresses):
10965 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10967 * symfile.h (struct symfile_segment_data): Initialize fields.
10968 <~symfile_segment_data>: Add.
10969 (symfile_segment_data_up): New.
10970 (struct sym_fns) <sym_segments>: Return a
10971 symfile_segment_data_up.
10972 (default_symfile_segments): Return a symfile_segment_data_up.
10973 (free_symfile_segment_data): Remove.
10974 (get_symfile_segment_data): Return a symfile_segment_data_up.
10975 * symfile.c (default_symfile_segments): Likewise.
10976 (get_symfile_segment_data): Likewise.
10977 (free_symfile_segment_data): Remove.
10978 (symfile_find_segment_sections): Update.
10979 * elfread.c (elf_symfile_segments): Return a
10980 symfile_segment_data_up.
10981 * remote.c (remote_target::get_offsets): Update.
10982 * solib-target.c (solib_target_relocate_section_addresses):
10984 * symfile-debug.c (debug_sym_segments): Return a
10985 symfile_segment_data_up.
10987 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10990 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10991 Hardcode register numbers.
10994 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10995 procfs_find_LDT_entry): Remove.
10996 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10997 procfs_find_LDT_entry): Remove.
10998 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
11001 2020-05-17 Pedro Alves <palves@redhat.com>
11002 Andrew Burgess <andrew.burgess@embecosm.com>
11003 Keno Fischer <keno@juliacomputing.com>
11006 * breakpoint.c (build_target_condition_list): Update comments.
11007 (build_target_command_list): Update comments and skip matching
11009 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
11010 a separate function. Simplify "set breakpoint auto-hw off"
11012 (insert_breakpoints): Update comment.
11013 (tracepoint_locations_match): New parameter. For breakpoints,
11014 compare location types too, if the caller wants to.
11015 (handle_automatic_hardware_breakpoints): New functions.
11016 (bp_location_is_less_than): Also sort by location type and
11017 hardware breakpoint length.
11018 (update_global_location_list): Handle "set breakpoint auto-hw on"
11020 (update_breakpoint_locations): Ask breakpoint_locations_match to
11021 ignore location types.
11023 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
11025 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
11026 type::name instead.
11028 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
11030 * gdbtypes.h (struct type) <name, set_name>: New methods.
11031 (TYPE_CODE): Use type::name. Change all call sites used to set
11032 the name to use type::set_name instead.
11034 2020-05-16 Tom Tromey <tom@tromey.com>
11036 * top.c (quit_force): Update.
11037 * infrun.c (handle_no_resumed): Update.
11038 * top.h (all_uis): New function.
11041 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
11043 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
11045 2020-05-16 Pedro Alves <palves@redhat.com>
11048 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
11050 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
11052 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
11054 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
11055 (sparc64_adi_info): Likewise.
11057 2020-05-15 Tom Tromey <tom@tromey.com>
11059 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
11061 (lookup_objfile_from_block): Remove.
11062 (lookup_symbol_in_block, lookup_symbol_in_static_block)
11063 (lookup_global_symbol): Use block_objfile.
11064 * symtab.h (lookup_objfile_from_block): Don't declare.
11065 * printcmd.c (clear_dangling_display_expressions): Use
11067 * parse.c (operator_check_standard): Use block_objfile.
11069 2020-05-15 Tom Tromey <tom@tromey.com>
11071 * language.c (language_alloc_type_symbol): Set
11073 * symtab.c (initialize_objfile_symbol): Remove.
11074 (allocate_symbol): Remove.
11075 (allocate_template_symbol): Remove.
11076 * dwarf2/read.c (fixup_go_packaging): Use "new".
11077 (new_symbol): Use "new".
11078 (read_variable): Don't call initialize_objfile_symbol. Use
11080 (read_func_scope): Use "new".
11081 * xcoffread.c (process_xcoff_symbol): Don't call
11082 initialize_objfile_symbol.
11083 (SYMBOL_DUP): Remove.
11084 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
11086 * symtab.h (allocate_symbol, initialize_objfile_symbol)
11087 (allocate_template_symbol): Don't declare.
11088 (struct symbol): Add copy constructor. Change defaults.
11089 * jit.c (finalize_symtab): Use "new".
11090 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
11092 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11093 (common_block_end): Use "new".
11094 * mdebugread.c (parse_symbol): Use "new".
11095 (new_symbol): Likewise.
11097 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11099 * NEWS: Mention changes to help and apropos.
11101 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11103 * command.h (enum command_class): Improve comments, document
11104 that class_alias is for user-defined aliases, give the class
11105 name for each class, remove unused class_xdb.
11106 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
11107 * breakpoint.c (_initialize_breakpoint): Replace class_alias
11108 by a precise class.
11109 * infcmd.c (_initialize_infcmd): Likewise.
11110 * reverse.c (_initialize_reverse): Likewise.
11111 * stack.c (_initialize_stack): Likewise.
11112 * symfile.c (_initialize_symfile): Likewise.
11113 * tracepoint.c (_initialize_tracepoint): Likewise.
11115 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11117 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
11118 when their aliased command is traversed.
11119 (help_cmd): Add fput_command_names_styled call to
11120 output command name and aliases when command has an alias.
11122 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11124 * cli/cli-decode.h (help_cmd_list): Remove declaration.
11125 * cli/cli-decode.c (help_cmd_list): Declare as static,
11126 remove prefix argument, use bool for recurse arg, rework to show the aliases of
11127 a command together with the command.
11128 (fput_command_name_styled, fput_command_names_styled): New functions.
11129 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
11130 fput_command_name_styled.
11131 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
11132 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
11134 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11136 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
11137 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
11138 * command.h (cmd_show_list): Likewise.
11139 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
11140 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
11142 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11144 * unittests/command-def-selftests.c (traverse_command_structure):
11145 Verify all commands of a list have the same prefix command and
11146 that only the top cmdlist commands have a null prefix.
11148 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11150 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
11151 as prefix, not one of its aliases.
11152 (set_cmd_prefix): Remove.
11153 (do_add_cmd): Centralize the setting of the prefix of a command, when
11154 command is defined after its full chain of prefix commands.
11155 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
11156 (add_setshow_cmd_full): Likewise.
11157 (update_prefix_field_of_prefixed_commands): New function.
11158 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
11159 update_prefix_field_of_prefixed_commands.
11160 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
11161 addresses of remote_set_cmdlist and remote_show_cmdlist given
11162 as argument, not the address of an argument.
11163 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
11164 * gdb/remote.c (_initialize_remote): Likewise.
11166 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11168 * cli/cli-cmds.c (alias_command): Check for an existing alias
11169 using lookup_cmd_composition, as valid_command_p is too strict
11170 and forbids aliases that are the prefix of an existing alias
11172 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
11173 command is properly recognised as a valid command.
11175 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11177 * unittests/help-doc-selftests.c: Rename to
11178 unittests/command-def-selftests.c
11179 * unittests/command-def-selftests.c (help_doc_tests): Update some
11181 (command_structure_tests, traverse_command_structure): New namespace
11183 (command_structure_invariants_tests): New function.
11184 (_initialize_command_def_selftests) Renamed from
11185 _initialize_help_doc_selftests, register command_structure_invariants
11188 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11190 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
11191 an alias of 'show'.
11193 2020-05-15 Joel Brobecker <brobecker@adacore.com>
11195 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
11196 ada_is_fixed_point_type. Update all callers.
11197 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
11199 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
11200 Update all callers.
11201 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
11202 print_fixed_point_type. Update all callers.
11203 * ada-valprint.c (ada_value_print_num): Replace call to
11204 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
11206 2020-05-14 Kevin Buettner <kevinb@redhat.com>
11208 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
11210 (cpu_supports_bts): Add CV_AMD case.
11212 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
11213 Simon Marchi <simon.marchi@efficios.com>
11215 * infrun.c (stop_all_threads): Collect multiple wait events at
11218 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11220 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11221 type::code instead.
11223 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11225 * gdbtypes.h (struct type) <code, set_code>: New methods.
11226 (TYPE_CODE): Use type::code. Change all call sites used to set
11227 the code to use type::set_code instead.
11229 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11230 Tom de Vries <tdevries@suse.de>
11231 Pedro Alves <palves@redhat.com>
11234 * infrun.c (stop_all_threads): Do NOT ignore
11235 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11236 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11238 (handle_no_resumed): Remove code handling a live inferior with no
11240 * remote.c (has_single_non_exited_thread): New.
11241 (remote_target::update_thread_list): Do not delete a thread if is
11242 the last thread of the process.
11243 * thread.c (thread_select): Call delete_exited_threads instead of
11246 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11248 * infrun.c (stop_all_threads): Enable/disable thread events of all
11249 targets. Move a debug message denoting the end of the function
11250 into the SCOPED_EXIT block.
11252 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11254 * process-stratum-target.h: Include <set>.
11255 (all_non_exited_process_targets, switch_to_target_no_thread): New
11256 function declarations.
11257 * process-stratum-target.c (all_non_exited_process_targets)
11258 (switch_to_target_no_thread): New function implementations.
11260 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11262 * infrun.c (handle_inferior_event): Extract out a piece of code
11264 (mark_non_executing_threads): ...this new function.
11266 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11268 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11271 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11273 * regcache.c (regcache_read_pc_protected): New function
11274 implementation that returns 0 if the PC cannot read via
11275 'regcache_read_pc'.
11276 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11277 instead of 'regcache_read_pc'.
11278 (keep_going_pass_signal): Ditto.
11280 2020-05-13 Tom Tromey <tromey@adacore.com>
11282 * ada-lang.c (align_value): Remove.
11283 (ada_template_to_fixed_record_type_1): Use align_up.
11285 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11287 * async-event.c: Update the copyright year.
11288 * async-event.h: Update the copyright year.
11290 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
11292 * objfiles.h (is_addr_in_objfile,
11293 shared_objfile_contains_address_p): Return bool.
11294 * objfile.c (is_addr_in_objfile,
11295 shared_objfile_contains_address_p): Return bool.
11297 2020-05-11 Tom Tromey <tromey@adacore.com>
11299 * cli/cli-cmds.c (info_command): Restore.
11300 (_initialize_cli_cmds): Use add_prefix_command for "info".
11301 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11303 2020-05-11 Tom Tromey <tromey@adacore.com>
11305 * ada-lang.c (ada_value_primitive_field): Now public.
11306 * ada-lang.h (ada_value_primitive_field): Declare.
11307 * ada-valprint.c (print_field_values): Use
11308 ada_value_primitive_field for wrapper fields.
11310 2020-05-11 Tom de Vries <tdevries@suse.de>
11312 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11315 2020-05-11 Tom de Vries <tdevries@suse.de>
11318 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11319 with length 0, if not gdb-produced.
11320 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11322 2020-05-09 Tom de Vries <tdevries@suse.de>
11325 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11328 2020-05-09 Tom Tromey <tom@tromey.com>
11330 * top.c (server_command): Now bool.
11331 * top.h (server_command): Now bool.
11333 2020-05-08 Tom Tromey <tromey@adacore.com>
11335 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11336 already being processed.
11338 2020-05-08 Tom Tromey <tom@tromey.com>
11340 * printcmd.c (struct display) <next>: Remove.
11341 <display>: New constructor.
11342 <exp_string>: Now a std::string.
11343 <enabled_p>: Now a bool.
11344 (display_number): Move definition earlier.
11345 (displays): Rename from display_chain. Now a std::vector.
11346 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11347 (display_command): Update.
11348 (do_one_display, disable_display)
11349 (enable_disable_display_command, do_enable_disable_display):
11351 (free_display): Remove.
11352 (clear_displays): Rewrite.
11353 (delete_display): Update.
11354 (map_display_numbers): Use function_view. Remove "data"
11356 (do_delete_display): Remove.
11357 (undisplay_command): Update.
11358 (do_one_display, do_displays, disable_display)
11359 (info_display_command): Update.
11360 (do_enable_disable_display): Remove.
11361 (enable_disable_display_command)
11362 (clear_dangling_display_expressions): Update.
11364 2020-05-08 Tom Tromey <tom@tromey.com>
11366 * symtab.c (set_symbol_cache_size)
11367 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11368 (maintenance_print_symbol_cache_statistics): Update.
11369 * symmisc.c (print_symbol_bcache_statistics)
11370 (print_objfile_statistics, maintenance_print_objfiles)
11371 (maintenance_info_symtabs, maintenance_check_symtabs)
11372 (maintenance_expand_symtabs, maintenance_info_line_tables):
11374 * symfile-debug.c (set_debug_symfile): Update.
11375 * source.c (forget_cached_source_info): Update.
11376 * python/python.c (gdbpy_progspaces): Update.
11377 * psymtab.c (maintenance_info_psymtabs): Update.
11378 * probe.c (parse_probes): Update.
11379 * linespec.c (iterate_over_all_matching_symtabs)
11380 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11381 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11382 * exec.c (exec_target::close): Update.
11383 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11384 * breakpoint.c (print_one_breakpoint_location)
11385 (create_longjmp_master_breakpoint)
11386 (create_std_terminate_master_breakpoint): Update.
11387 * progspace.c (program_spaces): Now a std::vector.
11388 (maybe_new_address_space): Update.
11389 (add_program_space): Remove.
11390 (program_space::program_space): Update.
11391 (remove_program_space): Update.
11392 (number_of_program_spaces): Remove.
11393 (print_program_space, update_address_spaces): Update.
11394 * progspace.h (program_spaces): Change type.
11395 (ALL_PSPACES): Remove.
11396 (number_of_program_spaces): Don't declare.
11397 (struct program_space) <next>: Remove.
11399 2020-05-08 Tom Tromey <tom@tromey.com>
11401 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11402 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11403 (enable_break): Update.
11404 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11405 (frv_fdpic_find_canonical_descriptor): Update.
11406 (frv_fetch_objfile_link_map): Update.
11407 * progspace.c (program_space::free_all_objfiles): Update.
11408 (program_space::solibs): New method.
11409 * progspace.h (struct program_space) <solibs>: New method.
11410 * solist.h (master_so_list): Don't declare.
11411 (ALL_SO_LIBS): Remove.
11412 * solib.h (so_list_head): Remove.
11413 (update_solib_list): Update comment.
11414 * solib.c (master_so_list): Remove.
11415 (solib_used, update_solib_list, solib_add)
11416 (info_sharedlibrary_command, clear_solib)
11417 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11419 2020-05-08 Tom Tromey <tom@tromey.com>
11421 * extension.c (extension_languages): Now a std::array.
11422 (ALL_EXTENSION_LANGUAGES): Remove.
11423 (get_ext_lang_defn, get_ext_lang_of_file)
11424 (eval_ext_lang_from_control_command): Update.
11425 (finish_ext_lang_initialization)
11426 (auto_load_ext_lang_scripts_for_objfile)
11427 (ext_lang_type_printers::ext_lang_type_printers)
11428 (apply_ext_lang_type_printers)
11429 (ext_lang_type_printers::~ext_lang_type_printers)
11430 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11431 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11432 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11433 (get_matching_xmethod_workers, ext_lang_colorize)
11434 (ext_lang_before_prompt): Update.
11435 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11437 2020-05-08 Tom Tromey <tom@tromey.com>
11439 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11441 <swap_string, m_string>: Remove.
11442 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11444 * stabsread.c (define_symbol, read_type): Update.
11445 * linespec.c (find_linespec_symbols): Update.
11446 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11447 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11448 * dbxread.c (read_dbx_symtab): Update.
11449 * cp-support.h (cp_canonicalize_string_full)
11450 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11451 Return unique_xmalloc_ptr.
11452 * cp-support.c (inspect_type): Update.
11453 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11454 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11456 * c-typeprint.c (print_name_maybe_canonical): Update.
11457 * break-catch-throw.c (check_status_exception_catchpoint):
11460 2020-05-08 Tom de Vries <tdevries@suse.de>
11462 * infrun.c (follow_fork): Copy current_line and current_symtab to
11465 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11467 * async-event.c (struct async_signal_handler, struct
11468 async_event_handler): Reformat, remove typedef.
11470 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11472 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11473 access thistype->main_type->dyn_prop_list directly.
11475 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11477 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11478 (remove_dyn_prop): Remove. Update all users to use
11479 type::remove_dyn_prop.
11480 * gdbtypes.c (remove_dyn_prop): Rename to...
11481 (type::remove_dyn_prop): ... this.
11483 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11485 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11486 (add_dyn_prop): Remove. Update all users to use
11487 type::add_dyn_prop.
11488 * gdbtypes.c (add_dyn_prop): Rename to...
11489 (type::add_dyn_prop): ... this.
11491 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11493 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11494 (get_dyn_prop): Remove. Update all users to use
11496 * gdbtypes.c (get_dyn_prop): Rename to...
11497 (type::dyn_prop): ... this.
11499 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11501 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11503 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11505 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11506 instruction, skip it if it's there.
11508 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11510 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11512 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11514 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11515 * gdbtypes.c (recursive_dump_type): Remove use of
11518 2020-05-03 Tom Tromey <tom@tromey.com>
11520 * breakpoint.c (catch_command, tcatch_command): Remove.
11521 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11522 add_show_prefix_cmd.
11523 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11524 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11526 (add_internal_problem_command): Use add_basic_prefix_cmd,
11527 add_show_prefix_cmd.
11528 * mips-tdep.c (set_mipsfpu_command): Remove.
11529 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11530 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11531 (_initialize_index_cache): Use add_basic_prefix_cmd.
11532 * memattr.c (dummy_cmd): Remove.
11533 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11534 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11535 (_initialize_tui_win): Use add_basic_prefix_cmd,
11536 add_show_prefix_cmd.
11537 * cli/cli-logging.c (set_logging_command): Remove.
11538 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11539 add_show_prefix_cmd.
11540 (show_logging_command): Remove.
11541 * target.c (target_command): Remove.
11542 (add_target): Use add_basic_prefix_cmd.
11544 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11546 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11548 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11550 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11553 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11555 * nbsd-nat.c (nbsd_enable_proc_events)
11556 (nbsd_nat_target::post_startup_inferior): Add.
11557 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11558 (nbsd_nat_target::update_thread_list): Rewrite.
11559 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11560 "PTRACE_LWP_CREATE".
11561 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11563 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11565 * stack.c (_initialize_stack): Remove duplicated creation
11566 of "frame" command and "f" alias.
11568 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11571 * gdbtypes.c (check_typedef): Calculate size of array of
11574 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11577 * i386-tdep.c (i386_push_dummy_call): Call
11578 i386_thiscall_push_dummy_call.
11579 (i386_thiscall_push_dummy_call): New function.
11580 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11581 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11582 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11584 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11586 * gdbarch.sh (do_read): Add shellcheck disable directive for
11589 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11591 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11592 "referenced but not assigned" warning.
11594 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11596 * gdbarch.sh: Remove code that sets fallbackdefault.
11598 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11600 * gdbarch.sh: Use shell operators && and || instead of
11603 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11605 * gdbarch.sh: Use $(...) instead of `...`.
11607 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11609 * gdbarch.sh: Use double quotes around variables.
11611 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11613 * gdbarch.sh: Use %s with printf, instead of variables in the
11616 2020-04-29 Tom Tromey <tromey@adacore.com>
11619 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11621 (read_enumeration_type): Call
11622 update_enumeration_type_from_children later. Update comments.
11623 (process_enumeration_scope): Don't create type fields.
11625 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11627 * nbsd-tdep.c: Include "xml-syscall.h".
11628 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11630 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11632 * nbsd-nat.c: Include "sys/wait.h".
11633 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11634 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11635 (nbsd_nat_target::remove_exec_catchpoint)
11636 (nbsd_nat_target::set_syscall_catchpoint): Add.
11637 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11638 (nbsd_nat_target::insert_exec_catchpoint)
11639 (nbsd_nat_target::remove_exec_catchpoint)
11640 (nbsd_nat_target::set_syscall_catchpoint): Add.
11641 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11642 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11643 `nbsd_get_syscall_number'.
11645 2020-04-29 Tom Tromey <tom@tromey.com>
11647 * stack.c (print_block_frame_labels): Remove.
11649 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11652 * ada-valprint.c (val_print_packed_array_elements): Move array
11653 end bracket to new line.
11654 (ada_val_print_string): Remove extra spaces before first array
11656 * c-valprint.c (c_value_print_array): Likewise.
11657 * m2-valprint.c (m2_print_array_contents): Likewise.
11658 (m2_value_print_inner): Likewise.
11659 * p-valprint.c (pascal_value_print_inner): Likewise.
11660 * valprint.c (generic_val_print_array): Likewise.
11661 (value_print_array_elements): Move first array element and array
11662 end bracket to new line.
11664 2020-04-29 Tom de Vries <tdevries@suse.de>
11667 * linespec.c (find_method): Fix ix calculation.
11669 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11671 * syscalls/update-netbsd.sh: New file.
11672 * syscalls/netbsd.xml: Regenerate.
11673 * data-directory/Makefile.in: Register `netbsd.xml' in
11676 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11678 * syscalls/update-freebsd.sh: Add double quotes.
11680 2020-04-28 Tom Tromey <tom@tromey.com>
11683 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11684 (cmdpy_init): Allow class_tui.
11686 2020-04-28 Mark Williams <mark@myosotissp.com>
11689 * dwarf2read.c: Add missing assingments to list_in_scope when
11690 start_symtab was already called.
11692 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11695 * dwarf2/read.c (offset_map_type): Use
11696 gdb:hash_enum<sect_offset> as hash function.
11698 2020-04-28 Tom de Vries <tdevries@suse.de>
11700 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11701 with DW_AT_signature.
11703 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11705 * configure.ac: Remove check for fs_base/gs_base in
11707 * configure: Re-generate.
11708 * config.in: Re-generate.
11709 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11710 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11711 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11713 2020-04-27 Luis Machado <luis.machado@linaro.org>
11715 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11716 problematic inline frame unwinding situation.
11717 * frame.c (frame_id_computed_p): New function.
11718 * frame.h (frame_id_computed_p): New prototype.
11720 2020-04-26 Tom Tromey <tom@tromey.com>
11722 * command.h (enum command_class) <class_pseudo>: Remove.
11724 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11726 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11729 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11731 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11732 `PT_GET_PROCESS_STATE' block.
11734 2020-04-24 Tom Tromey <tom@tromey.com>
11736 * symtab.h (symbol_get_demangled_name): Don't declare.
11737 * symtab.c (symbol_get_demangled_name): Remove.
11738 (general_symbol_info::natural_name)
11739 (general_symbol_info::demangled_name): Update.
11741 2020-04-24 Tom Tromey <tom@tromey.com>
11744 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11746 2020-04-24 Tom Tromey <tom@tromey.com>
11749 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11751 (new_symbol): Likewise.
11752 * compile/compile-object-load.c (get_out_value_type): Use
11753 symbol_matches_search_name.
11755 2020-04-24 Tom Tromey <tom@tromey.com>
11757 * dwarf2/read.c (add_partial_symbol): Do not call
11758 compute_and_set_names.
11760 2020-04-24 Tom Tromey <tom@tromey.com>
11762 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11765 2020-04-24 Tom Tromey <tom@tromey.com>
11767 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11768 (add_psymbol_to_list): New overload. Make old overload call new
11770 * psympriv.h (add_psymbol_to_list): New overload.
11772 2020-04-24 Tom Tromey <tom@tromey.com>
11774 * dwarf2/read.c (partial_die_info::read) <case
11775 DW_AT_linkage_name>: Use value_as_string.
11776 (dwarf2_string_attr): Use value_as_string.
11777 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11779 * dwarf2/attribute.c (attribute::value_as_string): New method.
11781 2020-04-24 Tom Tromey <tom@tromey.com>
11783 * symtab.c (general_symbol_info::natural_name)
11784 (general_symbol_info::demangled_name): Check for language_rust.
11786 2020-04-24 Tom Tromey <tom@tromey.com>
11788 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11789 (dwarf2_physname): ... from here.
11790 (partial_die_info::read): Add Rust "{" hack.
11792 2020-04-24 Tom Tromey <tom@tromey.com>
11794 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11796 (symbol_set_demangled_name): Don't declare.
11797 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11798 symbol_set_demangled_name.
11799 (general_symbol_info::set_language)
11800 (general_symbol_info::compute_and_set_names): Update.
11801 * minsyms.c (minimal_symbol_reader::install): Update.
11802 * dwarf2/read.c (new_symbol): Update.
11804 2020-04-24 Tom Tromey <tromey@adacore.com>
11807 * python/py-type.c (convert_field): Handle
11808 FIELD_LOC_KIND_DWARF_BLOCK.
11809 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11810 (typy_get_dynamic): Nw function.
11811 (type_object_getset): Add "dynamic".
11814 2020-04-24 Tom Tromey <tromey@adacore.com>
11816 * ada-typeprint.c (print_choices, print_variant_part)
11817 (print_record_field_types_dynamic): New functions.
11818 (print_record_field_types): Use print_record_field_types_dynamic.
11820 2020-04-24 Tom Tromey <tromey@adacore.com>
11822 * dwarf2/read.c (handle_data_member_location): New overload.
11823 (dwarf2_add_field): Use it.
11824 (decode_locdesc): Add "computed" parameter. Update comment.
11825 * gdbtypes.c (is_dynamic_type_internal): Also look for
11826 FIELD_LOC_KIND_DWARF_BLOCK.
11827 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11828 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11829 virtual base classes.
11830 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11831 FIELD_LOC_KIND_DWARF_BLOCK.
11833 2020-04-24 Tom Tromey <tromey@adacore.com>
11835 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11836 * gdbtypes.c (is_dynamic_type_internal): Check
11837 TYPE_HAS_DYNAMIC_LENGTH.
11838 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11839 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11841 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11844 2020-04-24 Tom Tromey <tromey@adacore.com>
11846 * dwarf2/read.c (struct variant_field): Rewrite.
11847 (struct variant_part_builder): New.
11848 (struct nextfield): Remove "variant" field. Add "offset".
11849 (struct field_info): Add "current_variant_part" and
11851 (alloc_discriminant_info): Remove.
11852 (alloc_rust_variant): New function.
11853 (quirk_rust_enum): Update.
11854 (dwarf2_add_field): Set "offset" member. Don't handle
11855 DW_TAG_variant_part.
11856 (offset_map_type): New typedef.
11857 (convert_variant_range, create_one_variant)
11858 (create_one_variant_part, create_variant_parts)
11859 (add_variant_property): New functions.
11860 (dwarf2_attach_fields_to_type): Call add_variant_property.
11861 (read_structure_type): Don't handle DW_TAG_variant_part.
11862 (handle_variant_part, handle_variant): New functions.
11863 (handle_struct_member_die): Use them.
11864 (process_structure_scope): Don't handle variant parts.
11865 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11866 (struct discriminant_info): Remove.
11867 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11868 (struct main_type) <flag_discriminated_union>: Remove.
11869 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11870 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11871 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11873 * valops.c (value_union_variant): Remove.
11874 * value.h (value_union_variant): Don't declare.
11876 2020-04-24 Tom Tromey <tromey@adacore.com>
11878 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11879 (ada_value_primitive_packed_val): Update.
11880 * ada-valprint.c (ada_value_print_1): Update.
11881 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11882 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11883 just an address. Use evaluate_for_locexpr_baton.
11884 (dwarf2_evaluate_property): Update.
11885 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11887 * findvar.c (default_read_var_value): Update.
11888 * gdbtypes.c (compute_variant_fields_inner)
11889 (resolve_dynamic_type_internal): Update.
11890 (resolve_dynamic_type): Change type of valaddr parameter.
11891 * gdbtypes.h (resolve_dynamic_type): Update.
11892 * valarith.c (value_subscripted_rvalue): Update.
11893 * value.c (value_from_contents_and_address): Update.
11895 2020-04-24 Tom Tromey <tromey@adacore.com>
11897 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11898 "push_initial_value" parameter.
11899 (dwarf2_evaluate_property): Likewise.
11900 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11902 2020-04-24 Tom Tromey <tromey@adacore.com>
11904 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11905 (variant::matches, compute_variant_fields_recurse)
11906 (compute_variant_fields_inner, compute_variant_fields): New
11908 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11909 Use resolved_type after type is made.
11910 (operator==): Add new cases.
11911 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11912 (struct discriminant_range, struct variant, struct variant_part):
11914 (union dynamic_prop_data) <variant_parts, original_type>: New
11916 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11917 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11919 * value.c (unpack_bits_as_long): Now public.
11920 * value.h (unpack_bits_as_long): Declare.
11922 2020-04-24 Tom Tromey <tromey@adacore.com>
11924 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11925 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11927 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11929 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11931 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11933 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11934 (remove_fork_catchpoint, post_startup_inferior)
11935 (post_attach): Move...
11936 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11937 (remove_fork_catchpoint, post_startup_inferior)
11938 (post_attach): ...here.
11939 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11940 (remove_fork_catchpoint, post_startup_inferior)
11941 (post_attach): Move...
11942 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11943 (remove_fork_catchpoint, post_startup_inferior)
11944 (post_attach): ...here.
11946 2020-04-24 Tom Tromey <tromey@adacore.com>
11948 * nat/windows-nat.h (struct windows_thread_info)
11949 <pc_adjusted>: New member.
11950 * windows-nat.c (windows_fetch_one_register): Check
11952 (windows_nat_target::get_windows_debug_event)
11953 (windows_nat_target::wait): Set pc_adjusted.
11955 2020-04-24 Tom de Vries <tdevries@suse.de>
11957 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11958 Run gdb-add-index inside temp dir.
11960 2020-04-23 Tom Tromey <tromey@adacore.com>
11962 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11965 2020-04-23 Luis Machado <luis.machado@linaro.org>
11967 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11968 get_frame_register instead of gdbarch_unwind_pc.
11970 2020-04-23 Tom de Vries <tdevries@suse.de>
11972 * symtab.c (lookup_global_symbol): Prefer def over decl.
11974 2020-04-23 Tom de Vries <tdevries@suse.de>
11977 * block.c (best_symbol, better_symbol): Promote to external.
11978 * block.h (best_symbol, better_symbol): Declare.
11979 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11982 2020-04-23 Tom Tromey <tromey@adacore.com>
11985 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11986 "const char *", not a "const std::string &".
11987 <name_and_matcher::operator==>: Update.
11988 * unittests/lookup_name_info-selftests.c: Change type of
11991 2020-04-23 Tom Tromey <tom@tromey.com>
11993 * inferior.h (iterate_over_inferiors): Don't declare.
11994 * inferior.c (iterate_over_inferiors): Remove.
11995 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11997 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11998 use iterate_over_inferiors.
11999 (darwin_resume_inferior_it)
12000 (struct resume_inferior_threads_param)
12001 (darwin_resume_inferior_threads_it): Remove.
12002 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
12004 2020-04-23 Tom de Vries <tdevries@suse.de>
12006 * blockframe.c (find_pc_partial_function): Use
12007 find_pc_sect_compunit_symtab rather than
12008 objfile->sf->qf->find_pc_sect_compunit_symtab.
12010 2020-04-22 Tom de Vries <tdevries@suse.de>
12013 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
12016 2020-04-22 Tom de Vries <tdevries@suse.de>
12019 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
12022 2020-04-22 Tom de Vries <tdevries@suse.de>
12025 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
12026 CU if already created.
12028 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12030 * infrun.c (displaced_step_fixup): Switch to the event_thread
12031 before calling displaced_step_restore, not after.
12033 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12035 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
12036 its inferior is not recorded by us.
12037 (record_btrace_target_open): Replace call to
12038 all_non_exited_threads () with call to current_inferior
12039 ()->non_exited_threads ().
12040 (record_btrace_target::stop_recording): Likewise.
12041 (record_btrace_target::close): Likewise.
12042 (record_btrace_target::wait): Likewise.
12043 (record_btrace_target::record_stop_replaying): Likewise.
12045 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12047 * btrace.c (btrace_enable): Throw an error on double enables and
12048 when enabling recording fails.
12049 (btrace_disable): Throw an error if the thread is not recorded.
12051 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12053 * record-btrace.c (record_btrace_target::fetch_registers): Forward
12054 request if we do not have a thread_info.
12056 2020-04-21 Tom de Vries <tdevries@suse.de>
12060 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
12061 exception in get_frame_id.
12063 2020-04-20 Tom Tromey <tromey@adacore.com>
12065 * python/python.c (struct gdbpy_event): Mark move constructor as
12067 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
12068 constructor as noexcept.
12069 * completer.h (struct completion_result): Mark move constructor as
12071 * completer.c (completion_result::completion_result): Use
12072 initialization style. Don't call reset_match_list.
12074 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
12076 * MAINTAINERS (Write After Approval): Add myself.
12078 2020-04-18 Tom Tromey <tom@tromey.com>
12080 * windows-tdep.c (init_w32_command_list)
12081 (w32_prefix_command_valid): Restore.
12082 (_initialize_windows_tdep): Call init_w32_command_list.
12084 2020-04-18 Tom Tromey <tom@tromey.com>
12086 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
12087 * value.c (value_fn_field): Update.
12088 * valops.c (find_function_in_inferior)
12089 (value_allocate_space_in_inferior): Update.
12090 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12092 * tui/tui-source.c (tui_source_window::set_contents): Update.
12093 * symtab.c (lookup_global_or_static_symbol)
12094 (find_function_start_sal_1, skip_prologue_sal)
12095 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
12096 * symmisc.c (dump_msymbols, dump_symtab_1)
12097 (maintenance_print_one_line_table): Update.
12098 * symfile.c (init_entry_point_info, section_is_mapped)
12099 (list_overlays_command, simple_read_overlay_table)
12100 (simple_overlay_update_1): Update.
12101 * stap-probe.c (handle_stap_probe): Update.
12102 * stabsread.c (dbx_init_float_type, define_symbol)
12103 (read_one_struct_field, read_enum_type, read_range_type): Update.
12104 * source.c (info_line_command): Update.
12105 * python/python.c (gdbpy_source_objfile_script)
12106 (gdbpy_execute_objfile_script): Update.
12107 * python/py-type.c (save_objfile_types): Update.
12108 * python/py-objfile.c (py_free_objfile): Update.
12109 * python/py-inferior.c (python_new_objfile): Update.
12110 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
12111 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
12112 (maintenance_check_psymtabs): Update.
12113 * printcmd.c (info_address_command): Update.
12114 * objfiles.h (struct objfile) <arch>: New method, from
12116 (get_objfile_arch): Don't declare.
12117 * objfiles.c (get_objfile_arch): Remove.
12118 (filter_overlapping_sections): Update.
12119 * minsyms.c (msymbol_is_function): Update.
12120 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
12121 (output_nondebug_symbol): Update.
12122 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
12123 (mdebug_expand_psymtab): Update.
12124 * machoread.c (macho_add_oso_symfile): Update.
12125 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
12127 * linux-fork.c (checkpoint_command): Update.
12128 * linespec.c (convert_linespec_to_sals): Update.
12129 * jit.c (finalize_symtab): Update.
12130 * infrun.c (insert_exception_resume_from_probe): Update.
12131 * ia64-tdep.c (ia64_find_unwind_table): Update.
12132 * hppa-tdep.c (internalize_unwinds): Update.
12133 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
12135 * gcore.c (call_target_sbrk): Update.
12136 * elfread.c (record_minimal_symbol, elf_symtab_read)
12137 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
12138 (elf_gnu_ifunc_resolve_by_got): Update.
12139 * dwarf2/read.c (create_addrmap_from_index)
12140 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12141 (read_debug_names_from_section)
12142 (process_psymtab_comp_unit_reader, add_partial_symbol)
12143 (add_partial_subprogram, process_full_comp_unit)
12144 (read_file_scope, read_func_scope, read_lexical_block_scope)
12145 (read_call_site_scope, dwarf2_ranges_read)
12146 (dwarf2_record_block_ranges, dwarf2_add_field)
12147 (mark_common_block_symbol_computed, read_tag_pointer_type)
12148 (read_tag_string_type, dwarf2_init_float_type)
12149 (dwarf2_init_complex_target_type, read_base_type)
12150 (partial_die_info::read, partial_die_info::read)
12151 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
12152 (dwarf2_fetch_die_loc_sect_off): Update.
12153 * dwarf2/loc.c (dwarf2_find_location_expression)
12154 (class dwarf_evaluate_loc_desc, rw_pieced_value)
12155 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
12156 (dwarf2_loc_desc_get_symbol_read_needs)
12157 (locexpr_describe_location_piece, locexpr_describe_location_1)
12158 (loclist_describe_location): Update.
12159 * dwarf2/index-write.c (write_debug_names): Update.
12160 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
12161 * dtrace-probe.c (dtrace_process_dof): Update.
12162 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
12163 (process_one_symbol): Update.
12164 * ctfread.c (ctf_init_float_type, read_base_type): Update.
12165 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
12166 (coff_read_enum_type): Update.
12167 * cli/cli-cmds.c (edit_command, list_command): Update.
12168 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
12169 * breakpoint.c (create_overlay_event_breakpoint)
12170 (create_longjmp_master_breakpoint)
12171 (create_std_terminate_master_breakpoint)
12172 (create_exception_master_breakpoint, get_sal_arch): Update.
12173 * block.c (block_gdbarch): Update.
12174 * annotate.c (annotate_source_line): Update.
12176 2020-04-17 Tom Tromey <tromey@adacore.com>
12178 * auto-load.c (show_auto_load_cmd): Remove.
12179 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
12180 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
12181 (maintenance_print_arc_command): Remove.
12182 * tui/tui-win.c (tui_command): Remove.
12183 (tui_get_cmd_list): Use add_basic_prefix_cmd.
12184 * tui/tui-layout.c (tui_layout_command): Remove.
12185 (_initialize_tui_layout): Use add_basic_prefix_cmd.
12186 * python/python.c (user_set_python, user_show_python): Remove.
12187 (_initialize_python): Use add_basic_prefix_cmd,
12188 add_show_prefix_cmd.
12189 * guile/guile.c (set_guile_command, show_guile_command): Remove.
12190 (install_gdb_commands): Use add_basic_prefix_cmd,
12191 add_show_prefix_cmd.
12192 (info_guile_command): Remove.
12193 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
12194 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
12195 add_show_prefix_cmd.
12196 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
12197 Remove do_set and do_show parameters.
12198 * cli/cli-style.c (set_style, show_style): Remove.
12199 (_initialize_cli_style): Use add_basic_prefix_cmd,
12200 add_show_prefix_cmd.
12201 (cli_style_option::add_setshow_commands): Remove do_set and
12202 do_show parameters.
12203 (cli_style_option::add_setshow_commands): Use
12204 add_basic_prefix_cmd, add_show_prefix_cmd.
12205 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
12206 (set_style_name): Remove.
12207 * cli/cli-dump.c (dump_command, append_command): Remove.
12208 (srec_dump_command, ihex_dump_command, verilog_dump_command)
12209 (tekhex_dump_command, binary_dump_command)
12210 (binary_append_command): Remove.
12211 (_initialize_cli_dump): Use add_basic_prefix_cmd.
12212 * windows-tdep.c (w32_prefix_command_valid): Remove global.
12213 (init_w32_command_list): Remove; move into ...
12214 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
12215 * valprint.c (set_print, show_print, set_print_raw)
12216 (show_print_raw): Remove.
12217 (_initialize_valprint): Use add_basic_prefix_cmd,
12218 add_show_prefix_cmd.
12219 * typeprint.c (set_print_type, show_print_type): Remove.
12220 (_initialize_typeprint): Use add_basic_prefix_cmd,
12221 add_show_prefix_cmd.
12222 * record.c (set_record_command, show_record_command): Remove.
12223 (_initialize_record): Use add_basic_prefix_cmd,
12224 add_show_prefix_cmd.
12225 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12226 add_show_prefix_cmd.
12227 (info_command, show_command, set_debug, show_debug): Remove.
12228 * top.h (set_history, show_history): Don't declare.
12229 * top.c (set_history, show_history): Remove.
12230 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12231 (unset_tdesc_cmd): Remove.
12232 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12233 add_show_prefix_cmd.
12234 * symtab.c (info_module_command): Remove.
12235 (_initialize_symtab): Use add_basic_prefix_cmd.
12236 * symfile.c (overlay_command): Remove.
12237 (_initialize_symfile): Use add_basic_prefix_cmd.
12238 * sparc64-tdep.c (info_adi_command): Remove.
12239 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12240 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12241 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12242 add_show_prefix_cmd.
12243 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12244 (_initialize_serial): Use add_basic_prefix_cmd,
12245 add_show_prefix_cmd.
12246 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12247 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12248 add_show_prefix_cmd.
12249 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12250 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12251 add_show_prefix_cmd.
12252 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12253 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12254 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12255 add_show_prefix_cmd.
12256 * remote.c (remote_command, set_remote_cmd): Remove.
12257 (_initialize_remote): Use add_basic_prefix_cmd.
12258 * record-full.c (set_record_full_command)
12259 (show_record_full_command): Remove.
12260 (_initialize_record_full): Use add_basic_prefix_cmd,
12261 add_show_prefix_cmd.
12262 * record-btrace.c (cmd_set_record_btrace)
12263 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12264 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12265 (cmd_show_record_btrace_pt): Remove.
12266 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12267 add_show_prefix_cmd.
12268 * ravenscar-thread.c (set_ravenscar_command)
12269 (show_ravenscar_command): Remove.
12270 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12271 add_show_prefix_cmd.
12272 * mips-tdep.c (show_mips_command, set_mips_command)
12273 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12274 add_show_prefix_cmd.
12275 * maint.c (maintenance_command, maintenance_info_command)
12276 (maintenance_check_command, maintenance_print_command)
12277 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12278 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12279 add_show_prefix_cmd.
12280 (show_per_command_cmd): Remove.
12281 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12283 (maintenance_show_test_settings_cmd): Remove.
12284 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12285 add_show_prefix_cmd.
12286 * maint-test-options.c (maintenance_test_options_command):
12288 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12289 * macrocmd.c (macro_command): Remove
12290 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12291 * language.c (set_check, show_check): Remove.
12292 (_initialize_language): Use add_basic_prefix_cmd,
12293 add_show_prefix_cmd.
12294 * infcmd.c (unset_command): Remove.
12295 (_initialize_infcmd): Use add_basic_prefix_cmd.
12296 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12297 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12298 add_show_prefix_cmd.
12299 * go32-nat.c (go32_info_dos_command): Remove.
12300 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12301 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12302 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12303 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12304 (_initialize_frame): Use add_basic_prefix_cmd,
12305 add_show_prefix_cmd.
12306 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12307 (_initialize_dcache): Use add_basic_prefix_cmd,
12308 add_show_prefix_cmd.
12309 * cp-support.c (maint_cplus_command): Remove.
12310 (_initialize_cp_support): Use add_basic_prefix_cmd.
12311 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12312 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12313 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12314 add_basic_prefix_cmd, add_show_prefix_cmd.
12315 * breakpoint.c (save_command): Remove.
12316 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12317 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12318 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12319 add_show_prefix_cmd.
12320 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12321 (set_ada_command, show_ada_command): Remove.
12322 (_initialize_ada_language): Use add_basic_prefix_cmd,
12323 add_show_prefix_cmd.
12324 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12326 2020-04-16 Kamil Rytarowski <n54@gmx.com>
12328 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12329 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12331 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12333 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12336 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12338 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12339 import table is not at beginning of .idata section.
12341 2020-04-16 Pedro Alves <palves@redhat.com>
12343 * inferior.c (delete_inferior): Use delete operator directly
12344 instead of delete_program_space.
12345 * progspace.c (add_program_space): New, factored out from
12346 program_space::program_space.
12347 (remove_program_space): New, factored out from
12348 delete_program_space.
12349 (program_space::program_space): Remove intro comment. Rewrite.
12350 (program_space::~program_space): Remove intro comment. Call
12351 remove_program_space.
12352 (delete_program_space): Delete.
12353 * progspace.h (program_space::program_space): Make explicit. Move
12354 intro comment here, adjusted.
12355 (program_space::~program_space): Move intro comment here,
12357 (delete_program_space): Remove.
12359 2020-04-16 Tom Tromey <tromey@adacore.com>
12361 * windows-nat.c (windows_nat::handle_access_violation): New
12363 * nat/windows-nat.h (handle_access_violation): Declare.
12364 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12365 windows-nat.c. Call handle_access_violation.
12367 2020-04-16 Tom de Vries <tdevries@suse.de>
12370 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12371 CUs without psymtab.
12373 2020-04-16 Kevin Buettner <kevinb@redhat.com>
12375 * python/python.c (do_start_initialization): Don't call
12376 PyEval_InitThreads for Python 3.9 and beyond.
12378 2020-04-15 Kamil Rytarowski <n54@gmx.com>
12380 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12382 (obsd_nat_target::wait): Likewise.
12384 2020-04-15 Tom Tromey <tromey@adacore.com>
12386 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12387 (DEBUG_EXCEPT): Use debug_printf.
12389 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12391 * completer.c (class completion_tracker::completion_hash_entry)
12392 <hash_name>: New member function.
12393 (completion_tracker::discard_completions): New callback to hash a
12394 completion_hash_entry, pass this to htab_create_alloc.
12396 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12398 * windows-nat.c (windows_make_so): Warn rather than stopping with
12399 an error if realpath() fails.
12401 2020-04-14 Kamil Rytarowski <n54@gmx.com>
12403 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12404 (nbsd_nat_target::info_proc): Add do_status.
12406 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12407 Tom de Vries <tdevries@suse.de>
12410 * psympriv.h (struct partial_symtab::read_symtab)
12411 (struct partial_symtab::expand_psymtab)
12412 (struct partial_symtab::read_dependencies): Update comments.
12413 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12414 read_symtab for includer.
12415 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12416 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12417 (struct dwarf2_include_psymtab::m_readin): Remove.
12418 (struct dwarf2_include_psymtab::includer): New member function.
12419 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12421 2020-04-14 Tom de Vries <tdevries@suse.de>
12424 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12425 with NULL symbol_matcher and lookup_name.
12426 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12428 * dwarf2/read.c (dw2_expand_symtabs_matching)
12429 (dw2_debug_names_expand_symtabs_matching): Same.
12430 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12431 Make lookup_name a pointer. Update comment.
12432 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12433 lookup_name being a pointer.
12434 * symfile.c (expand_symtabs_matching): Same.
12435 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12436 * linespec.c (iterate_over_all_matching_symtabs): Same.
12438 2020-04-13 Tom Tromey <tom@tromey.com>
12440 * run-on-main-thread.c: Update include.
12441 * unittests/main-thread-selftests.c: Update include.
12442 * tui/tui-win.c: Update include.
12443 * tui/tui-io.c: Update include.
12444 * tui/tui-interp.c: Update include.
12445 * tui/tui-hooks.c: Update include.
12446 * top.h: Update include.
12447 * top.c: Update include.
12448 * ser-base.c: Update include.
12449 * remote.c: Update include.
12450 * remote-notif.c: Update include.
12451 * remote-fileio.c: Update include.
12452 * record-full.c: Update include.
12453 * record-btrace.c: Update include.
12454 * python/python.c: Update include.
12455 * posix-hdep.c: Update include.
12456 * mingw-hdep.c: Update include.
12457 * mi/mi-main.c: Update include.
12458 * mi/mi-interp.c: Update include.
12459 * main.c: Update include.
12460 * linux-nat.c: Update include.
12461 * interps.c: Update include.
12462 * infrun.c: Update include.
12463 * inf-loop.c: Update include.
12464 * event-top.c: Update include.
12465 * event-loop.c: Move to ../gdbsupport/.
12466 * event-loop.h: Move to ../gdbsupport/.
12467 * async-event.h: Update include.
12468 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12470 2020-04-13 Tom Tromey <tom@tromey.com>
12472 * tui/tui-win.c: Include async-event.h.
12473 * remote.c: Include async-event.h.
12474 * remote-notif.c: Include async-event.h.
12475 * record-full.c: Include async-event.h.
12476 * record-btrace.c: Include async-event.h.
12477 * infrun.c: Include async-event.h.
12478 * event-top.c: Include async-event.h.
12479 * event-loop.h: Move some declarations to async-event.h.
12480 * event-loop.c: Don't include ser-event.h or top.h. Move some
12481 code to async-event.c.
12482 * async-event.h: New file.
12483 * async-event.c: New file.
12484 * Makefile.in (COMMON_SFILES): Add async-event.c.
12485 (HFILES_NO_SRCDIR): Add async-event.h.
12487 2020-04-13 Tom Tromey <tom@tromey.com>
12489 * utils.c (flush_streams): New function.
12490 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12492 2020-04-13 Tom Tromey <tom@tromey.com>
12494 * event-loop.c (handle_file_event): Use warning, not
12497 2020-04-13 Tom Tromey <tom@tromey.com>
12499 * event-loop.c: Include <chrono>.
12501 2020-04-13 Tom Tromey <tom@tromey.com>
12503 * gdb_select.h: Move to ../gdbsupport/.
12504 * event-loop.c: Update include path.
12505 * top.c: Update include path.
12506 * ser-base.c: Update include path.
12507 * ui-file.c: Update include path.
12508 * ser-tcp.c: Update include path.
12509 * guile/scm-ports.c: Update include path.
12510 * posix-hdep.c: Update include path.
12511 * ser-unix.c: Update include path.
12512 * gdb_usleep.c: Update include path.
12513 * mingw-hdep.c: Update include path.
12514 * inflow.c: Update include path.
12515 * infrun.c: Update include path.
12516 * event-top.c: Update include path.
12518 2020-04-13 Tom Tromey <tom@tromey.com>
12520 * configure: Rebuild.
12521 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12523 2020-04-13 Tom Tromey <tom@tromey.com>
12525 * event-loop.h (start_event_loop): Don't declare.
12526 * event-loop.c (start_event_loop): Move...
12527 * main.c (start_event_loop): ...here. Now static.
12529 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12531 * MAINTAINERS: Update my email address.
12533 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12535 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12538 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12540 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12541 (nbsd_nat_target::info_proc): Add do_cmdline.
12543 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12545 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12546 (nbsd_nat_target::info_proc): Add do_cwd.
12548 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12550 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12552 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12554 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12555 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12556 (nbsd_nat_target::info_proc): New functions.
12557 * nbsd-nat.c (kinfo_get_vmmap): New function.
12558 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12559 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12560 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12561 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12563 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12564 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12565 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12566 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12567 (KINFO_VME_FLAG_GROWS_DOWN): New.
12569 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12571 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12574 2020-04-10 Tom Tromey <tromey@adacore.com>
12576 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12578 2020-04-10 Tom Tromey <tromey@adacore.com>
12580 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12581 separate debug files.
12583 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12585 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12587 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12589 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12590 Check for STATUS_WX86_BREAKPOINT.
12591 (windows_nat_target::wait): Same.
12593 2020-04-10 Tom de Vries <tdevries@suse.de>
12596 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12598 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12600 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12601 (Write After Approval): Remove Tom de Vries.
12603 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12606 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12608 * buildsym.c (record_line): Fix undefined behavior and preserve
12611 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12613 * auxv.h (svr4_auxv_parse): New.
12614 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12615 and generic_auxv_parse.
12616 (svr4_auxv_parse): Add.
12617 * obsd-tdep.c: Include "auxv.h".
12618 (obsd_auxv_parse): Remove.
12619 (obsd_init_abi): Remove comment.
12620 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12621 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12622 * nbsd-tdep.c: Include "auxv.h".
12623 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12625 2020-04-08 Tom Tromey <tromey@adacore.com>
12627 * nat/windows-nat.h (last_wait_event): Don't declare.
12628 (wait_for_debug_event): Update comment.
12629 * nat/windows-nat.c (last_wait_event): Now static.
12631 2020-04-08 Tom Tromey <tromey@adacore.com>
12633 * windows-nat.c (wait_for_debug_event): Move to
12635 * nat/windows-nat.h (wait_for_debug_event): Declare.
12636 * nat/windows-nat.c (wait_for_debug_event): Move from
12637 windows-nat.c. No longer static.
12639 2020-04-08 Tom Tromey <tromey@adacore.com>
12641 * windows-nat.c (get_windows_debug_event): Use
12642 fetch_pending_stop.
12643 * nat/windows-nat.h (fetch_pending_stop): Declare.
12644 * nat/windows-nat.c (fetch_pending_stop): New function.
12646 2020-04-08 Tom Tromey <tromey@adacore.com>
12648 * windows-nat.c (windows_continue): Use matching_pending_stop and
12649 continue_last_debug_event.
12650 * nat/windows-nat.h (matching_pending_stop)
12651 (continue_last_debug_event): Declare.
12652 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12653 (matching_pending_stop, continue_last_debug_event): New
12656 2020-04-08 Tom Tromey <tromey@adacore.com>
12658 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12659 (handle_exception_result): Move to nat/windows-nat.h.
12660 (DEBUG_EXCEPTION_SIMPLE): Remove.
12661 (windows_nat::handle_ms_vc_exception): New function.
12662 (handle_exception): Move to nat/windows-nat.c.
12663 (get_windows_debug_event): Update.
12664 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12666 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12667 (handle_exception_result): Move from windows-nat.c.
12668 (handle_exception): Declare.
12669 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12670 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12673 2020-04-08 Tom Tromey <tromey@adacore.com>
12675 * windows-nat.c (exception_count, event_count): Remove.
12676 (handle_exception, get_windows_debug_event)
12677 (do_initial_windows_stuff): Update.
12679 2020-04-08 Tom Tromey <tromey@adacore.com>
12681 * windows-nat.c (windows_nat::handle_load_dll)
12682 (windows_nat::handle_unload_dll): Rename. No longer static.
12683 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12686 2020-04-08 Tom Tromey <tromey@adacore.com>
12688 * complaints.h (stop_whining): Declare at top-level.
12689 (complaint): Don't declare stop_whining.
12691 2020-04-08 Tom Tromey <tromey@adacore.com>
12693 * windows-nat.c (windows_nat::handle_output_debug_string):
12694 Rename. No longer static.
12695 * nat/windows-nat.h (handle_output_debug_string): Declare.
12697 2020-04-08 Tom Tromey <tromey@adacore.com>
12699 * windows-nat.c (current_process_handle, current_process_id)
12700 (main_thread_id, last_sig, current_event, last_wait_event)
12701 (current_windows_thread, desired_stop_thread_id, pending_stops)
12702 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12703 (display_selectors, fake_create_process)
12704 (get_windows_debug_event): Update.
12705 * nat/windows-nat.h (current_process_handle, current_process_id)
12706 (main_thread_id, last_sig, current_event, last_wait_event)
12707 (current_windows_thread, desired_stop_thread_id, pending_stops)
12708 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12709 * nat/windows-nat.c (current_process_handle, current_process_id)
12710 (main_thread_id, last_sig, current_event, last_wait_event)
12711 (current_windows_thread, desired_stop_thread_id, pending_stops)
12712 (siginfo_er): New globals. Move from windows-nat.c.
12714 2020-04-08 Tom Tromey <tromey@adacore.com>
12716 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12717 (handle_load_dll): Update.
12718 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12720 2020-04-08 Tom Tromey <tromey@adacore.com>
12722 * windows-nat.c (enum thread_disposition_type): Move to
12724 (windows_nat::thread_rec): Rename from thread_rec. No longer
12726 (windows_add_thread, windows_nat_target::fetch_registers)
12727 (windows_nat_target::store_registers, handle_exception)
12728 (windows_nat_target::resume, get_windows_debug_event)
12729 (windows_nat_target::get_tib_address)
12730 (windows_nat_target::thread_name)
12731 (windows_nat_target::thread_alive): Update.
12732 * nat/windows-nat.h (enum thread_disposition_type): Move from
12734 (thread_rec): Declare.
12736 2020-04-08 Tom Tromey <tromey@adacore.com>
12738 * windows-nat.c: Add "using namespace".
12739 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12740 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12742 2020-04-08 Tom Tromey <tromey@adacore.com>
12744 * nat/windows-nat.h (struct windows_thread_info): Declare
12746 * nat/windows-nat.c (~windows_thread_info): New.
12748 2020-04-08 Tom Tromey <tromey@adacore.com>
12751 * windows-nat.c (current_event): Update comment.
12752 (last_wait_event, desired_stop_thread_id): New globals.
12753 (struct pending_stop): New.
12754 (pending_stops): New global.
12755 (windows_nat_target) <stopped_by_sw_breakpoint>
12756 <supports_stopped_by_sw_breakpoint>: New methods.
12757 (windows_fetch_one_register): Add assertions. Adjust PC.
12758 (windows_continue): Handle pending stops. Suspend other threads
12759 when stepping. Use last_wait_event
12760 (wait_for_debug_event): New function.
12761 (get_windows_debug_event): Use wait_for_debug_event. Handle
12762 pending stops. Queue spurious stops.
12763 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12764 (windows_nat_target::kill): Use wait_for_debug_event.
12765 * nat/windows-nat.h (struct windows_thread_info)
12766 <stopped_at_software_breakpoint>: New field.
12767 * nat/windows-nat.c (windows_thread_info::resume): Clear
12768 stopped_at_software_breakpoint.
12770 2020-04-08 Tom Tromey <tromey@adacore.com>
12772 * windows-nat.c (enum thread_disposition_type): New.
12773 (thread_rec): Replace "get_context" parameter with "disposition";
12775 (windows_add_thread, windows_nat_target::fetch_registers)
12776 (windows_nat_target::store_registers, handle_exception)
12777 (windows_nat_target::resume, get_windows_debug_event)
12778 (windows_nat_target::get_tib_address)
12779 (windows_nat_target::thread_name)
12780 (windows_nat_target::thread_alive): Update.
12782 2020-04-08 Tom Tromey <tromey@adacore.com>
12784 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12785 (windows_continue): Use windows_continue::resume.
12786 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12787 resume>: Declare new methods.
12788 * nat/windows-nat.c: New file.
12789 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12791 2020-04-08 Tom Tromey <tromey@adacore.com>
12793 * windows-nat.c (windows_add_thread, windows_delete_thread)
12794 (windows_nat_target::fetch_registers)
12795 (windows_nat_target::store_registers, fake_create_process)
12796 (windows_nat_target::resume, windows_nat_target::resume)
12797 (get_windows_debug_event, windows_nat_target::wait)
12798 (windows_nat_target::pid_to_str)
12799 (windows_nat_target::get_tib_address)
12800 (windows_nat_target::get_ada_task_ptid)
12801 (windows_nat_target::thread_name)
12802 (windows_nat_target::thread_alive): Use lwp, not tid.
12804 2020-04-08 Tom Tromey <tromey@adacore.com>
12806 * windows-nat.c (handle_exception)
12807 (windows_nat_target::thread_name): Update.
12808 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12809 <name>: Now unique_xmalloc_ptr.
12811 2020-04-08 Tom Tromey <tromey@adacore.com>
12813 * windows-nat.c (thread_rec)
12814 (windows_nat_target::fetch_registers): Update.
12815 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12817 <debug_registers_changed, reload_context>: Now bool.
12819 2020-04-08 Tom Tromey <tromey@adacore.com>
12821 * windows-nat.c (windows_add_thread): Use new.
12822 (windows_init_thread_list, windows_delete_thread): Use delete.
12823 (get_windows_debug_event): Update.
12824 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12825 destructor, and initializers.
12827 2020-04-08 Tom Tromey <tromey@adacore.com>
12829 * windows-nat.c (struct windows_thread_info): Remove.
12830 * nat/windows-nat.h: New file.
12832 2020-04-08 Tom Tromey <tromey@adacore.com>
12834 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12835 (thread_rec, windows_add_thread, windows_delete_thread)
12836 (windows_continue): Update.
12838 2020-04-08 Tom Tromey <tromey@adacore.com>
12840 * windows-nat.c (struct windows_thread_info): Remove typedef.
12841 (thread_head): Remove.
12842 (thread_list): New global.
12843 (thread_rec, windows_add_thread, windows_init_thread_list)
12844 (windows_delete_thread, windows_continue): Update.
12846 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12848 * windows-tdep.h (windows_init_abi): Add comment.
12849 (cygwin_init_abi): New declaration.
12850 * windows-tdep.c: Split signal enumeration in two, one for
12851 Windows and one for Cygwin.
12852 (windows_gdb_signal_to_target): Only deal with signal of the
12854 (cygwin_gdb_signal_to_target): New function.
12855 (windows_init_abi): Rename to windows_init_abi_common, don't set
12856 gdb_signal_to_target gdbarch method. Add new new function with
12858 (cygwin_init_abi): New function.
12859 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12860 comment. Don't call windows_init_abi.
12861 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12862 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12863 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12864 i386_windows_init_abi_common, don't call windows_init_abi. Add
12865 a new function of this name.
12866 (i386_cygwin_init_abi): New function.
12867 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12870 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12872 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12874 (dwarf2_read_gdb_index): Update.
12876 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12878 * nbsd-tdep.c: Include "objfiles.h".
12879 (nbsd_skip_solib_resolver): New.
12880 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12882 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12884 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12885 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12886 with DW_LLE_base_addressx are being emitted in DWARFv5.
12887 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12888 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12891 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12893 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12894 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12895 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12896 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12897 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12898 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12899 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12902 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12904 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12905 (read_loclist_index): New function definition.
12906 (lookup_loclist_base): New function definition.
12907 (read_loclist_header): New function definition.
12908 (dwarf2_cu): Add loclist_base and loclist_header field.
12909 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12910 (read_full_die_1): Read the value of DW_AT_loclists_base.
12911 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12912 (read_attribute_value): Handle DW_FORM_loclistx.
12913 (skip_one_die): Handle DW_FORM_loclistx.
12914 (loclist_header): New structure declaration.
12915 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12917 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12919 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12920 constructor. Remove `addr` parameter from other constructor and
12921 add `per_cu` parameter.
12922 * dwarf2/read.c (create_partial_symtab): Update.
12924 2020-04-07 Tom de Vries <tdevries@suse.de>
12927 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12928 (partial_die_info::fixup): Inherit has_const_value.
12930 2020-04-07 Tom de Vries <tdevries@suse.de>
12932 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12933 symbols without address.
12935 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12937 * nbsd-nat.h (struct thread_info): Add forward declaration.
12938 (nbsd_nat_target::thread_alive): Add.
12939 (nbsd_nat_target::thread_name): Likewise.
12940 (nbsd_nat_target::update_thread_list): Likewise.
12941 (update_thread_list::post_attach): Likewise.
12942 (post_attach::pid_to_str): Likewise.
12943 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12944 (nbsd_thread_lister): Add.
12945 (nbsd_nat_target::thread_alive): Likewise.
12946 (nbsd_nat_target::thread_name): Likewise.
12947 (nbsd_add_threads): Likewise.
12948 (update_thread_list::post_attach): Likewise.
12949 (nbsd_nat_target::update_thread_list): Likewise.
12950 (post_attach::pid_to_str): Likewise.
12952 2020-04-06 Tom Tromey <tromey@adacore.com>
12954 * ada-valprint.c (print_variant_part): Extract the variant field.
12955 (print_field_values): Use the field as the outer value when
12958 2020-04-06 Tom Tromey <tromey@adacore.com>
12960 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12961 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12962 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12963 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12964 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12966 2020-04-06 Tom Tromey <tromey@adacore.com>
12968 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12971 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12973 * nbsd-tdep.c: Include "gdbarch.h".
12974 Define enum with NetBSD signal numbers.
12975 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12976 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12977 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12978 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12979 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12980 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12981 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12982 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12983 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12984 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12985 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12986 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12988 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12991 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12993 2020-04-03 Tom Tromey <tromey@adacore.com>
12995 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12996 Read constant block.
12998 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
13000 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
13001 (gdb_bfd_get_full_section_contents): New declaration.
13002 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
13003 * windows-tdep.c (is_linked_with_cygwin_dll): Use
13004 gdb_bfd_get_full_section_contents.
13006 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
13008 * exec.c (build_section_table): Replace internal_error with
13010 (section_table_xfer_memory_partial): Likewise.
13011 * mdebugread.c (parse_partial_symbols): Likewise.
13012 * psymtab.c (lookup_partial_symbol): Likewise.
13013 * utils.c (wrap_here): Likewise.
13015 2020-04-02 Tom Tromey <tromey@adacore.com>
13017 * f-lang.c (build_fortran_types): Use arch_type to initialize
13018 builtin_complex_s32 in the TYPE_CODE_ERROR case.
13020 2020-04-02 Tom Tromey <tromey@adacore.com>
13022 * dwarf2/read.c (partial_die_info::read): Do not create a vector
13025 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
13026 Bernd Edlinger <bernd.edlinger@hotmail.de>
13027 Tom Tromey <tromey@adacore.com>
13029 * buildsym.c (buildsym_compunit::record_line): Remove
13030 deduplication code.
13032 2020-04-02 Tom de Vries <tdevries@suse.de>
13035 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
13037 2020-04-02 Tom de Vries <tdevries@suse.de>
13039 * dwarf2/read.c (dwarf2_gdb_index_functions,
13040 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
13042 * psymtab.c (psym_lookup_global_symbol_language): New function.
13043 (psym_functions): Init psym_lookup_global_symbol_language with
13044 psym_lookup_global_symbol_language.
13045 * symfile-debug.c (debug_sym_quick_functions): Init
13046 lookup_global_symbol_language with NULL.
13047 * symfile.c (set_initial_language): Remove fixme comment.
13048 * symfile.h (struct quick_symbol_functions): Add
13049 lookup_global_symbol_language.
13050 * symtab.c (find_quick_global_symbol_language): New function.
13051 (find_main_name): Use find_quick_global_symbol_language.
13053 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
13055 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
13057 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13059 * buildsym.c (record_line): Fix undefined behavior and preserve
13062 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13064 * buildsym.c (record_line): Fix the resizing condition.
13066 2020-04-01 Tom Tromey <tom@tromey.com>
13068 * value.h (value_literal_complex): Add comment.
13069 * valops.c (value_literal_complex): Refer to value.h.
13071 2020-04-01 Tom Tromey <tom@tromey.com>
13073 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
13074 (scalar_type): New rule, from typebase.
13075 (typebase): Use scalar_type. Recognize complex types.
13076 (field_name): Handle FLOAT_KEYWORD.
13077 (ident_tokens): Add _Complex and __complex__.
13079 2020-04-01 Tom Tromey <tom@tromey.com>
13082 * valarith.c (promotion_type, complex_binop): New functions.
13083 (scalar_binop): Handle complex numbers. Use promotion_type.
13084 (value_pos, value_neg, value_complement): Handle complex numbers.
13086 2020-04-01 Tom Tromey <tom@tromey.com>
13088 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
13089 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
13090 (parse_number): Handle complex numbers.
13092 2020-04-01 Tom Tromey <tom@tromey.com>
13094 * c-valprint.c (c_decorations): Change complex suffix to "i".
13096 2020-04-01 Tom Tromey <tom@tromey.com>
13098 * valprint.c (generic_value_print_complex): Use accessors.
13099 * value.h (value_real_part, value_imaginary_part): Declare.
13100 * valops.c (value_real_part, value_imaginary_part): New
13102 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
13104 2020-04-01 Tom Tromey <tom@tromey.com>
13106 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
13107 (read_range_type): Update.
13108 * mdebugread.c (basic_type): Update.
13109 * go-lang.c (build_go_types): Use init_complex_type.
13110 * gdbtypes.h (struct main_type) <complex_type>: New member.
13111 (init_complex_type): Update.
13112 (arch_complex_type): Don't declare.
13113 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
13114 Make name if none given. Use alloc_type_copy. Look for cached
13116 (arch_complex_type): Remove.
13117 (gdbtypes_post_init): Use init_complex_type.
13118 * f-lang.c (build_fortran_types): Use init_complex_type.
13119 * dwarf2/read.c (read_base_type): Update.
13120 * d-lang.c (build_d_types): Use init_complex_type.
13121 * ctfread.c (read_base_type): Update.
13123 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13125 * infrun.c (stop_all_threads): Update assertion, plus when
13126 stopping threads, take into account that we might be trying
13127 to stop an all-stop target.
13128 (stop_waiting): Call 'stop_all_threads' if there exists a
13131 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13133 * target.h (exists_non_stop_target): New function declaration.
13134 * target.c (exists_non_stop_target): New function.
13136 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
13139 * eval.c (is_integral_or_integral_reference): New function.
13140 (evaluate_subexp_standard): Allow integer references in
13141 pointer arithmetic.
13143 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13145 * remote.c (remote_target::remote_parse_stop_reply): Remove the
13146 check for no ptid in the stop reply when the target is non-stop.
13148 2020-04-01 Tom Tromey <tromey@adacore.com>
13150 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
13151 "name" parameter to rvalue reference. Initialize m_name_holder.
13152 <lookup_name_info>: New overloads.
13153 <name>: Return gdb::string_view.
13154 <c_str>: New method.
13155 <make_ignore_params>: Update.
13156 <search_name_hash>: Update.
13157 <language_lookup_name>: Return const char *.
13158 <m_name>: Change type.
13159 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
13160 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
13161 (lookup_name_info::match_any): Update.
13162 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
13164 * minsyms.c (linkage_name_str): Update.
13165 * language.c (default_symbol_name_matcher): Update.
13166 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
13168 * ada-lang.c (ada_fold_name): Change parameter to string_view.
13169 (ada_lookup_name_info::ada_lookup_name_info): Update.
13170 (literal_symbol_name_matcher): Update.
13172 2020-04-01 Tom Tromey <tromey@adacore.com>
13174 * psymtab.c (psymtab_search_name): Remove function.
13175 (psym_lookup_symbol): Create search name and lookup name here.
13176 (lookup_partial_symbol): Remove "name" parameter; add
13178 (psym_expand_symtabs_for_function): Update.
13180 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
13183 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
13185 2020-03-31 Tom Tromey <tromey@adacore.com>
13187 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
13190 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
13192 * features/riscv/32bit-csr.xml: Regenerated.
13193 * features/riscv/64bit-csr.xml: Regenerated.
13195 2020-03-30 Tom Tromey <tromey@adacore.com>
13197 * ada-valprint.c (print_variant_part): Update.
13198 * ada-lang.h (ada_which_variant_applies): Update.
13199 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
13200 outer_valaddr parameters; replace with "outer" value parameter.
13201 (to_fixed_variant_branch_type): Update.
13203 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13205 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
13206 <list>. Remove inclusion of observable.h.
13207 (PPC_DEBUG_CURRENT_VERSION): Move up define.
13208 (struct arch_lwp_info): New struct.
13209 (class ppc_linux_dreg_interface): New class.
13210 (struct ppc_linux_process_info): New struct.
13211 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
13212 <low_new_clone, low_forget_process, low_prepare_to_resume>
13213 <copy_thread_dreg_state, mark_thread_stale>
13214 <mark_debug_registers_changed, register_hw_breakpoint>
13215 <clear_hw_breakpoint, register_wp, clear_wp>
13216 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
13217 <num_memory_accesses, get_trigger_type>
13218 <create_watchpoint_request, hwdebug_point_cmp>
13219 <init_arch_lwp_info, get_arch_lwp_info>
13220 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13222 <struct ptid_hash>: New inner struct.
13223 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13225 (saved_dabr_value, hwdebug_info, max_slots_number)
13226 (struct hw_break_tuple, struct thread_points, ppc_threads)
13227 (have_ptrace_hwdebug_interface)
13228 (hwdebug_find_thread_points_by_tid)
13229 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13230 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13231 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13232 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13233 use m_dreg_interface.
13234 (hwdebug_point_cmp): Change to...
13235 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13236 reference arguments instead of pointers.
13237 (ppc_linux_nat_target::ranged_break_num_registers): Use
13239 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13240 m_dreg_interface. Call register_hw_breakpoint.
13241 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13242 m_dreg_interface. Call clear_hw_breakpoint.
13243 (get_trigger_type): Change to...
13244 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13246 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13247 use m_dreg_interface. Call register_hw_breakpoint.
13248 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13249 use m_dreg_interface. Call clear_hw_breakpoint.
13250 (can_use_watchpoint_cond_accel): Change to...
13251 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13252 method. Update comment, use m_dreg_interface and
13254 (calculate_dvc): Change to...
13255 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13257 (num_memory_accesses): Change to...
13258 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13259 (check_condition): Change to...
13260 (ppc_linux_nat_target::check_condition): ...this method.
13261 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13262 comment, use m_dreg_interface.
13263 (create_watchpoint_request): Change to...
13264 (ppc_linux_nat_target::create_watchpoint_request): ...this
13265 method. Use m_dreg_interface.
13266 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13267 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13268 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13269 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13270 (ppc_linux_nat_target::low_forget_process)
13271 (ppc_linux_nat_target::low_new_fork)
13272 (ppc_linux_nat_target::low_new_clone)
13273 (ppc_linux_nat_target::low_delete_thread)
13274 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13275 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13276 only call mark_thread_stale.
13277 (ppc_linux_thread_exit): Remove.
13278 (ppc_linux_nat_target::stopped_data_address): Change to...
13279 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13280 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13281 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13282 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13283 comment. Call low_stopped_data_address.
13284 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13286 (ppc_linux_nat_target::masked_watch_num_registers): Use
13288 (ppc_linux_nat_target::copy_thread_dreg_state)
13289 (ppc_linux_nat_target::mark_thread_stale)
13290 (ppc_linux_nat_target::mark_debug_registers_changed)
13291 (ppc_linux_nat_target::register_hw_breakpoint)
13292 (ppc_linux_nat_target::clear_hw_breakpoint)
13293 (ppc_linux_nat_target::register_wp)
13294 (ppc_linux_nat_target::clear_wp)
13295 (ppc_linux_nat_target::init_arch_lwp_info)
13296 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13297 (_initialize_ppc_linux_nat): Remove observer callback.
13299 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13301 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13302 (ppc_linux_nat_target::auxv_parse)
13303 (ppc_linux_nat_target::read_description)
13304 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13307 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13309 * linux-nat.h (low_new_clone): New method.
13310 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13312 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13314 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13315 (dbx_expand_psymtab): ... this.
13316 (start_psymtab): Update.
13317 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13318 (mdebug_expand_psymtab): ... this.
13319 (parse_partial_symbols): Update.
13320 (new_psymtab): Update.
13321 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13322 (xcoff_expand_psymtab): ... this.
13323 (xcoff_start_psymtab): Update.
13325 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13327 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13328 <expand_dependencies>: ... this.
13329 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13330 (partial_symtab::expand_dependencies): ... this.
13331 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13333 (dwarf2_psymtab::expand_psymtab): Update.
13334 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13335 * mdebugread.c (psymtab_to_symtab_1): Update.
13336 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13338 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13340 * psympriv.h (discard_psymtab): Remove.
13341 * dbxread.c (dbx_end_psymtab): Update.
13342 * xcoffread.c (xcoff_end_psymtab): Update.
13344 2020-03-28 Tom Tromey <tom@tromey.com>
13346 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13349 2020-03-28 Tom Tromey <tom@tromey.com>
13351 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13353 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
13355 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13357 2020-03-26 John Baldwin <jhb@FreeBSD.org>
13359 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13361 2020-03-26 Tom Tromey <tom@tromey.com>
13363 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13364 (mark_common_block_symbol_computed, read_tag_string_type)
13365 (attr_to_dynamic_prop, read_subrange_type): Update.
13366 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13367 to be methods on struct attribute.
13368 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13369 (read_call_site_scope, partial_die_info::read)
13370 (partial_die_info::read, lookup_die_type, follow_die_ref):
13372 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13373 from dwarf2_get_ref_die_offset.
13374 (attribute::constant_value): New method, from
13375 dwarf2_get_attr_constant_value.
13376 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13378 <constant_value>: New method.
13380 2020-03-26 Tom Tromey <tom@tromey.com>
13382 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13383 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13384 (dwarf_type_encoding_name): Move to stringify.c.
13385 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13386 * dwarf2/stringify.c: New file.
13387 * dwarf2/stringify.h: New file.
13389 2020-03-26 Tom Tromey <tom@tromey.com>
13391 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13394 2020-03-26 Tom Tromey <tom@tromey.com>
13396 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13398 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13399 (lookup_ranges_base): Likewise.
13400 (read_cutu_die_from_dwo, read_full_die_1): Update.
13402 2020-03-26 Tom Tromey <tom@tromey.com>
13404 * dwarf2/read.c (read_import_statement, read_file_scope)
13405 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13406 (read_lexical_block_scope, read_call_site_scope)
13407 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13408 (handle_struct_member_die, process_structure_scope)
13409 (update_enumeration_type_from_children)
13410 (process_enumeration_scope, read_array_type, read_common_block)
13411 (read_namespace, read_module, read_subroutine_type): Update.
13412 (sibling_die): Remove.
13414 2020-03-26 Tom Tromey <tom@tromey.com>
13416 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13417 (build_type_psymtabs_reader, read_structure_type)
13418 (read_enumeration_type, read_full_die_1): Update.
13419 (dwarf2_attr_no_follow): Move to die.h.
13420 * dwarf2/die.h (struct die_info) <attr>: New method.
13422 2020-03-26 Tom Tromey <tom@tromey.com>
13424 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13425 <base_address>: Now an optional.
13426 (dwarf2_find_base_address, dwarf2_rnglists_process)
13427 (dwarf2_ranges_process, fill_in_loclist_baton)
13428 (dwarf2_symbol_mark_computed): Update.
13430 2020-03-26 Tom Tromey <tom@tromey.com>
13432 * dwarf2/read.c (struct die_info): Move to die.h.
13433 * dwarf2/die.h: New file.
13435 2020-03-26 Tom Tromey <tom@tromey.com>
13437 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13439 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13440 Move to line-header.c.
13441 (read_checked_initial_length_and_offset, read_formatted_entries):
13443 (dwarf_decode_line_header): Split into two.
13444 * dwarf2/line-header.c
13445 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13447 (read_checked_initial_length_and_offset, read_formatted_entries):
13449 (dwarf_decode_line_header): New function, split from read.c.
13451 2020-03-26 Tom Tromey <tom@tromey.com>
13453 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13455 * dwarf2/read.c (read_attribute_value): Update.
13456 (dwarf2_per_objfile::read_line_string): Rename from
13457 read_indirect_line_string.
13458 (read_formatted_entries): Update.
13460 2020-03-26 Tom Tromey <tom@tromey.com>
13462 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13465 2020-03-26 Tom Tromey <tom@tromey.com>
13467 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13469 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13470 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13473 2020-03-26 Tom Tromey <tom@tromey.com>
13475 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13476 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13477 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13478 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13480 2020-03-26 Tom Tromey <tom@tromey.com>
13482 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13483 file_names_size, file_full_name, file_file_name>: Use const.
13484 <file_name_at, file_names>: Add const overload.
13485 * dwarf2/line-header.c (line_header::file_file_name)
13486 (line_header::file_full_name): Update.
13488 2020-03-26 Tom Tromey <tom@tromey.com>
13490 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13491 (macro_start_file, consume_improper_spaces)
13492 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13493 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13494 (dwarf_decode_macros): Move to macro.c.
13495 * dwarf2/macro.c: New file.
13496 * dwarf2/macro.h: New file.
13497 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13499 2020-03-26 Tom Tromey <tom@tromey.com>
13501 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13503 * dwarf2/section.c: New method. From
13504 read_indirect_string_at_offset_from.
13505 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13506 (read_indirect_string_at_offset_from): Move to section.c.
13507 (read_indirect_string_at_offset): Rewrite.
13508 (read_indirect_line_string_at_offset): Remove.
13509 (read_indirect_string, read_indirect_line_string)
13510 (dwarf_decode_macro_bytes): Update.
13512 2020-03-26 Tom Tromey <tom@tromey.com>
13514 * dwarf2/section.h (struct dwarf2_section_info)
13515 <overload_complaint>: Declare.
13516 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13517 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13518 Rename from dwarf2_section_buffer_overflow_complaint.
13519 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13520 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13522 2020-03-26 Tom Tromey <tom@tromey.com>
13524 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13526 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13528 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13531 2020-03-26 Tom Tromey <tom@tromey.com>
13533 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13535 2020-03-26 Tom Tromey <tom@tromey.com>
13537 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13539 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13541 (dwarf_decode_macros): Update.
13543 2020-03-26 Tom Tromey <tom@tromey.com>
13545 * dwarf2/read.c (read_attribute_value): Update.
13546 (read_indirect_string_from_dwz): Move to dwz.c; change into
13548 (dwarf_decode_macro_bytes): Update.
13549 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13550 * dwarf2/dwz.c: New file.
13551 * Makefile.in (COMMON_SFILES): Add dwz.c.
13553 2020-03-26 Tom Tromey <tom@tromey.com>
13555 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13556 * dwarf2/read.c: Add include.
13557 * dwarf2/index-write.c: Add include.
13558 * dwarf2/index-cache.c: Add include.
13559 * dwarf2/dwz.h: New file.
13561 2020-03-25 Tom Tromey <tom@tromey.com>
13563 * compile/compile-object-load.c (get_out_value_type): Mention
13564 correct symbol name in error message.
13566 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13568 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13570 2020-03-25 Tom de Vries <tdevries@suse.de>
13572 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13573 * symmisc.c (dump_symtab_1): Print user and includes fields.
13574 (maintenance_info_symtabs): Same.
13576 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13579 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13580 (riscv_regcache_cooked_write): New function.
13581 (riscv_push_dummy_call): Use new function.
13582 (riscv_return_value): Likewise.
13584 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13586 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13587 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13588 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13589 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13590 * infrun.c (follow_fork): Likewise.
13591 (follow_fork_inferior): Likewise.
13592 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13593 * linux-nat.h (class linux_nat_target): Likewise.
13594 * remote.c (class remote_target) <follow_fork>: Likewise.
13595 (remote_target::follow_fork): Likewise.
13596 * target-delegates.c: Re-generate.
13597 * target.c (default_follow_fork): Likewise.
13598 (target_follow_fork): Likewise.
13599 * target.h (struct target_ops) <follow_fork>: Likewise.
13600 (target_follow_fork): Likewise.
13602 2020-03-24 Tom de Vries <tdevries@suse.de>
13604 * psymtab.c (maintenance_info_psymtabs): Print user field.
13606 2020-03-20 Tom Tromey <tromey@adacore.com>
13608 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13610 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13613 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13615 * ptrace.m4: Don't check for ptrace declaration.
13616 * config.in: Re-generate.
13617 * configure: Re-generate.
13618 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13621 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13623 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13625 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13626 * sparc-nat.c (gdb_ptrace): Likewise.
13627 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13629 2020-03-20 Tom Tromey <tromey@adacore.com>
13631 * c-exp.y (lex_one_token): Fix assert.
13633 2020-03-20 Tom Tromey <tromey@adacore.com>
13635 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13636 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13639 2020-03-20 Tom Tromey <tromey@adacore.com>
13641 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13643 2020-03-20 Tom Tromey <tromey@adacore.com>
13645 * ada-valprint.c (print_variant_part): Remove parameters; switch
13646 to value-based API.
13647 (print_field_values): Likewise.
13648 (ada_val_print_struct_union): Likewise.
13649 (ada_value_print_1): Update.
13651 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13653 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13654 nbsd_nat_target instead of inf_ptrace_target.
13655 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13658 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13660 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13661 it to the ptrace call.
13662 * (store_registers): Likewise.
13664 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13666 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13667 it to the ptrace call.
13668 * (store_registers): Likewise.
13670 2020-03-19 Luis Machado <luis.machado@linaro.org>
13672 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13673 valid, fetch vg value from ptrace.
13675 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13676 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13677 * inf-ptrace.c: Likewise.
13678 * (gdb_ptrace): Add.
13679 * (inf_ptrace_target::resume): Update.
13680 * (inf_ptrace_target::xfer_partial): Likewise.
13681 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13682 * (inf_ptrace_peek_poke): Update.
13684 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13686 * x86-bsd-nat.c (gdb_ptrace): New.
13687 * (x86bsd_dr_set): Add new argument `ptid'.
13688 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13689 x86bsd_dr_set_addr): Update.
13691 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13693 * remote.c (remote_target::process_stop_reply): Handle events for
13694 all threads differently.
13696 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13698 * completer.c (completion_tracker::remove_completion): Define new
13700 * completer.h (completion_tracker::remove_completion): Declare new
13702 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13703 when adding a C++ function symbol.
13705 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13707 * completer.c (completion_tracker::completion_hash_entry): Define
13709 (advance_to_filename_complete_word_point): Call
13710 recompute_lowest_common_denominator.
13711 (completion_tracker::completion_tracker): Call discard_completions
13712 to setup the hash table.
13713 (completion_tracker::discard_completions): Allow for being called
13714 from the constructor, pass new equal function, and element deleter
13715 when constructing the hash table. Initialise new class member
13717 (completion_tracker::maybe_add_completion): Remove use of
13718 m_entries_vec, and store more information into m_entries_hash.
13719 (completion_tracker::recompute_lcd_visitor): New function, most
13720 content taken from...
13721 (completion_tracker::recompute_lowest_common_denominator):
13722 ...here, this now just visits each item in the hash calling the
13724 (completion_tracker::build_completion_result): Remove use of
13725 m_entries_vec, call recompute_lowest_common_denominator.
13726 * completer.h (completion_tracker::have_completions): Remove use
13728 (completion_tracker::completion_hash_entry): Declare new class.
13729 (completion_tracker::recompute_lowest_common_denominator): Change
13730 function signature.
13731 (completion_tracker::recompute_lcd_visitor): Declare new function.
13732 (completion_tracker::m_entries_vec): Delete.
13733 (completion_tracker::m_entries_hash): Initialize to NULL.
13734 (completion_tracker::m_lowest_common_denominator_valid): New
13736 (completion_tracker::m_lowest_common_denominator_max_length): New
13739 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13741 * regformats/regdef.h: Put reg in gdb namespace.
13743 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13745 * i386-bsd-nat.c (gdb_ptrace): New.
13746 * (i386bsd_fetch_inferior_registers,
13747 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13748 * (i386bsd_fetch_inferior_registers,
13749 i386bsd_store_inferior_registers) Use gdb_ptrace.
13751 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13753 * amd64-bsd-nat.c (gdb_ptrace): New.
13754 * (amd64bsd_fetch_inferior_registers,
13755 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13756 * (amd64bsd_fetch_inferior_registers,
13757 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13759 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13761 * user-regs.c (user_reg::read): Rename to...
13762 (user_reg::xread): ...this.
13763 * (append_user_reg): Rename argument `read' to `xread'.
13764 * (user_reg_add_builtin): Likewise.
13765 * (user_reg_add): Likewise.
13766 * (value_of_user_reg): Likewise.
13768 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13770 * sparc-nat.c (gdb_ptrace): New.
13771 * sparc-nat.c (sparc_fetch_inferior_registers)
13772 (sparc_store_inferior_registers) Remove obsolete comment.
13773 * sparc-nat.c (sparc_fetch_inferior_registers)
13774 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13775 * sparc-nat.c (sparc_fetch_inferior_registers)
13776 (sparc_store_inferior_registers) Use gdb_ptrace.
13778 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13780 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13781 it to the ptrace call.
13782 * sh-nbsd-nat.c (store_registers): Likewise.
13784 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13786 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13787 nbsd_nat_target instead of inf_ptrace_target.
13788 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13791 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13793 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13795 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13797 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13799 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13801 2020-03-17 Tom de Vries <tdevries@suse.de>
13804 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13806 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13808 (process_imported_unit_die): Skip import of c++ CUs.
13810 2020-03-16 Tom Tromey <tom@tromey.com>
13812 * p-valprint.c (pascal_object_print_value): Initialize
13815 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13816 Shahab Vahedi <shahab@synopsys.com>
13818 * Makefile.in: Add arch/arc.o
13819 * configure.tgt: Likewise.
13820 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13821 (_initialize_arc_tdep): Don't initialize old target descriptions.
13822 (arc_read_description): New function to cache target descriptions.
13823 * arc-tdep.h (arc_read_description): Add proto type.
13824 * arch/arc.c: New file.
13825 * arch/arc.h: Likewise.
13826 * features/Makefile: Replace old target descriptions with new.
13827 * features/arc-arcompact.c: Remove.
13828 * features/arc-arcompact.xml: Likewise.
13829 * features/arc-v2.c: Likewise
13830 * features/arc-v2.xml: Likewise
13831 * features/arc/aux-arcompact.xml: New file.
13832 * features/arc/aux-v2.xml: Likewise.
13833 * features/arc/core-arcompact.xml: Likewise.
13834 * features/arc/core-v2.xml: Likewise.
13835 * features/arc/aux-arcompact.c: Generate.
13836 * features/arc/aux-v2.c: Likewise.
13837 * features/arc/core-arcompact.c: Likewise.
13838 * features/arc/core-v2.c: Likewise.
13839 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13841 2020-03-16 Tom Tromey <tromey@adacore.com>
13844 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13845 putting value into bcache.
13847 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13850 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13852 (amd64_windows_init_abi_common): ... this. Don't set size of
13854 (amd64_windows_init_abi): New function.
13855 (amd64_cygwin_init_abi): New function.
13856 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13858 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13861 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13863 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13864 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13865 (pe_import_directory_entry): New struct type.
13866 (is_linked_with_cygwin_dll): New function.
13867 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13868 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13869 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13871 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13873 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13874 i386_cygwin_core_osabi_sniffer.
13876 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13878 * i386-cygwin-tdep.c: Rename to...
13879 * i386-windows-tdep.c: ... this.
13880 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13881 i386-windows-tdep.c.
13882 * configure.tgt: Likewise.
13884 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13886 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13887 * osabi.c (gdb_osabi_names): Add "Windows".
13888 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13889 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13890 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13891 i386_cygwin_osabi_sniffer.
13892 (_initialize_i386_cygwin_tdep): Register OS ABI
13893 GDB_OSABI_WINDOWS for i386.
13894 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13895 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13896 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13898 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13899 when the target matches '*-*-mingw*'.
13901 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13903 * defs.h (enum gdb_osabi): Move to...
13904 * osabi.h (enum gdb_osabi): ... here.
13905 * gdbarch.sh: Include osabi.h in gdbarch.h.
13906 * gdbarch.h: Re-generate.
13908 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13910 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13912 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13914 2020-03-14 Tom Tromey <tom@tromey.com>
13916 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13918 (c_type_print_modifier): Likewise. Add "language" parameter.
13919 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13920 (c_type_print_base_1): Update.
13921 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13923 * type-stack.c (type_stack::insert): Handle tp_atomic and
13925 (type_stack::follow_type_instance_flags): Likewise.
13926 (type_stack::follow_types): Likewise. Merge type-following code.
13927 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13928 (space_identifier, cv_with_space_id)
13929 (const_or_volatile_or_space_identifier_noopt)
13930 (const_or_volatile_or_space_identifier): Remove.
13931 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13933 (ptr_operator, typebase): Update.
13934 (enum token_flag) <FLAG_C>: New constant.
13935 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13937 (lex_one_token): Handle FLAG_C.
13939 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13941 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13942 it to the ptrace call.
13943 * m68k-bsd-nat.c (store_registers): Likewise.
13945 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13947 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13949 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13950 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13951 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13953 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13955 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13956 nbsd_nat_target instead of inf_ptrace_target.
13957 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13960 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13962 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13965 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13967 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13968 it to the ptrace call.
13969 * alpha-bsd-nat.c (store_registers): Likewise.
13971 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13973 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13975 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13976 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13977 fill_fpregset): Likewise.
13979 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13981 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13982 nbsd_nat_target instead of inf_ptrace_target.
13983 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13986 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13988 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13991 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13993 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13994 it to the ptrace call.
13995 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13996 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13997 * arm-nbsd-nat.c (store_register): Likewise.
13998 * arm-nbsd-nat.c (store_regs): Likewise.
13999 * arm-nbsd-nat.c (store_fp_register): Likewise.
14000 * arm-nbsd-nat.c (store_fp_regs): Likewise.
14002 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14004 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
14005 nbsd_nat_target instead of inf_ptrace_target.
14006 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
14009 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14011 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
14012 it to the ptrace call.
14013 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
14015 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14017 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
14018 it to the ptrace call.
14019 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
14021 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14023 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
14025 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
14027 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14029 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
14030 instead of inf_ptrace_target.
14031 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14034 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14036 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14039 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14041 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14044 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14046 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
14049 2020-03-13 Tom Tromey <tom@tromey.com>
14051 * value.h (val_print): Don't declare.
14052 * valprint.h (val_print_array_elements)
14053 (val_print_scalar_formatted, generic_val_print): Don't declare.
14054 * valprint.c (generic_val_print_array): Take a struct value.
14055 (generic_val_print_ptr, generic_val_print_memberptr)
14056 (generic_val_print_bool, generic_val_print_int)
14057 (generic_val_print_char, generic_val_print_complex)
14058 (generic_val_print): Remove.
14059 (generic_value_print): Update.
14060 (do_val_print): Remove unused parameters. Don't call
14062 (val_print): Remove.
14063 (common_val_print): Update. Don't call value_check_printable.
14064 (val_print_scalar_formatted, val_print_array_elements): Remove.
14065 * rust-lang.c (rust_val_print): Remove.
14066 (rust_language_defn): Update.
14067 * p-valprint.c (pascal_val_print): Remove.
14068 (pascal_value_print_inner): Update.
14069 (pascal_object_print_val_fields, pascal_object_print_val):
14071 (pascal_object_print_static_field): Update.
14072 * p-lang.h (pascal_val_print): Don't declare.
14073 * p-lang.c (pascal_language_defn): Update.
14074 * opencl-lang.c (opencl_language_defn): Update.
14075 * objc-lang.c (objc_language_defn): Update.
14076 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
14077 * m2-lang.h (m2_val_print): Don't declare.
14078 * m2-lang.c (m2_language_defn): Update.
14079 * language.h (struct language_defn) <la_val_print>: Remove.
14080 * language.c (unk_lang_value_print_inner): Rename. Change
14082 (unknown_language_defn, auto_language_defn): Update.
14083 * go-valprint.c (go_val_print): Remove.
14084 * go-lang.h (go_val_print): Don't declare.
14085 * go-lang.c (go_language_defn): Update.
14086 * f-valprint.c (f_val_print): Remove.
14087 * f-lang.h (f_value_print): Don't declare.
14088 * f-lang.c (f_language_defn): Update.
14089 * d-valprint.c (d_val_print): Remove.
14090 * d-lang.h (d_value_print): Don't declare.
14091 * d-lang.c (d_language_defn): Update.
14092 * cp-valprint.c (cp_print_value_fields)
14093 (cp_print_value_fields_rtti, cp_print_value): Remove.
14094 (cp_print_static_field): Update.
14095 * c-valprint.c (c_val_print_array, c_val_print_ptr)
14096 (c_val_print_struct, c_val_print_union, c_val_print_int)
14097 (c_val_print_memberptr, c_val_print): Remove.
14098 * c-lang.h (c_val_print_array, cp_print_value_fields)
14099 (cp_print_value_fields_rtti): Don't declare.
14100 * c-lang.c (c_language_defn, cplus_language_defn)
14101 (asm_language_defn, minimal_language_defn): Update.
14102 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
14103 (ada_val_print_enum): Take a struct value.
14104 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
14105 (ada_val_print): Remove.
14106 (ada_value_print_1): Update.
14107 (printable_val_type): Remove.
14108 * ada-lang.h (ada_val_print): Don't declare.
14109 * ada-lang.c (ada_language_defn): Update.
14111 2020-03-13 Tom Tromey <tom@tromey.com>
14113 * valprint.c (do_val_print): Update.
14114 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
14116 (value_to_value_object_no_release): Declare.
14117 * python/py-value.c (value_to_value_object_no_release): New
14119 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
14121 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
14123 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
14125 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
14127 (gdbscm_apply_val_pretty_printer): Take a struct value.
14128 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
14130 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
14132 * extension-priv.h (struct extension_language_ops)
14133 <apply_val_pretty_printer>: Take a struct value.
14134 * cp-valprint.c (cp_print_value): Create a struct value.
14135 (cp_print_value): Update.
14137 2020-03-13 Tom Tromey <tom@tromey.com>
14139 * ada-valprint.c (print_field_values): Call common_val_print.
14141 2020-03-13 Tom Tromey <tom@tromey.com>
14143 * ada-valprint.c (val_print_packed_array_elements): Remove
14144 bitoffset and val parameters. Call common_val_print.
14145 (ada_val_print_string): Remove offset, address, and original_value
14147 (ada_val_print_array): Update.
14148 (ada_value_print_array): New function.
14149 (ada_value_print_1): Call it.
14151 2020-03-13 Tom Tromey <tom@tromey.com>
14153 * ada-valprint.c (ada_value_print): Use common_val_print.
14155 2020-03-13 Tom Tromey <tom@tromey.com>
14157 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
14159 2020-03-13 Tom Tromey <tom@tromey.com>
14161 * ada-valprint.c (ada_value_print_num): New function.
14162 (ada_value_print_1): Use it.
14164 2020-03-13 Tom Tromey <tom@tromey.com>
14166 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
14168 2020-03-13 Tom Tromey <tom@tromey.com>
14170 * ada-valprint.c (ada_value_print_ptr): New function.
14171 (ada_value_print_1): Use it.
14173 2020-03-13 Tom Tromey <tom@tromey.com>
14175 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
14176 call common_val_print.
14177 (ada_val_print_1): Update.
14178 (ada_value_print_1): New function.
14179 (ada_value_print_inner): Rewrite.
14181 2020-03-13 Tom Tromey <tom@tromey.com>
14183 * cp-valprint.c (cp_print_value_fields): Update.
14184 (cp_print_value): New function.
14186 2020-03-13 Tom Tromey <tom@tromey.com>
14188 * m2-valprint.c (m2_value_print_inner): Use
14189 cp_print_value_fields.
14190 * cp-valprint.c (cp_print_value_fields): New function.
14191 * c-valprint.c (c_value_print_struct): New function.
14192 (c_value_print_inner): Use c_value_print_struct.
14193 * c-lang.h (cp_print_value_fields): Declare.
14195 2020-03-13 Tom Tromey <tom@tromey.com>
14197 * c-valprint.c (c_value_print_array): New function.
14198 (c_value_print_inner): Use it.
14200 2020-03-13 Tom Tromey <tom@tromey.com>
14202 * c-valprint.c (c_value_print_memberptr): New function.
14203 (c_value_print_inner): Use it.
14205 2020-03-13 Tom Tromey <tom@tromey.com>
14207 * c-valprint.c (c_value_print_int): New function.
14208 (c_value_print_inner): Use it.
14210 2020-03-13 Tom Tromey <tom@tromey.com>
14212 * c-valprint.c (c_value_print_ptr): New function.
14213 (c_value_print_inner): Use it.
14215 2020-03-13 Tom Tromey <tom@tromey.com>
14217 * c-valprint.c (c_value_print_inner): Rewrite.
14219 2020-03-13 Tom Tromey <tom@tromey.com>
14221 * valprint.c (generic_value_print_complex): New function.
14222 (generic_value_print): Use it.
14224 2020-03-13 Tom Tromey <tom@tromey.com>
14226 * valprint.c (generic_val_print_float): Don't call
14227 val_print_scalar_formatted.
14228 (generic_val_print, generic_value_print): Update.
14230 2020-03-13 Tom Tromey <tom@tromey.com>
14232 * valprint.c (generic_value_print_char): New function
14233 (generic_value_print): Use it.
14235 2020-03-13 Tom Tromey <tom@tromey.com>
14237 * valprint.c (generic_value_print_int): New function.
14238 (generic_value_print): Use it.
14240 2020-03-13 Tom Tromey <tom@tromey.com>
14242 * valprint.c (generic_value_print_bool): New function.
14243 (generic_value_print): Use it.
14245 2020-03-13 Tom Tromey <tom@tromey.com>
14247 * valprint.c (generic_val_print_func): Simplify.
14248 (generic_val_print, generic_value_print): Update.
14250 2020-03-13 Tom Tromey <tom@tromey.com>
14252 * valprint.c (generic_val_print_flags): Remove.
14253 (generic_val_print, generic_value_print): Update.
14254 (val_print_type_code_flags): Add original_value parameter.
14256 2020-03-13 Tom Tromey <tom@tromey.com>
14258 * valprint.c (generic_val_print): Update.
14259 (generic_value_print): Update.
14260 * valprint.c (generic_val_print_enum): Don't call
14261 val_print_scalar_formatted.
14263 2020-03-13 Tom Tromey <tom@tromey.com>
14265 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14266 * valprint.c (generic_value_print_ptr): New function.
14268 2020-03-13 Tom Tromey <tom@tromey.com>
14270 * valprint.c (generic_value_print): Rewrite.
14272 2020-03-13 Tom Tromey <tom@tromey.com>
14274 * p-valprint.c (pascal_object_print_value_fields)
14275 (pascal_object_print_value): New functions.
14277 2020-03-13 Tom Tromey <tom@tromey.com>
14279 * p-valprint.c (pascal_value_print_inner): Rewrite.
14281 2020-03-13 Tom Tromey <tom@tromey.com>
14283 * f-valprint.c (f_value_print_innner): Rewrite.
14285 2020-03-13 Tom Tromey <tom@tromey.com>
14287 * m2-valprint.c (m2_print_unbounded_array): New overload.
14288 (m2_print_unbounded_array): Update.
14289 (m2_print_array_contents): Take a struct value.
14290 (m2_value_print_inner): Rewrite.
14292 2020-03-13 Tom Tromey <tom@tromey.com>
14294 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14295 (d_value_print_inner): New function.
14296 * d-lang.h (d_value_print_inner): Declare.
14297 * d-lang.c (d_language_defn): Use d_value_print_inner.
14299 2020-03-13 Tom Tromey <tom@tromey.com>
14301 * go-valprint.c (go_value_print_inner): New function.
14302 * go-lang.h (go_value_print_inner): Declare.
14303 * go-lang.c (go_language_defn): Use go_value_print_inner.
14305 2020-03-13 Tom Tromey <tom@tromey.com>
14307 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14309 (rust_val_print): Rewrite.
14310 (rust_value_print_inner): New function, from rust_val_print.
14311 (rust_language_defn): Use rust_value_print_inner.
14313 2020-03-13 Tom Tromey <tom@tromey.com>
14315 * ada-valprint.c (ada_value_print_inner): New function.
14316 * ada-lang.h (ada_value_print_inner): Declare.
14317 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14319 2020-03-13 Tom Tromey <tom@tromey.com>
14321 * f-valprint.c (f_value_print_innner): New function.
14322 * f-lang.h (f_value_print_innner): Declare.
14323 * f-lang.c (f_language_defn): Use f_value_print_innner.
14325 2020-03-13 Tom Tromey <tom@tromey.com>
14327 * p-valprint.c (pascal_value_print_inner): New function.
14328 * p-lang.h (pascal_value_print_inner): Declare.
14329 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14331 2020-03-13 Tom Tromey <tom@tromey.com>
14333 * m2-valprint.c (m2_value_print_inner): New function.
14334 * m2-lang.h (m2_value_print_inner): Declare.
14335 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14337 2020-03-13 Tom Tromey <tom@tromey.com>
14339 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14340 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14341 * c-valprint.c (c_value_print_inner): New function.
14342 * c-lang.h (c_value_print_inner): Declare.
14343 * c-lang.c (c_language_defn, cplus_language_defn)
14344 (asm_language_defn, minimal_language_defn): Use
14345 c_value_print_inner.
14347 2020-03-13 Tom Tromey <tom@tromey.com>
14349 * p-valprint.c (pascal_object_print_value_fields): Now static.
14350 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14352 2020-03-13 Tom Tromey <tom@tromey.com>
14354 * c-valprint.c (c_val_print_array): Simplify.
14356 2020-03-13 Tom Tromey <tom@tromey.com>
14358 * valprint.c (value_print_array_elements): New function.
14359 * valprint.h (value_print_array_elements): Declare.
14361 2020-03-13 Tom Tromey <tom@tromey.com>
14363 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14364 * mips-tdep.c (mips_print_register): Use
14365 value_print_scalar_formatted.
14367 2020-03-13 Tom Tromey <tom@tromey.com>
14369 * valprint.h (value_print_scalar_formatted): Declare.
14370 * valprint.c (value_print_scalar_formatted): New function.
14372 2020-03-13 Tom Tromey <tom@tromey.com>
14374 * valprint.h (generic_value_print): Declare.
14375 * valprint.c (generic_value_print): New function.
14377 2020-03-13 Tom Tromey <tom@tromey.com>
14379 * valprint.c (do_val_print): Call la_value_print_inner, if
14381 * rust-lang.c (rust_language_defn): Update.
14382 * p-lang.c (pascal_language_defn): Update.
14383 * opencl-lang.c (opencl_language_defn): Update.
14384 * objc-lang.c (objc_language_defn): Update.
14385 * m2-lang.c (m2_language_defn): Update.
14386 * language.h (struct language_defn) <la_value_print_inner>: New
14388 * language.c (unknown_language_defn, auto_language_defn): Update.
14389 * go-lang.c (go_language_defn): Update.
14390 * f-lang.c (f_language_defn): Update.
14391 * d-lang.c (d_language_defn): Update.
14392 * c-lang.c (c_language_defn, cplus_language_defn)
14393 (asm_language_defn, minimal_language_defn): Update.
14394 * ada-lang.c (ada_language_defn): Update.
14396 2020-03-13 Tom Tromey <tom@tromey.com>
14398 * c-valprint.c (c_value_print): Use common_val_print.
14400 2020-03-13 Tom Tromey <tom@tromey.com>
14402 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14404 2020-03-13 Tom Tromey <tom@tromey.com>
14406 * f-valprint.c (f77_print_array_1, f_val_print): Use
14409 2020-03-13 Tom Tromey <tom@tromey.com>
14411 * riscv-tdep.c (riscv_print_one_register_info): Use
14414 2020-03-13 Tom Tromey <tom@tromey.com>
14416 * mi/mi-main.c (output_register): Use common_val_print.
14418 2020-03-13 Tom Tromey <tom@tromey.com>
14420 * infcmd.c (default_print_one_register_info): Use
14423 2020-03-13 Tom Tromey <tom@tromey.com>
14425 * valprint.h (common_val_print_checked): Declare.
14426 * valprint.c (common_val_print_checked): New function.
14427 * stack.c (print_frame_arg): Use common_val_print_checked.
14429 2020-03-13 Tom Tromey <tom@tromey.com>
14431 * valprint.c (do_val_print): New function, from val_print.
14432 (val_print): Use do_val_print.
14433 (common_val_print): Use do_val_print.
14435 2020-03-13 Tom Tromey <tom@tromey.com>
14437 * valprint.c (value_print): Use scoped_value_mark.
14439 2020-03-13 Tom de Vries <tdevries@suse.de>
14442 * psymtab.c (partial_symtab::partial_symtab): Don't set
14443 globals_offset and statics_offset. Push element onto
14444 current_global_psymbols and current_static_psymbols stacks.
14445 (concat): New function.
14446 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14447 element from current_global_psymbols and current_static_psymbols
14448 stacks. Concat popped elements to global_psymbols and
14450 (add_psymbol_to_list): Use current_global_psymbols and
14451 current_static_psymbols stacks.
14452 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14453 current_static_psymbols fields.
14455 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14457 * corelow.c (sniff_core_bfd): Remove.
14458 (class core_target) <m_core_vec>: Remove.
14459 (core_target::core_target): Update.
14460 (core_file_fns): Remove.
14461 (deprecated_add_core_fns): Remove.
14462 (default_core_sniffer): Remove.
14463 (sniff_core_bfd): Remove.
14464 (default_check_format): Remove.
14465 (gdb_check_format): Remove.
14466 (core_target_open): Update.
14467 (core_target::get_core_register_section): Update.
14468 (get_core_registers_cb): Update.
14469 (core_target::fetch_registers): Update.
14470 * gdbcore.h (struct core_fns): Remove.
14471 (deprecated_add_core_fns): Remove.
14472 (default_core_sniffer): Remove.
14473 (default_check_format): Remove.
14475 2020-03-12 Tom Tromey <tom@tromey.com>
14477 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14479 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14481 2020-03-12 Tom Tromey <tom@tromey.com>
14483 * remote.c (remote_target::download_tracepoint)
14484 (remote_target::enable_tracepoint)
14485 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14486 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14489 2020-03-12 Tom Tromey <tom@tromey.com>
14491 * symfile-mem.c: Update CORE_ADDR size assert.
14493 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14495 * selftest.m4: Move to gdbsupport/.
14496 * acinclude.m4: Update path to selftest.m4.
14498 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14500 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14501 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14502 gdbarch-selfselftests.c and selftest-arch.c.
14503 (SUBDIR_UNITTESTS_OBS): Rename to...
14504 (SELFTESTS_OBS): ... this.
14505 (COMMON_SFILES): Remove disasm-selftests.c and
14506 gdbarch-selftests.c.
14507 * configure.ac: Don't add selftest-arch.{c,o} to
14509 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14510 preprocessor conditions.
14512 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14514 * configure.ac: Don't source bfd/development.sh.
14515 * selftest.m4: Modify comment.
14516 * configure: Re-generate.
14518 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14520 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14521 not "true" or "false".
14522 * configure: Re-generate.
14524 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14526 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14527 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14528 renamed to arm_nbsd_supply_gregset.
14529 (fetch_register): Update to call arm_nbsd_supply_gregset.
14530 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14531 (arm_netbsd_nat_target::fetch_registers): Update.
14532 (fetch_elfcore_registers): Removed.
14533 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14534 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14535 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14536 not require NetBSD system headers.
14537 (arm_nbsd_regset): New struct.
14538 (arm_nbsd_iterate_over_regset_sections): New function.
14539 (arm_netbsd_init_abi_common): Updated to call
14540 set_gdbarch_iterate_over_regset_sections.
14541 * arm-nbsd-tdep.h: New file.
14543 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14545 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14548 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14550 * configure: Re-generate.
14552 2020-03-11 Tom Tromey <tromey@adacore.com>
14554 * ada-typeprint.c (print_choices): Fix comment.
14556 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14558 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14559 previous item in the list, when the list has no items.
14561 2020-03-11 Tom de Vries <tdevries@suse.de>
14563 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14564 PROP_LOCLIST handling code.
14566 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14568 * buildsym-legacy.c (record_line): Pass extra parameter to
14570 * buildsym.c (buildsym_compunit::record_line): Take an extra
14571 parameter, reduce duplication in the line table, and record the
14572 is_stmt flag in the line table.
14573 * buildsym.h (buildsym_compunit::record_line): Add extra
14575 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14576 non-statement lines.
14577 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14578 this to the symtab builder.
14579 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14580 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14581 through to dwarf_record_line_1.
14582 * infrun.c (process_event_stop_test): When stepping, don't stop at
14583 a non-statement instruction, and only refresh the step info when
14584 we land in the middle of a line's range. Also add an extra
14586 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14588 * record-btrace.c (btrace_find_line_range): Only record lines
14589 marked as is-statement.
14590 * stack.c (frame_show_address): Show the frame address if we are
14591 in a non-statement sal.
14592 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14593 (maintenance_print_one_line_table): Print a header for the is_stmt
14594 column, and include is_stmt information in the output.
14595 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14596 preference to non-statements.
14597 (find_pcs_for_symtab_line): Prefer is-statement entries.
14598 (find_line_common): Likewise.
14599 * symtab.h (struct linetable_entry): Add is_stmt field.
14600 (struct symtab_and_line): Likewise.
14601 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14602 arranging the line table.
14604 2020-03-07 Tom de Vries <tdevries@suse.de>
14606 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14609 2020-03-07 Tom Tromey <tom@tromey.com>
14611 * valops.c (value_literal_complex): Remove obsolete comment.
14612 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14615 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14617 * infrun.h: Forward-declare thread_info.
14618 (set_step_info): Add thread_info parameter, add doc.
14619 * infrun.c (set_step_info): Add thread_info parameter, move doc
14621 * infrun.c (process_event_stop_test): Pass thread to
14622 set_step_info call.
14623 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14625 (prepare_one_step): Add thread_info parameter, pass it to
14626 set_step_frame and prepare_one_step (recursive) call.
14627 (step_1): Pass thread to prepare_one_step call.
14628 (step_command_fsm::should_stop): Pass thread to
14630 (until_next_fsm): Pass thread to set_step_frame call.
14631 (finish_command): Pass thread to set_step_info call.
14633 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14635 * windows-tdep.c (windows_solib_create_inferior_hook):
14636 Check if inferior is running.
14638 2020-03-06 Tom de Vries <tdevries@suse.de>
14640 * NEWS: Fix "the the".
14643 2020-03-06 Tom de Vries <tdevries@suse.de>
14645 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14647 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14649 * .dir-locals.el: Add a comment referencing the other copies of
14652 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14654 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14657 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14659 * .gitattributes: New file.
14661 2020-03-04 Tom Tromey <tom@tromey.com>
14663 * symmisc.c (print_symbol_bcache_statistics)
14664 (print_objfile_statistics): Update.
14665 * symfile.c (allocate_symtab): Use intern.
14666 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14667 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14668 macro_cache>: Remove.
14669 <string_cache>: New member.
14670 (struct objfile) <intern>: New methods.
14671 * elfread.c (elf_symtab_read): Use intern.
14672 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14673 (dwarf2_compute_name, dwarf2_physname)
14674 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14676 (guess_partial_die_structure_name): Update.
14677 (partial_die_info::fixup): Intern name.
14678 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14680 (dwarf2_name): Intern name. Update.
14681 * buildsym.c (buildsym_compunit::get_macro_table): Use
14684 2020-03-04 Tom Tromey <tom@tromey.com>
14686 * jit.c (bfd_open_from_target_memory): Make "target" const.
14687 * corefile.c (gnutarget): Now const.
14688 * gdbcore.h (gnutarget): Now const.
14690 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14692 * NEWS: Mention support for WOW64 processes.
14693 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14694 (amd64_windows_segment_register_p): Remove static.
14695 (_initialize_amd64_windows_nat): Update.
14696 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14697 * i386-windows-nat.c (context_offset): Update.
14698 (i386_mappings): Rename and remove static.
14699 (i386_windows_segment_register_p): Remove static.
14700 (_initialize_i386_windows_nat): Update.
14701 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14702 (STATUS_WX86_SINGLE_STEP): New macro.
14703 (EnumProcessModulesEx): New macro.
14704 (Wow64SuspendThread): New macro.
14705 (Wow64GetThreadContext): New macro.
14706 (Wow64SetThreadContext): New macro.
14707 (Wow64GetThreadSelectorEntry): New macro.
14708 (windows_set_context_register_offsets): Add static.
14709 (windows_set_segment_register_p): Likewise.
14710 (windows_add_thread): Adapt for WOW64 processes.
14711 (windows_fetch_one_register): Likewise.
14712 (windows_nat_target::fetch_registers): Likewise.
14713 (windows_store_one_register): Likewise.
14714 (display_selector): Likewise.
14715 (display_selectors): Likewise.
14716 (handle_exception): Likewise.
14717 (windows_continue): Likewise.
14718 (windows_nat_target::resume): Likewise.
14719 (windows_add_all_dlls): Likewise.
14720 (do_initial_windows_stuff): Likewise.
14721 (windows_nat_target::attach): Likewise.
14722 (windows_get_exec_module_filename): Likewise.
14723 (windows_nat_target::create_inferior): Likewise.
14724 (windows_xfer_siginfo): Likewise.
14725 (_initialize_loadable): Initialize Wow64SuspendThread,
14726 Wow64GetThreadContext, Wow64SetThreadContext,
14727 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14728 * windows-nat.h (windows_set_context_register_offsets):
14729 Remove declaration.
14730 (windows_set_segment_register_p): Likewise.
14731 (i386_windows_segment_register_p): Add declaration.
14732 (amd64_windows_segment_register_p): Likewise.
14734 2020-03-04 Luis Machado <luis.machado@linaro.org>
14736 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14737 in "info registers" for AArch64/ARM.
14739 The change caused "info registers" to not print GPR's.
14743 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14745 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14746 when reg->group is empty and reggroup is not.
14748 2020-03-03 Tom Tromey <tromey@adacore.com>
14750 * dwarf2/frame.c (struct dwarf2_frame_cache)
14751 <checked_tailcall_bottom, entry_cfa_sp_offset,
14752 entry_cfa_sp_offset_p>: Remove members.
14753 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14754 (dwarf2_frame_prev_register): Don't call
14755 dwarf2_tailcall_sniffer_first.
14756 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14757 * frame-unwind.c (add_unwinder): New fuction.
14758 (frame_unwind_init): Use it. Add tailcall unwinder.
14760 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14761 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14763 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14764 value should be printed as true.
14766 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14768 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14769 (windows_init_abi): Set and use windows_so_ops.
14771 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14773 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14774 when verifying if dealing with a convenience variable.
14776 2020-03-03 Luis Machado <luis.machado@linaro.org>
14778 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14780 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14782 * infrun.c (gdbarch_supports_displaced_stepping): New.
14783 (use_displaced_stepping): Break up conditions in smaller pieces.
14784 Use gdbarch_supports_displaced_stepping.
14785 (displaced_step_prepare_throw): Use
14786 gdbarch_supports_displaced_stepping.
14788 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14790 * NEWS: Mention new behaviour of the history filename.
14791 * top.c (write_history_p): Add comment.
14792 (show_write_history_p): Add header comment, give a different
14793 message when history writing is on, but the history filename is
14795 (history_filename): Add comment.
14796 (history_filename_empty): New function.
14797 (show_history_filename): Add header comment, give a different
14798 message when the filename is empty.
14799 (init_history): Compare history_filename against nullptr, and only
14800 read history if the filename is not empty.
14801 (set_history_filename): Add header comment, and only make
14802 non-empty filenames absolute.
14803 (init_main): Make the filename argument to 'set history filename'
14806 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14808 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14809 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14810 (fetch_fp_register): Update.
14811 (fetch_fp_regs): Update.
14812 (store_fp_register): Update.
14813 (store_fp_regs): Update.
14814 (arm_netbsd_nat_target::read_description): New function.
14815 (fetch_elfcore_registers): Update.
14817 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14819 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14820 general_thread if the stop reply is missing a thread-id.
14821 (remote_target::process_stop_reply): Use the first non-exited
14822 thread if the target didn't pass a thread-id.
14823 * infrun.c (do_target_wait): Move call to
14824 switch_to_inferior_no_thread to ....
14825 (do_target_wait_1): ... here.
14827 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14829 * debuginfod-support.c: Include defs.h first.
14831 2020-02-28 Tom de Vries <tdevries@suse.de>
14833 * symfile.c (set_initial_language): Use default language for lookup.
14835 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14837 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14838 reader variable, pass `this` to read_cutu_die_from_dwo.
14840 2020-02-27 Aaron Merey <amerey@redhat.com>
14842 * source.c (open_source_file): Check for nullptr when computing
14845 2020-02-27 Tom Tromey <tromey@adacore.com>
14847 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14849 (dwarf2_add_field): Don't update nfields.
14850 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14852 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14854 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14857 2020-02-26 Tom Tromey <tom@tromey.com>
14859 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14860 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14861 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14862 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14865 2020-02-26 Tom Tromey <tom@tromey.com>
14867 * dwarf2/index-write.c (psym_index_map): Change type.
14868 (add_address_entry_worker, write_one_signatured_type)
14869 (recursively_count_psymbols, recursively_write_psymbols)
14870 (class debug_names, psyms_seen_size, write_gdbindex)
14871 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14873 2020-02-26 Aaron Merey <amerey@redhat.com>
14875 * Makefile.in: Handle optional debuginfod support.
14877 * README: Add --with-debuginfod summary.
14878 * config.in: Regenerate.
14879 * configure: Regenerate.
14880 * configure.ac: Handle optional debuginfod support.
14881 * debuginfod-support.c: debuginfod helper functions.
14882 * debuginfod-support.h: Ditto.
14883 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14885 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14886 when a dwz file cannot be found.
14887 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14888 debuginfo file cannot be found.
14889 * source.c (open_source_file): Query debuginfod servers when a
14890 source file cannot be found.
14891 * top.c (print_gdb_configuration): Include
14892 --{with,without}-debuginfod in the output.
14894 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14896 * thread.c (thr_try_catch_cmd): Print thread name.
14898 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14900 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14901 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14902 dwarf2_fetch_die_type_sect_off): Move to...
14903 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14904 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14905 dwarf2_fetch_die_type_sect_off): ... here.
14906 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14907 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14908 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14910 2020-02-26 Tom de Vries <tdevries@suse.de>
14913 * symfile.c (set_initial_language): Exit-early if
14914 language_mode == language_mode_manual.
14916 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14918 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14919 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14920 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14922 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14924 * gdbtypes.c (create_array_type_with_stride): Handle negative
14926 * valarith.c (value_subscripted_rvalue): Likewise.
14928 2020-02-25 Luis Machado <luis.machado@linaro.org>
14930 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14932 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14934 * loc.h (dwarf2_get_die_type): Move to...
14935 * read.h (dwarf2_get_die_type): ... here.
14936 * read.c (dwarf2_get_die_type): Move doc to header.
14938 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14940 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14941 'gnulib/Makefile.in' to the list.
14943 2020-02-24 Tom Tromey <tom@tromey.com>
14945 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14947 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14950 2020-02-24 Tom Tromey <tom@tromey.com>
14952 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14954 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14955 (dw2_do_instantiate_symtab, dw2_get_file_names)
14956 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14958 2020-02-24 Tom Tromey <tom@tromey.com>
14960 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14961 make_scoped_restore.
14962 (dwarf2_psymtab::read_symtab): Don't clear
14963 reading_partial_symbols.
14965 2020-02-24 Tom de Vries <tdevries@suse.de>
14968 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14970 2020-02-24 Tom de Vries <tdevries@suse.de>
14972 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14973 commands layout next/prev/regs.
14975 2020-02-22 Tom Tromey <tom@tromey.com>
14977 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14978 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14980 2020-02-22 Tom Tromey <tom@tromey.com>
14982 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14984 2020-02-22 Tom Tromey <tom@tromey.com>
14986 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14987 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14988 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14989 * tui/tui.c (_initialize_tui): Add usage text.
14991 2020-02-22 Tom Tromey <tom@tromey.com>
14993 * tui/tui-win.c (tui_set_focus_command)
14994 (tui_set_win_height_command): Use error_no_arg.
14995 (_initialize_tui_win): Update help text.
14996 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14998 2020-02-22 Tom Tromey <tom@tromey.com>
15000 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
15001 * tui/tui-disasm.h (struct tui_disasm_window)
15002 <display_start_addr>: Declare.
15003 * tui/tui-source.h (struct tui_source_window)
15004 <display_start_addr>: Declare.
15005 * tui/tui-winsource.h (struct tui_source_window_base)
15006 <show_source_line, display_start_addr>: New methods.
15007 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
15008 Rename and move to protected section.
15009 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
15010 (tui_source_window_base::do_erase_source_content): Update.
15011 (tui_source_window_base::show_source_line): Now a method.
15012 (tui_source_window_base::show_source_content)
15013 (tui_source_window_base::tui_source_window_base)
15014 (tui_source_window_base::rerender)
15015 (tui_source_window_base::refill)
15016 (tui_source_window_base::do_scroll_horizontal)
15017 (tui_source_window_base::set_is_exec_point_at)
15018 (tui_source_window_base::update_breakpoint_info)
15019 (tui_source_window_base::update_exec_info): Update.
15020 * tui/tui-source.c (tui_source_window::set_contents)
15021 (tui_source_window::showing_source_p)
15022 (tui_source_window::do_scroll_vertical)
15023 (tui_source_window::location_matches_p)
15024 (tui_source_window::line_is_displayed): Update.
15025 (tui_source_window::display_start_addr): New method.
15026 * tui/tui-disasm.c (tui_disasm_window::set_contents)
15027 (tui_disasm_window::do_scroll_vertical)
15028 (tui_disasm_window::location_matches_p): Update.
15029 (tui_disasm_window::display_start_addr): New method.
15031 2020-02-22 Tom Tromey <tom@tromey.com>
15033 * NEWS: Add entry for gdb.register_window_type.
15034 * tui/tui-layout.h (window_factory): New typedef.
15035 (tui_register_window): Declare.
15036 * tui/tui-layout.c (saved_tui_windows): New global.
15037 (tui_apply_current_layout): Use it.
15038 (tui_register_window): New function.
15039 * python/python.c (do_start_initialization): Call
15040 gdbpy_initialize_tui.
15041 (python_GdbMethods): Add "register_window_type" function.
15042 * python/python-internal.h (gdbpy_register_tui_window)
15043 (gdbpy_initialize_tui): Declare.
15044 * python/py-tui.c: New file.
15045 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
15047 2020-02-22 Tom Tromey <tom@tromey.com>
15049 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
15051 2020-02-22 Tom Tromey <tom@tromey.com>
15053 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
15054 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
15055 * tui/tui-data.c (tui_set_win_with_focus): Remove.
15056 (tui_set_win_focus_to): Move from tui-win.c.
15058 2020-02-22 Tom Tromey <tom@tromey.com>
15060 * tui/tui-layout.c (make_standard_window, get_locator_window): New
15062 (known_window_types): New global.
15063 (tui_get_window_by_name): Reimplement.
15064 (initialize_known_windows): New function.
15065 (validate_window_name): Rewrite.
15066 (_initialize_tui_layout): Call initialize_known_windows.
15068 2020-02-22 Tom Tromey <tom@tromey.com>
15070 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
15072 * tui/tui-winsource.h (struct tui_source_window_base)
15073 <tui_source_window_base>: Remove parameter.
15074 * tui/tui-winsource.c
15075 (tui_source_window_base::tui_source_window_base): Remove
15077 (tui_source_window_base::refill): Update.
15078 * tui/tui-stack.h (struct tui_locator_window)
15079 <tui_locator_window>: Update.
15080 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
15081 Default the constructor.
15082 * tui/tui-regs.h (struct tui_data_item_window)
15083 <tui_data_item_window>: Default the constructor.
15084 (struct tui_data_window) <tui_data_window>: Likewise.
15085 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
15086 Default the constructor.
15087 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
15088 Default the constructor.
15090 (struct tui_win_info) <tui_win_info>: Default the constructor.
15091 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
15092 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
15093 Default the constructor.
15095 2020-02-22 Tom Tromey <tom@tromey.com>
15097 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
15098 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
15099 * tui/tui-win.c (tui_resize_all): Don't call
15100 tui_delete_invisible_windows.
15101 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
15103 (tui_set_layout): Update.
15104 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
15105 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
15106 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
15108 2020-02-22 Tom Tromey <tom@tromey.com>
15110 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
15113 2020-02-22 Tom Tromey <tom@tromey.com>
15115 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
15117 2020-02-22 Tom Tromey <tom@tromey.com>
15119 * tui/tui-winsource.h (struct tui_source_window_iterator)
15120 <inner_iterator>: New etytypedef.
15121 <tui_source_window_iterator>: Take "end" parameter.
15122 <tui_source_window_iterator>: Take iterator.
15123 <operator*, advance>: Update.
15124 <m_iter>: Change type.
15125 <m_end>: New field.
15126 (struct tui_source_windows) <begin, end>: Update.
15127 * tui/tui-layout.c (tui_windows): New global.
15128 (tui_apply_current_layout): Clear tui_windows.
15129 (tui_layout_window::apply): Update tui_windows.
15130 * tui/tui-data.h (tui_windows): Declare.
15131 (all_tui_windows): Now inline function.
15132 (class tui_window_iterator, struct all_tui_windows): Remove.
15134 2020-02-22 Tom Tromey <tom@tromey.com>
15137 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
15138 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
15140 (class tui_layout_window) <get_sizes>: Likewise.
15141 (class tui_layout_split) <tui_layout_split>: Add "vertical"
15143 <get_sizes>: Add "height" argument.
15144 <m_vertical>: New field.
15145 * tui/tui-layout.c (tui_layout_split::clone): Update.
15146 (tui_layout_split::get_sizes): Add "height" argument.
15147 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
15148 (tui_new_layout_command): Parse "-horizontal".
15149 (_initialize_tui_layout): Update help string.
15150 (tui_layout_split::specification): Add "-horizontal" when needed.
15151 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
15153 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
15156 2020-02-22 Tom Tromey <tom@tromey.com>
15158 * tui/tui-layout.h (enum tui_adjust_result): New.
15159 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
15160 (class tui_layout_window) <adjust_size>: Return
15161 tui_adjust_result. Rewrite.
15162 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
15163 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
15165 2020-02-22 Tom Tromey <tom@tromey.com>
15167 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
15168 parameter and return types.
15169 (class tui_layout_base) <specification>: Add "depth".
15170 (class tui_layout_window) <specification>: Add "depth".
15171 (class tui_layout_split) <specification>: Add "depth".
15172 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
15174 (tui_new_layout_command): Parse sub-layouts.
15175 (_initialize_tui_layout): Update help string.
15176 (tui_layout_window::specification): Add "depth".
15177 (add_layout_command): Update.
15179 2020-02-22 Tom Tromey <tom@tromey.com>
15181 * NEWS: Add "tui new-layout" item.
15182 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
15183 Add new-layout command to help text.
15184 (validate_window_name): New function.
15185 (tui_new_layout_command): New function.
15186 (_initialize_tui_layout): Register "new-layout".
15187 (tui_layout_window::specification): New method.
15188 (tui_layout_window::specification): New method.
15189 * tui/tui-layout.h (class tui_layout_base) <specification>: New
15191 (class tui_layout_window) <specification>: New method.
15192 (class tui_layout_split) <specification>: New method.
15194 2020-02-22 Tom Tromey <tom@tromey.com>
15196 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
15197 * tui/tui-win.c (window_name_completer): Update comment.
15198 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
15200 (class tui_layout_window) <replace_window>: Likewise.
15201 (class tui_layout_split) <replace_window>: Likewise.
15202 (tui_set_layout): Don't declare.
15203 (tui_set_initial_layout): Declare function.
15204 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
15205 (asm_regs_layout): New globals.
15206 (tui_current_layout, show_layout): Remove.
15207 (tui_set_layout, tui_add_win_to_layout): Rewrite.
15208 (find_layout, tui_apply_layout): New function.
15209 (layout_completer): Remove.
15210 (tui_next_layout): Reimplement.
15211 (tui_next_layout_command): New function.
15212 (tui_set_initial_layout, tui_prev_layout_command): New functions.
15213 (tui_regs_layout): Reimplement.
15214 (tui_regs_layout_command): New function.
15215 (extract_display_start_addr): Rewrite.
15216 (next_layout, prev_layout): Remove.
15217 (tui_layout_window::replace_window): New method.
15218 (tui_layout_split::replace_window): New method.
15219 (destroy_layout): New function.
15220 (layout_list): New global.
15221 (add_layout_command): New function.
15222 (initialize_layouts): Update.
15223 (tui_layout_command): New function.
15224 (_initialize_tui_layout): Install "layout" commands.
15225 * tui/tui-data.h (enum tui_layout_type): Remove.
15226 (tui_current_layout): Don't declare.
15228 2020-02-22 Tom Tromey <tom@tromey.com>
15230 * tui/tui-regs.c (tui_reg_layout): Remove.
15231 (tui_reg_command): Use tui_regs_layout.
15232 * tui/tui-layout.h (tui_reg_command): Declare.
15233 * tui/tui-layout.c (tui_reg_command): New function.
15235 2020-02-22 Tom Tromey <tom@tromey.com>
15237 * tui/tui.c (tui_rl_delete_other_windows): Call
15238 tui_remove_some_windows.
15239 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15241 (class tui_layout_window) <remove_windows>: New method.
15242 (class tui_layout_split) <remove_windows>: Declare.
15243 (tui_remove_some_windows): Declare.
15244 * tui/tui-layout.c (tui_remove_some_windows): New function.
15245 (tui_layout_split::remove_windows): New method.
15247 2020-02-22 Tom Tromey <tom@tromey.com>
15249 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15250 * tui/tui-layout.h (tui_next_layout): Declare.
15251 * tui/tui-layout.c (tui_next_layout): New function.
15253 2020-02-22 Tom Tromey <tom@tromey.com>
15255 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15256 correct coordinates.
15258 2020-02-22 Tom Tromey <tom@tromey.com>
15260 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15261 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15264 2020-02-22 Tom Tromey <tom@tromey.com>
15266 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15267 TUI_DISASM_WIN, not tui_win_list.
15269 2020-02-22 Tom Tromey <tom@tromey.com>
15271 * valprint.c (generic_val_print_enum_1)
15272 (val_print_type_code_flags): Style member names.
15273 * rust-lang.c (val_print_struct, rust_print_enum)
15274 (rust_print_struct_def, rust_internal_print_type): Style member
15276 * p-valprint.c (pascal_object_print_value_fields): Style member
15277 names. Only call fprintf_symbol_filtered for static members.
15278 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15279 * f-valprint.c (f_val_print): Style member names.
15280 * f-typeprint.c (f_type_print_base): Style member names.
15281 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15282 call fprintf_symbol_filtered for static members.
15283 (cp_print_class_member): Style member names.
15284 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15286 * ada-valprint.c (ada_print_scalar): Style enum names.
15287 (ada_val_print_enum): Likewise.
15288 * ada-typeprint.c (print_enum_type): Style enum names.
15290 2020-02-21 Tom Tromey <tom@tromey.com>
15292 * psympriv.h (struct partial_symtab): Update comment.
15294 2020-02-21 Tom Tromey <tromey@adacore.com>
15296 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15299 2020-02-21 Tom de Vries <tdevries@suse.de>
15302 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15303 if dependencies[i]->user != NULL.
15305 2020-02-21 Ali Tamur <tamur@google.com>
15307 * dwarf2/read.c (dwarf2_name): Add null check.
15309 2020-02-20 Tom Tromey <tom@tromey.com>
15311 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15312 ">=", in binary search.
15313 (dwarf2_find_containing_comp_unit): New overload.
15314 (run_test): New self-test.
15315 (_initialize_dwarf2_read): Register new test.
15317 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
15319 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15320 * riscv-tdep.h: Likewise.
15321 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15323 * features/riscv/64bit-csr.xml: Regenerated.
15325 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15326 Tom Tromey <tom@tromey.com>
15328 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15329 of 'fputc_unfiltered'.
15330 (putchar_unfiltered): Call 'fputc_unfiltered'.
15331 (fputc_unfiltered): Call 'fputs_unfiltered'.
15333 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15335 * config.in: Regenerate.
15336 * configure: Regenerate.
15337 * configure.ac: Add --with-python-libdir option.
15338 * main.c: Use WITH_PYTHON_LIBDIR.
15340 2020-02-19 Tom Tromey <tom@tromey.com>
15342 * symtab.c (general_symbol_info::compute_and_set_names): Use
15343 obstack_strndup. Simplify call to symbol_set_demangled_name.
15345 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
15347 * dwarf2/read.c (allocate_signatured_type_table,
15348 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15349 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15350 Remove objfile parameter, update all callers.
15352 2020-02-19 Doug Evans <dje@google.com>
15355 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15356 rust_enum_variant calculation.
15358 2020-02-19 Tom Tromey <tromey@adacore.com>
15360 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15362 2020-02-19 Tom Tromey <tromey@adacore.com>
15364 * ada-lang.c (cache_symbol): Use obstack_strdup.
15366 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15368 * configure: Regenerate.
15370 2020-02-19 Tom Tromey <tromey@adacore.com>
15372 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15375 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
15377 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15379 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15381 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15382 if GDBSERVER is not defined.
15383 (riscv_tdesc_cache): Likewise, also store const target_desc.
15384 (STATIC_IN_GDB): Define.
15385 (riscv_create_target_description): Update declaration with
15387 (riscv_lookup_target_description): New function, only define if
15388 GDBSERVER is not defined.
15389 * arch/riscv.h (riscv_create_target_description): Declare only
15390 when GDBSERVER is defined.
15391 (riscv_lookup_target_description): New declaration when GDBSERVER
15393 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15394 (riscv_linux_read_features): ...this, and return
15395 riscv_gdbarch_features instead of target_desc.
15396 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15397 (riscv_linux_read_description): Rename to...
15398 (riscv_linux_read_features): ...this.
15399 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15400 Update to use riscv_gdbarch_features and
15401 riscv_lookup_target_description.
15402 * riscv-tdep.c (riscv_find_default_target_description): Use
15403 riscv_lookup_target_description instead of
15404 riscv_create_target_description.
15406 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15408 * valprint.c (generic_val_print_enum_1): When printing a flag
15409 enum with value 0 and there is no enumerator with value 0, print
15410 just "0" instead of "(unknown: 0x0)".
15412 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15414 * valprint.c (generic_val_print_enum_1): Print unknown part of
15417 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15419 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15420 flag enums to contain duplicate enumerators.
15421 * valprint.c (generic_val_print_enum_1): Update comment.
15423 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15425 * dwarf2/read.c: Include "count-one-bits.h".
15426 (update_enumeration_type_from_children): If an enumerator has
15427 multiple bits set, don't treat the enumeration as a "flag enum".
15428 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15429 of flag enums have 0 or 1 bit set.
15431 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15433 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15435 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15436 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15437 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15438 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15439 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15441 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15443 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15445 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15447 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15448 displaced_step_closure_up.
15449 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15450 (struct displaced_step_closure_up):
15451 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15452 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15453 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15455 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15456 * gdbarch.c, gdbarch.h: Re-generate.
15457 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15458 displaced_step_closure_up.
15459 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15460 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15461 * infrun.h (displaced_step_closure_up): New type alias.
15462 (struct displaced_step_inferior_state) <step_closure>: Change
15463 type to displaced_step_closure_up.
15464 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15465 displaced_step_closure_up.
15466 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15468 2020-02-14 Tom Tromey <tom@tromey.com>
15470 * minidebug.c (gnu_debug_key): New global.
15471 (find_separate_debug_file_in_section): Use it.
15473 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15475 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15477 * gdbarch.c: Re-generate.
15478 * gdbarch.h: Re-generate.
15479 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15481 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15482 type to std::unique_ptr.
15483 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15484 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15485 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15486 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15487 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15488 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15489 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15490 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15491 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15493 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15495 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15497 (displaced_step_clear): Rename to...
15498 (displaced_step_reset): ... this. Just call displaced->reset ().
15499 (displaced_step_clear_cleanup): Rename to...
15500 (displaced_step_reset_cleanup): ... this.
15501 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15502 (displaced_step_fixup): Likewise.
15503 (resume_1): Likewise.
15504 (handle_inferior_event): Restore child's memory before calling
15505 displaced_step_fixup on the parent.
15506 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15507 to std::unique_ptr.
15508 <step_closure>: Change type to std::unique_ptr.
15510 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15512 * arm-tdep.c: Include count-one-bits.h.
15513 (cleanup_block_store_pc): Use count_one_bits.
15514 (cleanup_block_load_pc): Use count_one_bits.
15515 (arm_copy_block_xfer): Use count_one_bits.
15516 (thumb2_copy_block_xfer): Use count_one_bits.
15517 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15518 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15519 (thumb_get_next_pcs_raw): Use count_one_bits.
15520 (arm_get_next_pcs_raw): Use count_one_bits_l.
15521 * arch/arm.c (bitcount): Remove.
15522 * arch/arm.h (bitcount): Remove.
15524 2020-02-14 Tom Tromey <tromey@adacore.com>
15526 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15528 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15529 * dwarf2/loc.c (call_site_find_chain_1): Return
15530 unique_xmalloc_ptr.
15531 (call_site_find_chain): Likewise.
15533 2020-02-14 Richard Biener <rguenther@suse.de>
15535 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15536 on expression with division operators.
15538 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15540 * MAINTAINERS (Write After Approval): Adding myself.
15542 2020-02-12 Tom Tromey <tom@tromey.com>
15544 * event-loop.c (event_data, gdb_event, event_handler_func):
15547 2020-02-12 Tom Tromey <tom@tromey.com>
15549 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15550 (dwarf2_frame_objfile_data): Add comment.
15551 (find_comp_unit, set_comp_unit): New functions.
15552 (dwarf2_frame_find_fde): Use find_comp_unit.
15553 (dwarf2_build_frame_info): Use set_comp_unit.
15555 2020-02-12 Tom Tromey <tom@tromey.com>
15557 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15558 (comp_unit): Don't initialize objfile.
15559 (execute_cfa_program): Add text_offset parameter.
15560 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15561 (dwarf2_frame_cache): Update.
15562 (dwarf2_build_frame_info): Don't set "objfile" member.
15564 2020-02-12 Tom Tromey <tom@tromey.com>
15566 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15567 (decode_frame_entry): Likewise.
15568 (dwarf2_build_frame_info): Update.
15570 2020-02-12 Tom Tromey <tom@tromey.com>
15572 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15573 (decode_frame_entry_1): Use the comp_unit obstack.
15575 2020-02-12 Tom Tromey <tom@tromey.com>
15577 * dwarf2/frame.c (struct comp_unit): Add initializers and
15579 (dwarf2_frame_objfile_data): Store a comp_unit.
15580 (dwarf2_frame_find_fde): Update.
15581 (dwarf2_build_frame_info): Use "new".
15583 2020-02-12 Tom Tromey <tom@tromey.com>
15585 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15586 (dwarf2_fde_table): Typedef for std::vector.
15587 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15588 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15589 (decode_frame_entry): Update.
15590 (dwarf2_build_frame_info): Use "new".
15592 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15594 * arm-tdep.c (arm_gdbarch_init): Update.
15595 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15596 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15597 have_neon, is_m>: Change to bool.
15599 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15601 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15603 2020-02-12 Tom Tromey <tom@tromey.com>
15605 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15607 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15609 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15610 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15612 2020-02-11 Tom Tromey <tom@tromey.com>
15614 * psymtab.h: Update comment.
15616 2020-02-11 Tom Tromey <tom@tromey.com>
15618 * gdb_obstack.h (struct auto_obstack): Use
15619 DISABLE_COPY_AND_ASSIGN.
15621 2020-02-11 Tom Tromey <tom@tromey.com>
15623 * dwarf2/frame.h (struct objfile): Don't forward declare.
15625 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15627 * cris-tdep.c (cris_supply_gregset): Change signature to match
15628 what struct regset expects.
15629 (cris_regset): New struct.
15630 (fetch_core_registers): Remove.
15631 (cris_iterate_over_regset_sections): New function.
15632 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15633 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15635 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15637 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15640 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15642 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15644 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15646 * configure: Re-generate.
15648 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15650 * configure: Re-generate.
15652 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15654 * acinclude: Update warning.m4 path.
15655 * warning.m4: Move to gdbsupport.
15657 2020-02-11 Tom Tromey <tromey@adacore.com>
15659 * remote.c (remote_console_output): Update.
15660 * printcmd.c (printf_command): Update.
15661 * event-loop.c (gdb_wait_for_event): Update.
15662 * linux-nat.c (sigchld_handler): Update.
15663 * remote-sim.c (gdb_os_write_stdout): Update.
15664 (gdb_os_flush_stdout): Update.
15665 (gdb_os_flush_stderr): Update.
15666 (gdb_os_write_stderr): Update.
15667 * exceptions.c (print_exception): Update.
15668 * remote-fileio.c (remote_fileio_func_read): Update.
15669 (remote_fileio_func_write): Update.
15670 * tui/tui.c (tui_enable): Update.
15671 * tui/tui-interp.c (tui_interp::init): Update.
15672 * utils.c (init_page_info): Update.
15673 (putchar_unfiltered, fputc_unfiltered): Update.
15674 (gdb_flush): Update.
15675 (emit_style_escape): Update.
15676 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15677 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15678 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15679 (stderr_file::write): Update.
15680 (stderr_file::puts): Update.
15681 * ui-file.h (ui_file_isatty, ui_file_write)
15682 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15683 (ui_file_puts): Don't declare.
15685 2020-02-10 Tom de Vries <tdevries@suse.de>
15687 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15688 sentinel to char *.
15690 2020-02-09 Tom de Vries <tdevries@suse.de>
15692 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15693 filename if it matches "<artificial>".
15695 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15697 * windows-tdep.c (struct enum_value_name): New struct.
15698 (create_enum): New function.
15699 (windows_get_siginfo_type): Create and use enum types.
15701 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15703 * NEWS: Mention $_siginfo support for Windows.
15704 * windows-nat.c (handle_exception): Set siginfo_er.
15705 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15706 (windows_xfer_siginfo): New function.
15707 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15708 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15709 (init_windows_gdbarch_data): New function.
15710 (get_windows_gdbarch_data): New function.
15711 (windows_get_siginfo_type): New function.
15712 (windows_init_abi): Register windows_get_siginfo_type.
15713 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15715 2020-02-08 Tom Tromey <tom@tromey.com>
15717 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15718 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15719 <keep>: Declare method.
15720 <m_keep>: Remove member.
15721 <~cutu_reader>: Remove.
15722 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15723 (cutu_reader::cutu_reader): Update.
15724 (cutu_reader::keep): Rename from ~cutu_reader.
15725 (process_psymtab_comp_unit, build_type_psymtabs_1)
15726 (process_skeletonless_type_unit, load_partial_comp_unit)
15727 (load_full_comp_unit, dwarf2_read_addr_index)
15728 (read_signatured_type): Update.
15730 2020-02-08 Tom Tromey <tom@tromey.com>
15732 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15733 "want_partial_unit" parameter.
15734 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15735 Inline check for DW_TAG_partial_unit.
15736 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15738 2020-02-08 Tom Tromey <tom@tromey.com>
15740 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15742 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15745 2020-02-08 Tom Tromey <tom@tromey.com>
15747 * dwarf2/read.c (read_address): Move to comp-unit.c.
15748 (dwarf2_rnglists_process, dwarf2_ranges_process)
15749 (read_attribute_value, dwarf_decode_lines_1)
15750 (var_decode_location, decode_locdesc): Update.
15751 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15752 read.c. Remove "cu" parameter.
15753 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15756 2020-02-08 Tom Tromey <tom@tromey.com>
15758 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15759 (read_indirect_line_string): Update.
15760 * dwarf2/comp-unit.c (read_offset): Remove.
15761 (read_comp_unit_head): Update.
15762 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15764 (read_offset): Don't declare.
15766 2020-02-08 Tom Tromey <tom@tromey.com>
15768 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15769 * dwarf2/read.c (struct comp_unit_head): Move to
15770 dwarf2/comp-unit.h.
15771 (enum class rcuh_kind): Move to comp-unit.h.
15772 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15773 (read_comp_unit_head, error_check_comp_unit_head)
15774 (read_and_check_comp_unit_head): Move to comp-unit.c.
15775 (read_offset, dwarf_unit_type_name): Likewise.
15776 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15777 (cutu_reader::cutu_reader, read_call_site_scope)
15778 (find_partial_die, follow_die_offset): Update.
15779 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15781 2020-02-08 Tom Tromey <tom@tromey.com>
15783 * dwarf2/read.c (read_offset_1): Move to leb.c.
15784 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15785 (dwarf_decode_macro_bytes): Update.
15786 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15787 * dwarf2/leb.h (read_offset): Declare.
15789 2020-02-08 Tom Tromey <tom@tromey.com>
15791 * dwarf2/read.c (dwarf2_section_size): Remove.
15792 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15794 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15796 2020-02-08 Tom Tromey <tom@tromey.com>
15798 * dwarf2/read.c (read_initial_length): Move to leb.c.
15799 * dwarf2/leb.h (read_initial_length): Declare.
15800 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15801 handle_nonstd parameter.
15802 * dwarf2/frame.c (read_initial_length): Remove.
15803 (decode_frame_entry_1): Update.
15805 2020-02-08 Tom Tromey <tom@tromey.com>
15807 * dwarf2/loc.c (dwarf2_find_location_expression)
15808 (dwarf_evaluate_loc_desc::get_tls_address)
15809 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15810 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15811 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15812 (dwarf2_compile_property_to_c)
15813 (dwarf2_loc_desc_get_symbol_read_needs)
15814 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15815 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15816 (loclist_describe_location, loclist_tracepoint_var_ref)
15817 (loclist_generate_c_location): Update.
15818 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15819 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15820 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15821 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15822 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15823 (dwarf2_per_cu_data::addr_size)
15824 (dwarf2_per_cu_data::ref_addr_size)
15825 (dwarf2_per_cu_data::text_offset)
15826 (dwarf2_per_cu_data::addr_type): Now methods.
15827 (per_cu_header_read_in): Make per_cu "const".
15828 (dwarf2_version): Remove.
15829 (dwarf2_per_cu_data::int_type): Now a method.
15830 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15831 (set_die_type, read_array_type, read_subrange_index_type)
15832 (read_tag_string_type, read_subrange_type): Update.
15833 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15834 offset_size, ref_addr_size, text_offset, addr_type, version,
15835 objfile, int_type, addr_sized_int_type>: Declare methods.
15837 2020-02-08 Tom Tromey <tom@tromey.com>
15839 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15842 2020-02-08 Tom Tromey <tom@tromey.com>
15844 * dwarf2/read.h (dwarf_line_debug): Declare.
15845 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15846 * dwarf2/read.c: Move line_header code to new files.
15847 (dwarf_line_debug): No longer static.
15848 * dwarf2/line-header.c: New file.
15849 * dwarf2/line-header.h: New file.
15851 2020-02-08 Tom Tromey <tom@tromey.com>
15853 * dwarf2/read.c (struct line_header) <file_full_name,
15854 file_file_name>: Return unique_xmalloc_ptr.
15855 (line_header::file_file_name): Update.
15856 (line_header::file_full_name): Update.
15857 (dw2_get_file_names_reader): Update.
15858 (macro_start_file): Update.
15860 2020-02-08 Tom Tromey <tom@tromey.com>
15862 * dwarf2/read.c (struct line_header) <file_full_name,
15863 file_file_name>: Declare methods.
15864 (dw2_get_file_names_reader): Update.
15865 (file_file_name): Now a method.
15866 (file_full_name): Likewise.
15867 (macro_start_file): Update.
15869 2020-02-08 Tom Tromey <tom@tromey.com>
15871 * dwarf2/read.c (dwarf_always_disassemble)
15872 (show_dwarf_always_disassemble): Move to loc.c.
15873 (_initialize_dwarf2_read): Move "always-disassemble" registration
15875 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15876 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15878 (show_dwarf_always_disassemble): Move from read.c.
15879 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15881 2020-02-08 Tom Tromey <tom@tromey.com>
15883 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15884 (create_quick_file_names_table): Return htab_up.
15885 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15887 * dwarf2/read.h (struct dwarf2_per_objfile)
15888 <quick_file_names_table>: Now htab_up.
15890 2020-02-08 Tom Tromey <tom@tromey.com>
15892 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15894 2020-02-08 Tom Tromey <tom@tromey.com>
15896 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15898 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15899 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15900 (abbrev_table::abbrev_table): No longer inline.
15901 (ABBREV_HASH_SIZE): Remove.
15902 (abbrev_table::m_abbrevs): Now an htab_up.
15904 2020-02-08 Tom Tromey <tom@tromey.com>
15906 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15907 (cutu_reader): Update.
15908 (build_type_psymtabs_1): Update.
15909 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15910 (abbrev_table::alloc_abbrev): Update.
15911 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15912 (abbrev_table::read): New static method, renamed from
15913 abbrev_table_read_table.
15914 (abbrev_table::alloc_abbrev)
15915 (abbrev_table::add_abbrev): Now private.
15916 (abbrev_table::abbrev_table): Now private.
15917 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15919 2020-02-08 Tom Tromey <tom@tromey.com>
15921 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15922 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15925 2020-02-08 Tom Tromey <tom@tromey.com>
15927 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15929 (lookup_dwo_unit_in_dwp): Update.
15930 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15933 2020-02-08 Tom Tromey <tom@tromey.com>
15935 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15938 2020-02-08 Tom Tromey <tom@tromey.com>
15940 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15942 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15943 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15944 Change type to htab_up.
15946 2020-02-08 Tom Tromey <tom@tromey.com>
15948 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15949 htab_up. Don't allocate on obstack.
15950 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15951 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15952 Change type to htab_up.
15954 2020-02-08 Tom Tromey <tom@tromey.com>
15956 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15957 Change type to htab_up.
15958 * dwarf2/read.c (create_signatured_type_table_from_index)
15959 (create_signatured_type_table_from_debug_names)
15960 (create_all_type_units, add_type_unit)
15961 (lookup_dwo_signatured_type, lookup_signatured_type)
15962 (process_skeletonless_type_unit): Update.
15963 (create_debug_type_hash_table, create_debug_types_hash_table):
15964 Change type of types_htab.
15965 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15966 htab_up. Don't allocate on obstack.
15967 (create_cus_hash_table): Change type of cus_htab parameter.
15968 (struct dwo_file) <cus, tus>: Now htab_up.
15969 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15970 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15971 (queue_and_load_all_dwo_tus): Update.
15972 * dwarf2/index-write.c (write_gdbindex): Update.
15973 (write_debug_names): Update.
15975 2020-02-08 Tom Tromey <tom@tromey.com>
15977 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15978 dwarf2/read.c. Remove "next" member. Add constructor ntad
15980 (struct dwarf2_per_objfile) <queue>: New member.
15981 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15983 (dwarf2_queue, dwarf2_queue_tail): Remove.
15984 (class dwarf2_queue_guard): Add parameter to constructor. Use
15985 DISABLE_COPY_AND_ASSIGN.
15986 <m_per_objfile>: New member.
15987 <~dwarf2_queue_guard>: Rewrite.
15988 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15990 (~dwarf2_queue_item): New.
15992 2020-02-08 Tom Tromey <tom@tromey.com>
15994 * dwarf2/read.c (struct die_info) <has_children>: New member.
15995 (dw2_get_file_names_reader): Remove has_children.
15996 (dw2_get_file_names): Update.
15997 (read_cutu_die_from_dwo): Remove has_children.
15998 (cutu_reader::init_tu_and_read_dwo_dies)
15999 (cutu_reader::cutu_reader): Update.
16000 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
16001 Remove has_children.
16002 (build_type_psymtabs_1, process_skeletonless_type_unit)
16003 (load_partial_comp_unit, load_full_comp_unit): Update.
16004 (create_dwo_cu_reader): Remove has_children.
16005 (create_cus_hash_table, read_die_and_children): Update.
16006 (read_full_die_1,read_full_die): Remove has_children.
16007 (read_signatured_type): Update.
16008 (class cutu_reader) <has_children>: Remove.
16010 2020-02-08 Tom Tromey <tom@tromey.com>
16012 * dwarf2/expr.c: Rename from dwarf2expr.c.
16013 * dwarf2/expr.h: Rename from dwarf2expr.h.
16014 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
16015 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
16016 * dwarf2/frame.c: Rename from dwarf2-frame.c.
16017 * dwarf2/frame.h: Rename from dwarf2-frame.h.
16018 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
16019 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
16020 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
16021 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
16022 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
16023 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
16024 * dwarf2/loc.c: Rename from dwarf2loc.c.
16025 * dwarf2/loc.h: Rename from dwarf2loc.h.
16026 * dwarf2/read.c: Rename from dwarf2read.c.
16027 * dwarf2/read.h: Rename from dwarf2read.h.
16028 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
16029 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
16030 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
16031 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
16032 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
16033 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
16034 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
16035 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
16036 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
16037 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
16038 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
16039 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
16040 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
16042 * Makefile.in (COMMON_SFILES): Update.
16043 (HFILES_NO_SRCDIR): Update.
16045 2020-02-08 Tom Tromey <tom@tromey.com>
16047 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
16048 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
16050 2020-02-08 Tom Tromey <tom@tromey.com>
16052 * dwarf2read.h (struct die_info): Don't declare.
16054 2020-02-08 Tom Tromey <tom@tromey.com>
16056 * dwarf2read.h (die_info_ptr): Remove typedef.
16058 2020-02-08 Tom Tromey <tom@tromey.com>
16060 * dwarf2read.c (read_call_site_scope)
16061 (handle_data_member_location, dwarf2_add_member_fn)
16062 (mark_common_block_symbol_computed, read_common_block)
16063 (attr_to_dynamic_prop, partial_die_info::read)
16064 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
16065 (dwarf2_symbol_mark_computed, set_die_type): Update.
16066 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
16068 (attr_form_is_block): Don't declare.
16069 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
16071 2020-02-08 Tom Tromey <tom@tromey.com>
16073 * dwarf2read.c (dwarf2_find_base_address, )
16074 (read_call_site_scope, rust_containing_type)
16075 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
16076 (handle_data_member_location, dwarf2_add_member_fn)
16077 (get_alignment, read_structure_type, process_structure_scope)
16078 (mark_common_block_symbol_computed, read_common_block)
16079 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
16080 (partial_die_info::read, read_attribute_value, new_symbol)
16081 (lookup_die_type, dwarf2_get_ref_die_offset)
16082 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
16083 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
16084 (dwarf2_symbol_mark_computed): Update.
16085 * dwarf2/attribute.h (struct attribute) <value_as_address,
16086 form_is_section_offset, form_is_constant, form_is_ref>: Declare
16088 (value_as_address, attr_form_is_section_offset)
16089 (attr_form_is_constant, attr_form_is_ref): Don't declare.
16090 * dwarf2/attribute.c (attribute::value_as_address)
16091 (attribute::form_is_section_offset, attribute::form_is_constant)
16092 (attribute::form_is_ref): Now methods.
16094 2020-02-08 Tom Tromey <tom@tromey.com>
16096 * dwarf2read.c (struct attribute, DW_STRING)
16097 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
16098 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
16099 (attr_form_is_block, attr_form_is_section_offset)
16100 (attr_form_is_constant, attr_form_is_ref): Move.
16101 * dwarf2/attribute.h: New file.
16102 * dwarf2/attribute.c: New file, from dwarf2read.c.
16103 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
16105 2020-02-08 Tom Tromey <tom@tromey.com>
16107 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
16108 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
16110 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
16111 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
16112 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
16114 * dwarf2/abbrev.h: New file.
16115 * dwarf2/abbrev.c: New file, from dwarf2read.c.
16116 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
16118 2020-02-08 Tom Tromey <tom@tromey.com>
16120 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
16121 (dwarf2_section_size, dwarf2_get_section_info)
16122 (create_signatured_type_table_from_debug_names)
16123 (create_addrmap_from_aranges, read_debug_names_from_section)
16124 (get_gdb_index_contents_from_section, read_comp_unit_head)
16125 (error_check_comp_unit_head, read_abbrev_offset)
16126 (create_debug_type_hash_table, init_cu_die_reader)
16127 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
16128 (read_comp_units_from_section, create_cus_hash_table)
16129 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
16130 (create_dwp_v2_section, dwarf2_rnglists_process)
16131 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
16132 (abbrev_table_read_table, read_indirect_string_at_offset_from)
16133 (read_indirect_string_from_dwz, read_addr_index_1)
16134 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
16135 (dwarf_decode_macro_bytes, dwarf_decode_macros)
16136 (fill_in_loclist_baton): Update.
16137 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
16138 get_containing_section, get_bfd_owner, get_bfd_section,
16139 get_file_name, get_id, get_flags, empty, read>: Declare methods.
16140 (dwarf2_read_section, get_section_name, get_section_file_name)
16141 (get_containing_section, get_section_bfd_owner)
16142 (get_section_bfd_section, get_section_name, get_section_file_name)
16143 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
16145 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
16146 (dwarf2_section_info::get_bfd_owner)
16147 (dwarf2_section_info::get_bfd_section)
16148 (dwarf2_section_info::get_name)
16149 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
16150 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
16151 (dwarf2_section_info::read): Now methods.
16152 * dwarf-index-write.c (class debug_names): Update.
16154 2020-02-08 Tom Tromey <tom@tromey.com>
16156 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
16157 Move to dwarf2/section.h.
16158 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
16159 (get_section_bfd_section, get_section_name)
16160 (get_section_file_name, get_section_id, get_section_flags)
16161 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
16163 * dwarf2/section.h: New file.
16164 * dwarf2/section.c: New file, from dwarf2read.c.
16165 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
16167 2020-02-08 Tom Tromey <tom@tromey.com>
16169 * dwarf2read.h (read_unsigned_leb128): Don't declare.
16170 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
16171 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
16172 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
16173 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
16174 * dwarf2/leb.h: New file, from dwarf2read.c.
16175 * dwarf2/leb.c: New file, from dwarf2read.c.
16176 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
16178 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
16179 (COMMON_SFILES): Add dwarf2/leb.c.
16181 2020-02-08 Joel Brobecker <brobecker@adacore.com>
16185 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16188 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
16189 * gdb/remote.c (remote_console_output): Update.
16190 * gdb/ui-file.c (fputs_unfiltered): Rename to...
16191 (ui_file_puts): ...this.
16192 * gdb/ui-file.h (ui_file_puts): Add declaration.
16193 * gdb/utils.c (emit_style_escape): Update.
16194 (flush_wrap_buffer): Update.
16195 (fputs_maybe_filtered): Update.
16196 (fputs_unfiltered): Add function.
16198 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16200 * gdb/event-loop.c (gdb_wait_for_event): Update.
16201 * gdb/printcmd.c (printf_command): Update.
16202 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
16203 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
16204 (gdb_os_flush_stderr): Update.
16205 * gdb/remote.c (remote_console_output): Update.
16206 * gdb/ui-file.c (gdb_flush): Rename to...
16207 (ui_file_flush): ...this.
16208 (stderr_file::write): Update.
16209 (stderr_file::puts): Update.
16210 * gdb/ui-file.h (gdb_flush): Rename to...
16211 (ui_file_flush): ...this.
16212 * gdb/utils.c (gdb_flush): Add function.
16213 * gdb/utils.h (gdb_flush): Add declaration.
16215 2020-02-07 Tom Tromey <tromey@adacore.com>
16217 PR breakpoints/24915:
16218 * source.c (find_and_open_source): Do not check basenames_may_differ.
16220 2020-02-07 Tom Tromey <tom@tromey.com>
16222 * README: Update gdbserver documentation.
16223 * gdbserver: Move to top level.
16224 * configure.tgt (build_gdbserver): Remove.
16225 * configure.ac: Remove --enable-gdbserver.
16226 * configure: Rebuild.
16227 * Makefile.in (distclean): Don't mention gdbserver.
16229 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16231 * source-cache.c (source_cache::ensure): Surround
16232 get_plain_source_lines with a try/catch.
16233 (source_cache::get_line_charpos): Get rid of try/catch
16234 and only check for the return value of "ensure".
16235 * tui/tui-source.c (tui_source_window::set_contents):
16236 Simplify "nlines" calculation.
16238 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16240 * MAINTAINERS (Write After Approval): Add myself.
16242 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16244 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16247 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16249 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16251 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
16253 * nat/riscv-linux-tdesc.h: New file.
16254 * nat/riscv-linux-tdesc.c: New file, taking code from...
16255 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16257 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16260 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16262 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16263 we don't set the fake simulator ptid to the null_ptid.
16265 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
16267 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16268 * gdbthread.h (class thread_info) <resumed>: Likewise.
16269 * infrun.c (resume_1): Likewise.
16270 (proceed): Likewise.
16271 (infrun_thread_stop_requested): Likewise.
16272 (stop_all_threads): Likewise.
16273 (handle_inferior_event): Likewise.
16274 (restart_threads): Likewise.
16275 (finish_step_over): Likewise.
16276 (keep_going_stepped_thread): Likewise.
16277 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16278 (linux_handle_extended_wait): Likewise.
16279 * record-btrace.c (get_thread_current_frame_id): Likewise.
16280 * record-full.c (record_full_wait_1): Likewise.
16281 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16282 * target.c (target_resume): Likewise.
16283 * thread.c (set_running_thread): Likewise.
16285 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16287 * f-valprint.c (f77_print_array_1): Changed datatype of index
16288 variable to LONGEST from int to enable it to contain bound
16291 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
16293 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16294 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16295 offsets according to FLEN determined.
16296 (riscv_linux_nat_target::read_description): Determine FLEN
16298 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16299 according to FLEN determined.
16300 (riscv_linux_nat_target::store_registers): Likewise.
16302 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
16304 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16305 when reg->group is empty and reggroup is not.
16307 2020-01-31 Tom Tromey <tromey@adacore.com>
16309 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16310 Call beneath target's mourn_inferior after unpushing.
16312 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16315 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16316 have enough lines to fill the screen, still return the lowest
16319 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16321 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16322 '-', '<', and '>' commands.
16324 2020-01-29 Pedro Alves <palves@redhat.com>
16325 Sergio Durigan Junior <sergiodj@redhat.com>
16327 * infcmd.c (construct_inferior_arguments): Assert that
16328 'argc' is greater than 0.
16330 2020-01-29 Luis Machado <luis.machado@linaro.org>
16332 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16333 (BRK_INSN_MASK): Define to 0xd4200000.
16334 (aarch64_program_breakpoint_here_p): New function.
16335 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16336 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16338 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16340 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16341 call gdbarch_program_breakpoint_here_p.
16342 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16343 default_program_breakpoint_here_p, changed return type to bool and
16345 * breakpoint.h (program_breakpoint_here): Moved prototype to
16346 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16347 return type to bool.
16348 * gdbarch.c: Regenerate.
16349 * gdbarch.h: Regenerate.
16350 * gdbarch.sh (program_breakpoint_here_p): New method.
16351 * infrun.c (handle_signal_stop): Call
16352 gdbarch_program_breakpoint_here_p.
16354 2020-01-26 Tom Tromey <tom@tromey.com>
16356 * ctfread.c (struct ctf_fp_info): Reindent.
16357 (_initialize_ctfread): Remove.
16359 2020-01-26 Tom Tromey <tom@tromey.com>
16361 * psymtab.c (partial_map_expand_apply)
16362 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16363 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16364 (psym_print_stats, psym_expand_symtabs_for_function)
16365 (psym_map_symbol_filenames, psym_map_matching_symbols)
16366 (psym_expand_symtabs_matching)
16367 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16368 (maintenance_check_psymtabs): Use new methods.
16369 * psympriv.h (struct partial_symtab) <readin_p,
16370 get_compunit_symtab>: New methods.
16371 <readin, compunit_symtab>: Remove members.
16372 (struct standard_psymtab): New.
16373 (struct legacy_psymtab): Derive from standard_psymtab.
16374 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16376 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16378 2020-01-26 Tom Tromey <tom@tromey.com>
16380 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16381 read_dependencies. Add assert.
16382 * psymtab.c (partial_symtab::read_dependencies): New method.
16383 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16385 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16386 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16388 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16391 2020-01-26 Tom Tromey <tom@tromey.com>
16393 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16394 Call expand_psymtab.
16395 (xcoff_read_symtab): Call expand_psymtab.
16396 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16397 legacy_expand_psymtab.
16398 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16400 (struct legacy_psymtab) <expand_psymtab>: Implement.
16401 <legacy_expand_psymtab>: New member.
16402 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16403 (parse_partial_symbols): Set legacy_expand_psymtab.
16404 (psymtab_to_symtab_1): Change argument order. Call
16406 (new_psymtab): Set legacy_expand_psymtab.
16407 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16408 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16410 (dwarf2_psymtab::expand_psymtab): Rename from
16411 psymtab_to_symtab_1. Call expand_psymtab.
16412 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16413 (dbx_end_psymtab): Likewise.
16414 (dbx_psymtab_to_symtab_1): Change argument order. Call
16416 (dbx_read_symtab): Call expand_psymtab.
16417 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16418 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16419 (ctf_psymtab::read_symtab): Call expand_psymtab.
16421 2020-01-26 Tom Tromey <tom@tromey.com>
16423 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16424 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16426 * mdebugread.c (mdebug_read_symtab): Remove prints.
16427 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16429 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16431 2020-01-26 Tom Tromey <tom@tromey.com>
16433 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16434 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16435 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16437 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16438 * psymtab.c (psymtab_to_symtab): Call method.
16439 (dump_psymtab): Update.
16440 * psympriv.h (struct partial_symtab): Add virtual destructor.
16441 <read_symtab>: New method.
16442 (struct legacy_symtab): New.
16443 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16444 (struct pst_map) <pst>: Now a legacy_psymtab.
16445 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16446 (new_psymtab): Use legacy_psymtab.
16447 * dwarf2read.h (struct dwarf2_psymtab): New.
16448 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16449 * dwarf2read.c (dwarf2_create_include_psymtab)
16450 (dwarf2_build_include_psymtabs, create_type_unit_group)
16451 (create_partial_symtab, process_psymtab_comp_unit_reader)
16452 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16453 (set_partial_user): Use dwarf2_psymtab.
16454 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16455 (psymtab_to_symtab_1, process_full_comp_unit)
16456 (process_full_type_unit, dwarf2_ranges_read)
16457 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16458 (dwarf_decode_lines): Use dwarf2_psymtab.
16459 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16460 (add_address_entry_worker, write_one_signatured_type)
16461 (recursively_count_psymbols, recursively_write_psymbols)
16462 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16463 (write_debug_names): Likewise.
16464 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16465 <pst>: Now a legacy_psymtab.
16466 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16467 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16468 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16469 * ctfread.c (struct ctf_psymtab): New.
16470 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16472 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16473 (create_partial_symtab): Return a ctf_psymtab.
16474 (scan_partial_symbols): Update.
16476 2020-01-26 Tom Tromey <tom@tromey.com>
16478 * xcoffread.c (xcoff_start_psymtab): Use new.
16479 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16480 renamed from start_psymtab_common.
16481 * psympriv.h (struct partial_symtab): Add new constructor.
16482 (start_psymtab_common): Don't declare.
16483 * mdebugread.c (parse_partial_symbols): Use new.
16484 * dwarf2read.c (create_partial_symtab): Use new.
16485 * dbxread.c (start_psymtab): Use new.
16486 * ctfread.c (create_partial_symtab): Use new.
16488 2020-01-26 Tom Tromey <tom@tromey.com>
16490 * xcoffread.c (xcoff_end_psymtab): Use new.
16491 * psymtab.c (start_psymtab_common): Use new.
16492 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16494 * psympriv.h (struct partial_symtab): Add parameters to
16495 constructor. Don't inline.
16496 (allocate_psymtab): Don't declare.
16497 * mdebugread.c (new_psymtab): Use new.
16498 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16499 * dbxread.c (dbx_end_psymtab): Use new.
16501 2020-01-26 Tom Tromey <tom@tromey.com>
16503 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16504 allocate_psymtab. Update documentation.
16505 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16506 allocate_psymtab. Do not use new.
16507 (allocate_psymtab): Use new. Update.
16509 2020-01-26 Tom Tromey <tom@tromey.com>
16511 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16512 * psymtab.c (psym_print_stats): Update.
16513 * psympriv.h (struct partial_symtab) <readin,
16514 psymtabs_addrmap_supported, anonymous>: Now bool.
16515 * mdebugread.c (psymtab_to_symtab_1): Update.
16516 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16517 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16518 (process_full_comp_unit, process_full_type_unit): Update.
16519 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16520 * ctfread.c (psymtab_to_symtab): Update.
16522 2020-01-26 Tom Tromey <tom@tromey.com>
16524 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16525 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16526 * psymtab.c (psymtab_storage): Delete psymtabs.
16527 (psymtab_storage::allocate_psymtab): Use new.
16528 (psymtab_storage::discard_psymtab): Use delete.
16529 * psympriv.h (struct partial_symtab): Add constructor and
16532 2020-01-26 Tom Tromey <tom@tromey.com>
16534 * machoread.c: Do not include psympriv.h.
16536 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16538 * NEWS: Mention the new option and the set/show commands.
16540 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16542 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16543 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16544 (validate_exec_file): New variables, enums, functions.
16545 (exec_file_locate_attach, print_section_info): Style the filenames.
16546 (_initialize_exec): Install show_exec_file_mismatch_command and
16547 set_exec_file_mismatch_command.
16548 * gdbcore.h (validate_exec_file): Declare.
16549 * infcmd.c (attach_command): Call validate_exec_file.
16550 * remote.c ( remote_target::remote_add_inferior): Likewise.
16552 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16554 * frame.c (find_frame_sal): Move call to get_next_frame into more
16556 * inline-frame.c (inilne_state) <inline_state>: Update argument
16558 (inilne_state) <skipped_symbol>: Rename to...
16559 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16560 (skip_inline_frames): Build vector of skipped symbols and use this
16561 to reate the inline_state.
16562 (inline_skipped_symbol): Add a comment and some assertions, fetch
16563 skipped symbol from the list.
16565 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16567 * buildsym.c (lte_is_less_than): Delete.
16568 (buildsym_compunit::end_symtab_with_blockvector): Create local
16569 lambda function to sort line table entries, and use
16570 std::stable_sort instead of std::sort.
16571 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16572 markers when looking for a previous line.
16574 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16576 * dwarf2read.c (lnp_state_machine::record_line): Include
16577 end_sequence parameter in debug print out. Record the line if we
16578 are at an end_sequence marker even if it's not the start of a
16580 * symmisc.c (maintenance_print_one_line_table): Print end of
16581 sequence markers with 'END' not '0'.
16583 2020-01-24 Pedro Alves <palves@redhat.com>
16586 * thread.c (scoped_restore_current_thread::restore): Use
16587 switch_to_inferior_no_thread.
16588 * exec.c: Include "progspace-and-thread.h".
16589 (add_target_sections, remove_target_sections):
16590 scoped_restore_current_pspace_and_thread instead of
16591 scoped_restore_current_thread.
16592 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16593 and aspace to the inferior before calling clone_program_space.
16594 Remove stale comment.
16596 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16598 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16599 (arm_netbsd_nat_target::fetch_registers): ...this.
16600 (arm_nbsd_nat_target::store_registers): Rename to...
16601 (arm_netbsd_nat_target::store_registers): ...this.
16603 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16605 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16608 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16610 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16612 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16614 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16615 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16616 the correct replacement (iterate_over_regset_sections).
16617 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16620 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16623 * gdb/python/python.c (execute_gdb_command): Call
16624 async_enable_stdin in catch block.
16626 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16628 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16629 SWITCH_THRU_ALL_UIS.
16631 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16634 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16635 comment, add extra parameter, and update to store previous symbol
16637 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16638 add extra parameter.
16639 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16640 remove unneeded parameter, add try/catch around gdb_print_insn,
16641 rewrite to add items to asm_lines vector.
16642 (tui_find_backward_disassembly_start_address): New function.
16643 (tui_find_disassembly_address): Updated throughout.
16644 (tui_disasm_window::set_contents): Update for changes to
16646 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16647 number of lines to scroll.
16649 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16651 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16652 (SECT_OFF_DATA): Likewise.
16653 (SECT_OFF_RODATA): Likewise.
16654 (SECT_OFF_TEXT): Likewise.
16655 (SECT_OFF_BSS): Likewise.
16656 (struct objfile) <text_section_offset, data_section_offset>: New
16658 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16659 objfile::text_section_offset.
16660 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16661 * coffread.c (coff_symtab_read): Likewise.
16662 (enter_linenos): Likewise.
16663 (process_coff_symbol): Likewise.
16664 * ctfread.c (get_objfile_text_range): Likewise.
16665 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16666 Use objfile::data_section_offset.
16667 * dwarf2-frame.c (execute_cfa_program): Use
16668 objfile::text_section_offset.
16669 (dwarf2_frame_find_fde): Likewise.
16670 * dwarf2read.c (create_addrmap_from_index): Likewise.
16671 (create_addrmap_from_aranges): Likewise.
16672 (dw2_find_pc_sect_compunit_symtab): Likewise.
16673 (process_psymtab_comp_unit_reader): Likewise.
16674 (add_partial_symbol): Likewise.
16675 (add_partial_subprogram): Likewise.
16676 (process_full_comp_unit): Likewise.
16677 (read_file_scope): Likewise.
16678 (read_func_scope): Likewise.
16679 (read_lexical_block_scope): Likewise.
16680 (read_call_site_scope): Likewise.
16681 (dwarf2_rnglists_process): Likewise.
16682 (dwarf2_ranges_process): Likewise.
16683 (dwarf2_ranges_read): Likewise.
16684 (dwarf_decode_lines_1): Likewise.
16685 (new_symbol): Likewise.
16686 (dwarf2_fetch_die_loc_sect_off): Likewise.
16687 (dwarf2_per_cu_text_offset): Likewise.
16688 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16689 * hppa-tdep.c (read_unwind_info): Likewise.
16690 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16691 * psympriv.h (struct partial_symtab): Likewise.
16692 * psymtab.c (find_pc_sect_psymtab): Likewise.
16693 * solib-svr4.c (enable_break): Likewise.
16694 * stap-probe.c (relocate_address): Use
16695 objfile::data_section_offset.
16696 * xcoffread.c (enter_line_range): Use
16697 objfile::text_section_offset.
16698 (read_xcoff_symtab): Likewise.
16700 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16702 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16703 declaration to narrower scopes.
16705 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16707 * darwin-nat.h (struct darwin_exception_msg, enum
16708 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16710 (class darwin_nat_target) <wait_1, check_new_threads,
16711 decode_exception_message, decode_message, stop_inferior,
16712 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16713 * darwin-nat.c (darwin_check_new_threads): Rename to...
16714 (darwin_nat_target::check_new_threads): ... this.
16715 (darwin_suspend_inferior_it): Remove.
16716 (darwin_decode_exception_message): Rename to...
16717 (darwin_nat_target::decode_exception_message): ... this.
16718 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16719 (darwin_decode_message): Rename to...
16720 (darwin_nat_target::decode_message): ... this.
16721 (cancel_breakpoint): Rename to...
16722 (darwin_nat_target::cancel_breakpoint): ... this.
16723 (darwin_wait): Rename to...
16724 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16725 instead of iterate_over_inferiors.
16726 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16727 (darwin_stop_inferior): Rename to...
16728 (darwin_nat_target::stop_inferior): ... this.
16729 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16730 (darwin_init_thread_list): Rename to...
16731 (darwin_nat_target::init_thread_list): ... this.
16732 (darwin_ptrace_him): Rename to...
16733 (darwin_nat_target::ptrace_him): ... this.
16734 (darwin_nat_target::create_inferior): Pass lambda function to
16736 (darwin_nat_target::detach): Call stop_inferior instead of
16737 darwin_stop_inferior.
16738 * fork-inferior.h (fork_inferior): Change init_trace_fun
16739 parameter to gdb::function_view.
16740 * fork-inferior.c (fork_inferior): Likewise.
16742 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16744 * i386-cygwin-tdep.c (core_process_module_section): Update.
16745 * windows-nat.c (struct lm_info_windows): Add text_offset.
16746 (windows_xfer_shared_libraries): Update.
16747 * windows-tdep.c (windows_xfer_shared_library):
16748 Add text_offset_cached argument.
16749 * windows-tdep.h (windows_xfer_shared_library): Update.
16751 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16753 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16755 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16757 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16758 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16759 replace with range-based for.
16760 (gdbsim_interrupt_inferior): Remove.
16761 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16762 with a range-based for. Inline code from
16763 gdbsim_interrupt_inferior.
16765 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16767 * infrun.c (proceed): Fix indentation.
16769 2020-01-21 Tom Tromey <tromey@adacore.com>
16771 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16772 * python/python.c (python_extension_ops): Update.
16773 (gdbpy_colorize): New function.
16774 * python/lib/gdb/__init__.py (colorize): New function.
16775 * extension.h (ext_lang_colorize): Declare.
16776 * extension.c (ext_lang_colorize): New function.
16777 * extension-priv.h (struct extension_language_ops) <colorize>: New
16779 * cli/cli-style.c (_initialize_cli_style): Update help text.
16781 2020-01-21 Luis Machado <luis.machado@linaro.org>
16783 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16784 <cond>: Change type to bool.
16785 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16786 (aarch64_displaced_step_cb): Likewise.
16787 (aarch64_displaced_step_tb): Likewise.
16789 2020-01-21 Luis Machado <luis.machado@linaro.org>
16791 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16794 2020-01-21 Luis Machado <luis.machado@linaro.org>
16796 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16797 <pc_adjust>: Adjust the documentation.
16798 (aarch64_displaced_step_fixup): Check if PC really moved before
16801 2020-01-19 Tom Tromey <tom@tromey.com>
16803 * disasm.c (~gdb_disassembler): New destructor.
16804 (gdb_buffered_insn_length): Call disassemble_free_target.
16805 * disasm.h (class gdb_disassembler): Declare destructor. Use
16806 DISABLE_COPY_AND_ASSIGN.
16808 2020-01-19 Tom Tromey <tom@tromey.com>
16810 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16811 (die_reader_func_ftype): Remove.
16812 (cutu_reader): New class.
16813 (dw2_get_file_names_reader): Remove "data" parameter.
16814 (dw2_get_file_names): Use cutu_reader.
16815 (create_debug_type_hash_table): Update.
16816 (read_cutu_die_from_dwo): Update comment.
16817 (lookup_dwo_unit): Add dwo_name parameter.
16818 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16819 die_reader_func_ftype and data parameters.
16820 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16821 Remove die_reader_func_ftype and data parameters.
16822 (~cutu_reader): New; from init_cutu_and_read_dies.
16823 (cutu_reader::cutu_reader): Rename from
16824 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16825 and data parameters.
16826 (init_cutu_and_read_dies_simple): Remove.
16827 (struct process_psymtab_comp_unit_data): Remove.
16828 (process_psymtab_comp_unit_reader): Remove data parameter; add
16829 want_partial_unit and pretend_language parameters.
16830 (process_psymtab_comp_unit): Use cutu_reader.
16831 (build_type_psymtabs_reader): Remove data parameter.
16832 (build_type_psymtabs_1): Use cutu_reader.
16833 (process_skeletonless_type_unit): Likewise.
16834 (load_partial_comp_unit_reader): Remove.
16835 (load_partial_comp_unit): Use cutu_reader.
16836 (load_full_comp_unit_reader): Remove.
16837 (load_full_comp_unit): Use cutu_reader.
16838 (struct create_dwo_cu_data): Remove.
16839 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16840 dwo_unit parameters.
16841 (create_cus_hash_table): Use cutu_reader.
16842 (struct dwarf2_read_addr_index_data): Remove.
16843 (dwarf2_read_addr_index_reader): Remove.
16844 (dwarf2_read_addr_index): Use cutu_reader.
16845 (read_signatured_type_reader): Remove.
16846 (read_signatured_type): Use cutu_reader.
16848 2020-01-19 Tom Tromey <tom@tromey.com>
16850 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16851 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16852 (tui_wrefresh): Declare.
16853 * tui/tui-wingeneral.c (suppress_output): New global.
16854 (tui_suppress_output, ~tui_suppress_output): New constructor and
16856 (tui_wrefresh): New function.
16857 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16858 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16859 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16861 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16863 (tui_data_window::no_refresh): New method.
16864 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16865 (tui_reg_command): Use tui_suppress_output
16866 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16867 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16869 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16871 2020-01-19 Tom Tromey <tom@tromey.com>
16873 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16874 Handle case where symtab is null.
16876 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16878 * linux-fork.c (one_fork_p): Simplify.
16880 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16882 * top.c (struct qt_args): Remove.
16883 (kill_or_detach): Change return type to void, replace `void *`
16884 parameter with a proper one.
16885 (print_inferior_quit_action): Likewise.
16886 (quit_confirm): Use range-based for loop to iterate over inferiors.
16887 (quit_force): Likewise.
16889 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16891 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16892 `void *` parameter with proper parameters.
16893 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16894 (print_one_inferior): Change return type to void, replace `void *`
16895 parameter with proper parameters.
16896 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16898 (get_other_inferior): Remove.
16899 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16902 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16904 * mi/mi-interp.c (report_initial_inferior): Remove.
16905 (mi_interp::init): Use range-based for to iterate over inferiors.
16907 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16909 * python/py-inferior.c (build_inferior_list): Remove.
16910 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16912 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16914 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16915 (btrace_stitch_trace): Likewise.
16916 * charset.c (intermediate_encoding): Likewise (vaild).
16917 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16918 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16919 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16921 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16923 * windows-tdep.c (windows_get_tlb_type):
16924 Add rtl_user_process_parameters type.
16926 2020-01-16 Pedro Alves <palves@redhat.com>
16927 Norbert Lange <nolange79@gmail.com>
16930 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16931 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16932 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16933 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16934 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16935 (ps_plog): Redeclare exported functions with default visibility.
16937 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16939 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16940 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16942 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16944 * infcmd.c (post_create_inferior): Use get_thread_regcache
16945 instead of get_current_regcache.
16947 2020-01-14 Tom Tromey <tom@tromey.com>
16950 * python/python.c (gdbpy_decode_line): Treat empty string the same
16953 2020-01-14 Tom Tromey <tom@tromey.com>
16955 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16957 2020-01-14 Tom Tromey <tom@tromey.com>
16959 * nat/linux-btrace.c: Don't include <config.h>.
16960 * nat/linux-ptrace.c: Don't include <config.h>.
16961 * nat/x86-linux-dregs.c: Don't include <config.h>.
16963 2020-01-14 Tom Tromey <tom@tromey.com>
16965 * configure: Rebuild.
16966 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16968 2020-01-14 Tom Tromey <tom@tromey.com>
16970 * nat/x86-linux-dregs.c: Include configh.h.
16971 * nat/linux-ptrace.c: Include configh.h.
16972 * nat/linux-btrace.c: Include configh.h.
16973 * defs.h: Include config.h, bfd.h.
16974 * configure.ac: Don't source common.host.
16975 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16976 * configure: Rebuild.
16977 * acinclude.m4: Update path.
16978 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16979 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16980 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16981 (CLIBS): Add LIBSUPPORT.
16983 (COMMON_SFILES): Remove gdbsupport files.
16984 (HFILES_NO_SRCDIR): Likewise.
16985 (stamp-version): Update path to create-version.sh.
16986 (ALLDEPFILES): Remove gdbsupport files.
16988 2020-01-14 Tom Tromey <tom@tromey.com>
16990 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16991 USE_WIN32API when needed.
16992 * configure.ac (USE_WIN32API): Don't define.
16993 (WIN32LIBS): Use WIN32APILIBS.
16994 * configure: Rebuild.
16996 2020-01-14 Tom Tromey <tom@tromey.com>
16998 * configure: Rebuild.
16999 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
17001 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
17003 * skip.c (skip_function_command): Make skip w/o arguments use the
17004 name of the inlined function if pc is inside any inlined function.
17006 2020-01-14 Luis Machado <luis.machado@linaro.org>
17008 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
17009 * infrun.c (resume_1): Likewise.
17010 (handle_inferior_event): Remove stale comment.
17011 * linux-nat.c (linux_nat_target::resume): Update comments.
17012 (save_stop_reason): Likewise.
17013 (linux_nat_filter_event): Likewise.
17014 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
17016 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17018 * elfread.c (record_minimal_symbol): Set section index to 0 for
17019 non-allocatable sections.
17022 2020-01-13 Ali Tamur <tamur@google.com>
17024 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
17025 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
17026 to gdb::optional. Update comments.
17027 (dwo_file): Update comments.
17028 (read_attribute): Update API to take an additional out parameter,
17029 need_reprocess. This is used to mark attributes that need other
17030 attributes (e.g. str_offsets_base) for correct computation which may not
17031 have been read yet.
17032 (read_attribute_reprocess): New function declaration.
17033 (read_addr_index): Likewise.
17034 (read_dwo_str_index): Likewise.
17035 (read_stub_str_index): Likewise.
17036 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
17037 (lookup_addr_base): New function definition.
17038 (lookup_ranges_base): Likewise.
17039 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
17040 lookup_ranges_base.
17041 (init_cutu_and_read_dies): Update comments.
17042 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
17043 unit. This is used to inherit parent's str_offsets_base and addr_base.
17045 (init_cutu_and_read_dies_simple): Reflect API changes.
17046 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
17047 (create_cus_hash_table): Change API to take parent compile unit.
17048 Reflect API changes.
17049 (open_and_init_dwo_file): Reflect API changes.
17050 (dwarf2_get_pc_bounds): Update comments.
17051 (dwarf2_record_block_ranges): Likewise.
17052 (read_full_die_1): Change implementation to reprocess attributes that
17053 need str_offsets_base and addr_base.
17054 (partial_die_info::read): Likewise.
17055 (read_attribute_reprocess): New function definition.
17056 (read_attribute_value): Change API to take an additional out parameter,
17057 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
17058 when a non-dwo compile unit has index based attributes.
17059 (read_attribute): Reflect API changes.
17060 (read_addr_index_1): Reflect API changes. Update comments.
17061 (dwarf2_read_addr_index_data): Reflect API changes.
17062 (dwarf2_read_addr_index): Likewise.
17063 (read_str_index): Change API and implementation. This becomes a helper
17064 to be used by the new string index related methods. Update error
17065 message and comments.
17066 (read_dwo_str_index): New function definition.
17067 (read_stub_str_index): Likewise.
17068 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
17069 * symfile.h (dwarf2_debug_sections): Likewise.
17070 * xcoffread.c (dwarf2_debug_sections): Likewise.
17072 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17074 * gdbcore.h (struct core_fns) <core_read_registers>: Change
17075 core_reg_sect type to gdb_byte *.
17076 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
17077 * cris-tdep.c (fetch_core_registers): Likewise.
17078 * corelow.c (core_target::get_core_register_section): Change
17079 type of `contents` to gdb::byte_vector.
17081 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17083 * tui/tui-wingeneral.c (box_win): Position the title in the center
17086 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17088 * corelow.c (core_target::get_core_register_section): Use
17089 std::vector instead of alloca.
17091 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17093 * warning.m4: Add -Wmissing-declarations to build_warnings.
17094 * configure: Re-generate.
17096 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17098 * python/python.c (init__gdb_module): Add declaration.
17100 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17102 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
17103 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
17104 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
17105 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
17106 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
17107 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
17108 * ada-exp.y (_initialize_ada_exp): Add declaration.
17109 * ada-lang.c (_initialize_ada_language): Add declaration.
17110 * ada-tasks.c (_initialize_tasks): Add declaration.
17111 * agent.c (_initialize_agent): Add declaration.
17112 * aix-thread.c (_initialize_aix_thread): Add declaration.
17113 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
17114 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
17115 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
17116 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
17117 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
17118 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
17119 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
17120 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
17121 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
17122 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
17123 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
17124 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
17125 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
17126 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
17127 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
17128 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
17129 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
17130 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
17131 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
17132 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
17133 * annotate.c (_initialize_annotate): Add declaration.
17134 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
17135 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
17136 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
17137 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
17138 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
17139 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
17140 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
17141 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
17142 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
17143 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
17144 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
17145 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
17146 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
17147 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
17148 * auto-load.c (_initialize_auto_load): Add declaration.
17149 * auxv.c (_initialize_auxv): Add declaration.
17150 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
17151 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
17152 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
17153 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
17154 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
17155 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
17156 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
17157 * breakpoint.c (_initialize_breakpoint): Add declaration.
17158 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
17159 * btrace.c (_initialize_btrace): Add declaration.
17160 * charset.c (_initialize_charset): Add declaration.
17161 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
17162 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
17163 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
17164 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
17165 * cli/cli-script.c (_initialize_cli_script): Add declaration.
17166 * cli/cli-style.c (_initialize_cli_style): Add declaration.
17167 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
17168 * coffread.c (_initialize_coffread): Add declaration.
17169 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
17170 * compile/compile.c (_initialize_compile): Add declaration.
17171 * complaints.c (_initialize_complaints): Add declaration.
17172 * completer.c (_initialize_completer): Add declaration.
17173 * copying.c (_initialize_copying): Add declaration.
17174 * corefile.c (_initialize_core): Add declaration.
17175 * corelow.c (_initialize_corelow): Add declaration.
17176 * cp-abi.c (_initialize_cp_abi): Add declaration.
17177 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
17178 * cp-support.c (_initialize_cp_support): Add declaration.
17179 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
17180 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
17181 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
17182 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
17183 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
17184 * ctfread.c (_initialize_ctfread): Add declaration.
17185 * d-lang.c (_initialize_d_language): Add declaration.
17186 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
17187 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
17188 * dbxread.c (_initialize_dbxread): Add declaration.
17189 * dcache.c (_initialize_dcache): Add declaration.
17190 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
17191 * disasm.c (_initialize_disasm): Add declaration.
17192 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
17193 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
17194 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
17195 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
17196 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
17197 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
17198 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
17199 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
17200 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
17201 * elfread.c (_initialize_elfread): Add declaration.
17202 * exec.c (_initialize_exec): Add declaration.
17203 * extension.c (_initialize_extension): Add declaration.
17204 * f-lang.c (_initialize_f_language): Add declaration.
17205 * f-valprint.c (_initialize_f_valprint): Add declaration.
17206 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
17207 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
17208 * filesystem.c (_initialize_filesystem): Add declaration.
17209 * findcmd.c (_initialize_mem_search): Add declaration.
17210 * findvar.c (_initialize_findvar): Add declaration.
17211 * fork-child.c (_initialize_fork_child): Add declaration.
17212 * frame-base.c (_initialize_frame_base): Add declaration.
17213 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
17214 * frame.c (_initialize_frame): Add declaration.
17215 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
17216 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
17217 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17218 * gcore.c (_initialize_gcore): Add declaration.
17219 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17220 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17221 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17222 * gdbarch.c (_initialize_gdbarch): Add declaration.
17223 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17224 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17225 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17226 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17227 * go-lang.c (_initialize_go_language): Add declaration.
17228 * go32-nat.c (_initialize_go32_nat): Add declaration.
17229 * guile/guile.c (_initialize_guile): Add declaration.
17230 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17231 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17232 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17233 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17234 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17235 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17236 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17237 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17238 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17239 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17240 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17241 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17242 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17243 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17244 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17245 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17246 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17247 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17248 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17249 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17250 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17251 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17252 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17253 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17254 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17255 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17256 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17257 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17258 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17259 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17260 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17261 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17262 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17263 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17264 * infcall.c (_initialize_infcall): Add declaration.
17265 * infcmd.c (_initialize_infcmd): Add declaration.
17266 * inflow.c (_initialize_inflow): Add declaration.
17267 * infrun.c (_initialize_infrun): Add declaration.
17268 * interps.c (_initialize_interpreter): Add declaration.
17269 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17270 * jit.c (_initialize_jit): Add declaration.
17271 * language.c (_initialize_language): Add declaration.
17272 * linux-fork.c (_initialize_linux_fork): Add declaration.
17273 * linux-nat.c (_initialize_linux_nat): Add declaration.
17274 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17275 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17276 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17277 * m2-lang.c (_initialize_m2_language): Add declaration.
17278 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17279 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17280 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17281 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17282 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17283 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17284 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17285 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17286 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17287 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17288 * machoread.c (_initialize_machoread): Add declaration.
17289 * macrocmd.c (_initialize_macrocmd): Add declaration.
17290 * macroscope.c (_initialize_macroscope): Add declaration.
17291 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17292 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17293 * maint.c (_initialize_maint_cmds): Add declaration.
17294 * mdebugread.c (_initialize_mdebugread): Add declaration.
17295 * memattr.c (_initialize_mem): Add declaration.
17296 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17297 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17298 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17299 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17300 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17301 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17302 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17303 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17304 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17305 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17306 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17307 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17308 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17309 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17310 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17311 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17312 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17313 * mipsread.c (_initialize_mipsread): Add declaration.
17314 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17315 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17316 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17317 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17318 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17319 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17320 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17321 * nto-procfs.c (_initialize_procfs): Add declaration.
17322 * objc-lang.c (_initialize_objc_language): Add declaration.
17323 * observable.c (_initialize_observer): Add declaration.
17324 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17325 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17326 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17327 * osabi.c (_initialize_gdb_osabi): Add declaration.
17328 * osdata.c (_initialize_osdata): Add declaration.
17329 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17330 * parse.c (_initialize_parse): Add declaration.
17331 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17332 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17333 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17334 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17335 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17336 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17337 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17338 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17339 * printcmd.c (_initialize_printcmd): Add declaration.
17340 * probe.c (_initialize_probe): Add declaration.
17341 * proc-api.c (_initialize_proc_api): Add declaration.
17342 * proc-events.c (_initialize_proc_events): Add declaration.
17343 * proc-service.c (_initialize_proc_service): Add declaration.
17344 * procfs.c (_initialize_procfs): Add declaration.
17345 * producer.c (_initialize_producer): Add declaration.
17346 * psymtab.c (_initialize_psymtab): Add declaration.
17347 * python/python.c (_initialize_python): Add declaration.
17348 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17349 * record-btrace.c (_initialize_record_btrace): Add declaration.
17350 * record-full.c (_initialize_record_full): Add declaration.
17351 * record.c (_initialize_record): Add declaration.
17352 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17353 * regcache.c (_initialize_regcache): Add declaration.
17354 * reggroups.c (_initialize_reggroup): Add declaration.
17355 * remote-notif.c (_initialize_notif): Add declaration.
17356 * remote-sim.c (_initialize_remote_sim): Add declaration.
17357 * remote.c (_initialize_remote): Add declaration.
17358 * reverse.c (_initialize_reverse): Add declaration.
17359 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17360 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17361 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17362 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17363 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17364 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17365 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17366 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17368 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17369 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17370 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17371 * rust-exp.y (_initialize_rust_exp): Add declaration.
17372 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17373 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17374 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17375 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17376 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17377 * score-tdep.c (_initialize_score_tdep): Add declaration.
17378 * ser-go32.c (_initialize_ser_dos): Add declaration.
17379 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17380 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17381 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17382 * ser-uds.c (_initialize_ser_socket): Add declaration.
17383 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17384 * serial.c (_initialize_serial): Add declaration.
17385 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17386 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17387 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17388 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17389 * skip.c (_initialize_step_skip): Add declaration.
17390 * sol-thread.c (_initialize_sol_thread): Add declaration.
17391 * solib-aix.c (_initialize_solib_aix): Add declaration.
17392 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17393 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17394 * solib-frv.c (_initialize_frv_solib): Add declaration.
17395 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17396 * solib-target.c (_initialize_solib_target): Add declaration.
17397 * solib.c (_initialize_solib): Add declaration.
17398 * source-cache.c (_initialize_source_cache): Add declaration.
17399 * source.c (_initialize_source): Add declaration.
17400 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17401 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17402 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17403 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17404 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17405 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17406 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17407 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17408 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17409 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17410 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17411 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17412 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17413 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17414 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17415 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17416 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17417 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17418 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17419 * stabsread.c (_initialize_stabsread): Add declaration.
17420 * stack.c (_initialize_stack): Add declaration.
17421 * stap-probe.c (_initialize_stap_probe): Add declaration.
17422 * std-regs.c (_initialize_frame_reg): Add declaration.
17423 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17424 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17425 * symfile.c (_initialize_symfile): Add declaration.
17426 * symmisc.c (_initialize_symmisc): Add declaration.
17427 * symtab.c (_initialize_symtab): Add declaration.
17428 * target.c (_initialize_target): Add declaration.
17429 * target-connection.c (_initialize_target_connection): Add
17431 * target-dcache.c (_initialize_target_dcache): Add declaration.
17432 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17433 * thread.c (_initialize_thread): Add declaration.
17434 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17435 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17436 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17437 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17438 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17439 * tracectf.c (_initialize_ctf): Add declaration.
17440 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17441 * tracefile.c (_initialize_tracefile): Add declaration.
17442 * tracepoint.c (_initialize_tracepoint): Add declaration.
17443 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17444 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17445 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17446 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17447 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17448 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17449 * tui/tui.c (_initialize_tui): Add declaration.
17450 * typeprint.c (_initialize_typeprint): Add declaration.
17451 * ui-style.c (_initialize_ui_style): Add declaration.
17452 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17453 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17454 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17455 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17456 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17457 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17458 * unittests/filtered_iterator-selftests.c
17459 (_initialize_filtered_iterator_selftests): Add declaration.
17460 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17461 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17462 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17463 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17464 * unittests/main-thread-selftests.c
17465 (_initialize_main_thread_selftests): Add declaration.
17466 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17467 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17468 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17469 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17470 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17471 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17472 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17473 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17474 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17475 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17476 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17477 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17478 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17479 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17480 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17482 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17483 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17484 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17485 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17486 * user-regs.c (_initialize_user_regs): Add declaration.
17487 * utils.c (_initialize_utils): Add declaration.
17488 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17489 * valops.c (_initialize_valops): Add declaration.
17490 * valprint.c (_initialize_valprint): Add declaration.
17491 * value.c (_initialize_values): Add declaration.
17492 * varobj.c (_initialize_varobj): Add declaration.
17493 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17494 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17495 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17496 * windows-nat.c (_initialize_windows_nat): Add declaration.
17497 (_initialize_check_for_gdb_ini): Add declaration.
17498 (_initialize_loadable): Add declaration.
17499 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17500 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17501 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17502 * xcoffread.c (_initialize_xcoffread): Add declaration.
17503 * xml-support.c (_initialize_xml_support): Add declaration.
17504 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17505 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17506 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17507 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17509 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17511 * regformats/regdat.sh: Generate declaration for init function.
17513 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17515 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17517 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17518 close_one_inferior>: New methods.
17519 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17520 pass down target to find_inferior_pid.
17521 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17522 Pass down target to find_inferior_ptid.
17523 (gdbsim_target::create_inferior): Pass down target to
17525 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17526 target down to find_inferior_ptid and switch_to_thread.
17527 (gdbsim_target::close): Update to call close_one_inferior.
17528 (struct resume_data): Remove.
17529 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17530 directly, rather than through a void pointer.
17531 (gdbsim_target::resume): Update to call resume_one_inferior.
17533 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17535 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17537 2020-01-12 Pedro Alves <palves@redhat.com>
17539 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17540 directly for the current inferior instead of
17541 discard_all_inferiors.
17542 (discard_all_inferiors): Delete.
17544 2020-01-11 Tom Tromey <tom@tromey.com>
17546 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17547 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17548 deprecated_safe_get_selected_frame.
17550 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17552 * inferior.c (print_inferior): Switch inferior before printing it.
17554 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17555 Pedro Alves <palves@redhat.com>
17557 * progspace-and-thread.c (switch_to_program_space_and_thread):
17558 Assert there's an inferior for PSPACE. Use
17559 switch_to_inferior_no_thread to switch the inferior too.
17560 * progspace.c (program_space::~program_space): Call
17561 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17562 (program_space::free_all_objfiles): Don't call clear_symtab_users
17564 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17566 2020-01-10 Pedro Alves <palves@redhat.com>
17568 * NEWS: Mention multi-target debugging, "info connections", and
17569 "add-inferior -no-connection".
17571 2020-01-10 Pedro Alves <palves@redhat.com>
17573 * infrun.c: Include "target-connection.h".
17574 (check_multi_target_resumption): New.
17575 (proceed): Call it.
17576 * target-connection.c (make_target_connection_string): Make
17578 * target-connection.h (make_target_connection_string): Declare.
17580 2020-01-10 Pedro Alves <palves@redhat.com>
17582 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17583 * inferior.c (uiout_field_connection): New function.
17584 (print_inferior): Add new "connection-id" column.
17585 (add_inferior_command): Show connection number/string of added
17587 * process-stratum-target.h
17588 (process_stratum_target::connection_string): New virtual method.
17589 (process_stratum_target::connection_number): New field.
17590 * remote.c (remote_target::connection_string): New override.
17591 * target-connection.c: New file.
17592 * target-connection.h: New file.
17593 * target.c (decref_target): Remove process_stratum targets from
17594 the connection list.
17595 (target_stack::push): Add process_stratum targets to the
17598 2020-01-10 Pedro Alves <palves@redhat.com>
17601 2016-04-12 Pedro Alves <palves@redhat.com>
17602 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17603 Remove references to name.
17604 * serial.h (struct serial) <name>: Delete.
17606 2020-01-10 Pedro Alves <palves@redhat.com>
17608 * gdbarch-selftests.c (register_to_value_test): Remove "target
17609 already pushed" check.
17611 2020-01-10 Pedro Alves <palves@redhat.com>
17612 John Baldwin <jhb@FreeBSD.org>
17614 * aarch64-linux-nat.c
17615 (aarch64_linux_nat_target::thread_architecture): Adjust.
17616 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17617 (task_command_1): Likewise.
17618 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17619 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17620 (aix_thread_target::store_registers)
17621 (aix_thread_target::thread_alive): Adjust.
17622 * amd64-fbsd-tdep.c: Include "inferior.h".
17623 (amd64fbsd_get_thread_local_address): Pass down target.
17624 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17625 thread's gdbarch instead of target_gdbarch.
17626 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17627 get_last_target_status.
17628 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17629 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17631 (update_inserted_breakpoint_locations): Skip if inferiors with no
17633 (update_global_location_list): When handling moribund locations,
17634 find representative inferior for location's pspace, and use thread
17635 count of its process_stratum target.
17636 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17637 * bsd-uthread.c (bsd_uthread_target::wait): Use
17638 as_process_stratum_target and adjust thread_change_ptid and
17640 (bsd_uthread_target::update_thread_list): Use
17641 as_process_stratum_target and adjust find_thread_ptid,
17642 thread_change_ptid and add_thread calls.
17643 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17644 find_thread_ptid call.
17645 * corelow.c (add_to_thread_list): Adjust add_thread call.
17646 (core_target_open): Adjust add_thread_silent and thread_count
17648 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17649 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17650 * event-top.c (async_disconnect): Pop targets from all inferiors.
17651 * exec.c (add_target_sections): Push exec target on all inferiors
17652 sharing the program space.
17653 (remove_target_sections): Remove the exec target from all
17654 inferiors sharing the program space.
17655 (exec_on_vfork): New.
17656 * exec.h (exec_on_vfork): Declare.
17657 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17659 (fbsd_nat_target::update_thread_list): Adjust.
17660 (fbsd_nat_target::resume): Adjust.
17661 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17663 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17664 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17665 get_thread_arch_regcache call.
17666 * fork-child.c (gdb_startup_inferior): Pass target down to
17667 startup_inferior and set_executing.
17668 * gdbthread.h (struct process_stratum_target): Forward declare.
17669 (add_thread, add_thread_silent, add_thread_with_info)
17670 (in_thread_list): Add process_stratum_target parameter.
17671 (find_thread_ptid(inferior*, ptid_t)): New overload.
17672 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17674 (all_threads()): Delete overload.
17675 (all_threads, all_non_exited_threads): Add process_stratum_target
17677 (all_threads_safe): Use brace initialization.
17678 (thread_count): Add process_stratum_target parameter.
17679 (set_resumed, set_running, set_stop_requested, set_executing)
17680 (threads_are_executing, finish_thread_state): Add
17681 process_stratum_target parameter.
17682 (switch_to_thread): Use is_current_thread.
17683 * i386-fbsd-tdep.c: Include "inferior.h".
17684 (i386fbsd_get_thread_local_address): Pass down target.
17685 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17686 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17687 have_inferiors check.
17688 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17689 (inf_ptrace_target::attach): Adjust.
17690 * infcall.c (run_inferior_call): Adjust.
17691 * infcmd.c (run_command_1): Pass target to
17692 scoped_finish_thread_state.
17693 (proceed_thread_callback): Skip inferiors with no execution.
17694 (continue_command): Rename 'all_threads' local to avoid hiding
17695 'all_threads' function. Adjust get_last_target_status call.
17696 (prepare_one_step): Adjust set_running call.
17697 (signal_command): Use user_visible_resume_target. Compare thread
17698 pointers instead of inferior_ptid.
17699 (info_program_command): Adjust to pass down target.
17700 (attach_command): Mark target's 'thread_executing' flag.
17701 (stop_current_target_threads_ns): New, factored out from ...
17702 (interrupt_target_1): ... this. Switch inferior before making
17705 (struct all_inferiors_iterator, struct all_inferiors_range)
17706 (struct all_inferiors_safe_range)
17707 (struct all_non_exited_inferiors_range): Filter on
17708 process_stratum_target too. Remove explicit.
17709 * inferior.c (inferior::inferior): Push dummy target on target
17711 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17712 Add process_stratum_target parameter, and pass it down.
17713 (have_live_inferiors): Adjust.
17714 (switch_to_inferior_and_push_target): New.
17715 (add_inferior_command, clone_inferior_command): Handle
17716 "-no-connection" parameter. Use
17717 switch_to_inferior_and_push_target.
17718 (_initialize_inferior): Mention "-no-connection" option in
17719 the help of "add-inferior" and "clone-inferior" commands.
17720 * inferior.h: Include "process-stratum-target.h".
17721 (interrupt_target_1): Use bool.
17722 (struct inferior) <push_target, unpush_target, target_is_pushed,
17723 find_target_beneath, top_target, process_target, target_at,
17725 (discard_all_inferiors): Delete.
17726 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17727 (all_inferiors, all_non_exited_inferiors): Add
17728 process_stratum_target parameter.
17729 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17730 (target_last_proc_target): New global.
17731 (follow_fork_inferior): Push target on new inferior. Pass target
17732 to add_thread_silent. Call exec_on_vfork. Handle target's
17734 (follow_fork): Adjust get_last_target_status call. Also consider
17736 (follow_exec): Push target on new inferior.
17737 (struct execution_control_state) <target>: New field.
17738 (user_visible_resume_target): New.
17739 (do_target_resume): Call target_async.
17740 (resume_1): Set target's threads_executing flag. Consider resume
17742 (commit_resume_all_targets): New.
17743 (proceed): Also consider resume target. Skip threads of inferiors
17744 with no execution. Commit resumtion in all targets.
17745 (start_remote): Pass current inferior to wait_for_inferior.
17746 (infrun_thread_stop_requested): Consider target as well. Pass
17747 thread_info pointer to clear_inline_frame_state instead of ptid.
17748 (infrun_thread_thread_exit): Consider target as well.
17749 (random_pending_event_thread): New inferior parameter. Use it.
17750 (do_target_wait): Rename to ...
17751 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17753 (threads_are_resumed_pending_p, do_target_wait): New.
17754 (prepare_for_detach): Adjust calls.
17755 (wait_for_inferior): New inferior parameter. Handle it. Use
17756 do_target_wait_1 instead of do_target_wait.
17757 (fetch_inferior_event): Adjust. Switch to representative
17758 inferior. Pass target down.
17759 (set_last_target_status): Add process_stratum_target parameter.
17760 Save target in global.
17761 (get_last_target_status): Add process_stratum_target parameter and
17763 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17764 (context_switch): Check inferior_ptid == null_ptid before calling
17766 (get_inferior_stop_soon): Pass down target.
17767 (wait_one): Rename to ...
17768 (poll_one_curr_target): ... this.
17769 (struct wait_one_event): New.
17771 (stop_all_threads): Adjust.
17772 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17774 (switch_back_to_stepped_thread): Also consider target.
17775 (print_stop_event): Update.
17776 (normal_stop): Update. Also consider the resume target.
17777 * infrun.h (wait_for_inferior): Remove declaration.
17778 (user_visible_resume_target): New declaration.
17779 (get_last_target_status, set_last_target_status): New
17780 process_stratum_target parameter.
17781 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17782 process_stratum_target parameter, and use it.
17783 (clear_inline_frame_state (thread_info*)): New.
17784 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17785 process_stratum_target parameter.
17786 (clear_inline_frame_state (thread_info*)): Declare.
17787 * linux-fork.c (delete_checkpoint_command): Pass target down to
17789 (checkpoint_command): Adjust.
17790 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17791 instead of just tweaking inferior_ptid.
17792 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17793 (exit_lwp): Pass target down to find_thread_ptid.
17794 (attach_proc_task_lwp_callback): Pass target down to
17795 add_thread/set_running/set_executing.
17796 (linux_nat_target::attach): Pass target down to
17797 thread_change_ptid.
17798 (get_detach_signal): Pass target down to find_thread_ptid.
17799 Consider last target status's target.
17800 (linux_resume_one_lwp_throw, resume_lwp)
17801 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17802 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17803 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17804 (linux_nat_target::async_wait_fd): New.
17805 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17807 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17808 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17809 * linux-thread-db.c (struct thread_db_info::process_target): New
17811 (add_thread_db_info): Save target.
17812 (get_thread_db_info): New process_stratum_target parameter. Also
17814 (delete_thread_db_info): New process_stratum_target parameter.
17816 (thread_from_lwp): Adjust to pass down target.
17817 (thread_db_notice_clone): Pass down target.
17818 (check_thread_db_callback): Pass down target.
17819 (try_thread_db_load_1): Always push the thread_db target.
17820 (try_thread_db_load, record_thread): Pass target down.
17821 (thread_db_target::detach): Pass target down. Always unpush the
17823 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17824 target down. Always unpush the thread_db target.
17825 (find_new_threads_callback, thread_db_find_new_threads_2)
17826 (thread_db_target::update_thread_list): Pass target down.
17827 (thread_db_target::pid_to_str): Pass current inferior down.
17828 (thread_db_target::get_thread_local_address): Pass target down.
17829 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17831 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17832 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17833 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17834 (procfs_init_inferior): Rename to ...
17835 (procfs_target::procfs_init_inferior): ... this and adjust.
17836 (procfs_target::create_inferior, procfs_notice_thread)
17837 (procfs_do_thread_registers): Adjust.
17838 * ppc-fbsd-tdep.c: Include "inferior.h".
17839 (ppcfbsd_get_thread_local_address): Pass down target.
17840 * proc-service.c (ps_xfer_memory): Switch current inferior and
17841 program space as well.
17842 (get_ps_regcache): Pass target down.
17843 * process-stratum-target.c
17844 (process_stratum_target::thread_address_space)
17845 (process_stratum_target::thread_architecture): Pass target down.
17846 * process-stratum-target.h
17847 (process_stratum_target::threads_executing): New field.
17848 (as_process_stratum_target): New.
17849 * ravenscar-thread.c
17850 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17851 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17853 * record-btrace.c (record_btrace_target::info_record): Adjust.
17854 (record_btrace_target::record_method)
17855 (record_btrace_target::record_is_replaying)
17856 (record_btrace_target::fetch_registers)
17857 (get_thread_current_frame_id, record_btrace_target::resume)
17858 (record_btrace_target::wait, record_btrace_target::stop): Pass
17860 * record-full.c (record_full_wait_1): Switch to event thread.
17862 * regcache.c (regcache::regcache)
17863 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17864 process_stratum_target parameter and handle it.
17865 (current_thread_target): New global.
17866 (get_thread_regcache): Add process_stratum_target parameter and
17867 handle it. Switch inferior before calling target method.
17868 (get_thread_regcache): Pass target down.
17869 (get_thread_regcache_for_ptid): Pass target down.
17870 (registers_changed_ptid): Add process_stratum_target parameter and
17872 (registers_changed_thread, registers_changed): Pass target down.
17873 (test_get_thread_arch_aspace_regcache): New.
17874 (current_regcache_test): Define a couple local test_target_ops
17875 instances and use them for testing.
17876 (readwrite_regcache): Pass process_stratum_target parameter.
17877 (cooked_read_test, cooked_write_test): Pass mock_target down.
17878 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17879 (get_thread_arch_aspace_regcache): Add process_stratum_target
17881 (regcache::target): New method.
17882 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17883 (regcache::registers_changed_ptid): Add process_stratum_target
17885 (regcache::m_target): New field.
17886 (registers_changed_ptid): Add process_stratum_target parameter.
17887 * remote.c (remote_state::supports_vCont_probed): New field.
17888 (remote_target::async_wait_fd): New method.
17889 (remote_unpush_and_throw): Add remote_target parameter.
17890 (get_current_remote_target): Adjust.
17891 (remote_target::remote_add_inferior): Push target.
17892 (remote_target::remote_add_thread)
17893 (remote_target::remote_notice_new_inferior)
17894 (get_remote_thread_info): Pass target down.
17895 (remote_target::update_thread_list): Skip threads of inferiors
17896 bound to other targets. (remote_target::close): Don't discard
17897 inferiors. (remote_target::add_current_inferior_and_thread)
17898 (remote_target::process_initial_stop_replies)
17899 (remote_target::start_remote)
17900 (remote_target::remote_serial_quit_handler): Pass down target.
17901 (remote_target::remote_unpush_target): New remote_target
17902 parameter. Unpush the target from all inferiors.
17903 (remote_target::remote_unpush_and_throw): New remote_target
17904 parameter. Pass it down.
17905 (remote_target::open_1): Check whether the current inferior has
17906 execution instead of checking whether any inferior is live. Pass
17908 (remote_target::remote_detach_1): Pass down target. Use
17909 remote_unpush_target.
17910 (extended_remote_target::attach): Pass down target.
17911 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17912 (remote_target::append_resumption): Pass down target.
17913 (remote_target::append_pending_thread_resumptions)
17914 (remote_target::remote_resume_with_hc, remote_target::resume)
17915 (remote_target::commit_resume): Pass down target.
17916 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17917 (remote_target::interrupt_query)
17918 (remote_target::remove_new_fork_children)
17919 (remote_target::check_pending_events_prevent_wildcard_vcont)
17920 (remote_target::remote_parse_stop_reply)
17921 (remote_target::process_stop_reply): Pass down target.
17922 (first_remote_resumed_thread): New remote_target parameter. Pass
17924 (remote_target::wait_as): Pass down target.
17925 (unpush_and_perror): New remote_target parameter. Pass it down.
17926 (remote_target::readchar, remote_target::remote_serial_write)
17927 (remote_target::getpkt_or_notif_sane_1)
17928 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17930 (remote_target::mourn_inferior): Pass down target. Use
17931 remote_unpush_target.
17932 (remote_target::core_of_thread)
17933 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17934 (remote_target::pid_to_exec_file)
17935 (remote_target::thread_handle_to_thread_info): Pass down target.
17936 (remote_target::async_wait_fd): New.
17937 * riscv-fbsd-tdep.c: Include "inferior.h".
17938 (riscv_fbsd_get_thread_local_address): Pass down target.
17939 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17940 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17941 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17943 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17944 * solib-svr4.c (enable_break): Pass down target.
17945 * spu-multiarch.c (parse_spufs_run): Pass down target.
17946 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17947 * target-delegates.c: Regenerate.
17948 * target.c (g_target_stack): Delete.
17949 (current_top_target): Return the current inferior's top target.
17950 (target_has_execution_1): Refer to the passed-in inferior's top
17952 (target_supports_terminal_ours): Check whether the initial
17953 inferior was already created.
17954 (decref_target): New.
17955 (target_stack::push): Incref/decref the target.
17956 (push_target, push_target, unpush_target): Adjust.
17957 (target_stack::unpush): Defref target.
17958 (target_is_pushed): Return bool. Adjust to refer to the current
17959 inferior's target stack.
17960 (dispose_inferior): Delete, and inline parts ...
17961 (target_preopen): ... here. Only dispose of the current inferior.
17962 (target_detach): Hold strong target reference while detaching.
17964 (target_thread_name): Add assertion.
17965 (target_resume): Pass down target.
17966 (target_ops::beneath, find_target_at): Adjust to refer to the
17967 current inferior's target stack.
17968 (get_dummy_target): New.
17969 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17970 has a thread running.
17971 (initialize_targets): Rename to ...
17972 (_initialize_target): ... this.
17973 * target.h: Include "gdbsupport/refcounted-object.h".
17974 (struct target_ops): Inherit refcounted_object.
17975 (target_ops::shortname, target_ops::longname): Make const.
17976 (target_ops::async_wait_fd): New method.
17977 (decref_target): Declare.
17978 (struct target_ops_ref_policy): New.
17979 (target_ops_ref): New typedef.
17980 (get_dummy_target): Declare function.
17981 (target_is_pushed): Return bool.
17982 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17983 (all_matching_threads_iterator::all_matching_threads_iterator):
17984 Handle filter target.
17985 * thread-iter.h (struct all_matching_threads_iterator, struct
17986 all_matching_threads_range, class all_non_exited_threads_range):
17987 Filter by target too. Remove explicit.
17988 * thread.c (threads_executing): Delete.
17989 (inferior_thread): Pass down current inferior.
17990 (clear_thread_inferior_resources): Pass down thread pointer
17992 (add_thread_silent, add_thread_with_info, add_thread): Add
17993 process_stratum_target parameter. Use it for thread and inferior
17995 (is_current_thread): New.
17996 (thread_info::deletable): Use it.
17997 (find_thread_ptid, thread_count, in_thread_list)
17998 (thread_change_ptid, set_resumed, set_running): New
17999 process_stratum_target parameter. Pass it down.
18000 (set_executing): New process_stratum_target parameter. Pass it
18001 down. Adjust reference to 'threads_executing'.
18002 (threads_are_executing): New process_stratum_target parameter.
18003 Adjust reference to 'threads_executing'.
18004 (set_stop_requested, finish_thread_state): New
18005 process_stratum_target parameter. Pass it down.
18006 (switch_to_thread): Also match inferior.
18007 (switch_to_thread): New process_stratum_target parameter. Pass it
18009 (update_threads_executing): Reimplement.
18010 * top.c (quit_force): Pop targets from all inferior.
18011 (gdb_init): Don't call initialize_targets.
18012 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
18014 (windows_add_thread, windows_delete_thread): Adjust.
18015 (get_windows_debug_event): Rename to ...
18016 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
18017 * tracefile-tfile.c (tfile_target_open): Pass down target.
18018 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
18020 (switch_to_thread): Add process_stratum_target parameter.
18021 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
18023 (mi_on_resume): Pass target down.
18024 * nat/fork-inferior.c (startup_inferior): Add
18025 process_stratum_target parameter. Pass it down.
18026 * nat/fork-inferior.h (startup_inferior): Add
18027 process_stratum_target parameter.
18028 * python/py-threadevent.c (py_get_event_thread): Pass target down.
18030 2020-01-10 Pedro Alves <palves@redhat.com>
18032 * remote.c (remote_target::start_remote): Don't set inferior_ptid
18033 directly. Instead find the first thread in the thread list and
18034 use switch_to_thread.
18036 2020-01-10 Pedro Alves <palves@redhat.com>
18038 * remote.c (remote_target::remote_add_inferior): Don't bind a
18039 process to the current inferior if the current inferior is already
18040 bound to a process.
18042 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
18043 Pedro Alves <palves@redhat.com>
18045 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
18046 If no process is specified, return null_ptid instead of
18048 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
18049 TARGET_WAITKIND_SIGNALLED with no pid.
18051 2020-01-10 Pedro Alves <palves@redhat.com>
18053 * remote.c (first_remote_resumed_thread): New.
18054 (remote_target::wait_as): Use it as default event_ptid instead of
18057 2020-01-10 Pedro Alves <palves@redhat.com>
18059 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
18061 2020-01-10 Pedro Alves <palves@redhat.com>
18063 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
18066 2020-01-10 Pedro Alves <palves@redhat.com>
18068 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
18069 ptid to get_last_target_status.
18070 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
18071 ptid to get_last_target_status.
18072 * infcmd.c (continue_command): Don't pass a target_waitstatus to
18073 get_last_target_status.
18074 (info_program_command): Don't pass a target_waitstatus to
18075 get_last_target_status.
18076 * infrun.c (init_wait_for_inferior): Use
18077 nullify_last_target_wait_ptid.
18078 (get_last_target_status): Handle nullptr arguments.
18079 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
18080 (print_stop_event): Don't pass a ptid to get_last_target_status.
18081 (normal_stop): Don't pass a ptid to get_last_target_status.
18082 * infrun.h (get_last_target_status, set_last_target_status): Move
18083 comments here and update.
18084 (nullify_last_target_wait_ptid): Declare.
18085 * linux-fork.c (fork_load_infrun_state): Remove local extern
18086 declaration of nullify_last_target_wait_ptid.
18087 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
18088 to get_last_target_status.
18090 2020-01-10 Pedro Alves <palves@redhat.com>
18092 * gdbthread.h (scoped_restore_current_thread)
18093 <dont_restore, restore, m_dont_restore>: Declare.
18094 * thread.c (thread_alive): Add assertion. Return bool.
18095 (switch_to_thread_if_alive): New.
18096 (prune_threads): Switch inferior/thread.
18097 (print_thread_info_1): Switch thread before calling target methods.
18098 (scoped_restore_current_thread::restore): New, factored out from
18100 (scoped_restore_current_thread::~scoped_restore_current_thread):
18102 (scoped_restore_current_thread::scoped_restore_current_thread):
18104 (thread_apply_all_command, thread_select): Use
18105 switch_to_thread_if_alive.
18106 * infrun.c (proceed, restart_threads, handle_signal_stop)
18107 (switch_back_to_stepped_thread): Switch current thread before
18108 calling target methods.
18110 2020-01-10 Pedro Alves <palves@redhat.com>
18112 * inferior.c (switch_to_inferior_no_thread): New function,
18113 factored out from ...
18114 (inferior_command): ... here.
18115 * inferior.h (switch_to_inferior_no_thread): Declare.
18116 * mi/mi-main.c (run_one_inferior): Use
18117 switch_to_inferior_no_thread.
18119 2020-01-10 Pedro Alves <palves@redhat.com>
18121 * infcmd.c (kill_command): Remove dead code.
18123 2020-01-10 Pedro Alves <palves@redhat.com>
18125 * remote.c (remote_target::mourn_inferior): No longer check
18126 whether the target is running.
18128 2020-01-10 Pedro Alves <palves@redhat.com>
18130 * corelow.c (core_target::has_execution): Change parameter type to
18132 * inferior.c (number_of_live_inferiors): Use
18133 inferior::has_execution instead of target_has_execution_1.
18134 * inferior.h (inferior::has_execution): New.
18135 * linux-thread-db.c (thread_db_target::update_thread_list): Use
18136 inferior::has_execution instead of target_has_execution_1.
18137 * process-stratum-target.c
18138 (process_stratum_target::has_execution): Change parameter type to
18139 inferior pointer. Check the inferior's PID instead of
18141 * process-stratum-target.h
18142 (process_stratum_target::has_execution): Change parameter type to
18144 * record-full.c (record_full_core_target::has_execution): Change
18145 parameter type to inferior pointer.
18146 * target.c (target_has_execution_1): Change parameter type to
18148 (target_has_execution_current): Adjust.
18149 * target.h (target_ops::has_execution): Change parameter type to
18151 (target_has_execution_1): Change parameter type to inferior
18152 pointer. Change return type to bool.
18153 * tracefile.h (tracefile_target::has_execution): Change parameter
18154 type to inferior pointer.
18156 2020-01-10 Pedro Alves <palves@redhat.com>
18158 * exceptions.c (print_flush): Remove current_top_target() check.
18160 2020-01-10 Pedro Alves <palves@redhat.com>
18162 * remote.c (show_remote_exec_file): Show the current inferior's
18163 exec-file instead of the command variable's value.
18165 2020-01-10 Pedro Alves <palves@redhat.com>
18167 * record-full.c (record_full_resume_ptid): New global.
18168 (record_full_target::resume): Set it.
18169 (record_full_wait_1): Use record_full_resume_ptid instead of
18172 2020-01-10 Pedro Alves <palves@redhat.com>
18174 * gdbthread.h (scoped_restore_current_thread)
18175 <dont_restore, restore, m_dont_restore>: Declare.
18176 * thread.c (thread_alive): Add assertion. Return bool.
18177 (switch_to_thread_if_alive): New.
18178 (prune_threads): Switch inferior/thread.
18179 (print_thread_info_1): Switch thread before calling target methods.
18180 (scoped_restore_current_thread::restore): New, factored out from
18182 (scoped_restore_current_thread::~scoped_restore_current_thread):
18184 (scoped_restore_current_thread::scoped_restore_current_thread):
18186 (thread_apply_all_command, thread_select): Use
18187 switch_to_thread_if_alive.
18189 2020-01-10 George Barrett <bob@bob131.so>
18191 * stap-probe.c (stap_modify_semaphore): Don't check for null
18193 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
18194 for null semaphores.
18196 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18198 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
18199 all source windows, and maintain horizontal scroll status while
18202 2020-01-09 Tom Tromey <tom@tromey.com>
18205 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
18206 update_source_window, not print_source_lines.
18208 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18210 * tui/tui.c (tui_enable): Register tui hooks after calling
18213 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18215 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
18217 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
18219 * thread.c (print_thread_info_1): Fix indentation.
18221 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18223 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18224 unique_xmalloc_ptr outside the if to always free the demangled name.
18226 2020-01-08 Tom Tromey <tromey@adacore.com>
18228 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18229 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18230 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18231 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18233 (section_offsets): New typedef.
18234 * symtab.c (fixup_section, get_msymbol_address): Update.
18235 * symmisc.c (dump_msymbols): Update.
18236 * symfile.h (relative_addr_info_to_section_offsets)
18237 (symfile_map_offsets_to_segments): Update.
18238 * symfile.c (build_section_addr_info_from_objfile)
18239 (init_objfile_sect_indices): Update.
18240 (struct place_section_arg): Change type of "offsets".
18241 (place_section): Update.
18242 (relative_addr_info_to_section_offsets): Change type of
18243 "section_offsets". Remove "num_sections" parameter.
18244 (default_symfile_offsets, syms_from_objfile_1)
18245 (set_objfile_default_section_offset): Update.
18246 (reread_symbols): No need to preserve section offsets by hand.
18247 (symfile_map_offsets_to_segments): Change type of "offsets".
18248 * stap-probe.c (relocate_address): Update.
18249 * stabsread.h (process_one_symbol): Update.
18250 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18251 (solib_target_relocate_section_addresses): Update.
18252 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18254 * solib-frv.c (frv_relocate_main_executable): Update.
18255 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18256 * solib-aix.c (solib_aix_get_section_offsets): Change return
18258 (solib_aix_solib_create_inferior_hook): Update.
18259 * remote.c (remote_target::get_offsets): Update.
18260 * psymtab.c (find_pc_sect_psymtab): Update.
18261 * psympriv.h (struct partial_symbol) <address, text_low,
18262 text_high>: Update.
18263 * objfiles.h (obj_section_offset): Update.
18264 (struct objfile) <section_offsets>: Change type.
18265 <num_sections>: Remove.
18266 (objfile_relocate): Update.
18267 * objfiles.c (entry_point_address_query): Update
18268 (relocate_one_symbol): Change type of "section_offsets".
18269 (objfile_relocate1, objfile_relocate1): Change type of
18271 (objfile_rebase1): Update.
18272 * mipsread.c (mipscoff_symfile_read): Update.
18273 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18275 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18276 (parse_external, psymtab_to_symtab_1): Update.
18277 * machoread.c (macho_symfile_offsets): Update.
18278 * ia64-tdep.c (ia64_find_unwind_table): Update.
18279 * hppa-tdep.c (read_unwind_info): Update.
18280 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18281 * dwarf2read.c (create_addrmap_from_index)
18282 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18283 (process_psymtab_comp_unit_reader, add_partial_symbol)
18284 (add_partial_subprogram, process_full_comp_unit)
18285 (read_file_scope, read_func_scope, read_lexical_block_scope)
18286 (read_call_site_scope, dwarf2_rnglists_process)
18287 (dwarf2_ranges_process, dwarf2_ranges_read)
18288 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18289 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18291 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18293 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18294 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18295 (process_one_symbol): Change type of "section_offsets".
18296 * ctfread.c (get_objfile_text_range): Update.
18297 * coffread.c (coff_symtab_read, enter_linenos)
18298 (process_coff_symbol): Update.
18299 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18300 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18302 2020-01-08 Tom Tromey <tromey@adacore.com>
18304 * dwarf2read.c (parse_macro_definition): Use std::string.
18305 (parse_macro_definition): Likewise.
18307 2020-01-08 Tom Tromey <tromey@adacore.com>
18309 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18310 (ATTR_ALLOC_CHUNK): Remove.
18312 2020-01-08 Tom Tromey <tromey@adacore.com>
18314 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18316 2020-01-08 Tom Tromey <tromey@adacore.com>
18318 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18319 (dwarf2_compute_name, open_dwo_file): Likewise.
18320 (process_enumeration_scope): Use std::vector.
18321 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18322 (partial_die_info::fixup, dwarf2_start_subfile)
18323 (guess_full_die_structure_name, dwarf2_name): Likewise.
18324 (determine_prefix): Update.
18325 (guess_full_die_structure_name): Make return type const.
18326 (partial_die_full_name): Return unique_xmalloc_ptr.
18327 (DW_FIELD_ALLOC_CHUNK): Remove.
18329 2020-01-07 Tom Tromey <tromey@adacore.com>
18332 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18334 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18336 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18338 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18340 * stack.c (print_frame_info): Move disassemble_next_line code
18341 inside source_print block.
18343 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18345 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18346 gdb/signals.h, as we are now using native signal symbols.
18348 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18350 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18351 overflow by an early check of content vs threshold.
18352 * tui/tui-source.c (tui_source_window::line_is_displayed):
18355 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18357 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18359 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18361 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18362 export table if no section contains it's RVA.
18364 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18366 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18368 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
18370 * source.c (print_source_lines_base): Set last_line_listed.
18372 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18374 * tui/tui-disasm.c: Remove trailing spaces.
18376 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18377 Pedro Alves <palves@redhat.com>
18379 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18380 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18381 (windows_gdb_signal_to_target): New function, uses the above
18382 enumeration to convert GDB internal signal codes to equivalent
18384 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18385 * windows-nat.c: Include "gdb_wait.h".
18386 (get_windows_debug_event): Extract the fatal exception from the
18387 exit status and convert to the equivalent Posix signal number.
18388 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18389 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18390 * gdbsupport/gdb_wait.c: New file, implements
18391 windows_status_to_termsig.
18392 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18393 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18395 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18397 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18400 2020-01-05 Luis Machado <luis.machado@linaro.org>
18402 * aarch64-linux-nat.c
18403 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18404 and bfd_mach_aarch64.
18406 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18408 * ui-file.c (stdio_file::can_emit_style_escape)
18409 (tee_file::can_emit_style_escape): Ensure style is used also on
18410 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18412 * main.c (set_gdb_data_directory): Use file style to output the
18413 warning that the given pathname is not a directory.
18414 * top.c (show_history_filename, gdb_safe_append_history)
18415 (show_gdb_datadir): Use file style.
18417 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18419 * solib-target.c (struct lm_info_target):
18420 Change offsets to be a unique_xmalloc_ptr.
18421 (solib_target_relocate_section_addresses): Update.
18423 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18425 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18427 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18429 * MAINTAINERS (Write After Approval): Add myself.
18431 2020-01-02 Luis Machado <luis.machado@linaro.org>
18433 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18434 Cell BE architecture.
18435 * target.h (struct target_ops) <thread_architecture>: Likewise.
18437 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18439 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18441 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18443 * MAINTAINERS (Write After Approval): Add myself.
18445 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18447 * gdbarch.sh: Update copyright year range of generated files.
18449 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18451 Update copyright year range in all GDB files.
18453 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18455 * copyright.py: Convert to Python 3.
18457 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18459 * copyright.py: Adapt after move of gnulib directory from gdb
18460 directory to toplevel directory.
18462 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18464 * copyright.py (main): Exit if run from the wrong directory.
18466 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18468 * top.c (print_gdb_version): Change copyright year to 2020.
18470 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18472 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18474 For older changes see ChangeLog-2019.
18480 version-control: never